
:root {
  --bg: #0b0a0f;
  --bg2: #111017;
  --panel: rgba(18, 17, 24, .88);
  --panel-strong: #15131c;
  --line: rgba(255,255,255,.08);
  --text: #f4f3f8;
  --muted: #b8b5c7;
  --soft: #8f8aa3;
  --red: #e43142;
  --red2: #ff5a63;
  --gold: #ffce63;
  --shadow: 0 18px 40px rgba(0,0,0,.38);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(228,49,66,.15), transparent 25%),
    radial-gradient(circle at 80% 20%, rgba(255,90,99,.10), transparent 20%),
    linear-gradient(180deg, #09080d 0%, #0b0a0f 30%, #0f0e15 100%);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(10,9,13,.96), rgba(10,9,13,.72));
  border-bottom: 1px solid var(--line);
}
.header-inner { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; }
.brand-mark { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--red), #8a1230); box-shadow: 0 10px 24px rgba(228,49,66,.28); }
.brand-text { font-size: 1.05rem; }
.main-nav { display: flex; gap: 14px; align-items: center; justify-content: center; }
.nav-link { color: var(--muted); padding: 10px 12px; border-radius: 999px; transition: .2s ease; }
.nav-link:hover, .nav-link.active { color: white; background: rgba(228,49,66,.14); }
.header-search, .hero-search, .search-panel { display: flex; gap: 10px; align-items: center; }
.header-search input, .hero-search input, .search-panel input, .search-panel select {
  height: 44px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); color: white; padding: 0 14px; outline: none;
}
.header-search input { width: 260px; }
.header-search button, .hero-search button, .search-panel button, .btn {
  height: 44px; border: 0; border-radius: 14px; padding: 0 18px; font-weight: 700; cursor: pointer; transition: .2s ease; display: inline-flex; align-items: center; justify-content: center;
}
.header-search button, .hero-search button { background: linear-gradient(135deg, var(--red), var(--red2)); color: white; }
.header-search button:hover, .hero-search button:hover, .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(228,49,66,.25); }
.btn-primary { background: linear-gradient(135deg, var(--red), var(--red2)); color: white; }
.btn-ghost { background: rgba(255,255,255,.05); color: white; border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.09); }
.mobile-toggle { display: none; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 12px 16px 16px; gap: 10px; }
.hero-shell { padding: 24px 0 12px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; }
.hero-copy { padding: 32px 0; }
.eyebrow { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: rgba(228,49,66,.12); color: #ffd9db; border: 1px solid rgba(228,49,66,.18); font-size: .88rem; }
.hero-copy h1 { margin: 18px 0 16px; font-size: clamp(2.1rem, 4vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; max-width: 11ch; }
.hero-desc { color: var(--muted); line-height: 1.75; font-size: 1.02rem; max-width: 62ch; }
.hero-actions { display: flex; gap: 12px; margin: 24px 0 20px; flex-wrap: wrap; }
.hero-search { max-width: 680px; margin: 14px 0 24px; }
.hero-search input { flex: 1; min-width: 220px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.hero-stats div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.03); }
.hero-stats strong { display: block; font-size: 1.4rem; }
.hero-stats span { color: var(--muted); font-size: .9rem; }
.hero-stage { display: grid; gap: 12px; }
.hero-carousel { position: relative; min-height: 440px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--panel-strong); }
.hero-feature { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .45s ease, transform .45s ease; }
.hero-feature.active { opacity: 1; transform: scale(1); }
.hero-feature img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.06); }
.hero-feature-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,8,13,.85) 0%, rgba(9,8,13,.52) 42%, rgba(9,8,13,.15) 100%), linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.38)); }
.hero-feature-text { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; display: grid; gap: 6px; }
.hero-feature-tag { display: inline-flex; width: fit-content; padding: 6px 10px; border-radius: 999px; background: rgba(228,49,66,.14); border: 1px solid rgba(228,49,66,.22); color: #ffdadd; font-size: .8rem; }
.hero-feature strong { font-size: 1.55rem; }
.hero-feature small { color: #e6e2ef; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); cursor: pointer; }
.hero-dot.active { background: var(--red2); box-shadow: 0 0 0 4px rgba(228,49,66,.14); }
.hero-mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.mini-card { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.mini-card img { aspect-ratio: 3 / 4; object-fit: cover; }
.mini-card span { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.55); backdrop-filter: blur(10px); font-size: .84rem; }
.section-wrap { padding: 28px 0; }
.alt-bg { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 1.6rem; }
.section-head a { color: #f6c5ca; font-size: .95rem; }
.topic-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
.topic-grid-10 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.topic-card { display: block; padding: 18px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.topic-card.large { min-height: 210px; }
.topic-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.topic-card p { margin: 0 0 12px; color: var(--muted); }
.topic-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.topic-preview img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.split-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 20px; align-items: start; }
.about-card, .prose-card, .side-card, .player-card { border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.03); box-shadow: var(--shadow); }
.about-card, .prose-card { padding: 22px; line-height: 1.85; color: var(--muted); }
.about-card p, .prose-card p { margin-top: 0; }
.ranking-list { display: grid; gap: 10px; }
.ranking-item { display: grid; grid-template-columns: 48px 1fr 60px; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.rank-no { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(228,49,66,.14); color: #ffdfe1; font-weight: 800; }
.rank-title { display: flex; flex-direction: column; gap: 2px; }
.rank-title em { color: var(--muted); font-style: normal; font-size: .84rem; }
.rank-score { color: var(--gold); font-weight: 800; text-align: right; }
.card-grid { display: grid; gap: 16px; }
.card-grid-6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
.movie-card { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.03); box-shadow: 0 10px 26px rgba(0,0,0,.18); transition: transform .22s ease, box-shadow .22s ease; }
.movie-card:hover { transform: translateY(-4px); box-shadow: 0 18px 30px rgba(0,0,0,.32); }
.card-poster-wrap { position: relative; display: block; }
.card-poster { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.card-badge { position: absolute; left: 10px; top: 10px; padding: 6px 9px; border-radius: 999px; background: rgba(0,0,0,.62); color: white; font-size: .8rem; }
.card-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); opacity: 0; transition: opacity .2s ease; }
.movie-card:hover .card-overlay { opacity: 1; }
.play-pill { padding: 8px 12px; border-radius: 999px; background: rgba(228,49,66,.94); color: white; font-size: .84rem; font-weight: 700; }
.card-body { padding: 14px 14px 16px; }
.card-title-row { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.card-title { font-weight: 800; line-height: 1.35; }
.card-score { color: var(--gold); font-weight: 800; font-size: .94rem; white-space: nowrap; }
.card-meta, .card-summary { margin: 8px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.card-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-tags, .tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: #ece9f6; font-size: .8rem; }
.page-main { padding-bottom: 24px; }
.page-hero { padding: 34px 0 6px; }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3.3rem); }
.page-hero p { margin: 0; color: var(--muted); line-height: 1.75; }
.search-panel { margin-top: 18px; flex-wrap: wrap; }
.search-panel input { flex: 1; min-width: 220px; }
.search-panel select { min-width: 160px; }
.inline-search { margin-top: 18px; }
.breadcrumb { color: var(--soft); font-size: .92rem; margin-bottom: 14px; }
.breadcrumb a { color: #f1c4c8; }
.detail-hero { padding: 28px 0 10px; }
.detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.detail-poster-wrap { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.detail-poster { width: 100%; aspect-ratio: 3 / 4.3; object-fit: cover; }
.detail-badge { position: absolute; left: 14px; top: 14px; padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,.66); color: white; font-weight: 700; }
.detail-copy h1 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; color: #f6d8da; }
.meta-row span { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.one-line { color: white; font-size: 1.04rem; line-height: 1.8; }
.action-row { display: flex; gap: 12px; margin: 18px 0 14px; flex-wrap: wrap; }
.detail-body-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.side-card { padding: 20px; }
.side-card h3 { margin: 0 0 14px; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.info-list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--muted); }
.info-list strong { color: white; font-weight: 700; }
.player-card { padding: 16px; }
.video-player { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 18px; overflow: hidden; }
.player-note { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.ranking-page { display: grid; gap: 12px; }
.ranking-row { display: grid; grid-template-columns: 54px 64px 1fr 72px; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.03); }
.ranking-row img { width: 64px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.ranking-row strong { display: block; }
.ranking-row p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.r-no { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(228,49,66,.14); color: #ffdfe1; font-weight: 800; }
.r-body { min-width: 0; }
.r-score { color: var(--gold); font-weight: 800; text-align: right; }
.site-footer { padding: 28px 0 36px; border-top: 1px solid var(--line); background: rgba(0,0,0,.16); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; color: var(--muted); }
.footer-grid h3 { color: white; margin-top: 0; }
.footer-brand { margin-bottom: 10px; }
.simple-footer { text-align: center; color: var(--soft); }
.hidden { display: none !important; }

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .main-nav, .header-search { display: none; }
  .mobile-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: white; }
  .mobile-nav.open { display: grid; }
  .hero-grid, .split-grid, .detail-grid, .detail-body-grid { grid-template-columns: 1fr; }
  .topic-grid, .card-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-mini-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .container { width: min(100% - 22px, 100%); }
  .hero-copy h1, .page-hero h1, .detail-copy h1 { max-width: 100%; }
  .hero-shell { padding-top: 10px; }
  .hero-carousel { min-height: 360px; }
  .hero-mini-grid, .topic-grid, .card-grid-6 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .search-panel { display: grid; }
  .search-panel input, .search-panel select, .search-panel .btn, .hero-search input { width: 100%; }
  .hero-actions, .action-row { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ranking-row { grid-template-columns: 42px 48px 1fr 52px; }
  .ranking-row img { width: 48px; }
}
