:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: #ffffff;
  --panel-dark: rgba(15, 23, 42, 0.86);
  --text: #111827;
  --muted: #64748b;
  --muted-light: #cbd5e1;
  --line: rgba(148, 163, 184, 0.22);
  --orange: #f97316;
  --orange-dark: #ea580c;
  --blue: #2563eb;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius: 22px;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #f8fafc;
  min-width: 320px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #1e293b, #334155, #1e293b);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.36);
  font-size: 16px;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-subtitle {
  font-size: 12px;
  color: #cbd5e1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  background: #f97316;
  color: #fff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 22px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu.open {
  display: grid;
  gap: 8px;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.35), transparent 38%), linear-gradient(135deg, #0f172a, #1e293b 48%, #7c2d12);
}

.hero-rail {
  position: relative;
  min-height: 660px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 420px);
  align-items: center;
  gap: 48px;
  padding: 78px max(24px, calc((100vw - 1280px) / 2 + 24px)) 96px;
  transition: opacity 0.65s ease, transform 0.65s ease;
  transform: scale(1.02);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: blur(16px) saturate(1.2);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.68), rgba(124, 45, 18, 0.72));
}

.hero-bg img {
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-content p {
  margin: 0;
  max-width: 680px;
  color: #e2e8f0;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.7;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(251, 146, 60, 0.28);
  font-size: 13px;
  font-weight: 650;
}

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

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.32);
}

.ghost-btn,
.section-link {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.22);
}

.primary-btn.full {
  width: 100%;
  margin-top: 18px;
}

.hero-poster {
  position: relative;
  z-index: 2;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.46);
  transform: rotate(2deg);
  background: linear-gradient(135deg, #1e293b, #7c2d12);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #fff;
  cursor: pointer;
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 26px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.active {
  width: 28px;
  background: #f97316;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 74px 24px;
}

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

.section-head h2,
.panel-head h2,
.story-panel h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-head .section-link {
  color: #fff;
  background: linear-gradient(135deg, #1e293b, #334155);
}

.feature-strip {
  margin-top: -32px;
  position: relative;
  z-index: 8;
  border-radius: 34px 34px 0 0;
  background: #f8fafc;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
  gap: 14px;
  margin-bottom: 28px;
}

.search-box,
.select-box {
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 750;
}

.search-box input,
.select-box select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  color: #0f172a;
  background: #fff;
  outline: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.search-box input:focus,
.select-box select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.10);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(249, 115, 22, 0.35), transparent 45%), linear-gradient(135deg, #0f172a, #334155);
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 17px;
}

.card-meta {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.movie-card h2,
.rank-card h2 {
  margin: 8px 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-card h2 a:hover {
  color: var(--orange-dark);
}

.movie-card p,
.rank-card p {
  margin: 0 0 14px;
  color: #64748b;
  line-height: 1.72;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
}

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

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

.category-card {
  display: grid;
  gap: 8px;
  min-height: 134px;
  padding: 22px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #1e293b, #334155 56%, #9a3412);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.25);
}

.category-card span {
  font-size: 22px;
  font-weight: 850;
}

.category-card strong {
  color: #fed7aa;
  font-size: 14px;
  line-height: 1.7;
}

.ranking-panel {
  padding: 24px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(160deg, #0f172a, #1e293b 62%, #7c2d12);
  box-shadow: var(--shadow);
}

.ranking-panel h2,
.ranking-panel .section-kicker {
  color: #fff;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.22s ease, transform 0.22s ease;
}

.rank-row:hover {
  background: rgba(249, 115, 22, 0.22);
  transform: translateX(4px);
}

.rank-num {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f97316;
  font-weight: 850;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-meta {
  color: #cbd5e1;
  font-size: 12px;
}

.dark-section {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.dark-section .section-head h2,
.dark-section .card-meta,
.dark-section .movie-card h2,
.dark-section .movie-card p {
  color: #fff;
}

.dark-section .movie-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 230px);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.movie-card.compact {
  scroll-snap-align: start;
}

.movie-card.compact h2 {
  font-size: 17px;
}

.movie-card.compact p {
  display: none;
}

.page-hero,
.detail-hero {
  color: #fff;
  background: radial-gradient(circle at 12% 12%, rgba(249, 115, 22, 0.32), transparent 34%), linear-gradient(135deg, #0f172a, #1e293b 54%, #7c2d12);
}

.slim-hero {
  padding: 86px max(24px, calc((100vw - 1280px) / 2 + 24px));
}

.slim-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.slim-hero p {
  max-width: 820px;
  color: #e2e8f0;
  font-size: 19px;
  line-height: 1.8;
}

.rank-grid {
  display: grid;
  gap: 18px;
}

.rank-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.rank-card .poster-frame {
  border-radius: 16px;
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fed7aa;
}

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 78px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #1e293b, #7c2d12);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.lead-text {
  max-width: 840px;
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-tags {
  margin-bottom: 28px;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
}

.player-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 24px 54px rgba(249, 115, 22, 0.38);
  font-size: 34px;
}

.content-section {
  padding-top: 0;
}

.story-panel {
  padding: 32px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.story-panel h2 {
  margin-top: 0;
  font-size: 30px;
}

.story-panel p {
  color: #334155;
  font-size: 17px;
  line-height: 1.95;
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 24px;
  border-radius: 18px;
  color: #64748b;
  text-align: center;
  background: #fff;
}

.empty-state.show {
  display: block;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #0f172a 50%, #1e293b);
}

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

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 20px;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.18);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 34px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  text-align: center;
}

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

  .split-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

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

  .hero,
  .hero-rail {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding-top: 48px;
    padding-bottom: 100px;
  }

  .hero-poster {
    max-width: 250px;
    justify-self: center;
    transform: none;
  }

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

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

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

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

  .detail-poster {
    max-width: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    padding: 12px 16px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero-content h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .section,
  .dark-section {
    padding: 54px 16px;
  }

  .movie-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

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

  .rank-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .rank-meta {
    display: none;
  }

  .story-panel {
    padding: 24px;
  }
}
