
:root {
  --bg: #0b1020;
  --bg2: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: #111827;
  --line: rgba(255,255,255,.09);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #f59e0b;
  --accent-2: #fb923c;
  --green: #22c55e;
  --shadow: 0 16px 50px rgba(0,0,0,.35);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.12), transparent 25%),
    linear-gradient(180deg, #050816 0%, #0b1020 30%, #0b1020 100%);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.bg-noise::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.65), transparent 92%);
}
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 22, .72);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .04em;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f59e0b, #fb7185);
  box-shadow: 0 10px 24px rgba(245,158,11,.25);
  position: relative;
  flex: 0 0 auto;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 10px;
  background: rgba(255,255,255,.18);
}
.brand-text { white-space: nowrap; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 8px;
}
.nav a {
  color: #cbd5e1;
  padding: 10px 14px;
  border-radius: 999px;
  transition: .22s ease;
  border: 1px solid transparent;
}
.nav a:hover, .nav a.active {
  color: white;
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.28);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn, .btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  transition: .22s ease;
}
.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  color: white;
  border: 1px solid rgba(255,255,255,.08);
}
.icon-btn:hover { transform: translateY(-1px); background: rgba(245,158,11,.16); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.10);
}
.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb7185);
  box-shadow: 0 14px 30px rgba(245,158,11,.25);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-ghost { color: white; background: rgba(255,255,255,.05); }
.btn-ghost:hover { background: rgba(255,255,255,.09); }
.mobile-only { display: none; }
.page { padding: 34px 0 56px; }
.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 15% 15%, rgba(245,158,11,.18), transparent 25%),
    radial-gradient(circle at 85% 18%, rgba(56,189,248,.12), transparent 24%),
    linear-gradient(145deg, rgba(15,23,42,.96), rgba(2,6,23,.92));
  box-shadow: var(--shadow);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.04), transparent 34%, rgba(255,255,255,.03));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 26px;
  padding: 34px;
}
.hero-badge, .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(245,158,11,.28);
  background: rgba(245,158,11,.10);
  color: #fde68a;
  padding: 8px 14px;
  font-size: .92rem;
}
.hero h1, .section h2, .page-title { margin: 0; }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -.03em;
}
.hero p.lead {
  margin: 16px 0 0;
  color: #dbe4f0;
  max-width: 62ch;
  font-size: 1.04rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}
.hero-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #dbe4f0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.searchbar {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.searchbar input {
  width: 100%;
  min-width: 0;
  background: transparent;
  color: white;
  border: 0;
  outline: none;
}
.searchbar input::placeholder { color: #94a3b8; }
.searchbar .btn { flex: 0 0 auto; }
.hero-rail {
  display: grid;
  gap: 14px;
  align-content: start;
}
.hero-feature {
  min-height: 214px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 36px rgba(0,0,0,.24);
  isolation: isolate;
}
.hero-feature .poster {
  position: absolute; inset: 0;
}
.poster-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,10,18,0) 0%, rgba(7,10,18,.25) 42%, rgba(7,10,18,.86) 100%);
}
.hero-feature .content {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
}
.hero-feature .content h3 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.2; }
.hero-feature .content p { margin: 0; color: #cbd5e1; font-size: .92rem; }
.slider-wrap { margin-top: 12px; }
.slider-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.slider-head h2 { font-size: 1.06rem; }
.slider-nav { display: flex; gap: 8px; }
.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.hero-card {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  min-height: 118px;
}
.poster {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, #1e293b, #334155);
}
.poster::before {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  text-shadow: 0 10px 20px rgba(0,0,0,.32);
}
.poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.14));
}
.poster.poster-sm { aspect-ratio: .72 / 1; }
.poster.poster-md { aspect-ratio: .75 / 1; }
.poster.poster-lg { aspect-ratio: .68 / 1; }
.poster-detail {
  width: min(280px, 100%);
  aspect-ratio: .72 / 1;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 34px rgba(0,0,0,.30);
}
.poster-detail .poster-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
}
.poster-detail .poster-label h3 { margin: 0 0 8px; font-size: 1.9rem; line-height: 1.05; }
.poster-detail .poster-label .mini { color: rgba(255,255,255,.82); font-size: .92rem; }
.card {
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}
.card:hover { transform: translateY(-2px); border-color: rgba(245,158,11,.24); }
.movie-card {
  display: block;
  min-width: 0;
  height: 100%;
  transition: .22s ease;
}
.movie-card:hover { transform: translateY(-3px); }
.movie-card .poster { width: 100%; }
.movie-meta { margin-top: 12px; }
.movie-meta h3 { margin: 0 0 8px; font-size: 1rem; line-height: 1.35; }
.movie-meta p { margin: 0; color: var(--muted); font-size: .92rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .82rem;
  color: #dbeafe;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.18);
}
.tag.accent {
  color: #fde68a;
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.18);
}
.section { margin-top: 28px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-head h2, .section-head .page-title { font-size: clamp(1.4rem, 3vw, 2rem); }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.grid-hero { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; }
.list-rank {
  display: grid;
  gap: 12px;
}
.rank-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.rank-no {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 14px; font-weight: 900; color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb7185);
}
.rank-item h3 { margin: 0 0 4px; font-size: 1rem; }
.rank-item p { margin: 0; color: var(--muted); font-size: .92rem; }
.rank-item .small { color: #cbd5e1; font-size: .88rem; }
.rank-item:hover { border-color: rgba(245,158,11,.26); transform: translateY(-2px); }
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1em;
  height: 2.1em;
  padding: 0 .6em;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  color: #e2e8f0;
}
.category-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  display: grid;
  gap: 14px;
}
.category-card h3 { margin: 0; font-size: 1.1rem; }
.category-card p { margin: 0; color: var(--muted); }
.category-card .stats { color: #e2e8f0; font-size: .92rem; }
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; color: #cbd5e1; font-size: .92rem;
}
.breadcrumb a { color: #cbd5e1; }
.breadcrumb span { color: #64748b; }
.detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: start;
}
.detail-panel {
  padding: 20px;
  border-radius: 28px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 36px rgba(0,0,0,.24);
}
.detail h1 { margin: 12px 0 10px; font-size: clamp(1.8rem, 4.6vw, 3.2rem); line-height: 1.08; }
.detail .intro { color: #dbe4f0; font-size: 1.02rem; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 18px;
}
.info-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.info-item .label { color: var(--muted); font-size: .84rem; margin-bottom: 4px; }
.info-item .value { color: white; font-weight: 600; }
.player-shell {
  margin-top: 18px;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  position: relative;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 48px rgba(0,0,0,.35);
}
.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}
.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.45));
}
.player-overlay .play-ring {
  width: 86px; height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(245,158,11,.92);
  box-shadow: 0 18px 34px rgba(245,158,11,.22);
  color: #111827;
  font-size: 1.8rem;
  pointer-events: auto;
  cursor: pointer;
}
.player-shell.playing .player-overlay { opacity: 0; visibility: hidden; }
.detail-section {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.detail-section h2 { margin: 0 0 12px; font-size: 1.3rem; }
.prose p { margin: 0 0 12px; color: #dbe4f0; }
.prose strong { color: white; }
.footer {
  margin-top: 34px;
  padding: 28px 0 48px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #94a3b8;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
}
.footer h3 { margin: 0 0 10px; color: white; font-size: 1rem; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: #fcd34d; }
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}
.pagination a, .pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #dbe4f0;
}
.pagination a.active { background: rgba(245,158,11,.18); border-color: rgba(245,158,11,.32); color: white; }
.muted { color: var(--muted); }
.hide { display: none !important; }
@media (max-width: 1080px) {
  .hero-inner, .detail, .grid-hero, .footer-grid { grid-template-columns: 1fr; }
  .grid-5, .grid-6, .grid-4 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 780px) {
  .container { width: min(100% - 20px, 1180px); }
  .header-inner { padding: 12px 0; }
  .nav { display: none; }
  .mobile-only { display: inline-grid; }
  .hero-inner { padding: 22px; }
  .grid-5, .grid-6, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-card { grid-template-columns: 88px 1fr; }
  .detail-panel { padding: 16px; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-5, .grid-6, .grid-4 { grid-template-columns: 1fr; }
  .slider-track { grid-auto-columns: 88%; }
  .hero-actions, .section-head, .header-actions { flex-direction: column; align-items: stretch; }
  .header-actions { margin-left: 0; width: 100%; }
  .brand { font-size: 1rem; }
}
