:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-card: #ffffff;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --dark-text: #111827;
  --dark-muted: #64748b;
  --amber: #f59e0b;
  --amber-soft: #fbbf24;
  --orange: #f97316;
  --ring: rgba(245, 158, 11, 0.32);
  --radius: 20px;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.20), transparent 34rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #f8fafc 45%, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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

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

img.image-fallback {
  opacity: 0;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--amber-soft), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-soft), var(--orange));
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.38);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--amber-soft);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.mobile-panel a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: rgba(255, 255, 255, 0.88);
}

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 22%, rgba(245, 158, 11, 0.38), transparent 28rem),
    radial-gradient(circle at 84% 18%, rgba(249, 115, 22, 0.32), transparent 24rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.52), #020617 92%);
  z-index: 2;
}

.hero-slide {
  display: none;
  position: absolute;
  inset: 0;
}

.hero-slide.is-active {
  display: block;
  animation: heroFade 0.9s ease both;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(124, 45, 18, 0.72));
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.05);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) 390px;
  align-items: center;
  gap: 46px;
  padding: 66px 0 86px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(251, 191, 36, 0.40);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  color: var(--amber-soft);
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow: 0 18px 50px rgba(2, 6, 23, 0.50);
}

.hero p {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(226, 232, 240, 0.90);
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #f8b84e;
  font-size: 12px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

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

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

.btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
}

.hero-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.34), rgba(15, 23, 42, 0.94));
}

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

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

.hero-card-body {
  padding: 20px;
}

.hero-card-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #ffffff;
}

.hero-card-body p {
  margin: 0;
  font-size: 14px;
  color: rgba(226, 232, 240, 0.78);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-dots {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

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

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--amber-soft), var(--orange));
}

.hero-arrows {
  display: flex;
  gap: 12px;
  pointer-events: auto;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(245, 158, 11, 0.78);
  transform: translateY(-2px);
}

.main-section,
.content-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.main-section {
  padding: 54px 0;
  color: var(--dark-text);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-head p {
  max-width: 600px;
  margin: 8px 0 0;
  color: var(--dark-muted);
}

.section-link {
  color: #c2410c;
  font-weight: 800;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--panel-card);
  color: var(--dark-text);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(15, 23, 42, 0.96));
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

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

.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.76);
}

.duration {
  right: 10px;
  bottom: 10px;
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 30px;
  text-align: center;
  background: linear-gradient(135deg, var(--amber-soft), var(--orange));
  color: #111827;
}

.play-mark {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  color: #111827;
  background: rgba(251, 191, 36, 0.92);
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.36);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: block;
  min-height: 48px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
  transition: color 0.25s ease;
}

.movie-title:hover {
  color: #c2410c;
}

.movie-info p {
  min-height: 44px;
  margin: 8px 0 12px;
  color: var(--dark-muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 7px;
  color: #cbd5e1;
}

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

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

.category-card {
  min-height: 180px;
  padding: 24px;
  border-radius: 22px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.42), transparent 13rem),
    linear-gradient(135deg, #0f172a, #1e293b 56%, #7c2d12);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2 {
  margin: 0 0 8px;
  font-size: 23px;
}

.category-card p {
  min-height: 54px;
  margin: 0 0 22px;
  color: rgba(226, 232, 240, 0.84);
}

.category-card span {
  color: var(--amber-soft);
  font-weight: 900;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.30), transparent 28rem),
    radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.24), transparent 25rem),
    linear-gradient(135deg, #020617, #0f172a 58%, #431407);
}

.page-hero.compact {
  padding: 74px 0 82px;
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(226, 232, 240, 0.86);
  font-size: 17px;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-box input,
.filter-grid select {
  width: 100%;
  height: 46px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  padding: 0 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box input:focus,
.filter-grid select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px var(--ring);
}

.search-box button {
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-soft), var(--orange));
  cursor: pointer;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.filter-grid label span {
  display: block;
  margin-bottom: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 18px;
  color: #475569;
  background: #ffffff;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

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

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}

.movie-card.horizontal .movie-cover {
  aspect-ratio: 3 / 2;
  height: 100%;
}

.movie-card.horizontal .movie-title {
  min-height: auto;
  font-size: 20px;
}

.movie-card.horizontal .movie-info p {
  min-height: auto;
  -webkit-line-clamp: 3;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  padding: 46px 0 64px;
  color: var(--dark-text);
}

.breadcrumb {
  margin-bottom: 20px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: #c2410c;
  font-weight: 800;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.player-wrap,
.detail-card,
.side-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.12);
}

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

.player-stage video {
  display: block;
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.20), transparent 16rem),
    rgba(2, 6, 23, 0.42);
  cursor: pointer;
  z-index: 3;
}

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

.player-button {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-soft), var(--orange));
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
  font-size: 30px;
  cursor: pointer;
}

.player-info {
  padding: 26px;
}

.player-info h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.info-pills span {
  padding: 6px 11px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 800;
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-card p {
  margin: 0 0 16px;
  color: #334155;
}

.side-card {
  padding: 20px;
  margin-bottom: 22px;
}

.side-poster {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.32), rgba(15, 23, 42, 0.96));
}

.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.side-list a {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #0f172a;
}

.side-list img {
  width: 74px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.32), rgba(15, 23, 42, 0.96));
}

.side-list strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.35;
}

.side-list span {
  color: #64748b;
  font-size: 13px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 9px;
}

.site-footer a {
  color: #cbd5e1;
  transition: color 0.25s ease;
}

.site-footer a:hover {
  color: var(--amber-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 20px 16px;
  color: #94a3b8;
  text-align: center;
}

@keyframes heroFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

  .hero-inner {
    grid-template-columns: 1fr 320px;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .menu-open .mobile-panel {
    display: block;
  }

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

  .hero-inner {
    padding-top: 44px;
  }

  .hero-card {
    max-width: 360px;
  }

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

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

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

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

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

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

  .hero p {
    font-size: 16px;
  }

  .hero-controls {
    bottom: 16px;
  }

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

  .movie-card.horizontal {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .movie-card.horizontal .movie-cover {
    aspect-ratio: 2 / 3;
  }

  .filter-grid,
  .search-box,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .main-section {
    padding: 38px 0;
  }

  .section-head {
    display: block;
  }

  .detail-layout {
    padding-top: 32px;
  }
}
