
:root {
  --bg: #060914;
  --bg-soft: #0b1020;
  --panel: rgba(17, 24, 39, 0.88);
  --panel-2: rgba(31, 41, 55, 0.9);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #ef4444;
  --accent-2: #a855f7;
  --accent-3: #f59e0b;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(239,68,68,.14), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(168,85,247,.16), transparent 26%),
    radial-gradient(circle at 50% 82%, rgba(245,158,11,.08), transparent 30%),
    linear-gradient(180deg, #050816 0%, #090d1b 38%, #060914 100%);
  color: var(--text);
  line-height: 1.65;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.42), transparent 70%);
  opacity: .45;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.panel, .hero-copy, .hero-showcase, .detail-poster-panel, .detail-info, .player-panel, .site-footer, .category-card, .movie-card, .ranking-item, .stat-box {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 11, 24, .78);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 18px; justify-content: space-between; }
.brand { font-size: 1.15rem; font-weight: 900; letter-spacing: .2px; display: flex; align-items: center; gap: 10px; }
.brand span { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 24px; color: var(--muted); flex-wrap: wrap; }
.nav-links a { transition: .25s ease; font-weight: 600; }
.nav-links a:hover { color: #fff; }
.search-box { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.04); min-width: 280px; }
.search-box input { border: 0; outline: 0; background: transparent; color: #fff; width: 100%; }
.search-box span { color: var(--muted); font-size: .92rem; }
.search-box-inline { min-width: 320px; }
.hero-wrap, .page-hero { padding: 34px 0 10px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: stretch; }
.panel, .hero-copy, .hero-showcase, .detail-poster-panel, .detail-info, .player-panel, .category-card, .movie-card, .ranking-item { border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow); }
.hero-copy, .hero-showcase, .detail-info, .player-panel { border-radius: 30px; background: linear-gradient(180deg, rgba(17,24,39,.94), rgba(11,16,32,.88)); }
.hero-copy { padding: 34px; }
.hero-copy h1 { margin: 8px 0 10px; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1.02; letter-spacing: -.03em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.26); color: #fecaca; font-size: .86rem; }
.hero-desc { color: var(--muted); max-width: 58ch; font-size: 1.02rem; }
.hero-actions, .actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px; cursor: pointer; transition: .25s ease; font-weight: 700; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #fb7185); color: white; box-shadow: 0 16px 30px rgba(239,68,68,.22); }
.btn-ghost { background: rgba(255,255,255,.05); color: #fff; border: 1px solid rgba(255,255,255,.08); }
.btn-sm { padding: 10px 14px; font-size: .92rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 22px; }
.stat-box { padding: 16px 14px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.stat-box strong { display: block; font-size: 1.4rem; }
.stat-box span { color: var(--muted); font-size: .92rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 9px 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #fff; transition: .25s ease; font-size: .92rem; }
.tag-chip:hover { background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.3); transform: translateY(-1px); }
.hero-showcase { padding: 18px; display: grid; gap: 16px; }
.hero-showcase-main { position: relative; border-radius: 24px; overflow: hidden; min-height: 396px; background: #111827; }
.hero-showcase-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-showcase-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,24,.08) 0%, rgba(8,12,24,.26) 40%, rgba(8,12,24,.92) 100%); }
.hero-showcase-overlay { position: absolute; inset: auto 0 0 0; padding: 24px; z-index: 1; }
.hero-badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: rgba(239,68,68,.2); border: 1px solid rgba(239,68,68,.28); margin-bottom: 10px; font-size: .82rem; }
.hero-showcase-overlay h2 { margin: 0 0 8px; font-size: 1.8rem; line-height: 1.1; }
.hero-showcase-overlay p { margin: 0 0 14px; color: #d1d5db; }
.hero-mini-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.mini-feature { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: .25s ease; }
.mini-feature:hover { transform: translateY(-2px); background: rgba(255,255,255,.06); }
.mini-feature img { width: 64px; aspect-ratio: 2/3; object-fit: cover; border-radius: 14px; flex: none; }
.mini-feature strong { display: block; margin-bottom: 4px; font-size: .96rem; }
.mini-feature span { color: var(--muted); font-size: .85rem; }
.section { padding: 26px 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,.015), transparent); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-head.slim { margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 1.5rem; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-more { color: #fecaca; font-weight: 700; }
.grid.cards-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.movie-card { display: block; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, rgba(17,24,39,.94), rgba(15,23,42,.94)); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.movie-card:hover { transform: translateY(-6px); border-color: rgba(239,68,68,.35); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.poster-wrap { position: relative; aspect-ratio: 2/3; overflow: hidden; }
.poster { width: 100%; height: 100%; object-fit: cover; }
.poster-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75) 100%); }
.chip { position: absolute; z-index: 1; top: 10px; padding: 6px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.chip-red { left: 10px; background: rgba(239,68,68,.86); }
.chip-dark { right: 10px; background: rgba(15,23,42,.72); border: 1px solid rgba(255,255,255,.1); }
.card-body { padding: 14px 14px 16px; }
.card-title { margin: 0 0 6px; font-size: 1rem; line-height: 1.25; }
.card-meta { margin: 0 0 8px; color: #fca5a5; font-size: .84rem; }
.card-desc { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.carousel > * { scroll-snap-align: start; }
.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 999px; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category-card { display: block; border-radius: 24px; padding: 16px; background: linear-gradient(180deg, rgba(17,24,39,.94), rgba(15,23,42,.9)); }
.category-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.category-name { font-weight: 800; }
.category-count { color: var(--muted); font-size: .9rem; }
.category-card-body { display: flex; gap: 14px; align-items: center; }
.category-card-body img { width: 84px; aspect-ratio: 2/3; object-fit: cover; border-radius: 16px; }
.category-card-body h3 { margin: 0 0 6px; }
.category-card-body p { margin: 0; color: var(--muted); font-size: .9rem; }
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; }
.home-two-col { align-items: start; }
.prose { padding: 24px; }
.prose h2 { margin-top: 0; }
.prose p { color: #d1d5db; }
.ranking-list { display: grid; gap: 10px; }
.ranking-item { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.04); }
.ranking-item:hover { background: rgba(255,255,255,.06); }
.rank-no { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: rgba(239,68,68,.16); color: #fecaca; font-weight: 800; }
.ranking-item strong { display: block; margin-bottom: 4px; }
.ranking-item p { margin: 0; color: var(--muted); font-size: .88rem; }
.site-footer { margin-top: 34px; background: rgba(7,11,24,.86); border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { padding: 28px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-inner p { margin: 6px 0 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); }
.footer-links a:hover { color: #fff; }
.page-hero .hero-content.compact, .detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: stretch; }
.page-hero .hero-content.compact .hero-copy { padding: 28px; }
.page-hero .hero-content.compact .hero-copy h1 { font-size: clamp(2rem, 4vw, 4rem); }
.hero-stats .stat-box strong { font-size: 1.6rem; }
.detail-grid { align-items: center; }
.detail-poster-panel { position: relative; border-radius: 28px; overflow: hidden; background: rgba(255,255,255,.04); }
.detail-poster { width: 100%; height: 100%; object-fit: cover; min-height: 640px; }
.detail-poster-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,9,20,.06), rgba(6,9,20,.55) 55%, rgba(6,9,20,.92)); }
.detail-poster-caption { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; z-index: 1; }
.detail-no, .detail-score { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); }
.detail-info { padding: 28px; }
.detail-info h1 { margin: 10px 0 12px; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.06; }
.crumbs { color: var(--muted); font-size: .9rem; }
.lead { color: #d1d5db; font-size: 1.05rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; }
.meta-pill { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.tag-row { margin: 16px 0 0; }
.player-panel { padding: 24px; border-radius: 28px; background: linear-gradient(180deg, rgba(17,24,39,.94), rgba(15,23,42,.94)); }
.player-shell { position: relative; border-radius: 22px; overflow: hidden; background: #030712; border: 1px solid rgba(255,255,255,.08); }
.player-video { width: 100%; aspect-ratio: 16/9; display: block; background: #000; }
.player-overlay { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 14px 16px; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.06)); }
.player-overlay p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.line-row { display: flex; gap: 10px; margin-top: 14px; }
.line-btn { padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #fff; }
.line-btn.is-active { background: rgba(239,68,68,.2); border-color: rgba(239,68,68,.34); }
.cards-grid .related-card .card-desc { display: none; }
.cards-grid .related-card { border-radius: 18px; }
.cards-grid .related-card .card-body { padding: 12px; }
.cards-grid .related-card .card-title { font-size: .96rem; }
.info-list { padding-left: 20px; color: #d1d5db; }
.info-list li + li { margin-top: 8px; }
.ranking-columns { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card-line { background: rgba(255,255,255,.04); }
.glow { position: relative; overflow: hidden; }
.glow::before {
  content: '';
  position: absolute; inset: -40% -20% auto auto; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(239,68,68,.22), transparent 60%);
  filter: blur(8px);
  pointer-events: none;
}
@media (max-width: 1200px) {
  .grid.cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-grid, .ranking-columns, .hero-grid, .two-col, .page-hero .hero-content.compact, .detail-grid { grid-template-columns: 1fr; }
  .hero-showcase-main { min-height: 320px; }
}
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; padding: 14px 0; }
  .nav-links { gap: 14px; }
  .search-box { width: 100%; min-width: 0; }
  .grid.cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hero-mini-list { grid-template-columns: 1fr; }
  .detail-poster { min-height: 420px; }
  .footer-inner, .section-head { align-items: start; flex-direction: column; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 20px, 1240px); }
  .hero-copy, .hero-showcase, .detail-info, .player-panel, .prose { padding: 18px; border-radius: 22px; }
  .grid.cards-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .movie-card .card-title { font-size: .94rem; }
  .card-desc { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .search-box-inline, .search-box { width: 100%; }
  .actions-row, .hero-actions, .line-row { gap: 8px; }
  .btn { width: 100%; }
}
