
:root {
  --bg: #07111f;
  --bg-2: #0a172a;
  --panel: rgba(11, 18, 34, 0.78);
  --panel-strong: rgba(7, 12, 24, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-2: #38bdf8;
  --accent-3: #8b5cf6;
  --good: #10b981;
  --warn: #f59e0b;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(2, 8, 23, 0.38);
  --shadow-soft: 0 12px 34px rgba(2, 8, 23, 0.24);
  --container: min(1240px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.11), transparent 24%),
    radial-gradient(circle at 90% 15%, rgba(139, 92, 246, 0.12), transparent 22%),
    radial-gradient(circle at 70% 90%, rgba(16, 185, 129, 0.08), transparent 30%),
    linear-gradient(180deg, #050b16 0%, #07111f 30%, #07111f 100%);
  font-family: Inter, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Noto Sans SC, system-ui, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container { width: var(--container); margin: 0 auto; }
.shell { position: relative; }
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(5, 10, 18, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.95), rgba(139, 92, 246, 0.9));
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.28);
}
.brand strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  font-size: 0.8rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-links a,
.nav-toggle,
.pill,
.source-btn,
.ghost-btn,
.primary-btn,
.filter-btn {
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease, opacity 0.22s ease;
}
.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #dbe7f5;
  border: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.08);
  color: white;
}
.nav-toggle {
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: white;
  border-radius: 12px;
  padding: 10px 12px;
}

.hero {
  padding: 24px 0 8px;
}
.hero-shell {
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  min-height: 610px;
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(2, 8, 23, 0.42);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.24), transparent 25%),
    radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(10, 15, 29, 0.96), rgba(7, 12, 23, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}
.hero-shell::before {
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent 22%, transparent 78%, rgba(255,255,255,0.04));
  mix-blend-mode: screen;
}
.hero-shell::after {
  inset: 12px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.04);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.18);
  color: #bff8ff;
  font-size: 0.9rem;
}
.hero-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.15);
}
.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #ecfeff, #67e8f9 35%, #c4b5fd 72%, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  max-width: 56ch;
  color: #cbd5e1;
  font-size: 1.02rem;
  margin: 0;
}
.hero-search {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.input,
.select {
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: white;
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}
.input::placeholder { color: #93a8c1; }
.input:focus,
.select:focus {
  border-color: rgba(34, 211, 238, 0.52);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}
.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  padding: 14px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.primary-btn {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.95), rgba(59, 130, 246, 0.95));
  color: #04111f;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(34, 211, 238, 0.22);
}
.ghost-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
}
.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.rank-item:hover,
.category-tile:hover,
.source-btn:hover,
.pill:hover,
.filter-btn:hover {
  transform: translateY(-2px);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.stat strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 2px;
}
.stat span { color: var(--muted); font-size: 0.85rem; }
.hero-rail {
  position: relative;
  z-index: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.hero-slide {
  display: none;
  border-radius: 28px;
  padding: 24px;
  min-height: 164px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--hero-grad, linear-gradient(135deg, rgba(15,23,42,0.9), rgba(7,12,23,0.8)));
  box-shadow: var(--shadow-soft);
}
.hero-slide.active { display: block; }
.hero-slide .slide-tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
  font-size: 0.78rem;
}
.hero-slide h3 {
  margin: 14px 0 8px;
  font-size: 1.4rem;
  line-height: 1.15;
}
.hero-slide p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.92rem;
}
.hero-slide .slide-foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #a5f3fc;
  font-size: 0.85rem;
}
.hero-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(148, 163, 184, 0.35);
  cursor: pointer;
}
.hero-dot.active { background: var(--accent); width: 28px; }

.section { padding: 18px 0 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}
.section-title {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
}
.section-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.section-link {
  color: #a5f3fc;
  white-space: nowrap;
}
.section-link:hover { color: white; }
.pill-set {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}
.pill strong { color: #67e8f9; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 16px;
}
.movie-card {
  position: relative;
  overflow: hidden;
  min-height: 248px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  box-shadow: var(--shadow-soft);
}
.movie-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card-grad, linear-gradient(135deg, rgba(34,211,238,0.16), rgba(139,92,246,0.14)));
  opacity: 0.24;
  pointer-events: none;
}
.movie-card > * { position: relative; z-index: 1; }
.movie-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 10, 18, 0.4);
  border: 1px solid rgba(255,255,255,0.08);
  color: #c7f9ff;
  font-size: 0.75rem;
}
.movie-title {
  margin: 14px 0 8px;
  font-size: 1.02rem;
  line-height: 1.35;
  min-height: 2.75em;
}
.movie-meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.movie-desc {
  margin: 0;
  color: #dbe7f5;
  font-size: 0.88rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.movie-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: #9ee7f3;
  font-size: 0.8rem;
}
.movie-foot span:last-child { color: #f5fbff; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.category-tile {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow-soft);
}
.category-tile h3 { margin: 0 0 10px; font-size: 1.18rem; }
.category-tile p { margin: 0 0 14px; color: var(--muted); }
.category-tile .count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: #bff8ff;
  font-size: 0.82rem;
}

.rank-list {
  display: grid;
  gap: 12px;
}
.rank-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow-soft);
}
.rank-num {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(34,211,238,0.9), rgba(139,92,246,0.8));
  color: white;
}
.rank-item h3 { margin: 0 0 6px; font-size: 1.02rem; }
.rank-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.rank-score {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #bff8ff;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}
.detail-panel,
.player-shell,
.page-banner,
.search-shell {
  padding: 20px;
  border-radius: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow-soft);
}
.page-banner {
  margin: 18px 0 20px;
  background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(139,92,246,0.08), rgba(255,255,255,0.03));
}
.page-banner h1,
.page-banner h2 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.8rem); line-height: 1.15; }
.page-banner p { margin: 10px 0 0; color: #cbd5e1; max-width: 70ch; }
.page-banner .crumbs,
.crumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.crumbs a { color: #c7f9ff; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #d6e4f3;
}
.meta-chip strong { color: #67e8f9; }

.video-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.08);
}
.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(1,6,18,0.14), rgba(1,6,18,0.4));
  opacity: 0;
  transition: opacity 0.22s ease;
}
.video-wrap:hover .play-overlay { opacity: 1; }
.play-button {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(34,211,238,0.96), rgba(59,130,246,0.96));
  color: #03101f;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 16px 34px rgba(34,211,238,0.28);
}
.player-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.source-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.source-btn,
.filter-btn {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.04);
  color: #dbe7f5;
  cursor: pointer;
}
.source-btn.active,
.filter-btn.active {
  background: rgba(34, 211, 238, 0.11);
  border-color: rgba(34, 211, 238, 0.28);
  color: #bff8ff;
}
.info-list {
  display: grid;
  gap: 12px;
}
.info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(148,163,184,0.12);
}
.info-row:last-child { border-bottom: 0; }
.info-row strong { color: #e2e8f0; }
.info-row span { color: var(--muted); }
.related-grid { margin-top: 18px; }
.search-shell { margin-top: 10px; }
.search-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.search-results-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 14px 0 12px;
  color: var(--muted);
}
.search-empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  border-radius: 20px;
  border: 1px dashed rgba(148,163,184,0.22);
}
.footer {
  margin-top: 36px;
  padding: 26px 0 42px;
  border-top: 1px solid rgba(148,163,184,0.12);
  color: var(--muted);
  font-size: 0.92rem;
}
.footer a { color: #bff8ff; }

@media (max-width: 1060px) {
  .hero-shell,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .hero-shell { min-height: unset; }
  .hero-copy { padding: 32px 24px 20px; }
  .hero-rail { padding: 0 24px 24px; }
  .search-tools { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 20px, 1240px); }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    width: 100%;
    padding: 10px 0 2px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .topbar-inner { flex-wrap: wrap; }
  .hero-copy { padding: 24px 18px 18px; }
  .hero-rail { padding: 0 18px 18px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .primary-btn, .ghost-btn { width: 100%; }
  .section-head { align-items: start; flex-direction: column; }
  .search-tools { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank-item { grid-template-columns: 54px 1fr; }
  .rank-score { grid-column: 1 / -1; justify-self: start; }
  .info-row { grid-template-columns: 1fr; }
}
