/* midnight-gold · 深夜影厅 · 保留 mother-shell 布局骨架 */
:root {
  --gold: #d4af37;
  --gold-dark: #b8942e;
  --gold-muted: rgba(212, 175, 55, 0.15);
  --blue-accent: #5b8def;
  --blue-muted: #3d5a80;
  --bg-deep: #0a0a12;
  --bg-panel: #12121c;
  --bg-card: #181824;
  --ink: #e8e6e3;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  --amber: var(--blue-accent);
  --amber-dark: #4a6fc9;
  --moss: var(--blue-accent);
  --moss-dark: var(--blue-muted);
  --moss-light: var(--bg-panel);
}

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

/* 构建轮播 → mother-shell hero-main 适配 */
.hero-main[data-carousel] {
  position: relative;
  min-height: 580px;
}

.hero-main .hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
  background: var(--bg-deep);
}

.hero-main .hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-main .hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 48px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-main .hero-copy .eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-main .hero-copy .eyebrow span {
  background: rgba(91, 141, 239, 0.2);
  color: var(--blue-accent);
  border: 1px solid rgba(91, 141, 239, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-main .hero-copy h1,
.hero-main .hero-copy h2 {
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.1;
  font-weight: 900;
  color: var(--gold);
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}

.hero-main .hero-copy p {
  font-size: 16px;
  color: #cbd5e1;
  line-height: 1.75;
  max-width: 520px;
  margin: 0 0 18px;
}

.hero-main .hero-visual {
  position: relative;
  overflow: hidden;
  display: block;
}

.hero-main .hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 580px;
}

.hero-main .hero-visual .hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
}

.hero-main .hero-dots {
  position: absolute;
  left: 48px;
  bottom: 28px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.hero-main .hero-dots button {
  width: 32px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}

.hero-main .hero-dots button.active {
  width: 48px;
  background: var(--gold);
}

.hero-side-lead {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
}

.rank-row--link {
  grid-template-columns: minmax(0, 1fr) 36px !important;
}

.rank-row--link b {
  color: var(--blue-accent) !important;
  font-size: 20px !important;
}

/* HOME_SECTIONS 构建别名 */
.section-block {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 26px;
  font-weight: 900;
  color: var(--gold);
  margin: 0;
}

.section-head a {
  color: var(--blue-accent);
  font-weight: 800;
  font-size: 14px;
}

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

.overview-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s;
}

.overview-card:hover {
  border-color: rgba(91, 141, 239, 0.4);
  transform: translateY(-3px);
}

.overview-main strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
}

.overview-main span,
.overview-links span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.overview-links {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.score-gold {
  color: var(--gold) !important;
  font-weight: 900;
}

.mother-play-desc {
  max-width: 1280px;
  margin: 0 auto 48px;
  padding: 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.mirror-local-player {
  width: 100%;
  display: block;
  background: #000;
}

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

.card-cover::after {
  opacity: 0.72;
}

.empty-state {
  border-color: var(--blue-accent);
  color: var(--blue-accent);
  background: var(--bg-card);
}

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

[data-filter-scope] .filter-board {
  margin-bottom: 24px;
}

[data-filter-scope] [data-empty][hidden] {
  display: none !important;
}

[data-filter-scope] [data-empty]:not([hidden]) {
  display: block;
}

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

.image-off {
  opacity: 0.35;
}

@media (max-width: 1100px) {
  .hero-main .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-main .hero-visual {
    display: none;
  }

  .hero-main .hero-copy {
    padding: 48px 28px 72px;
  }

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

@media (max-width: 760px) {
  .hero-main,
  .hero-main .hero-visual img {
    min-height: 480px;
  }

  .hero-main .hero-copy {
    padding: 40px 20px 64px;
  }

  .hero-main .hero-copy h1,
  .hero-main .hero-copy h2 {
    font-size: 32px;
  }

  .hero-main .hero-dots {
    left: 20px;
    bottom: 20px;
  }

  .mother-play-desc {
    padding: 0 16px 40px;
  }

  .section-block {
    padding: 36px 16px;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .rank-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .movie-card,
  .rank-row,
  .category-tile,
  .overview-card {
    transition: none !important;
  }
}
