:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --amber: #f59e0b;
  --orange: #f97316;
  --red: #ef4444;
  --soft: rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0, var(--bg) 440px);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #fff;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.45);
}

.brand-text {
  font-size: 20px;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  border-radius: 12px;
  transition: 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.32);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #1e293b;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 20px 18px;
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
}

.page-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 80px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.22), transparent 34%), linear-gradient(135deg, #0f172a 0%, #1e293b 42%, #451a03 100%);
  color: #fff;
}

.hero-slider {
  position: relative;
  min-height: 620px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.76) 45%, rgba(15, 23, 42, 0.2) 100%), linear-gradient(0deg, #0f172a 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 40px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) 420px;
  align-items: center;
  gap: 52px;
  padding: 84px 0 96px;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fcd34d;
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 720px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.85;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.38);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-slide.active .hero-poster img {
  transform: scale(1.04);
}

.poster-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
}

.poster-caption strong {
  display: block;
  margin-bottom: 8px;
}

.poster-caption span {
  color: #fcd34d;
  font-size: 13px;
}

.hero-nav {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

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

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

.hero-dot.active {
  width: 30px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
}

.section-title::before {
  content: "";
  width: 5px;
  height: 34px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--amber), var(--orange));
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link {
  color: var(--orange);
  font-weight: 800;
}

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

.movie-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.48);
  box-shadow: 0 26px 56px rgba(15, 23, 42, 0.14);
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.movie-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover .movie-cover img {
  transform: scale(1.08);
}

.cover-year,
.cover-type {
  position: absolute;
  top: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.cover-year {
  left: 14px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.cover-type {
  right: 14px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.movie-info {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
}

.movie-info h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--orange);
}

.movie-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: #475569;
  font-size: 13px;
}

.movie-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-list span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.feature-strip {
  margin: 54px 0;
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 20px 60px rgba(154, 52, 18, 0.08);
}

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

.category-card {
  display: block;
  min-height: 154px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1e293b 52%, #9a3412);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 66px rgba(15, 23, 42, 0.24);
}

.category-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 12px;
}

.category-card span {
  color: #fef3c7;
  line-height: 1.6;
}

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

.movie-card.compact {
  display: grid;
  grid-template-columns: 70px 118px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card.compact .movie-cover img {
  height: 158px;
  aspect-ratio: auto;
}

.movie-card.compact .movie-info {
  padding: 16px 18px;
}

.rank-no {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, var(--amber), var(--orange));
  font-size: 24px;
  font-weight: 900;
}

.page-hero {
  margin-bottom: 34px;
  padding: 38px;
  border-radius: 32px;
  color: #fff;
  background: radial-gradient(circle at 84% 20%, rgba(245, 158, 11, 0.34), transparent 30%), linear-gradient(135deg, #0f172a, #1e293b 54%, #7c2d12);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #e2e8f0;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin: 26px 0 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

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

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

.breadcrumb a {
  color: var(--orange);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 30px;
  margin-bottom: 36px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

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

.detail-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border-radius: 30px;
  background: var(--panel);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.08);
}

.detail-main h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.detail-main .lead {
  color: #334155;
  font-size: 18px;
  line-height: 1.85;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #334155, #0f172a);
  font-size: 13px;
  font-weight: 800;
}

.player-section {
  margin: 34px 0;
  border-radius: 32px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 28px 78px rgba(15, 23, 42, 0.28);
}

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
  z-index: 1;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.12));
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.44);
  font-size: 30px;
}

.copy-panel {
  display: grid;
  gap: 24px;
  margin: 34px 0;
  padding: 30px;
  border-radius: 30px;
  background: var(--panel);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.08);
}

.copy-panel h2 {
  margin: 0 0 12px;
  font-size: 25px;
}

.copy-panel p {
  margin: 0;
  color: #334155;
  line-height: 1.92;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

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

.footer-inner p {
  margin: 8px 0 0;
  color: #94a3b8;
}

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

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

@media (max-width: 1024px) {
  .hero-content,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 420px;
  }

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

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

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

  .nav-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: grid;
  }

  .header-inner,
  .page-shell,
  .hero-content,
  .footer-inner {
    width: calc(100% - 28px);
  }

  .header-inner {
    padding: 0;
  }

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

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

  .hero-content {
    padding: 54px 0 104px;
    gap: 28px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-poster {
    max-width: 300px;
  }

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

  .movie-card.compact {
    grid-template-columns: 54px 96px minmax(0, 1fr);
  }

  .movie-card.compact .movie-cover img {
    height: 142px;
  }

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

  .page-hero,
  .feature-strip,
  .detail-main,
  .copy-panel {
    padding: 24px;
    border-radius: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
