
:root {
  --bg: #0b1020;
  --bg-soft: #11172b;
  --panel: rgba(17, 24, 39, 0.78);
  --panel-strong: #111827;
  --line: rgba(255,255,255,0.10);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --muted-2: #94a3b8;
  --accent: #f59e0b;
  --accent-2: #fb923c;
  --accent-3: #ef4444;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.14), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(248, 113, 113, 0.12), transparent 22%),
    linear-gradient(180deg, #090d1a 0%, #0b1020 50%, #060912 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.page { padding-bottom: 64px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, rgba(245,158,11,.96), rgba(251,146,60,.94), rgba(245,158,11,.96));
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  backdrop-filter: blur(16px);
}
.navbar {
  min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display:flex; align-items:center; gap: 12px; font-weight: 800; letter-spacing: .3px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 999px;
  display:grid; place-items:center; background: rgba(255,255,255,.95); color: #f97316;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 10px 30px rgba(0,0,0,.2);
  font-size: 24px;
}
.brand-name { font-size: 1.22rem; color: white; text-shadow: 0 2px 10px rgba(0,0,0,.18); white-space: nowrap; }
.nav-links { display:flex; align-items:center; gap: 20px; flex-wrap: wrap; }
.nav-links a {
  color: rgba(255,255,255,.95); font-weight: 700; font-size: .98rem;
  position: relative; padding: 8px 0;
}
.nav-links a::after {
  content:''; position:absolute; left:0; bottom:0; width:0; height:2px; border-radius: 999px; background: white; transition: width .22s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.menu-btn {
  display:none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: rgba(255,255,255,.18); color: white;
}

.hero {
  position: relative; overflow: hidden; padding: 34px 0 18px;
}
.hero-shell {
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(135deg, rgba(17,24,39,.96), rgba(15,23,42,.88) 50%, rgba(24,16,8,.92)),
    radial-gradient(circle at 20% 20%, rgba(245,158,11,.22), transparent 25%),
    radial-gradient(circle at 80% 20%, rgba(251,146,60,.16), transparent 22%);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: 26px;
  position: relative;
}
.hero-shell::before, .hero-shell::after {
  content:''; position:absolute; inset:auto; pointer-events:none;
  border-radius: 999px; filter: blur(18px); opacity:.6;
}
.hero-shell::before { width: 240px; height: 240px; left: -80px; top: -70px; background: rgba(245,158,11,.18); }
.hero-shell::after { width: 180px; height: 180px; right: 30px; bottom: -60px; background: rgba(239,68,68,.16); }
.hero-grid { display:grid; grid-template-columns: 1.35fr .95fr; gap: 22px; position: relative; z-index: 1; }
.hero-copy { padding: 10px 6px 8px; }
.hero-badge {
  display:inline-flex; align-items:center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); color: #fef3c7; background: rgba(255,255,255,.05);
  font-size: .92rem; font-weight: 700;
}
.hero-title { margin: 16px 0 14px; font-size: clamp(2rem, 4.5vw, 4.2rem); line-height: 1.05; letter-spacing: -.03em; }
.hero-title span { background: linear-gradient(90deg, #fff, #fef08a, #fdba74); -webkit-background-clip:text; background-clip:text; color: transparent; }
.hero-desc { margin: 0; color: var(--muted); font-size: 1.03rem; max-width: 58ch; }
.hero-stats { display:flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.stat-card {
  min-width: 120px; flex: 1 1 140px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.stat-value { font-size: 1.34rem; font-weight: 900; margin-bottom: 2px; }
.stat-label { color: var(--muted-2); font-size: .92rem; }
.hero-actions { display:flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap: 8px; padding: 12px 18px; border-radius: 14px; font-weight: 800;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #111827; box-shadow: 0 10px 24px rgba(245,158,11,.25); }
.btn-secondary { background: rgba(255,255,255,.08); color: white; border-color: rgba(255,255,255,.12); }
.btn-ghost { background: transparent; color: #fef3c7; border-color: rgba(255,255,255,.14); }

.hero-panel {
  position: relative; min-height: 440px; border-radius: 28px; overflow:hidden;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.hero-slider { position: relative; height: 100%; min-height: 440px; }
.hero-slide {
  position:absolute; inset:0; display:grid; grid-template-rows: 1fr auto;
  opacity: 0; transform: scale(.985) translateY(8px); transition: opacity .55s ease, transform .55s ease;
  padding: 22px;
}
.hero-slide.active { opacity: 1; transform: scale(1) translateY(0); }
.hero-poster {
  border-radius: 24px; background: linear-gradient(135deg, var(--c1), var(--c2)); position: relative; overflow:hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  display:flex; align-items:flex-end; min-height: 300px; padding: 24px;
}
.hero-poster::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.28), transparent 24%),
              radial-gradient(circle at 80% 15%, rgba(255,255,255,.16), transparent 18%),
              linear-gradient(180deg, transparent 0%, rgba(0,0,0,.16) 48%, rgba(0,0,0,.72) 100%);
}
.hero-film-meta { position: relative; z-index:1; max-width: 90%; }
.hero-film-meta h3 { margin:0 0 8px; font-size: 2rem; line-height: 1.1; }
.hero-film-meta p { margin:0; color: rgba(255,255,255,.92); }
.hero-film-chip { display:inline-flex; margin-bottom: 10px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.14); font-size:.84rem; font-weight:700; }
.hero-slide-footer { display:flex; align-items:center; justify-content:space-between; gap: 12px; margin-top: 14px; }
.hero-mini { color: var(--muted); font-size:.92rem; }
.hero-dots { display:flex; gap: 8px; }
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; border:0; background: rgba(255,255,255,.25); cursor:pointer;
}
.hero-dot.active { width: 30px; border-radius: 999px; background: linear-gradient(90deg, #f59e0b, #fb923c); }
.hero-controls { display:flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08); color:white;
}

.toolbar {
  margin-top: 18px; display:grid; grid-template-columns: 1.2fr .7fr .7fr .5fr; gap: 12px;
}
.toolbar input, .toolbar select, .toolbar .search-button {
  width:100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(17,24,39,.82); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.toolbar input::placeholder { color: #94a3b8; }
.toolbar .search-button { cursor:pointer; background: linear-gradient(135deg, #f59e0b, #fb923c); color:#111827; font-weight: 900; }

.section { padding: 32px 0 0; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap: 14px; margin-bottom: 16px; }
.section-title { margin:0; font-size: 1.55rem; letter-spacing: -.02em; }
.section-sub { margin: 0; color: var(--muted-2); }
.more-link { color: #fde68a; font-weight: 800; white-space:nowrap; }
.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-cats { display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.film-card, .cat-card, .rank-item, .info-card, .panel {
  background: rgba(17,24,39,.80); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 18px 50px rgba(0,0,0,.22);
  border-radius: 20px;
}
.film-card { overflow:hidden; display:flex; flex-direction:column; min-height: 100%; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.film-card:hover { transform: translateY(-5px); border-color: rgba(245,158,11,.42); box-shadow: 0 24px 55px rgba(0,0,0,.34); }
.film-poster {
  position:relative; aspect-ratio: 2 / 3; background: linear-gradient(135deg, var(--c1), var(--c2)); overflow:hidden;
}
.film-poster::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(circle at 20% 18%, rgba(255,255,255,.22), transparent 24%),
              radial-gradient(circle at 82% 18%, rgba(255,255,255,.15), transparent 18%),
              linear-gradient(180deg, transparent 0%, rgba(0,0,0,.14) 40%, rgba(0,0,0,.78) 100%);
}
.film-poster::after {
  content: attr(data-id); position:absolute; right: 12px; top: 12px; padding: 6px 10px; border-radius:999px; background: rgba(255,255,255,.18); color:white; font-size:.82rem; font-weight:800;
}
.poster-title {
  position:absolute; left: 14px; right: 14px; bottom: 14px; z-index:1; font-size: 1rem; font-weight: 900; line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.film-body { padding: 14px; display:flex; flex-direction:column; gap: 10px; flex:1; }
.meta-row { display:flex; align-items:center; justify-content:space-between; gap: 10px; font-size: .86rem; color: var(--muted-2); }
.badges { display:flex; flex-wrap:wrap; gap: 8px; }
.badge { padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.06); color: #e2e8f0; font-size: .78rem; }
.film-title { margin:0; font-size: 1.02rem; line-height: 1.35; font-weight: 900; }
.film-text { margin: 0; color: var(--muted); font-size: .92rem; overflow:hidden; display:-webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.card-actions { display:flex; gap: 10px; margin-top: auto; }
.card-actions .btn { flex: 1; padding: 10px 12px; font-size: .92rem; }

.cat-card { padding: 18px; position: relative; overflow:hidden; }
.cat-card::before {
  content:''; position:absolute; inset:auto -10px -20px auto; width:120px; height:120px; border-radius:50%; background: rgba(245,158,11,.12); filter: blur(4px);
}
.cat-name { font-weight: 900; font-size: 1.1rem; margin: 0 0 8px; }
.cat-desc { margin: 0; color: var(--muted); font-size: .94rem; }
.cat-count { margin-top: 14px; font-size: .88rem; color: #fde68a; font-weight: 800; }

.rank-list { display:grid; gap: 12px; }
.rank-item { display:grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items:center; padding: 12px 14px; }
.rank-num { width: 46px; height: 46px; border-radius: 14px; display:grid; place-items:center; font-weight: 900; background: linear-gradient(135deg, #f59e0b, #fb923c); color: #111827; }
.rank-info h4 { margin: 0 0 4px; font-size: 1rem; }
.rank-info p { margin: 0; color: var(--muted-2); font-size: .88rem; }
.rank-link { color: #fde68a; font-weight: 900; }

.detail-hero { padding: 28px 0 12px; }
.detail-shell {
  border-radius: 30px; overflow:hidden; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(135deg, rgba(17,24,39,.97), rgba(10,14,24,.94)); box-shadow: var(--shadow);
}
.detail-top { display:grid; grid-template-columns: 340px 1fr; gap: 24px; padding: 24px; }
.detail-poster {
  aspect-ratio: 2 / 3; border-radius: 24px; position:relative; overflow:hidden; background: linear-gradient(135deg, var(--c1), var(--c2));
}
.detail-poster::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(circle at 30% 18%, rgba(255,255,255,.24), transparent 25%), radial-gradient(circle at 80% 10%, rgba(255,255,255,.12), transparent 20%), linear-gradient(180deg, transparent 0%, rgba(0,0,0,.15) 36%, rgba(0,0,0,.82) 100%);
}
.detail-poster .poster-title { font-size: 1.05rem; }
.detail-meta h1 { margin:0 0 12px; font-size: clamp(1.7rem, 3vw, 3rem); line-height: 1.08; }
.detail-meta .one-line { color: #fde68a; font-weight: 700; margin: 0 0 16px; }
.detail-info-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.info-card { padding: 12px 14px; }
.info-label { color: var(--muted-2); font-size: .84rem; margin-bottom: 4px; }
.info-value { font-size: .96rem; font-weight: 800; }
.detail-actions { display:flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.detail-body { padding: 0 24px 24px; }
.player-panel { padding: 20px; }
.player-box {
  border-radius: 24px; overflow:hidden; background: #030712; border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.player-stage { position:relative; aspect-ratio: 16/9; background: #020617; display:grid; place-items:center; }
.player-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-overlay {
  position:absolute; inset:0; display:grid; place-items:center; pointer-events:none;
  background: radial-gradient(circle at center, rgba(245,158,11,.08), rgba(0,0,0,.65));
}
.play-btn {
  width: 84px; height: 84px; border-radius: 999px; border: 0; background: linear-gradient(135deg, #f59e0b, #fb923c); color:#111827; font-size: 1.45rem; font-weight: 900;
  box-shadow: 0 18px 36px rgba(245,158,11,.25); cursor:pointer; pointer-events:auto;
}
.source-bar { display:flex; gap: 10px; flex-wrap: wrap; padding: 14px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(17,24,39,.86); }
.source-chip {
  padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.06); color: #e2e8f0; cursor:pointer; font-weight:800;
}
.source-chip.active { background: linear-gradient(135deg, #f59e0b, #fb923c); color:#111827; border-color: transparent; }

.content-grid { display:grid; grid-template-columns: 1fr 360px; gap: 18px; margin-top: 18px; }
.rich-panel { padding: 20px; }
.rich-panel h2 { margin-top: 0; }
.rich-panel p { color: var(--muted); }
.sidebar-stack { display:grid; gap: 18px; }
.list-mini { display:grid; gap: 10px; }
.list-mini a { display:flex; gap: 12px; align-items:flex-start; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.list-mini strong { display:block; margin-bottom: 4px; }
.list-mini span { color: var(--muted-2); font-size: .9rem; }

.footer { margin-top: 42px; padding: 36px 0 46px; background: linear-gradient(180deg, rgba(8,11,20,0), rgba(6,9,18,.95) 18%); border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { display:grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 18px; }
.footer h3 { margin: 0 0 12px; color: #fdba74; }
.footer p, .footer a { color: #cbd5e1; }
.footer a:hover { color: #fff; }
.footer .small { color: #94a3b8; font-size: .92rem; }
.footer-links { display:grid; gap: 8px; }

.breadcrumb { display:flex; flex-wrap:wrap; gap: 8px; color: #cbd5e1; font-size: .95rem; padding: 14px 0 0; }
.breadcrumb a { color: #fde68a; }

.page-banner {
  margin-top: 18px; padding: 22px; border-radius: 26px; background: linear-gradient(135deg, rgba(17,24,39,.96), rgba(24,16,8,.90));
  border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow);
}
.page-banner h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 3vw, 2.8rem); }
.page-banner p { margin: 0; color: var(--muted); }

.category-nav {
  display:flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
}
.category-nav a {
  padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06); color:#e2e8f0; font-weight:800;
}
.category-nav a.active { background: linear-gradient(135deg, #f59e0b, #fb923c); color:#111827; }

.filter-row { display:grid; grid-template-columns: 1.2fr .6fr .6fr .6fr; gap: 12px; margin-top: 16px; }
.filter-row input, .filter-row select { padding: 13px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.06); color: white; }
.filter-row input::placeholder { color: #94a3b8; }

.hidden { display:none !important; }
.muted { color: var(--muted); }

@media (max-width: 1180px) {
  .hero-grid, .detail-top, .content-grid, .footer-grid, .toolbar, .filter-row { grid-template-columns: 1fr; }
  .grid-4, .grid-5, .grid-6, .grid-cats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .detail-info-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .container { width: min(var(--container), calc(100% - 20px)); }
  .navbar { min-height: 68px; }
  .brand-name { font-size: 1rem; }
  .nav-links {
    position: fixed; left: 12px; right: 12px; top: 80px; display:none; flex-direction:column; align-items:flex-start;
    padding: 16px; border-radius: 20px; background: rgba(15, 23, 42, .98); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow);
  }
  .nav-links.open { display:flex; }
  .menu-btn { display:inline-grid; place-items:center; }
  .hero-shell, .detail-shell { border-radius: 22px; }
  .hero-slide { padding: 14px; }
  .hero-slider, .hero-panel { min-height: 400px; }
  .hero-poster { min-height: 260px; }
  .section-head { align-items:flex-start; flex-direction:column; }
  .grid-4, .grid-5, .grid-6, .grid-cats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rank-item { grid-template-columns: 42px 1fr; }
  .rank-link { grid-column: 2 / 3; }
  .detail-body, .detail-top { padding-left: 14px; padding-right: 14px; }
  .player-panel { padding: 12px; }
  .source-bar { gap: 8px; }
}
@media (max-width: 520px) {
  .grid-4, .grid-5, .grid-6, .grid-cats { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.9rem; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .hero-actions, .detail-actions { flex-direction: column; }
  .btn { width: 100%; }
}
