:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.76);
  --line: rgba(148, 163, 184, 0.2);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #38bdf8;
  --rose: #fb7185;
  --amber: #f59e0b;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.55);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "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 10% 0%, rgba(34, 211, 238, 0.18), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(59, 130, 246, 0.2), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr minmax(240px, 320px);
  gap: 22px;
  align-items: center;
  min-height: 76px;
}

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

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

.brand-text,
.footer-logo {
  font-size: 1.2rem;
  color: white;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.main-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--cyan);
  transform: translateY(-1px);
}

.header-search,
.hero-search-box {
  position: relative;
}

.header-search input,
.hero-search-box input,
.filter-topline input {
  width: 100%;
  border: 1px solid var(--line);
  color: white;
  outline: none;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 999px;
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.hero-search-box input:focus,
.filter-topline input:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.11);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  display: none;
  width: min(420px, 86vw);
  max-height: 430px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.96);
  box-shadow: var(--shadow);
}

.search-results.is-open {
  display: grid;
  gap: 8px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  color: var(--text);
}

.search-result-item:hover {
  background: rgba(34, 211, 238, 0.1);
}

.search-result-item img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.16);
}

.search-result-item strong {
  display: block;
  color: white;
}

.search-result-item span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.012);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.04);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.9)),
    radial-gradient(circle at 74% 30%, rgba(34, 211, 238, 0.22), transparent 24rem);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: center;
  min-height: 560px;
  padding: 74px 0 100px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  color: white;
  font-size: clamp(2.5rem, 7vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero-one-line,
.page-hero p,
.detail-one-line,
.section-heading p,
.search-hero-panel p {
  color: #cbd5e1;
  line-height: 1.85;
}

.hero-one-line {
  max-width: 660px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

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

.hero-tags span,
.tag-row span {
  border: 1px solid rgba(34, 211, 238, 0.22);
  color: #b6f3ff;
  background: rgba(8, 145, 178, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

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

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

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

.button-primary {
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 34px rgba(34, 211, 238, 0.26);
}

.button-ghost,
.button-wide {
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: white;
  background: rgba(15, 23, 42, 0.5);
}

.button-wide {
  width: 100%;
  margin-top: 16px;
}

.hero-poster {
  position: relative;
  display: block;
  padding: 12px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: rgba(148, 163, 184, 0.16);
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 106px;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: white;
  background: rgba(15, 23, 42, 0.62);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 1.8rem;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
}

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

.hero-thumb-row {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--muted);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  text-align: left;
}

.hero-thumb.is-active {
  color: white;
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(8, 145, 178, 0.25);
}

.hero-thumb img {
  width: 54px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.16);
}

.hero-thumb span {
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-hero-panel,
.stat-strip,
.section-block,
.page-hero,
.detail-hero {
  margin-top: 34px;
}

.search-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
}

.search-hero-panel h2,
.section-heading h2,
.ranking-panel h2,
.content-card h2 {
  margin: 10px 0;
  color: white;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.04em;
}

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

.stat-strip div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.58);
}

.stat-strip strong {
  display: block;
  color: white;
  font-size: 2rem;
}

.stat-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-block {
  margin-bottom: 46px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading.compact {
  margin-bottom: 16px;
}

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

.category-tile,
.category-overview-card,
.wide-link,
.content-card,
.filter-panel,
.ranking-panel,
.player-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.25);
}

.category-tile {
  min-height: 148px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.wide-link:hover,
.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.48);
}

.category-tile span,
.wide-link span {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
}

.category-tile strong,
.category-tile em,
.wide-link strong,
.wide-link em {
  display: block;
}

.category-tile strong {
  margin-top: 14px;
  color: white;
  font-size: 1.4rem;
}

.category-tile em,
.wide-link em {
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
}

.grid-with-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

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

.category-movie-grid {
  margin-top: 22px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: 0 22px 46px rgba(8, 145, 178, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.12)),
    #111827;
  transition: transform 0.36s ease;
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.card-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.card-badge {
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: white;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: rgba(148, 163, 184, 0.45);
}

.movie-card h3 {
  min-height: 2.8em;
  margin: 10px 0 8px;
  color: white;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-copy h2 a:hover {
  color: var(--cyan);
}

.movie-card p {
  min-height: 4.8em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.ranking-panel {
  padding: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 36px 52px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #001018;
  background: var(--cyan);
  border-radius: 10px;
  font-weight: 900;
  font-size: 0.8rem;
}

.rank-item img {
  width: 52px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.16);
}

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  color: white;
  line-height: 1.35;
}

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

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

.wide-link,
.category-overview-card {
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.wide-link strong {
  margin-top: 10px;
  color: white;
  font-size: 1.3rem;
}

.page-hero {
  padding: 70px 0 20px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.page-hero p {
  max-width: 760px;
  font-size: 1.05rem;
}

.category-overview-card h2 {
  margin: 12px 0;
  color: white;
  font-size: 1.55rem;
}

.category-overview-card p {
  min-height: 5.4em;
  color: var(--muted);
  line-height: 1.65;
}

.category-overview-card strong {
  color: var(--cyan);
}

.filter-panel {
  padding: 20px;
}

.filter-topline {
  display: grid;
  grid-template-columns: auto minmax(260px, 420px);
  gap: 20px;
  align-items: center;
}

.filter-topline strong {
  color: white;
  font-size: 2rem;
}

.filter-topline span {
  color: var(--muted);
  margin-left: 8px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.filter-buttons button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
  border-radius: 999px;
  padding: 8px 12px;
}

.filter-buttons button:hover,
.filter-buttons button.is-active {
  border-color: var(--cyan);
  color: var(--cyan);
}

.ranking-list-page {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.28);
}

.ranking-cover {
  position: relative;
}

.ranking-cover img {
  width: 116px;
  height: 154px;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.16);
}

.ranking-cover span {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #001018;
  background: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
}

.ranking-copy h2 {
  margin: 8px 0;
  color: white;
}

.ranking-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.breadcrumb strong {
  color: white;
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.16), transparent 25rem),
    rgba(15, 23, 42, 0.64);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  background: rgba(148, 163, 184, 0.16);
}

.detail-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.detail-meta-grid div {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.28);
}

.detail-meta-grid span,
.detail-meta-grid strong {
  display: block;
}

.detail-meta-grid span {
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-meta-grid strong {
  margin-top: 6px;
  color: white;
}

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

.player-section {
  padding: 22px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 24px;
  background: #000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: white;
  background:
    radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 20rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
}

.play-overlay.is-hidden {
  display: none;
}

.play-overlay span {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.44);
}

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

.play-overlay em,
.player-message {
  color: var(--muted);
  font-style: normal;
}

.player-message {
  position: absolute;
  right: 18px;
  bottom: 14px;
  margin: 0;
  font-size: 0.86rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.detail-article {
  display: grid;
  gap: 16px;
}

.content-card {
  padding: 24px;
}

.content-card p {
  color: #cbd5e1;
  line-height: 1.95;
  font-size: 1.02rem;
}

.detail-neighbor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-neighbor-links a {
  flex: 1 1 220px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.62);
}

.detail-neighbor-links a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.sticky-side {
  position: sticky;
  top: 94px;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
  padding: 46px 0 30px;
}

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

.footer-grid h2 {
  margin-top: 0;
  color: white;
  font-size: 1rem;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin: 9px 0;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.86rem;
}

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

@media (max-width: 1080px) {
  .nav-shell {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(2, 6, 23, 0.96);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-poster {
    width: min(320px, 72vw);
  }

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

  .grid-with-side,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .sticky-side {
    position: static;
  }

  .detail-hero {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .nav-shell {
    grid-template-columns: auto auto;
    gap: 12px;
    min-height: auto;
    padding: 14px 0;
  }

  .header-search {
    grid-column: 1 / -1;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-inner {
    min-height: 560px;
    padding-top: 44px;
  }

  .hero-controls {
    bottom: 132px;
  }

  .hero-thumb-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    bottom: 18px;
  }

  .hero-thumb:nth-child(n + 5) {
    display: none;
  }

  .search-hero-panel,
  .filter-topline,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .stat-strip,
  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .wide-link-grid,
  .detail-meta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card p {
    min-height: auto;
  }

  .ranking-row {
    grid-template-columns: 90px 1fr;
  }

  .ranking-cover img {
    width: 90px;
    height: 122px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
