/* steel-mono 皮肤 · 工业冷感 · 冷灰底 + 钢蓝主色 */
:root {
  --pink: #4a6fa5;
  --blue: #5b8cb8;
  --green: #64748b;
  --orange: #94a3b8;
  --ink: #0f172a;
  --muted: #64748b;
  --panel: #ffffff;
  --line: #cbd5e1;
  --soft: #f1f5f9;
  --steel: #334155;
  --steel-light: #64748b;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #e2e8f0 0%, #f1f5f9 40%, #f8fafc 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Microsoft YaHei, sans-serif;
}

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

a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* 构建 hero 幻灯片 → m9 hero-slider 桥接 */
.hero-slider .hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 400px);
  gap: 40px;
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
  padding: 96px 20px 88px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-slider .hero-copy h1,
.hero-slider .hero-copy h2 {
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  color: #fff;
}

.hero-slider .hero-copy p {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 0 0 20px;
}

.hero-slider .hero-visual {
  display: block;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  transform: rotate(0.8deg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-slider .hero-visual img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.hero-slider .hero-caption {
  display: block;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.85), transparent);
  color: #fff;
}

.hero-slider .primary-btn,
.hero-slider .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 900;
  background: #fff;
  color: var(--steel);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.hero-slider .ghost-btn,
.hero-slider .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 900;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-slider .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-slider .hero-tags span,
.hero-slider .eyebrow span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

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

.hero-slider [data-carousel-dot],
.hero-slider .hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
}

.hero-slider [data-carousel-dot].active,
.hero-slider .hero-dot.active {
  width: 34px;
  background: #fff;
}

/* section-block（构建注入）与 m9 section 对齐 */
.section-block {
  padding: 56px 0;
}

.section-block .section-head {
  max-width: 1220px;
  margin: 0 auto 24px;
  padding: 0 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-block .section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 950;
  color: var(--ink);
}

.section-block .section-head a {
  font-weight: 900;
  color: var(--steel);
}

.section-block .movie-grid {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 分类页 overview-card */
.category-grid .overview-card {
  display: block;
  border-radius: 20px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-grid .overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14);
}

.category-grid .overview-main strong {
  display: block;
  font-size: 20px;
  font-weight: 950;
  color: var(--ink);
  margin-bottom: 8px;
}

.category-grid .overview-main span {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

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

.category-grid .overview-links span {
  font-size: 13px;
  font-weight: 800;
  color: var(--steel);
}

/* 播放页 tag 链接 */
.tag-row a {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--steel);
  font-size: 13px;
  font-weight: 700;
}

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

.empty-state[hidden] {
  display: none !important;
}

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

.poster-frame {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

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

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #334155;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}

@media (max-width: 1120px) {
  .hero-slider .hero-slide {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .hero-slider .hero-visual {
    max-width: 520px;
  }
}

@media (max-width: 780px) {
  .hero-slider {
    min-height: 640px;
  }

  .hero-slider .hero-slide {
    padding: 64px 16px 80px;
    gap: 24px;
  }

  .hero-slider .hero-copy h1,
  .hero-slider .hero-copy h2 {
    font-size: 34px;
  }

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

  .section-block .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
