:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --emerald-500: #10b981;
  --blue-600: #2563eb;
  --white: #ffffff;
  --shadow-soft: 0 24px 70px rgba(15, 23, 42, 0.16);
  --shadow-card: 0 14px 36px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 44%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--white);
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(30, 41, 59, 0.96), rgba(2, 6, 23, 0.96));
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(14px);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  transition: transform 0.22s ease;
}

.brand:hover {
  transform: translateY(-1px) scale(1.02);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.34);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: #cbd5e1;
  font-size: 12px;
  margin-top: 3px;
}

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

.nav-links a {
  color: #d1d5db;
  padding: 10px 15px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.24);
  transform: translateY(-1px);
}

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

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

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(245, 158, 11, 0.30), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.68) 48%, rgba(15, 23, 42, 0.32)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.40), rgba(2, 6, 23, 0.88));
}

.hero-content {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: 42px;
  color: var(--white);
}

.hero-copy {
  max-width: 760px;
  padding: 80px 0 110px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fed7aa;
  background: rgba(251, 146, 60, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.hero h2 {
  margin: 20px 0 14px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h2 + p,
.hero h1 + h2 + p {
  margin-top: 0;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

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

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

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-feature-card {
  align-self: center;
  padding: 12px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  transform: rotate(2deg);
  transition: transform 0.25s ease;
}

.hero-feature-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.hero-feature-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, #334155, #111827);
}

.hero-feature-card span {
  display: block;
  color: #fed7aa;
  font-size: 12px;
  margin: 12px 6px 2px;
}

.hero-feature-card strong {
  display: block;
  font-size: 20px;
  margin: 0 6px 6px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
}

.hero-controls button {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(10px);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  padding: 0;
  opacity: 0.58;
}

.hero-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
  opacity: 1;
}

.search-band {
  margin-top: -42px;
  position: relative;
  z-index: 4;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  color: var(--white);
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  box-shadow: var(--shadow-soft);
}

.search-box h2,
.search-box p {
  margin: 0;
}

.search-box p {
  color: #cbd5e1;
  margin-top: 4px;
}

.search-form {
  display: flex;
  gap: 12px;
}

.search-form.narrow {
  max-width: 720px;
  margin-top: 24px;
}

.search-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 15px;
  color: var(--slate-900);
  background: rgba(255, 255, 255, 0.96);
  padding: 0 16px;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

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

.content-section.container {
  padding-left: 0;
  padding-right: 0;
}

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

.section-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.24);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-more {
  color: var(--amber-600);
  font-weight: 900;
}

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

.compact-grid,
.hot-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 10px 26px 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(-7px);
  border-color: rgba(245, 158, 11, 0.32);
  box-shadow: var(--shadow-card);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

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

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

.movie-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: var(--white);
  font-weight: 900;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.movie-year {
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.78);
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.34);
}

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

.movie-title {
  display: block;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

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

.movie-meta-line {
  margin: 6px 0 0;
  color: var(--slate-500);
  font-size: 13px;
}

.movie-desc {
  margin: 9px 0 0;
  color: var(--slate-700);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  color: #92400e;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.tag-row.large span {
  padding: 6px 10px;
  font-size: 13px;
}

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

.movie-card-compact .movie-title {
  font-size: 16px;
}

.movie-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x mandatory;
}

.rail-item {
  width: 232px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.page-hero,
.detail-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.28), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.24), transparent 34%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero-inner {
  padding: 72px 0 64px;
}

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

.page-hero p,
.detail-copy p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 16px;
}

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

.category-tabs,
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.category-tabs a,
.filter-tabs button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  padding: 8px 13px;
  cursor: pointer;
  font-weight: 800;
}

.category-tabs a.is-active,
.category-tabs a:hover,
.filter-tabs button.is-active,
.filter-tabs button:hover {
  border-color: transparent;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-card);
}

.category-cover {
  display: block;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

.category-cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.category-body {
  padding: 20px;
}

.category-body h2 {
  margin: 0 0 8px;
}

.category-body p {
  margin: 0;
  color: var(--slate-600);
}

.category-picks {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.category-picks a {
  color: var(--slate-800);
  font-weight: 800;
}

.category-picks a:hover {
  color: var(--orange-600);
}

.ranking-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.rank-sidebar {
  position: sticky;
  top: 102px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.rank-sidebar h2 {
  margin: 0 0 16px;
}

.rank-links {
  display: grid;
  gap: 9px;
}

.rank-links a {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--slate-700);
  font-weight: 800;
}

.rank-links a:hover {
  color: var(--orange-600);
}

.rank-links span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 70px 0;
}

.detail-poster {
  padding: 12px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

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

.detail-meta span {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

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

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72)),
    rgba(0, 0, 0, 0.16);
  cursor: pointer;
  text-align: center;
  padding: 24px;
}

.player-shell.is-playing .player-cover {
  display: none;
}

.play-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 18px 42px rgba(234, 88, 12, 0.36);
  font-size: 28px;
  padding-left: 4px;
}

.player-cover strong {
  font-size: clamp(22px, 4vw, 38px);
}

.player-cover em {
  max-width: 680px;
  color: #dbeafe;
  font-style: normal;
}

.detail-content {
  display: grid;
  gap: 18px;
}

.article-box {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

.article-box h2 {
  margin: 0 0 12px;
}

.article-box h2:not(:first-child) {
  margin-top: 28px;
}

.article-box p {
  margin: 0;
  color: var(--slate-700);
  font-size: 17px;
}

.neighbor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.neighbor-links a {
  color: var(--slate-800);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 900;
}

.neighbor-links a:hover {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
}

.footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 32px 0;
}

.footer strong {
  color: var(--white);
  font-size: 20px;
}

.footer p {
  margin: 4px 0 0;
}

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

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

[data-search-item].is-hidden {
  display: none;
}

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-soft);
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    min-height: 620px;
  }

  .hero-feature-card {
    display: none;
  }

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

  .rank-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    display: none;
  }

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

  .hero-copy {
    padding-top: 58px;
  }

  .hero p,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .search-form {
    flex-direction: column;
  }

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

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

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

  .movie-desc {
    font-size: 13px;
  }

  .page-hero-inner,
  .detail-hero-inner {
    padding: 42px 0;
  }

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

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