:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.88);
  --panel-strong: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.72);
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.2);
  --cyan: #22d3ee;
  --blue: #2563eb;
  --green: #22c55e;
  --amber: #f59e0b;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --max: 1280px;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(37, 99, 235, 0.34), transparent 34rem),
    radial-gradient(circle at 85% 0%, rgba(34, 211, 238, 0.18), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(30, 64, 175, 0.8), rgba(2, 6, 23, 0.94));
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.28);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 700;
  padding: 26px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.top-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 6px;
}

.top-search input,
.mobile-search input,
.hero-search input,
.local-filter,
.search-main-form input {
  border: 0;
  outline: 0;
  min-width: 0;
  color: #fff;
  background: transparent;
}

.top-search input {
  width: 210px;
  padding: 10px 8px 10px 14px;
}

.top-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(15, 23, 42, 0.76);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.mobile-panel {
  display: none;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-search {
  margin-bottom: 14px;
}

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

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-link {
  border-radius: 14px;
  padding: 12px 14px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.mobile-link:hover,
.mobile-link.is-active {
  color: #fff;
  border-color: rgba(34, 211, 238, 0.5);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 720px;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.74) 42%, rgba(2, 6, 23, 0.42) 100%),
    linear-gradient(0deg, #020617 0%, transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding-top: 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(34, 211, 238, 0.36);
  color: #67e8f9;
  background: rgba(8, 47, 73, 0.42);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  max-width: 850px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  color: #cbd5e1;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.75;
}

.hero-tags,
.tag-row,
.detail-tags,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-tags a,
.meta-pills span,
.inline-links a {
  display: inline-flex;
  align-items: center;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.text-button,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  padding: 0 28px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.3);
}

.ghost-button {
  color: #e2e8f0;
  padding: 0 22px;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.panel-link:hover {
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  left: 50%;
  bottom: 120px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(16px);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: #fff;
  background: transparent;
}

.hero-prev,
.hero-next {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 26px;
  background: var(--cyan);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 3;
  width: min(760px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 8px;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

.hero-search input {
  flex: 1;
  padding: 14px 18px;
}

.section-block,
.overview-grid,
.player-section,
.detail-content {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-block {
  padding: 86px 0 0;
}

.section-heading {
  text-align: center;
  margin: 0 auto 34px;
  max-width: 760px;
}

.section-heading span {
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 12px 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.8;
}

.align-left {
  text-align: left;
  margin-left: 0;
}

.compact-heading h2 {
  font-size: 30px;
}

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

.catalogue-grid {
  align-items: stretch;
}

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(30, 41, 59, 0.9);
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-frame img,
.compact-card:hover img,
.related-card:hover img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 64%);
}

.poster-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.card-body strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 18px;
}

.card-body em,
.compact-card em,
.rank-row em,
.related-card em,
.ranking-info em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.card-line {
  color: #cbd5e1;
  min-height: 46px;
  font-size: 14px;
  line-height: 1.65;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
}

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

.category-tile {
  display: grid;
  gap: 12px;
  min-height: 188px;
  padding: 24px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(34, 211, 238, 0.08)),
    rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.5);
}

.category-tile span {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 900;
}

.category-tile strong {
  font-size: 17px;
  line-height: 1.7;
}

.category-tile em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.rank-panel,
.glass-block,
.content-card,
.player-card,
.overview-card,
.filter-panel {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
}

.rank-panel {
  padding: 24px;
  position: sticky;
  top: 96px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 38px 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.56);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: rgba(30, 41, 59, 0.82);
  transform: translateX(4px);
}

.rank-row img {
  width: 70px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-row strong,
.compact-card strong,
.related-card strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-number,
.ranking-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.rank-number {
  width: 36px;
  height: 36px;
}

.panel-link,
.text-button {
  margin-top: 18px;
  color: #67e8f9;
}

.glass-block {
  padding: 42px;
}

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

.compact-card,
.related-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.12);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.compact-card:hover,
.related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.4);
}

.compact-card img,
.related-card img {
  width: 96px;
  height: 68px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.page-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 108px 0 44px;
}

.soft-hero,
.category-hero {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(42px, 6vw, 76px);
}

.page-hero p {
  max-width: 740px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.slim-search {
  position: static;
  transform: none;
  width: min(680px, 100%);
  margin-top: 28px;
}

.overview-grid {
  display: grid;
  gap: 24px;
  padding-bottom: 24px;
}

.overview-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: 26px;
}

.overview-text span {
  color: var(--cyan);
  font-weight: 900;
}

.overview-text h2 {
  margin: 12px 0;
  font-size: 34px;
}

.overview-text p {
  color: #cbd5e1;
  line-height: 1.8;
}

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

.overview-samples .compact-card {
  grid-template-columns: 78px minmax(0, 1fr);
}

.overview-samples .compact-card img {
  width: 78px;
  height: 58px;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 20px;
  display: grid;
  gap: 18px;
}

.filter-panel label {
  display: grid;
  gap: 10px;
}

.filter-panel label span {
  color: var(--cyan);
  font-weight: 900;
}

.local-filter {
  width: 100%;
  border-radius: 18px;
  padding: 15px 18px;
  background: rgba(2, 6, 23, 0.46);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips button {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 9px 14px;
}

.filter-chips button:hover,
.filter-chips button.is-active {
  color: #fff;
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(8, 145, 178, 0.28);
}

.movie-card.is-hidden {
  display: none;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 56px 170px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.ranking-card:hover {
  transform: translateX(5px);
  border-color: rgba(34, 211, 238, 0.45);
}

.ranking-index {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.ranking-card img {
  width: 170px;
  height: 104px;
  object-fit: cover;
  border-radius: 16px;
}

.ranking-info {
  display: grid;
  gap: 8px;
}

.ranking-info strong {
  font-size: 22px;
}

.ranking-info > span:not(.tag-row) {
  color: #cbd5e1;
  line-height: 1.6;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  padding: 0 0 64px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: blur(2px) saturate(1.08);
  transform: scale(1.03);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.72)),
    linear-gradient(0deg, #020617 0%, transparent 62%);
}

.detail-shell {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #cbd5e1;
  margin-bottom: 22px;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-one-line {
  max-width: 840px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.75;
}

.player-section {
  padding-top: 40px;
}

.player-card {
  overflow: hidden;
}

.player-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 24px 26px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.player-heading span {
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-heading h2 {
  margin: 6px 0 0;
  font-size: 28px;
}

.player-shell {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.24), transparent 34%),
    rgba(2, 6, 23, 0.46);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-symbol {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.46);
  font-size: 34px;
}

.player-overlay strong {
  font-size: 20px;
}

.detail-content {
  padding-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 22px;
}

.content-card {
  padding: 26px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p {
  color: #cbd5e1;
  line-height: 2;
  font-size: 16px;
}

.detail-meta-card {
  grid-row: span 2;
}

.detail-meta-card dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.detail-meta-card dl div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
}

.detail-meta-card dt {
  color: var(--muted);
}

.detail-meta-card dd {
  margin: 0;
  color: #e2e8f0;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tags {
  margin-top: 22px;
}

.related-section {
  padding-bottom: 90px;
}

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

.search-results-section {
  min-height: 280px;
}

.search-empty {
  grid-column: 1 / -1;
  padding: 30px;
  border-radius: var(--radius);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.site-footer {
  margin-top: 90px;
  padding: 54px 0 28px;
  background: rgba(2, 6, 23, 0.9);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.5fr) minmax(180px, 0.5fr);
  gap: 40px;
}

.footer-grid p,
.footer-bottom {
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #67e8f9;
}

.footer-bottom {
  width: min(var(--max), calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

  .split-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

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

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

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

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 40px;
  }

  .hero-control {
    bottom: 112px;
  }

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

  .category-grid,
  .overview-card,
  .detail-grid,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    align-items: start;
  }

  .detail-poster {
    max-width: 260px;
  }

  .overview-samples {
    grid-template-columns: 1fr;
  }

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

  .ranking-card img {
    width: 110px;
    height: 78px;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    min-height: 66px;
  }

  .brand-text {
    font-size: 19px;
  }

  .hero {
    min-height: 660px;
  }

  .hero h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 42px;
  }

  .hero p,
  .detail-one-line,
  .page-hero p {
    font-size: 16px;
  }

  .hero-actions,
  .detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search,
  .slim-search {
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search button,
  .mobile-search button {
    width: 100%;
  }

  .section-block {
    padding-top: 58px;
  }

  .movie-grid,
  .scroll-row,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .category-tile,
  .glass-block,
  .content-card,
  .player-heading,
  .filter-panel {
    padding: 18px;
  }

  .compact-card,
  .related-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .compact-card img,
  .related-card img {
    width: 88px;
    height: 62px;
  }

  .ranking-card {
    grid-template-columns: 1fr;
  }

  .ranking-index {
    width: 42px;
    height: 42px;
  }

  .ranking-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .detail-hero {
    min-height: auto;
    padding: 92px 0 44px;
  }

  .detail-poster {
    display: none;
  }
}
