* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --page-bg: #020617;
  --panel-bg: rgba(15, 23, 42, 0.78);
  --panel-strong: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --amber: #f59e0b;
  --orange: #ea580c;
  --red: #dc2626;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 2%, rgba(245, 158, 11, 0.18), transparent 32rem),
    radial-gradient(circle at 80% 0%, rgba(220, 38, 38, 0.14), transparent 34rem),
    linear-gradient(180deg, #0f172a 0%, #020617 44%, #000000 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fde68a, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}

.desktop-nav,
.mobile-nav {
  align-items: center;
  gap: 6px;
}

.desktop-nav {
  display: flex;
}

.nav-link {
  padding: 10px 15px;
  border-radius: 13px;
  color: #cbd5e1;
  font-size: 15px;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.18);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(148, 163, 184, 0.16);
  font-size: 22px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  flex-wrap: wrap;
}

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

.hero-carousel {
  position: relative;
  min-height: 600px;
}

.hero-stage {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.16) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 40%, rgba(245, 158, 11, 0.28), transparent 18rem),
    linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.86) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-right: 45%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  margin: 0;
  color: #e2e8f0;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.75;
}

.hero-actions,
.detail-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.28);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(234, 88, 12, 0.36);
}

.ghost-button {
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.48);
}

.ghost-button:hover {
  border-color: rgba(251, 191, 36, 0.7);
  background: rgba(245, 158, 11, 0.16);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.58);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 6;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fbbf24;
}

.search-panel,
.content-section,
.page-shell,
.detail-page {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.search-panel {
  margin-top: -44px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
}

.slim-search {
  margin-top: 24px;
  grid-template-columns: 1fr;
}

.search-panel h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.search-panel p {
  margin: 0;
  color: var(--soft);
}

.site-search {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  outline: none;
  padding: 0 16px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.78);
  font-size: 16px;
}

.site-search:focus {
  border-color: rgba(251, 191, 36, 0.8);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.content-section {
  padding: 64px 0 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--soft);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.48);
  background: rgba(30, 41, 59, 0.82);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
}

.poster-link img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.year-badge {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  color: #111827;
  background: #fbbf24;
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #f59e0b);
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.32);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #fbbf24;
}

.card-body p {
  margin: 0;
  min-height: 4.8em;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
}

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

.card-meta {
  margin-top: 14px;
  color: #94a3b8;
  font-size: 13px;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.22);
  font-size: 12px;
  padding: 5px 9px;
}

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

.category-card,
.category-overview-card,
.story-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.category-card {
  padding: 22px;
}

.category-card-main {
  display: grid;
  gap: 10px;
}

.category-card-main span {
  color: #fbbf24;
  font-weight: 900;
  font-size: 24px;
}

.category-card-main strong {
  color: #e2e8f0;
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  color: #cbd5e1;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  font-size: 13px;
}

.page-shell,
.detail-page {
  padding: 34px 0 70px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.2), transparent 22rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96));
  box-shadow: var(--shadow);
}

.page-hero {
  align-items: center;
  min-height: 270px;
  padding: 44px;
}

.page-hero h1,
.detail-info h1 {
  margin: 14px 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.page-hero p,
.detail-info .lead-text {
  max-width: 780px;
  margin: 0;
  color: #dbeafe;
  line-height: 1.8;
  font-size: 18px;
}

.category-overview-card {
  margin-top: 34px;
  padding: 24px;
}

.category-overview-head {
  margin-bottom: 22px;
}

.category-overview-head h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.category-overview-head h2 a:hover {
  color: #fbbf24;
}

.category-overview-head p {
  margin: 0;
  color: var(--soft);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: #94a3b8;
}

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

.detail-hero {
  align-items: stretch;
  padding: 28px;
}

.detail-poster {
  flex: 0 0 310px;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 10px;
}

.detail-tags {
  margin: 24px 0;
}

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

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: #000000;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.24), transparent 16rem),
    rgba(0, 0, 0, 0.2);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.player-panel.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  box-shadow: 0 20px 48px rgba(245, 158, 11, 0.35);
}

.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 44px;
}

.story-card {
  padding: 26px;
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.story-card p {
  margin: 0;
  color: #dbeafe;
  line-height: 1.9;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  color: #fbbf24;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  color: #94a3b8;
}

.footer-links a {
  color: #cbd5e1;
}

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

.is-hidden {
  display: none !important;
}

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

  .hero-content {
    padding-right: 20%;
  }

  .detail-hero {
    flex-direction: column;
  }

  .detail-poster {
    width: min(320px, 100%);
    flex-basis: auto;
  }
}

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

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

  .header-inner {
    height: 66px;
  }

  .hero-stage,
  .hero-carousel {
    min-height: 540px;
    height: 540px;
  }

  .hero-content {
    padding: 0;
  }

  .hero-control {
    display: none;
  }

  .search-panel {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

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

  .section-heading,
  .footer-inner,
  .page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero,
  .detail-hero {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 18px;
  }

  .brand-subtitle {
    display: none;
  }

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

  .hero-content p,
  .page-hero p,
  .detail-info .lead-text {
    font-size: 16px;
  }

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

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