:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --purple: #a855f7;
  --orange: #f97316;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 5%, rgba(34, 211, 238, 0.16), transparent 28rem),
    radial-gradient(circle at 80% 12%, rgba(59, 130, 246, 0.14), transparent 24rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.94));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(2, 6, 23, 0.38);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #03111d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 14px;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.42);
}

.brand-name,
.footer-brand,
.gradient-title {
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.72);
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  min-width: 250px;
  padding: 4px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-search input {
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.nav-search button,
.hero-search button,
.btn.primary {
  color: #03111d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.28);
}

.nav-search button {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(51, 65, 85, 0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #e2e8f0;
  border-radius: 999px;
}

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

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

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
}

.hero-carousel::before,
.hero-carousel::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 999px;
  filter: blur(60px);
}

.hero-carousel::before {
  top: 18%;
  left: 12%;
  width: 280px;
  height: 280px;
  background: rgba(34, 211, 238, 0.18);
}

.hero-carousel::after {
  right: 8%;
  bottom: 14%;
  width: 360px;
  height: 360px;
  background: rgba(59, 130, 246, 0.16);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.05) contrast(1.05);
}

.hero-shade,
.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.9)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.35), #020617 95%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.62fr;
  align-items: center;
  gap: 54px;
  width: min(1180px, calc(100% - 32px));
  min-height: 720px;
  margin: 0 auto;
  padding: 110px 0 108px;
}

.hero-kicker,
.page-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 12px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 22px 0 8px;
  max-width: 760px;
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h2 {
  margin: 0 0 14px;
  max-width: 700px;
  font-size: clamp(1.9rem, 4vw, 3.45rem);
  line-height: 1.08;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  color: #cbd5e1;
  font-size: 1.12rem;
  line-height: 1.85;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.74);
  border-color: var(--line);
}

.btn.soft {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.22);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 34px;
  box-shadow: var(--shadow), 0 0 70px rgba(34, 211, 238, 0.12);
  transform: rotate(2deg);
}

.hero-poster::before {
  position: absolute;
  inset: 14px;
  z-index: 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
}

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

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-dots {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 46px;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  background: rgba(226, 232, 240, 0.38);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.hero-dot.active {
  width: 36px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 42px;
  display: flex;
  width: min(560px, calc(100% - 32px));
  padding: 6px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.hero-search button {
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-heading.tight {
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.08;
}

.section-heading a {
  color: var(--cyan);
  font-weight: 850;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 36px;
}

.intro-card,
.text-card,
.rank-panel,
.filter-panel,
.category-tile,
.movie-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.92));
  border: 1px solid var(--line);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.26);
}

.intro-card {
  padding: 24px;
  border-radius: var(--radius);
}

.intro-card span {
  color: var(--cyan);
  font-weight: 850;
}

.intro-card strong {
  display: block;
  margin: 8px 0 9px;
  font-size: 1.15rem;
}

.intro-card p,
.text-card p,
.footer-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.55), 0 0 35px rgba(34, 211, 238, 0.08);
  transform: translateY(-6px);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  background: rgba(15, 23, 42, 0.9);
}

.poster-wrap::after {
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  content: "";
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .poster-wrap img {
  filter: saturate(1.12);
  transform: scale(1.07);
}

.poster-type,
.poster-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.poster-type {
  top: 12px;
  left: 12px;
  color: #03111d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.poster-year {
  right: 12px;
  bottom: 12px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.18);
}

.rank-badge {
  top: 12px;
  right: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), #ef4444);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.6em;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: var(--cyan);
}

.card-meta {
  overflow: hidden;
  margin: 8px 0 7px;
  color: var(--muted);
  font-size: 0.85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-line {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.9em;
  margin: 0 0 12px;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
}

.movie-card.compact .poster-wrap {
  aspect-ratio: auto;
  height: 100%;
  min-height: 162px;
}

.movie-card.compact .card-line {
  -webkit-line-clamp: 2;
  min-height: 3.1em;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 9px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 750;
}

.hero-tags {
  margin-top: 18px;
}

.slate-panel {
  position: relative;
}

.slate-panel::before {
  position: absolute;
  inset: 28px -24px;
  z-index: -1;
  content: "";
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid var(--line);
  border-radius: 30px;
}

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

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

.category-tile {
  position: relative;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

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

.category-glow {
  position: absolute;
  inset: -30% -20% auto auto;
  width: 150px;
  height: 150px;
  background: rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  filter: blur(36px);
}

.category-covers {
  position: absolute;
  inset: 14px 14px auto auto;
  display: flex;
  opacity: 0.4;
}

.category-covers img {
  width: 52px;
  height: 72px;
  margin-left: -15px;
  object-fit: cover;
  border: 2px solid rgba(2, 6, 23, 0.8);
  border-radius: 12px;
  transform: rotate(5deg);
}

.category-title {
  position: relative;
  z-index: 1;
  margin-bottom: 9px;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-desc {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.dual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
}

.rank-panel {
  height: max-content;
  padding: 22px;
  border-radius: var(--radius);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 36px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateX(4px);
}

.rank-item img {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-number {
  color: var(--cyan);
  font-weight: 950;
  text-align: center;
}

.rank-text {
  min-width: 0;
}

.rank-text strong,
.rank-text em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-text strong {
  color: #ffffff;
}

.rank-text em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.rank-score {
  color: #fbbf24;
  font-weight: 950;
}

.page-main,
.detail-main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  overflow: hidden;
  padding: 96px 16px 56px;
  text-align: center;
}

.page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 28% 30%, rgba(34, 211, 238, 0.16), transparent 22rem),
    radial-gradient(circle at 74% 40%, rgba(168, 85, 247, 0.14), transparent 26rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 1));
}

.page-hero h1 {
  margin: 16px 0;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1;
}

.filter-panel {
  width: min(1180px, calc(100% - 32px));
  margin: -36px auto 0;
  border-radius: 22px;
  backdrop-filter: blur(18px);
}

.filter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 190px;
  gap: 14px;
  padding: 18px;
}

.filter-inner label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.filter-inner input,
.filter-inner select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 60px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  filter: saturate(1.08);
}

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

.breadcrumb,
.breadcrumb-sep {
  display: inline-flex;
  margin-bottom: 24px;
  color: #cbd5e1;
  font-weight: 750;
}

.breadcrumb:hover {
  color: var(--cyan);
}

.breadcrumb-sep {
  margin-inline: 8px;
  color: var(--muted);
}

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

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  margin: 0 0 16px;
  max-width: 820px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.detail-tags {
  margin: 18px 0;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 800px;
  margin: 24px 0 0;
}

.meta-list div {
  padding: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.meta-list dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.meta-list dd {
  margin: 4px 0 0;
  color: #ffffff;
  font-weight: 800;
}

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

.video-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  box-shadow: var(--shadow), 0 0 45px rgba(34, 211, 238, 0.12);
}

.media-video {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.76));
  border: 0;
  cursor: pointer;
}

.play-layer.hidden {
  display: none;
}

.play-icon {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  color: #03111d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 999px;
  box-shadow: 0 0 45px rgba(34, 211, 238, 0.35);
  font-size: 2rem;
}

.play-layer strong {
  font-size: 1.2rem;
}

.detail-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.text-card {
  padding: 26px;
  border-radius: var(--radius);
}

.text-card h2 {
  margin: 0 0 14px;
}

.site-footer {
  margin-top: 40px;
  padding: 52px 0 26px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.65), rgba(2, 6, 23, 0.96));
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 950;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1rem;
}

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

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 22px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

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

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

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

  .mobile-menu-button {
    display: flex;
    margin-left: auto;
  }

  .hero-content,
  .detail-grid,
  .dual-layout,
  .detail-text,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 34px;
    padding-top: 98px;
  }

  .hero-poster {
    width: min(320px, 80vw);
    margin: 0 auto 26px;
  }

  .intro-strip,
  .feature-grid,
  .movie-grid,
  .category-grid,
  .category-grid.wide,
  .rank-list.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .detail-poster {
    width: min(320px, 82vw);
  }
}

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

  .brand-name {
    font-size: 0.96rem;
  }

  .mobile-nav.open,
  .intro-strip,
  .feature-grid,
  .movie-grid,
  .movie-grid.mini,
  .category-grid,
  .category-grid.wide,
  .listing-grid,
  .rank-list.large {
    grid-template-columns: 1fr;
  }

  .hero-carousel,
  .hero-content {
    min-height: 780px;
  }

  .hero-copy h1 {
    letter-spacing: -0.06em;
  }

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

  .hero-search {
    bottom: 20px;
  }

  .hero-dots {
    left: 16px;
    right: auto;
    bottom: 94px;
  }

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

  .rank-item {
    grid-template-columns: 28px 48px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .rank-item img {
    width: 48px;
    height: 64px;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }

  .video-player {
    border-radius: 18px;
  }
}
