
:root {
  --bg: #08111f;
  --bg-2: #0d1627;
  --card: rgba(17, 24, 39, 0.86);
  --card-2: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.14);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --accent: #d97706;
  --accent-2: #fbbf24;
  --accent-3: #2563eb;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
  --radius: 24px;
  --radius-sm: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(217, 119, 6, 0.18), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.18), transparent 20%),
    linear-gradient(180deg, #07101d 0%, #0b1324 45%, #08111f 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(5, 10, 20, 0.66);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo { width: 58px; height: 58px; }
.brand-title { font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.brand-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted-2);
  border: 1px solid transparent;
  transition: .2s ease;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.08);
  color: #fff;
}
.menu-toggle { display: none; }
.hero-shell {
  padding: 28px 0 12px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .95fr;
  gap: 24px;
  align-items: stretch;
}
.hero-copy, .hero-carousel, .page-hero, .player-shell, .detail-article, .rank-list, .stack-list, .page-hero-panel, .tab-panel {
  background: linear-gradient(180deg, rgba(17,24,39,.88), rgba(12,18,32,.88));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-copy { padding: 32px; position: relative; overflow: hidden; }
.hero-copy:before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(251,191,36,.18), transparent 35%), radial-gradient(circle at bottom left, rgba(37,99,235,.18), transparent 28%);
  pointer-events: none;
}
.hero-kicker, .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.18);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 16px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.hero-copy h1 span { display: block; color: #fbbf24; font-size: .52em; margin-top: 10px; }
.hero-desc, .page-hero-copy p, .detail-one-line, .detail-article p, .player-hint {
  color: var(--muted-2);
}
.search-bar {
  display: flex;
  gap: 10px;
  margin: 22px 0 20px;
}
.search-bar input {
  flex: 1;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255,255,255,0.04);
  color: #fff;
  padding: 14px 16px;
  border-radius: 16px;
  outline: none;
}
.search-bar button, .btn, .tab-btn, .source-btn, .page-btn {
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  transition: .18s ease;
}
.search-bar button, .btn {
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 700;
}
.search-bar button, .btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.28);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.btn:hover, .search-bar button:hover, .page-btn:hover, .source-btn:hover, .tab-btn:hover { transform: translateY(-1px); }
.hero-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-chips span, .hero-chips a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--muted-2);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.hero-stats div, .page-hero-panel div, .detail-grid-mini div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-stats strong, .page-hero-panel strong, .detail-grid-mini strong { display: block; font-size: 20px; color: #fff; }
.hero-stats span, .page-hero-panel span, .detail-grid-mini span { color: var(--muted); font-size: 12px; }
.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  padding: 18px;
}
.hero-slide {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity .45s ease, transform .45s ease;
}
.hero-slide.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.hero-slide-copy {
  padding: 24px 18px 24px 10px;
}
.hero-slide-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
}
.hero-slide-copy p { color: var(--muted-2); margin-bottom: 14px; }
.hero-slide-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.12);
}
.hero-slide-poster img, .movie-poster, .detail-poster img, .rank-row img, .list-row img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.carousel-dots {
  position: absolute;
  left: 28px;
  bottom: 22px;
  display: flex;
  gap: 8px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.25);
}
.dot.is-active { background: #fbbf24; width: 26px; }
.section-block { padding: 26px 0 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h2 { margin: 6px 0 0; font-size: 26px; }
.section-head a { color: #fbbf24; }
.section-head.compact { margin-bottom: 12px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.movie-card {
  display: block;
  background: linear-gradient(180deg, rgba(17,24,39,.9), rgba(12,18,32,.94));
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.movie-card:hover { transform: translateY(-4px); border-color: rgba(251,191,36,.25); }
.movie-poster-wrap { position: relative; aspect-ratio: 420 / 600; }
.movie-badge, .movie-year {
  position: absolute;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(0,0,0,.34);
  color: #fff;
  backdrop-filter: blur(8px);
}
.movie-badge { top: 12px; }
.movie-year { bottom: 12px; }
.movie-meta { padding: 14px; }
.movie-meta h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.25;
  min-height: 2.5em;
}
.movie-meta p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  min-height: 3.6em;
}
.movie-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.movie-tags span {
  font-size: 12px;
  color: #e2e8f0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 6px 10px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.category-tile, .big-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 126px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid rgba(148,163,184,0.13);
  box-shadow: var(--shadow);
}
.category-tile strong, .big-tile strong { font-size: 20px; }
.category-tile span, .big-tile span { color: var(--muted); margin-top: 10px; }
.theme-tile { min-height: 150px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stack-list { padding: 12px; }
.list-row, .rank-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.1);
  background: rgba(255,255,255,0.04);
  margin-bottom: 10px;
}
.list-row img { width: 84px; height: 112px; border-radius: 14px; }
.list-row strong, .rank-row strong { display: block; margin-bottom: 4px; }
.list-row p, .rank-row p { margin: 0; color: var(--muted); font-size: 13px; }
.list-arrow, .rank-score { color: #fbbf24; font-weight: 700; }
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  padding: 22px 0 10px;
  flex-wrap: wrap;
}
.detail-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  padding: 20px;
}
.detail-poster img {
  width: 100%;
  aspect-ratio: 420 / 600;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.detail-copy h1 {
  margin: 12px 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
}
.meta-line { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.meta-line span::after { content: '·'; margin-left: 10px; color: rgba(255,255,255,.18); }
.meta-line span:last-child::after { content: ''; margin: 0; }
.detail-one-line { font-size: 18px; margin: 14px 0 16px; }
.detail-chips { margin-bottom: 12px; }
.detail-grid-mini {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.page-hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 18px;
  padding: 24px;
  margin-top: 18px;
}
.page-hero.slim { grid-template-columns: 1fr; }
.page-hero-copy h1 { margin: 12px 0 10px; font-size: clamp(28px, 4vw, 44px); }
.page-hero-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 12px;
}
.page-hero-panel div { text-align: center; }
.player-shell { padding: 18px; }
.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #000;
}
.player-source-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 8px;
}
.source-btn {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
}
.source-btn.is-active { background: rgba(217,119,6,.2); color: #fbbf24; border-color: rgba(251,191,36,.2); }
.tabs-head {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 12px 0;
}
.tab-btn {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
}
.tab-btn.is-active { background: linear-gradient(135deg, #f59e0b, #d97706); }
.tab-panel { display: none; padding: 18px; margin-top: 12px; }
.tab-panel.is-active { display: block; }
.detail-article { padding: 18px; }
.rank-list { padding: 12px; }
.rank-row {
  grid-template-columns: 50px 84px 1fr auto;
  padding: 12px;
}
.rank-no {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(217,119,6,.18);
  color: #fbbf24;
  font-weight: 800;
}
.rank-row img { width: 84px; height: 112px; border-radius: 14px; }
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}
.page-btn {
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.page-btn.active { background: #f59e0b; }
.page-btn.disabled { opacity: .4; pointer-events: none; }
.search-bar-wide { max-width: 720px; }
.search-results-meta { color: var(--muted); }
.site-footer {
  margin-top: 34px;
  padding: 28px 0 18px;
  border-top: 1px solid rgba(148,163,184,0.1);
  background: rgba(0,0,0,0.12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .6fr 1fr;
  gap: 18px;
}
.footer-grid h3 { margin-top: 0; }
.footer-grid a { display: block; color: var(--muted-2); margin-bottom: 8px; }
.footer-grid p { color: var(--muted); }
.footer-brand { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.footer-bottom { color: var(--muted); padding-top: 18px; }
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-grid, .detail-hero, .two-col, .page-hero { grid-template-columns: 1fr; }
  .hero-carousel { min-height: 520px; }
  .hero-slide { grid-template-columns: 1fr 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 20px, 1200px); }
  .header-inner { flex-wrap: wrap; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 0;
  }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 4px;
  }
  .site-nav.is-open { display: flex; }
  .nav-link { border-radius: 14px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: 1fr; }
  .hero-carousel { min-height: 680px; }
  .hero-slide { grid-template-columns: 1fr; }
  .hero-slide-poster { max-width: 260px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .detail-grid-mini { grid-template-columns: repeat(2, 1fr); }
  .list-row, .rank-row { grid-template-columns: 64px 1fr; }
  .list-arrow, .rank-score { grid-column: 1 / -1; justify-self: end; }
  .rank-row img, .list-row img { width: 64px; height: 86px; }
  .footer-grid { grid-template-columns: 1fr; }
}
