:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --paper-soft: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --amber: #f59e0b;
  --amber-dark: #b45309;
  --slate: #1e293b;
  --slate-deep: #0f172a;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% -10%, rgba(245, 158, 11, 0.16), transparent 34rem),
    radial-gradient(circle at 85% 8%, rgba(59, 130, 246, 0.12), transparent 30rem),
    var(--bg);
  line-height: 1.6;
}

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

img, video {
  display: block;
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 22px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #ef4444 58%, #7c3aed);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.38);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--slate-deep);
  background: #fef3c7;
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--slate-deep);
  background: #f8fafc;
  font-size: 22px;
}

.category-ribbon {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.category-ribbon a {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  background: rgba(241, 245, 249, 0.9);
  padding: 6px 12px;
  border-radius: 999px;
}

.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(135deg, #0f172a, #1e293b 48%, #451a03);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(245, 158, 11, 0.28), transparent 18rem),
    radial-gradient(circle at 78% 16%, rgba(129, 140, 248, 0.22), transparent 22rem),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.68) 48%, rgba(15, 23, 42, 0.18));
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 640px;
  padding: 72px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 380px;
  align-items: center;
  gap: 46px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-desc {
  max-width: 740px;
  margin: 24px 0 28px;
  color: #e2e8f0;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

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

.primary-button {
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.32);
}

.secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-side {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(16px);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.hero-side img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
}

.hero-side h2 {
  margin: 16px 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.hero-side p {
  margin: 0 0 14px;
  color: #cbd5e1;
}

.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 36px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.active {
  width: 34px;
  border-radius: 999px;
  background: #f59e0b;
}

.section-block {
  margin-top: 54px;
}

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

.section-head h2,
.page-title h1 {
  margin: 0;
  color: var(--slate-deep);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

.movie-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.movie-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  scroll-snap-align: start;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fcd34d;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--slate);
}

.poster-link img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  min-height: 32px;
  padding: 0 13px;
  color: #111827;
  background: #fbbf24;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.32);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.movie-card h3 a:hover {
  color: var(--amber-dark);
}

.movie-card p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

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

.tag-row span {
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.feature-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.feature-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.5s ease;
}

.feature-card:hover img {
  transform: scale(1.05);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.1));
}

.feature-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
}

.feature-content h3 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.08;
}

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

.feature-list a,
.rank-row,
.category-card {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: 0.2s ease;
}

.feature-list a:hover,
.rank-row:hover,
.category-card:hover {
  transform: translateY(-3px);
  border-color: #fcd34d;
}

.feature-list img,
.rank-row img {
  width: 76px;
  height: 100px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--slate);
}

.feature-list h3,
.rank-row h3,
.category-card h2 {
  margin: 0 0 4px;
  line-height: 1.2;
}

.feature-list p,
.rank-row p,
.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.category-card {
  align-items: stretch;
  padding: 20px;
}

.category-icon {
  flex: 0 0 58px;
  height: 58px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
  font: inherit;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 380px;
  gap: 28px;
  align-items: start;
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.video-box {
  position: relative;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.video-box video {
  height: 100%;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  isolation: isolate;
}

.play-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.38));
}

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

.play-circle {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: #fbbf24;
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.36);
  font-size: 34px;
  padding-left: 5px;
}

.player-info {
  padding: 26px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.player-info h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.player-info p {
  margin: 0;
  color: #cbd5e1;
}

.detail-card,
.text-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.detail-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  background: var(--slate);
}

.meta-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.meta-list strong {
  color: var(--ink);
}

.text-panel {
  margin-top: 22px;
}

.text-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.text-panel p {
  margin: 0 0 14px;
  color: #334155;
}

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

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

.rank-number {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
}

.site-footer {
  margin-top: 60px;
  padding: 52px 24px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
}

.site-footer h3 {
  color: #fff;
  margin: 0 0 12px;
}

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

.footer-links a {
  color: #cbd5e1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 7px 12px;
  font-size: 14px;
}

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

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

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

  .hero-side {
    display: none;
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 12px 16px;
  }

  .brand {
    font-size: 18px;
  }

  .menu-button {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .category-ribbon {
    padding: 0 16px 10px;
  }

  .page-wrap {
    padding: 18px 16px 52px;
  }

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

  .hero-content {
    padding: 44px 24px 72px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

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

  .feature-grid,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-card {
    order: -1;
  }
}

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

  .movie-strip {
    grid-auto-columns: 78%;
  }
}
