:root {
  --bg: #09090b;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f4f4f5;
  --line: #e5e7eb;
  --brand: #f59e0b;
  --brand-dark: #d97706;
  --brand-soft: #fef3c7;
  --radius: 1.25rem;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.7;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0));
  transition: background 0.28s ease, box-shadow 0.28s ease, color 0.28s ease;
}

.site-header.is-scrolled,
.site-header.header-solid {
  color: #111827;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(14px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.36);
}

.logo-main {
  display: block;
  font-size: 1.4rem;
  line-height: 1;
}

.logo-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: currentColor;
  opacity: 0.72;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
  color: var(--brand);
  background: rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
}

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

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  color: #ffffff;
  overflow: hidden;
  background: #0f172a;
}

.hero-slides,
.hero-slide,
.hero-bg,
.hero-bg img,
.hero-bg::after {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 900ms ease;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.hero-slide.is-active .hero-bg img {
  transform: scale(1.12);
}

.hero-bg::after {
  content: "";
  background:
    radial-gradient(circle at 72% 42%, rgba(245, 158, 11, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(4, 7, 17, 0.92) 0%, rgba(4, 7, 17, 0.68) 42%, rgba(4, 7, 17, 0.35) 100%),
    linear-gradient(0deg, #09090b 0%, rgba(9, 9, 11, 0.2) 35%, rgba(9, 9, 11, 0.26) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 116px 0 70px;
}

.hero-copy {
  width: min(720px, 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero-title {
  margin: 22px 0 18px;
  font-size: clamp(2.55rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 950;
  text-shadow: 0 16px 45px rgba(0, 0, 0, 0.48);
}

.hero-desc {
  width: min(650px, 100%);
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-tags,
.meta-row,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.meta-row span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

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

.btn-primary:hover {
  box-shadow: 0 22px 42px rgba(234, 88, 12, 0.42);
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.btn-light {
  color: var(--brand-dark);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 64px;
  z-index: 3;
  width: min(390px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.52);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(22px);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel h2 {
  margin: 16px 0 6px;
  font-size: 1.35rem;
  font-weight: 900;
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.hero-dots {
  position: absolute;
  left: max(16px, calc((100vw - 1180px) / 2));
  bottom: 46px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  background: var(--brand);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -54px;
  position: relative;
  z-index: 5;
}

.stat-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.94), rgba(9, 9, 11, 0.96));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.stat-card strong {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1;
  color: #fbbf24;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 700;
}

.section {
  padding: 86px 0;
}

.section-soft {
  background: linear-gradient(180deg, #fafafa, #ffffff);
}

.section-dark {
  color: #ffffff;
  background: linear-gradient(135deg, #18181b, #09090b);
}

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

.section-kicker {
  color: var(--brand-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-title {
  margin: 6px 0 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.section-desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-desc {
  color: rgba(255, 255, 255, 0.68);
}

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #27272a, #111827);
}

.poster.wide {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster img,
.ranking-item:hover .poster img,
.related-card:hover .poster img {
  transform: scale(1.08);
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
}

.poster .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.play-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  transform: translate(-50%, -50%) scale(0.78);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 900;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.card-desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 30px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #27272a, #09090b);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.22);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 1.65rem;
  font-weight: 950;
}

.category-card p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.from-green-500.to-emerald-600 { background: linear-gradient(135deg, #22c55e, #059669); }
.from-blue-500.to-cyan-600 { background: linear-gradient(135deg, #3b82f6, #0891b2); }
.from-purple-500.to-pink-600 { background: linear-gradient(135deg, #a855f7, #db2777); }
.from-orange-500.to-red-600 { background: linear-gradient(135deg, #f97316, #dc2626); }
.from-teal-500.to-sky-600 { background: linear-gradient(135deg, #14b8a6, #0284c7); }
.from-slate-500.to-gray-700 { background: linear-gradient(135deg, #64748b, #374151); }
.from-amber-500.to-orange-600 { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.from-indigo-500.to-violet-600 { background: linear-gradient(135deg, #6366f1, #7c3aed); }
.from-fuchsia-500.to-rose-600 { background: linear-gradient(135deg, #d946ef, #e11d48); }
.from-zinc-700.to-neutral-950 { background: linear-gradient(135deg, #3f3f46, #0a0a0a); }
.from-red-500.to-yellow-600 { background: linear-gradient(135deg, #ef4444, #ca8a04); }
.from-pink-500.to-amber-500 { background: linear-gradient(135deg, #ec4899, #f59e0b); }
.from-lime-500.to-green-600 { background: linear-gradient(135deg, #84cc16, #16a34a); }
.from-stone-800.to-red-950 { background: linear-gradient(135deg, #292524, #450a0a); }
.from-yellow-700.to-stone-700 { background: linear-gradient(135deg, #a16207, #44403c); }

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

.ranking-item {
  display: grid;
  grid-template-columns: 70px 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 950;
  font-size: 1.1rem;
}

.ranking-item .poster {
  border-radius: 16px;
}

.rank-score {
  color: var(--brand-dark);
  font-size: 1.4rem;
  font-weight: 950;
}

.page-hero {
  padding: 146px 0 72px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 20%, rgba(251, 191, 36, 0.22), transparent 32%),
    linear-gradient(135deg, #18181b, #09090b 48%, #78350f);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.page-hero p {
  width: min(780px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.16rem;
}

.filter-panel {
  margin-bottom: 30px;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 200px 200px;
  gap: 14px;
}

.input,
.select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 30px;
  align-items: start;
}

.panel {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-panel {
  padding: 30px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 700;
}

.crumbs a {
  color: var(--brand-dark);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.46));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 45px rgba(234, 88, 12, 0.36);
  font-size: 2.1rem;
  padding-left: 5px;
}

.detail-title {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-lead {
  color: #374151;
  font-size: 1.15rem;
}

.content-block {
  margin-top: 26px;
}

.content-block h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 950;
}

.content-block p {
  margin: 0;
  color: #4b5563;
}

.side-poster {
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.side-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #111827;
}

.side-poster-body {
  padding: 22px;
}

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

.related-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.related-card .card-body {
  padding: 13px;
}

.footer {
  color: #d4d4d8;
  background: linear-gradient(180deg, #18181b, #09090b);
  padding: 58px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 28px;
}

.footer h2,
.footer h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-weight: 950;
}

.footer p {
  margin: 0;
  color: #a1a1aa;
}

.footer a {
  display: block;
  margin: 8px 0;
  color: #a1a1aa;
}

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

.copyright {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #71717a;
}

.simple-page {
  padding: 130px 0 82px;
  background: linear-gradient(180deg, #fafafa, #ffffff);
}

.simple-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 36px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.simple-card h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 950;
}

.simple-card h2 {
  margin: 28px 0 10px;
  font-size: 1.35rem;
  font-weight: 950;
}

.simple-card p {
  color: #4b5563;
}

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

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

  .hero-panel {
    display: none;
  }
}

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

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

  .site-header.is-scrolled .mobile-nav,
  .site-header.header-solid .mobile-nav {
    color: #111827;
  }

  .hero-title {
    letter-spacing: -0.05em;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    display: block;
  }

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

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

  .ranking-item {
    grid-template-columns: 48px 92px 1fr;
  }

  .rank-score {
    grid-column: 3;
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .header-inner {
    height: 66px;
  }

  .logo-sub {
    display: none;
  }

  .hero-content {
    padding-top: 92px;
  }

  .hero-actions {
    display: grid;
  }

  .stats-strip,
  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .page-hero {
    padding: 112px 0 56px;
  }

  .ranking-item {
    grid-template-columns: 42px 82px 1fr;
    gap: 12px;
  }

  .rank-no {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .detail-panel,
  .simple-card {
    padding: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
