:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.72);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #f59e0b;
  --accent-2: #fbbf24;
  --accent-dark: #b45309;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 30rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
}

body.no-scroll {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffffff;
  white-space: nowrap;
}

.brand {
  font-size: 20px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.nav-link {
  color: #cbd5e1;
  font-size: 15px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-2);
}

.top-search {
  position: relative;
  width: min(280px, 26vw);
  flex: 0 0 auto;
}

.top-search input,
.filter-search input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 0 46px 0 18px;
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.filter-search input:focus {
  border-color: rgba(251, 191, 36, 0.75);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.top-search button,
.filter-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: var(--accent-2);
  background: transparent;
  font-size: 20px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--text);
  background: rgba(30, 41, 59, 0.88);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 20px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.58);
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.18), rgba(2, 6, 23, 0.8) 66%, var(--bg));
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.hero-bg {
  position: absolute;
  inset: -24px;
  background-position: center;
  background-size: cover;
  filter: blur(10px) brightness(0.45) saturate(1.1);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.28), transparent 32rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.45), rgba(2, 6, 23, 0.82));
}

.hero-inner {
  position: relative;
  z-index: 10;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 42px;
  padding: 72px 0 92px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.hero-kicker {
  color: var(--accent-2);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(245, 158, 11, 0.12);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  color: #ffffff;
}

.hero h2 {
  margin: 18px 0 0;
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.12;
  color: #ffffff;
}

.hero p {
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.75;
}

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

.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.btn {
  color: #111827;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.32);
}

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

.btn-ghost {
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.58);
}

.hero-poster {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 440px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(30, 41, 59, 0.9));
  box-shadow: var(--shadow);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 58%);
}

.hero-poster-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.hero-poster-info h3 {
  margin: 10px 0 8px;
  color: #ffffff;
  font-size: 25px;
}

.hero-poster-info p {
  margin: 0;
  font-size: 14px;
  color: #cbd5e1;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 15;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.38);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 28px;
  background: var(--accent-2);
}

.section,
.page-hero,
.detail-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 68px 0;
}

.section-alt {
  background: rgba(15, 23, 42, 0.38);
  border-block: 1px solid rgba(148, 163, 184, 0.12);
}

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

.section-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.section-lead,
.page-lead {
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
}

.grid,
.movie-grid,
.category-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card,
.poster-card,
.line-card,
.category-card,
.rank-row,
.info-panel,
.player-panel {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: var(--panel);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

.movie-card,
.poster-card,
.category-card,
.info-panel,
.player-panel {
  border-radius: 22px;
  overflow: hidden;
}

.movie-card {
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover,
.poster-card:hover,
.category-card:hover,
.line-card:hover,
.rank-row:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.movie-cover,
.poster-frame,
.thumb-frame,
.detail-cover,
.rank-cover {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.32), transparent 55%),
    linear-gradient(135deg, #1e293b, #020617);
}

.movie-cover {
  aspect-ratio: 16 / 10;
}

.movie-cover img,
.poster-frame img,
.thumb-frame img,
.detail-cover img,
.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease, opacity 0.2s ease;
}

img.is-empty {
  opacity: 0;
}

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

.cover-year,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  backdrop-filter: blur(10px);
}

.cover-year {
  left: 12px;
}

.rank-badge {
  right: 12px;
  color: #111827;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

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

.movie-card h3,
.poster-card h3,
.line-card h3,
.rank-row h3 {
  margin: 0;
  color: #ffffff;
  line-height: 1.35;
}

.movie-card h3 {
  font-size: 17px;
  min-height: 46px;
}

.movie-card p,
.poster-card p,
.line-card p,
.rank-row p {
  color: var(--muted);
  line-height: 1.65;
}

.movie-card p {
  margin: 10px 0 0;
  min-height: 48px;
  font-size: 14px;
}

.meta-line,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.meta-line {
  margin-top: 12px;
  color: #94a3b8;
  font-size: 13px;
}

.meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #475569;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.18);
  font-size: 12px;
}

.poster-card {
  position: relative;
  min-height: 360px;
  transition: transform 0.25s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.poster-card a,
.poster-frame {
  min-height: 360px;
  height: 100%;
}

.poster-frame img {
  min-height: 360px;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.18) 70%, transparent);
}

.poster-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  z-index: 2;
}

.poster-content h3 {
  margin-top: 8px;
  font-size: 22px;
}

.poster-content p {
  margin: 10px 0 0;
  color: #cbd5e1;
}

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

.line-card {
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, border 0.2s ease;
}

.line-card a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
}

.thumb-frame {
  height: 88px;
  border-radius: 14px;
}

.line-card p {
  margin: 6px 0 0;
  font-size: 14px;
}

.category-card {
  padding: 22px;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 60%),
    rgba(15, 23, 42, 0.78);
  transition: transform 0.2s ease, border 0.2s ease;
}

.category-card h3 {
  margin: 0;
  font-size: 22px;
  color: #ffffff;
}

.category-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-card span {
  color: var(--accent-2);
  font-weight: 800;
  margin-top: 18px;
}

.page-hero {
  padding: 70px 0 34px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.page-lead {
  margin-top: 16px;
}

.filter-bar {
  margin: 0 auto 28px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-search {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  cursor: pointer;
}

.filter-chip.active {
  color: #111827;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

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

.rank-row {
  display: grid;
  grid-template-columns: 74px 170px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-radius: 20px;
  padding: 14px;
  transition: transform 0.2s ease, border 0.2s ease;
}

.rank-number {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.rank-cover {
  height: 96px;
  border-radius: 16px;
}

.rank-row p {
  margin: 6px 0 0;
}

.rank-score {
  color: #fcd34d;
  font-weight: 900;
  white-space: nowrap;
}

.detail-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: -24px;
  background-position: center;
  background-size: cover;
  filter: blur(12px) brightness(0.36);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.3), var(--bg));
}

.detail-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding: 64px 0 42px;
}

.detail-cover {
  border-radius: 26px;
  min-height: 390px;
  box-shadow: var(--shadow);
}

.detail-cover img {
  min-height: 390px;
}

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

.breadcrumb a {
  color: var(--accent-2);
}

.detail-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-desc {
  margin: 18px 0 0;
  color: #dbeafe;
  line-height: 1.8;
  font-size: 18px;
  max-width: 900px;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.detail-layout {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 28px 0 72px;
}

.player-panel,
.info-panel {
  padding: 22px;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.24), transparent 16rem),
    rgba(2, 6, 23, 0.34);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-toggle {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 20px 55px rgba(245, 158, 11, 0.42);
}

.player-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.player-title h2,
.info-panel h2 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
}

.source-pill {
  color: #111827;
  background: #fbbf24;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 900;
  font-size: 13px;
}

.info-panel {
  margin-top: 20px;
}

.info-panel p {
  color: #cbd5e1;
  line-height: 1.9;
}

.info-panel p + p {
  margin-top: 14px;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.side-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.side-card img {
  height: 66px;
  width: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.side-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.35;
}

.side-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.96);
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 40px;
}

.footer-brand {
  font-size: 18px;
}

.site-footer p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
  text-align: center;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 22px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.empty-state.show {
  display: block;
}

@media (max-width: 1080px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-poster {
    display: none;
  }

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

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

  .detail-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .detail-cover,
  .detail-cover img {
    min-height: 310px;
  }
}

@media (max-width: 720px) {
  .nav-shell,
  .section,
  .page-hero,
  .detail-shell,
  .detail-layout,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1280px);
  }

  .brand {
    font-size: 18px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-inner {
    padding: 52px 0 86px;
  }

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

  .section-header,
  .filter-bar,
  .player-title {
    align-items: stretch;
    flex-direction: column;
  }

  .line-card a,
  .rank-row,
  .detail-shell {
    grid-template-columns: 1fr;
  }

  .rank-score {
    justify-self: start;
  }

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

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