:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --cyan-500: #06b6d4;
  --emerald-500: #10b981;
  --rose-500: #f43f5e;
  --text-main: #111827;
  --text-muted: #64748b;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 24%, #eef2ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: white;
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--orange-500), var(--amber-300));
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.35);
}

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

.desktop-nav {
  margin-left: auto;
}

.nav-link,
.nav-chip,
.mobile-link {
  border-radius: 12px;
  transition: 0.25s ease;
}

.nav-link {
  padding: 10px 14px;
  color: #e5e7eb;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fff;
  background: rgba(249, 115, 22, 0.95);
}

.nav-chip {
  padding: 8px 10px;
  color: #fed7aa;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.nav-chip:hover {
  color: white;
  border-color: rgba(251, 191, 36, 0.75);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

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

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

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

.mobile-link {
  display: block;
  padding: 12px 14px;
  color: #e5e7eb;
}

.hero {
  position: relative;
  color: white;
  overflow: hidden;
  background: radial-gradient(circle at 15% 15%, rgba(249, 115, 22, 0.4), transparent 32%), radial-gradient(circle at 85% 10%, rgba(6, 182, 212, 0.25), transparent 28%), linear-gradient(135deg, #020617 0%, #111827 52%, #431407 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.72) 46%, rgba(2, 6, 23, 0.35) 100%);
  z-index: 1;
}

.hero-track {
  position: relative;
  min-height: 640px;
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 44px;
  padding: 72px 0 88px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 13px;
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  font-weight: 800;
}

.hero h1 {
  max-width: 820px;
  margin: 22px 0 18px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-300));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-desc {
  max-width: 760px;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.9;
}

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

.btn-primary,
.btn-ghost,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 900;
  transition: 0.25s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--orange-600), var(--amber-400));
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.32);
}

.btn-primary:hover,
.btn-light:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.btn-light {
  color: #7c2d12;
  background: white;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.56);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(18px);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

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

.hero-panel-body strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.hero-panel-body p {
  color: #cbd5e1;
  line-height: 1.7;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-300));
}

.page-hero {
  color: white;
  padding: 76px 0;
  background: radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.32), transparent 34%), linear-gradient(135deg, #020617, #1e293b 48%, #7c2d12);
}

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

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.9;
}

.content-shell {
  padding: 54px 0 76px;
}

.section-block {
  margin-bottom: 58px;
}

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

.section-head h2 {
  position: relative;
  margin: 0 0 6px;
  padding-left: 18px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 7px;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange-500), var(--amber-300));
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-600);
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent);
}

.year-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.year-pill {
  left: 12px;
  bottom: 12px;
  background: rgba(249, 115, 22, 0.92);
}

.rank-badge {
  top: 12px;
  right: 12px;
  background: rgba(244, 63, 94, 0.94);
}

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

.movie-title {
  display: block;
  min-height: 44px;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 950;
}

.movie-title:hover {
  color: var(--orange-600);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  color: #64748b;
  font-size: 13px;
}

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

.movie-card-body p {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  margin: 0 0 12px;
  color: #475569;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 26px;
  border-radius: 26px;
  color: white;
  background: linear-gradient(135deg, #0f172a, #7c2d12);
  box-shadow: var(--shadow);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #172554, #0e7490);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #064e3b, #ca8a04);
}

.category-card h2 {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 950;
}

.category-card p {
  color: #e2e8f0;
  line-height: 1.8;
}

.mini-poster-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 38px;
}

.mini-poster-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.category-card a {
  position: absolute;
  left: 26px;
  bottom: 24px;
  font-weight: 900;
  color: #fed7aa;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0 14px;
  color: #0f172a;
  background: white;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 70px 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
}

.ranking-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  font-weight: 950;
  font-size: 20px;
}

.ranking-row img {
  width: 92px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  background: #111827;
}

.ranking-row h2 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 950;
}

.ranking-row p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.detail-hero {
  color: white;
  background: linear-gradient(135deg, #020617, #1f2937 45%, #7c2d12);
}

.detail-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  padding: 54px 0;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.42);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 800;
}

.detail-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-hero p {
  max-width: 780px;
  color: #dbeafe;
  line-height: 1.9;
  font-size: 18px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 50px auto;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.32);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.22), rgba(2, 6, 23, 0.58));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-ring {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-600), var(--amber-400));
  box-shadow: 0 0 0 14px rgba(249, 115, 22, 0.18), 0 22px 55px rgba(0, 0, 0, 0.3);
  font-size: 38px;
}

.detail-body {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
}

.article-panel,
.side-panel {
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow);
}

.article-panel {
  padding: 32px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 950;
}

.article-panel p {
  margin: 0 0 18px;
  color: #334155;
  line-height: 2;
  font-size: 17px;
}

.side-panel {
  padding: 22px;
  height: fit-content;
}

.related-grid {
  display: grid;
  gap: 14px;
}

.related-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f8fafc;
  transition: 0.25s ease;
}

.related-card:hover {
  background: #ffedd5;
  transform: translateX(4px);
}

.related-card img {
  width: 70px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.related-card span {
  font-weight: 900;
  line-height: 1.45;
}

.search-results {
  min-height: 360px;
}

.search-status {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-weight: 800;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 54px 0 34px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: white;
  font-size: 20px;
  font-weight: 950;
}

.site-footer p,
.site-footer li {
  color: #cbd5e1;
  line-height: 1.8;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #fdba74;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

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

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-content {
    gap: 28px;
    padding-top: 48px;
  }

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

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

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

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

@media (max-width: 640px) {
  .nav-shell {
    height: 62px;
  }

  .logo {
    font-size: 19px;
  }

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

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

  .btn-primary,
  .btn-ghost,
  .btn-light {
    width: 100%;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .movie-title {
    font-size: 15px;
  }

  .ranking-row {
    grid-template-columns: 48px 72px minmax(0, 1fr);
  }

  .ranking-row .btn-primary {
    grid-column: 1 / -1;
  }

  .ranking-num {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 16px;
  }

  .ranking-row img {
    width: 72px;
  }

  .article-panel {
    padding: 22px;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
