
:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.16);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --red: #ef4444;
  --red-2: #f87171;
  --gold: #f59e0b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Noto Sans SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.18), transparent 25%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 22%),
    linear-gradient(180deg, #020617 0%, #0f172a 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}
.page { padding-top: 88px; }
.section { padding: 28px 0 10px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0 20px;
}
.section-head h2, .section-head h1 { margin: 0; font-size: clamp(24px, 3vw, 40px); }
.section-head p { margin: 8px 0 0; color: var(--muted); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.18);
  font-size: 12px;
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 205px;
}
.brand-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #7c3aed);
  color: white;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.34);
}
.brand strong { display: block; font-size: 18px; line-height: 1.1; }
.brand small { display: block; color: var(--muted); margin-top: 2px; }
.desktop-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.desktop-nav a,
.mobile-panel a {
  color: #cbd5e1;
  padding: 10px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.desktop-nav a:hover,
.mobile-panel a:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fff;
}
.nav-search {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-search input,
.filter-bar input,
.filter-bar select,
.search-panel input {
  background: rgba(15, 23, 42, 0.82);
  color: white;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
}
.nav-search input { width: 280px; }
.nav-search button,
.filter-bar button,
.search-panel button,
.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.nav-search button,
.btn-primary,
.search-panel button,
.filter-bar button {
  background: linear-gradient(135deg, #ef4444, #fb7185);
  color: white;
  box-shadow: 0 14px 24px rgba(239, 68, 68, 0.24);
}
.btn-ghost {
  background: rgba(15, 23, 42, 0.8);
  color: white;
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.btn:hover, .nav-search button:hover, .filter-bar button:hover, .search-panel button:hover { transform: translateY(-1px); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; }
.menu-toggle span { display: block; height: 2px; margin: 6px 0; background: #e2e8f0; border-radius: 2px; }
.mobile-panel { display: none; padding: 8px 16px 16px; border-top: 1px solid rgba(148,163,184,.12); }
.mobile-panel.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.hero {
  padding: 16px 0 8px;
}
.hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(135deg, rgba(15,23,42,.95), rgba(2,6,23,.92));
  box-shadow: var(--shadow);
}
.hero-slide {
  display: none;
  gap: 26px;
  align-items: center;
  padding: 28px;
  min-height: 520px;
}
.hero-slide.active { display: grid; grid-template-columns: 1.05fr 0.95fr; }
.hero-copy h1 { margin: 12px 0 14px; font-size: clamp(34px, 5vw, 70px); line-height: 1.02; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(239,68,68,.12); color: #fecaca; font-size: 12px;
}
.hero-lead { color: #cbd5e1; font-size: 16px; line-height: 1.8; max-width: 60ch; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.hero-tags span, .chip {
  display: inline-flex; align-items: center;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(148, 163, 184, 0.12); color: #e2e8f0; border: 1px solid rgba(148,163,184,.16); font-size: 12px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  aspect-ratio: 9 / 13;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.12);
}
.hero-indicators {
  display: flex; gap: 8px; padding: 0 28px 28px;
}
.hero-indicators button {
  width: 10px; height: 10px; border-radius: 999px; border: 0;
  background: rgba(148,163,184,.34); cursor: pointer;
}
.hero-indicators button.active { width: 34px; background: linear-gradient(135deg, #ef4444, #fb7185); }

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

.movie-card, .category-card, .info-card, .detail-panel, .search-panel, .movie-list-card {
  background: rgba(15,23,42,.76);
  border: 1px solid rgba(148,163,184,.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.movie-card {
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.movie-card:hover { transform: translateY(-4px); border-color: rgba(239,68,68,.3); }
.poster-wrap { position: relative; aspect-ratio: 2 / 3; overflow: hidden; }
.poster-wrap img { width: 100%; height: 100%; object-fit: cover; }
.poster-glow {
  position: absolute; inset: auto 0 0 0; height: 60%;
  background: linear-gradient(180deg, transparent, rgba(2,6,23,.92));
}
.poster-tag {
  position: absolute; top: 12px; left: 12px;
  padding: 7px 10px; border-radius: 999px;
  background: rgba(2,6,23,.76); color: #fff; font-size: 12px;
  border: 1px solid rgba(255,255,255,.12);
}
.card-body { padding: 14px 14px 16px; }
.card-meta { display: flex; gap: 8px; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.card-body h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.4; }
.card-genre { margin: 0 0 8px; color: #fecaca; font-size: 13px; }
.card-snippet { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.category-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
  min-height: 132px;
}
.category-card h3 { margin: 0 0 8px; font-size: 20px; }
.category-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.category-card strong { display: block; margin-top: 14px; color: #fff; }
.category-card::after {
  content: '';
  position: absolute;
  inset: auto -30px -30px auto;
  width: 120px; height: 120px; border-radius: 999px;
  background: radial-gradient(circle, rgba(239,68,68,.24), transparent 65%);
}

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px;
}
.filter-bar input { width: min(320px, 100%); }
.filter-bar select { min-width: 140px; }

.detail-layout { display: grid; grid-template-columns: 380px 1fr; gap: 22px; }
.detail-poster img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 22px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.12);
}
.detail-panel { padding: 22px; }
.detail-panel h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 48px); }
.detail-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.stat-pill { padding: 8px 12px; border-radius: 999px; background: rgba(148,163,184,.12); color: #e2e8f0; font-size: 12px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.detail-text { margin-top: 18px; color: #cbd5e1; line-height: 1.85; }
.detail-text h2 { margin: 26px 0 10px; }
.detail-text p { margin: 0 0 14px; }
.player-box { margin-top: 20px; padding: 18px; background: rgba(2,6,23,.52); border-radius: 22px; border: 1px solid rgba(148,163,184,.12); }
.player-box video { width: 100%; border-radius: 18px; background: black; }
.player-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.player-meta h3 { margin: 0; }
.player-meta .note { color: var(--muted); font-size: 14px; }

.list-section { margin-top: 18px; }
.list-grid { display: grid; gap: 14px; }
.movie-list-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 14px; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.movie-list-card:hover { transform: translateY(-2px); border-color: rgba(239,68,68,.3); }
.movie-list-card img { width: 100%; height: 100%; object-fit: cover; }
.movie-list-card .content { padding: 12px 12px 12px 0; }
.movie-list-card h3 { margin: 0 0 8px; font-size: 18px; }
.movie-list-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.movie-list-card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

.site-footer {
  margin-top: 42px;
  padding: 32px 0 42px;
  border-top: 1px solid rgba(148,163,184,.12);
  background: rgba(2,6,23,.48);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; color: var(--muted); }
.footer-logo { color: white; font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.footer-grid h4 { color: white; margin: 0 0 10px; }
.footer-grid p { margin: 0 0 8px; line-height: 1.7; }

.kicker { color: #fecaca; font-weight: 600; }
.search-panel { padding: 20px; }
.search-panel .row { display: flex; flex-wrap: wrap; gap: 10px; }
.search-results { margin-top: 18px; }
.empty-state {
  padding: 28px; text-align: center; color: var(--muted);
  background: rgba(15,23,42,.72); border: 1px solid rgba(148,163,184,.14); border-radius: 20px;
}

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-layout, .hero-slide.active { grid-template-columns: 1fr; }
  .hero-slide { min-height: auto; }
}
@media (max-width: 820px) {
  .desktop-nav, .nav-search { display: none; }
  .menu-toggle { display: block; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-slide { padding: 18px; }
  .hero-indicators { padding: 0 18px 18px; }
}
@media (max-width: 560px) {
  .page { padding-top: 76px; }
  .container { width: min(100% - 20px, 1200px); }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .movie-list-card { grid-template-columns: 98px 1fr; }
  .movie-list-card .content { padding: 10px 10px 10px 0; }
}
