*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #020617;
  color: #cbd5e1;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 32rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 28rem),
    #020617;
  color: #cbd5e1;
}

body,
button,
input,
select {
  font: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  border: 0;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(30, 41, 59, 0.95);
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.24);
}

.brand-text {
  font-size: 20px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-link,
.mobile-nav-link {
  color: #cbd5e1;
  transition: color 0.22s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #ffffff;
}

.header-search {
  width: min(220px, 24vw);
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select,
.cta-search input {
  width: 100%;
  border: 1px solid rgba(51, 65, 85, 0.95);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  outline: 0;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.header-search input {
  padding: 10px 13px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.cta-search input:focus {
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: #e2e8f0;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(30, 41, 59, 0.95);
}

.mobile-panel.open {
  display: block;
}

.mobile-nav,
.mobile-search {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.mobile-nav {
  display: grid;
  gap: 2px;
  padding: 14px 0 8px;
}

.mobile-nav-link {
  padding: 12px 0;
}

.mobile-search {
  padding: 0 0 18px;
}

.mobile-search input {
  padding: 12px 14px;
}

.page-stack {
  display: grid;
  gap: 64px;
  padding: 32px 0 0;
}

.page-top {
  padding-top: 44px;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #0f172a);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.52), transparent),
    linear-gradient(0deg, rgba(2, 6, 23, 0.5), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 96px));
  margin-left: clamp(24px, 6vw, 72px);
}

.hero-kicker,
.section-kicker,
.detail-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.94);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.hero-kicker {
  padding: 8px 12px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.hero-content h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-content p {
  display: -webkit-box;
  max-width: 640px;
  margin: 0 0 32px;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.primary-button,
.cta-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 13px;
  background: #f59e0b;
  color: #ffffff;
  font-weight: 800;
  transition: background 0.22s ease, transform 0.22s ease;
}

.primary-button {
  padding: 0 28px;
}

.primary-button:hover,
.cta-search button:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.button-play,
.poster-play,
.side-play {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
}

.hero-arrow,
.rail-control {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  backdrop-filter: blur(10px);
  transition: background 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.hero-arrow {
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
}

.hero-arrow:hover,
.rail-control:hover {
  background: rgba(0, 0, 0, 0.82);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-prev::before,
.hero-next::before,
.rail-control::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
}

.hero-prev::before,
.rail-control.left::before {
  transform: rotate(45deg);
}

.hero-next::before,
.rail-control.right::before {
  transform: rotate(225deg);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  transition: width 0.24s ease, background 0.24s ease;
}

.hero-dot.active {
  width: 34px;
  background: #f59e0b;
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 18px;
}

.featured-main,
.side-card,
.movie-card,
.category-tile,
.category-overview-card,
.detail-panel,
.side-panel,
.filter-panel,
.page-hero,
.search-cta,
.ranking-row {
  border: 1px solid rgba(30, 41, 59, 0.9);
  background: rgba(15, 23, 42, 0.86);
}

.featured-main {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 18px;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.featured-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 80px rgba(245, 158, 11, 0.17);
}

.featured-main img,
.featured-overlay {
  position: absolute;
  inset: 0;
}

.featured-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111827;
  transition: transform 0.6s ease;
}

.featured-main:hover img {
  transform: scale(1.08);
}

.featured-overlay {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.24));
}

.featured-main > div {
  position: absolute;
  inset: auto 28px 28px;
}

.featured-main span,
.section-kicker {
  padding: 7px 10px;
  margin-bottom: 12px;
}

.featured-main h2,
.section-head h2,
.search-cta h2,
.page-hero h1,
.detail-panel h1 {
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.featured-main h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.featured-main p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #cbd5e1;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.featured-side {
  display: grid;
  gap: 18px;
}

.side-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 16px;
  transition: background 0.22s ease, transform 0.22s ease;
}

.side-card:hover {
  transform: translateY(-1px);
  background: rgba(30, 41, 59, 0.96);
}

.side-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111827;
  transition: transform 0.48s ease;
}

.side-card:hover img {
  transform: scale(1.1);
}

.side-play {
  position: absolute;
  inset: 50% auto auto 50%;
  color: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.22s ease;
}

.side-card:hover .side-play {
  opacity: 1;
}

.side-info {
  min-width: 0;
  padding: 15px 16px;
}

.side-info h3,
.movie-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.22s ease;
}

.side-card:hover h3,
.movie-card:hover h3,
.ranking-row:hover h2 {
  color: #f59e0b;
}

.side-info p {
  margin: 10px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

.content-section {
  display: grid;
  gap: 24px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-head h2,
.search-cta h2,
.page-hero h1 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-head a,
.category-overview-head a {
  color: #f59e0b;
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.52);
}

.category-tile img,
.category-glow {
  position: absolute;
  inset: 0;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111827;
  opacity: 0.54;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.category-tile:hover img {
  opacity: 0.76;
  transform: scale(1.08);
}

.category-glow {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.16));
}

.category-tile div {
  position: absolute;
  inset: auto 18px 18px;
}

.category-tile h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 20px;
}

.category-tile p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.rail-wrap {
  position: relative;
}

.movie-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.movie-rail .movie-card {
  flex: 0 0 250px;
}

.rail-control {
  top: 42%;
  width: 42px;
  height: 42px;
  opacity: 0;
}

.rail-wrap:hover .rail-control {
  opacity: 1;
}

.rail-control.left {
  left: -10px;
}

.rail-control.right {
  right: -10px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.compact-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: 16px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-3px) scale(1.01);
  background: rgba(30, 41, 59, 0.96);
  box-shadow: 0 22px 45px rgba(245, 158, 11, 0.12);
}

.movie-card[hidden],
.ranking-row[hidden] {
  display: none;
}

.movie-poster {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111827;
}

.movie-card-small .movie-poster {
  aspect-ratio: 4 / 4.9;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #1e293b);
  transition: transform 0.52s ease;
}

.movie-card:hover .movie-poster img {
  transform: scale(1.1);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08) 58%, transparent);
  opacity: 0.74;
  transition: opacity 0.22s ease;
}

.movie-card:hover .poster-shade {
  opacity: 0.9;
}

.poster-play {
  position: absolute;
  inset: 50% auto auto 50%;
  color: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.22s ease;
}

.poster-play::before {
  content: "";
  position: absolute;
  inset: -22px -26px -22px -22px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  z-index: -1;
}

.movie-card:hover .poster-play {
  opacity: 1;
}

.poster-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.poster-badges span,
.detail-meta span,
.tag-section span {
  display: inline-flex;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.poster-badges span:first-child {
  background: rgba(245, 158, 11, 0.94);
  color: #ffffff;
}

.poster-badges span {
  padding: 5px 8px;
  background: rgba(15, 23, 42, 0.88);
  color: #e2e8f0;
  backdrop-filter: blur(8px);
}

.movie-card-body {
  padding: 15px;
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 9px 0 0;
  overflow: hidden;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta-line {
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(30, 41, 59, 0.9);
  transition: background 0.22s ease, transform 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-1px);
  background: rgba(30, 41, 59, 0.94);
}

.rank-number {
  color: #f59e0b;
  font-size: 22px;
  font-weight: 900;
}

.rank-item img {
  width: 64px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  background: #111827;
}

.rank-title {
  overflow: hidden;
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  color: #94a3b8;
  font-size: 12px;
  white-space: nowrap;
}

.search-cta,
.page-hero {
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 32rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.86));
}

.search-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 48px);
}

.search-cta p,
.page-hero p {
  max-width: 780px;
  margin: 14px 0 0;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.72;
}

.cta-search {
  display: flex;
  gap: 10px;
}

.cta-search input {
  min-height: 52px;
  padding: 0 15px;
}

.cta-search button {
  min-width: 112px;
}

.page-hero {
  padding: clamp(30px, 6vw, 58px);
}

.small-hero {
  min-height: 220px;
}

.category-hero {
  min-height: 190px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #f59e0b;
}

.breadcrumb em {
  color: #e2e8f0;
  font-style: normal;
}

.category-overview-card {
  display: grid;
  gap: 22px;
  padding: 24px;
  border-radius: 22px;
}

.category-overview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.category-overview-head h2 {
  max-width: 760px;
  margin: 4px 0 0;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.35;
}

.filter-panel {
  padding: 18px;
  border-radius: 18px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 160px;
  gap: 12px;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  padding: 0 14px;
}

.filter-empty {
  display: none;
  padding: 24px 0 8px;
  color: #94a3b8;
  text-align: center;
}

.filter-panel.empty .filter-empty {
  display: block;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-row {
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.22s ease, background 0.22s ease;
}

.ranking-row:hover {
  transform: translateY(-1px);
  background: rgba(30, 41, 59, 0.96);
}

.ranking-row a {
  display: grid;
  grid-template-columns: 72px 116px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.ranking-index {
  color: #f59e0b;
  font-size: 26px;
  font-weight: 950;
  text-align: center;
}

.ranking-row img {
  width: 116px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: #111827;
}

.ranking-row h2 {
  margin: 0;
  color: #ffffff;
  font-size: 19px;
  transition: color 0.22s ease;
}

.ranking-row p {
  display: -webkit-box;
  margin: 8px 0 8px;
  overflow: hidden;
  color: #94a3b8;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-row strong {
  color: #64748b;
  font-size: 13px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.08fr) minmax(280px, 0.92fr);
  gap: 28px;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.stream-player {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.stream-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.stream-player.is-playing .player-overlay {
  opacity: 0;
}

.player-start {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.95);
  color: #ffffff;
  pointer-events: auto;
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.32);
  transition: transform 0.22s ease, background 0.22s ease;
}

.player-start:hover {
  transform: scale(1.06);
  background: #d97706;
}

.player-start span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid currentColor;
}

.detail-panel,
.side-panel {
  border-radius: 18px;
  padding: clamp(20px, 3vw, 28px);
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-panel h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.detail-category {
  flex: 0 0 auto;
  padding: 9px 12px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}

.detail-meta span,
.tag-section span {
  padding: 8px 10px;
  background: rgba(30, 41, 59, 0.82);
  color: #cbd5e1;
}

.one-line {
  margin: 0 0 24px;
  color: #fbbf24;
  font-size: 18px;
  line-height: 1.72;
}

.text-section,
.tag-section {
  border-top: 1px solid rgba(30, 41, 59, 0.95);
  padding-top: 24px;
  margin-top: 24px;
}

.text-section h2,
.tag-section h2,
.side-panel h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 21px;
}

.text-section p {
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.9;
}

.tag-section div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.detail-side {
  min-width: 0;
}

.side-panel {
  position: sticky;
  top: 96px;
}

.side-list {
  display: grid;
  gap: 12px;
}

.site-footer {
  margin-top: 76px;
  border-top: 1px solid rgba(30, 41, 59, 0.95);
  background: rgba(2, 6, 23, 0.96);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 36px;
  padding: 44px 0;
}

.footer-about p {
  max-width: 520px;
  margin: 16px 0 0;
  color: #94a3b8;
  line-height: 1.7;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 16px;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a {
  color: #94a3b8;
  font-size: 14px;
  transition: color 0.22s ease;
}

.site-footer a:hover {
  color: #f59e0b;
}

.footer-bottom {
  border-top: 1px solid rgba(30, 41, 59, 0.72);
  padding: 22px 16px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 1100px) {
  .category-grid,
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .featured-grid,
  .search-cta,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 520px;
    height: 66vh;
  }

  .hero-content {
    width: min(620px, calc(100% - 48px));
    margin-left: 24px;
  }

  .category-grid,
  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-text {
    display: none;
  }

  .page-stack {
    gap: 42px;
    padding-top: 18px;
  }

  .hero-slider {
    min-height: 480px;
    border-radius: 20px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 15px;
    -webkit-line-clamp: 4;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .category-grid,
  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .movie-rail .movie-card {
    flex-basis: 205px;
  }

  .rank-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 36px 56px minmax(0, 1fr);
  }

  .rank-meta {
    display: none;
  }

  .ranking-row a {
    grid-template-columns: 48px 82px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-row img {
    width: 82px;
    height: 62px;
  }

  .ranking-index {
    font-size: 20px;
  }

  .section-head,
  .category-overview-head,
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .side-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .search-cta,
  .page-hero,
  .category-overview-card,
  .detail-panel,
  .side-panel {
    border-radius: 18px;
    padding: 20px;
  }

  .cta-search {
    flex-direction: column;
  }

  .player-start {
    width: 68px;
    height: 68px;
  }
}
