
:root {
  --bg: #050b14;
  --bg-2: #08111f;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-2: rgba(17, 24, 39, 0.92);
  --border: rgba(148, 163, 184, 0.16);
  --text: #e8f1ff;
  --muted: #93a4c1;
  --muted-2: #6f82a4;
  --accent: #2fe3d0;
  --accent-2: #8b5cf6;
  --accent-3: #38bdf8;
  --shadow: 0 24px 80px rgba(3, 7, 18, 0.38);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 227, 208, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 30%),
    radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.10), transparent 26%),
    linear-gradient(180deg, #030814 0%, var(--bg) 100%);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  opacity: 0.35;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.shell { width: min(1400px, calc(100% - 32px)); margin: 0 auto; }
.site-main { padding-bottom: 72px; }
.section { padding: 14px 0 2px; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 34px 0 18px;
}
.section-header h2, .page-hero h1, .hero-copy h2 { margin: 0; }
.section-header h2 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.section-header p { margin: 6px 0 0; color: var(--muted); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(47, 227, 208, 0.5);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(22px);
  background: rgba(4, 10, 22, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(47,227,208,0.95), rgba(139,92,246,0.92));
  color: #04101b; font-weight: 900; box-shadow: var(--shadow);
}
.brand-text { display: grid; gap: 2px; }
.brand-text strong { font-size: 1.02rem; letter-spacing: 0.02em; }
.brand-text em { font-style: normal; color: var(--muted); font-size: 0.82rem; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all .22s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(47,227,208,0.08);
  border-color: rgba(47,227,208,0.16);
}
.nav-toggle { display: none; }

.hero-wrap { padding: 26px 0 8px; }
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 18% 18%, rgba(47,227,208,0.16), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(139,92,246,0.18), transparent 28%),
    linear-gradient(180deg, rgba(15,23,42,0.92), rgba(6,12,22,0.98));
  box-shadow: var(--shadow);
}
.hero-track { position: relative; min-height: 560px; }
.hero-slide {
  display: none;
  padding: 28px;
  min-height: 560px;
}
.hero-slide.is-active { display: block; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
  min-height: 100%;
}
.hero-copy {
  padding: 20px 10px 18px 6px;
}
.hero-copy h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.36);
}
.hero-lead {
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 1.06rem;
  line-height: 1.75;
}
.hero-text {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.85;
  max-width: 62ch;
}
.hero-pills, .movie-tags {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px;
}
.hero-pills span, .movie-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148,163,184,0.16);
  color: var(--muted);
  font-size: 0.88rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent;
  transition: all .22s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06111b; font-weight: 800;
  box-shadow: 0 18px 40px rgba(47,227,208,0.18);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: rgba(148,163,184,0.18);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); }
.hero-visual {
  display: grid;
  gap: 14px;
  align-items: start;
}
.hero-poster {
  position: relative;
  aspect-ratio: 0.82;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    radial-gradient(circle at 18% 18%, hsla(var(--tone1), 90%, 60%, 0.55), transparent 32%),
    radial-gradient(circle at 80% 20%, hsla(var(--tone2), 90%, 60%, 0.32), transparent 34%),
    linear-gradient(160deg, hsl(var(--tone1), 56%, 20%), hsl(var(--tone2), 56%, 12%));
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.hero-poster img, .poster img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-poster::after,
.poster::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 48%;
  background: linear-gradient(180deg, transparent, rgba(4,9,18,0.86));
}
.hero-poster-meta {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  display: flex; justify-content: space-between; gap: 10px;
  color: rgba(233,241,255,0.9); font-size: 0.88rem;
  z-index: 2;
}
.poster, .movie-card { position: relative; }
.poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, hsla(var(--tone1), 90%, 60%, 0.45), transparent 30%),
    radial-gradient(circle at 80% 20%, hsla(var(--tone2), 90%, 60%, 0.26), transparent 33%),
    linear-gradient(160deg, hsl(var(--tone1), 56%, 20%), hsl(var(--tone2), 56%, 12%));
}
.poster img { position: absolute; inset: 0; }
.poster-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 12px;
  z-index: 2;
}
.movie-rank {
  min-width: 30px; height: 30px; padding: 0 9px;
  border-radius: 999px;
  display: inline-grid; place-items: center;
  background: rgba(255,255,255,0.12);
  color: #fff; font-size: 0.82rem; font-weight: 800;
  backdrop-filter: blur(12px);
}
.poster-badge, .poster-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 28px; padding: 0 10px; border-radius: 999px;
  background: rgba(4, 10, 22, 0.6); border: 1px solid rgba(255,255,255,0.12);
  color: #dbeafe; font-size: 0.76rem; letter-spacing: .08em;
}
.poster-fallback {
  position: absolute; inset: 0; display: none; z-index: 1;
  padding: 18px; text-align: center; align-content: center;
  background:
    radial-gradient(circle at 18% 18%, hsla(var(--tone1), 90%, 62%, 0.5), transparent 28%),
    radial-gradient(circle at 82% 24%, hsla(var(--tone2), 92%, 62%, 0.3), transparent 30%),
    linear-gradient(160deg, hsl(var(--tone1), 50%, 19%), hsl(var(--tone2), 52%, 10%));
}
.poster-fallback strong {
  display: block; font-size: 1.05rem; line-height: 1.35; margin-top: 12px;
}
.poster-fallback em { display: block; margin-top: 8px; color: #cbd5e1; font-style: normal; }
.poster-fallback-large strong { font-size: 1.35rem; }
.poster-fallback-large em { font-size: 0.95rem; }
.poster.is-fallback .poster-fallback,
.hero-poster img[src=""],
.poster img[src=""] { display: none; }
.poster.is-fallback .poster-fallback { display: grid; }
.hero-mini-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.hero-mini-item {
  min-height: 112px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(148,163,184,0.14);
  display: grid; gap: 6px; align-content: start;
  transition: transform .22s ease, background .22s ease;
}
.hero-mini-item:hover { transform: translateY(-2px); background: rgba(255,255,255,0.08); }
.hero-mini-item span { color: var(--accent); font-size: 0.8rem; }
.hero-mini-item strong { font-size: 0.94rem; line-height: 1.3; }
.hero-mini-item em { color: var(--muted); font-style: normal; font-size: 0.8rem; }
.hero-controls {
  position: absolute; inset: auto 20px 18px auto; z-index: 5;
  display: flex; gap: 10px;
}
.hero-control {
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(4, 10, 22, 0.62);
  color: white;
  cursor: pointer;
}
.hero-indicators {
  position: absolute; inset: auto auto 24px 28px; z-index: 5;
  display: flex; gap: 8px;
}
.hero-indicator {
  width: 10px; height: 10px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.28);
}
.hero-indicator.active { width: 32px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

.page-hero { padding: 26px 0 0; }
.page-hero-card {
  border-radius: 30px;
  border: 1px solid var(--border);
  padding: 24px 24px 22px;
  background:
    radial-gradient(circle at 18% 18%, rgba(47,227,208,0.12), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(139,92,246,0.12), transparent 28%),
    rgba(9, 16, 30, 0.78);
  box-shadow: var(--shadow);
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
}
.page-hero-card h1 { font-size: clamp(1.7rem, 3vw, 3rem); line-height: 1.12; }
.page-hero-card p { color: var(--muted); margin: 8px 0 0; }
.stat-row {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: end;
}
.stat-card {
  min-width: 116px; padding: 14px 16px; border-radius: 18px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(148,163,184,0.14);
}
.stat-card strong { display: block; font-size: 1.2rem; }
.stat-card span { color: var(--muted); font-size: 0.84rem; }
.filter-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px; margin-top: 18px;
  border-radius: 24px; border: 1px solid var(--border);
  background: rgba(10, 18, 32, 0.76);
}
.filter-bar input {
  flex: 1 1 300px;
  min-height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 0 16px;
  outline: none;
}
.filter-bar input::placeholder { color: var(--muted-2); }
.filter-note { color: var(--muted); font-size: 0.9rem; }
.grid { display: grid; gap: 16px; }
.movie-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.category-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.rank-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.movie-card, .category-card, .rank-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(10, 18, 32, 0.8);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.18);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.movie-card:hover, .category-card:hover, .rank-item:hover {
  transform: translateY(-4px);
  border-color: rgba(47,227,208,0.28);
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 20px 54px rgba(2, 6, 23, 0.34);
}
.movie-link, .category-card > a, .rank-item > a { display: block; height: 100%; }
.movie-body, .category-body, .rank-body { padding: 14px 14px 16px; }
.movie-meta, .rank-meta { color: var(--muted); font-size: 0.84rem; }
.movie-title { margin: 8px 0 0; font-size: 1rem; line-height: 1.3; }
.movie-desc { margin: 8px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.65; }
.movie-foot { margin-top: 12px; color: var(--muted-2); font-size: 0.8rem; }
.movie-tags { margin-top: 10px; gap: 8px; }
.movie-tags span { padding: 6px 10px; font-size: 0.78rem; }

.category-card { min-height: 210px; }
.category-top {
  padding: 16px 16px 0;
  display: flex; justify-content: space-between; align-items: start; gap: 10px;
}
.category-top strong { font-size: 1.1rem; }
.category-top span { color: var(--muted); font-size: 0.84rem; }
.category-body p { color: var(--muted); line-height: 1.75; margin: 10px 0 0; }
.category-badge {
  display: inline-flex; align-items: center; min-height: 28px;
  padding: 0 10px; border-radius: 999px;
  background: rgba(47,227,208,0.08); color: var(--accent); font-size: 0.8rem;
  border: 1px solid rgba(47,227,208,0.16);
}

.rank-item {
  display: grid; grid-template-columns: 82px 1fr; min-height: 138px;
}
.rank-number {
  display: grid; place-items: center;
  font-size: 2rem; font-weight: 900;
  color: rgba(255,255,255,0.94);
  background: linear-gradient(180deg, rgba(47,227,208,0.24), rgba(139,92,246,0.14));
  border-right: 1px solid rgba(255,255,255,0.08);
}
.rank-body h3 { margin: 6px 0 0; font-size: 1.02rem; }
.rank-body p { margin: 8px 0 0; color: var(--muted); line-height: 1.65; }
.rank-body .movie-tags { margin-top: 10px; }

.detail-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  margin-top: 18px;
}
.detail-panel {
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(9, 16, 30, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.detail-poster-wrap { padding: 16px; }
.detail-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  overflow: hidden;
}
.detail-poster .poster-fallback strong { font-size: 1.45rem; }
.detail-meta { padding: 0 18px 18px; }
.detail-meta h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.1; }
.detail-info { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.detail-info span {
  padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(148,163,184,0.14); color: var(--muted);
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.player-card, .text-card {
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(9, 16, 30, 0.82);
  box-shadow: var(--shadow);
  padding: 18px;
}
.player-wrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
}
.player-wrap video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; }
.player-toolbar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.player-toolbar strong { font-size: 1.08rem; }
.player-toolbar span { color: var(--muted); font-size: 0.9rem; }
.text-card { margin-top: 18px; }
.text-card h2 { margin: 0 0 12px; font-size: 1.2rem; }
.text-card p { color: var(--muted); line-height: 1.86; margin: 0; white-space: pre-line; }
.text-card .article-copy { color: #d9e6fb; }
.related-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.section-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(148,163,184,0.12);
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.footer-logo { font-weight: 900; font-size: 1.05rem; color: var(--text); margin-bottom: 8px; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

.section-empty {
  padding: 34px 0;
  color: var(--muted);
}
.section-empty .empty-box {
  padding: 22px; border-radius: 24px; border: 1px dashed rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.03);
}
.hidden { display: none !important; }

@media (max-width: 1100px) {
  .hero-grid, .detail-layout { grid-template-columns: 1fr; }
  .hero-track, .hero-slide { min-height: auto; }
  .hero-slide { padding: 22px; }
  .hero-mini-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .header-inner { min-height: 68px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 46px; height: 46px; border-radius: 14px;
    border: 1px solid rgba(148,163,184,0.16); background: rgba(255,255,255,0.04);
  }
  .nav-toggle span { display: block; height: 2px; width: 18px; margin: 0 auto; background: #fff; border-radius: 999px; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    display: grid; gap: 6px; padding: 14px 16px 16px;
    background: rgba(4, 10, 22, 0.96); border-bottom: 1px solid rgba(148,163,184,0.12);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: all .22s ease;
  }
  .nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-link { width: 100%; }
  .page-hero-card { flex-direction: column; align-items: start; }
  .stat-row { justify-content: start; }
  .hero-copy h2 { font-size: 2rem; }
  .hero-mini-list { grid-template-columns: 1fr; }
  .movie-grid, .category-grid, .rank-grid, .related-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .filter-bar input { flex-basis: 100%; }
  .rank-item { grid-template-columns: 64px 1fr; }
}
