
:root {
  --bg: #f6f7fb;
  --panel: rgba(255,255,255,.92);
  --panel-strong: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148,163,184,.24);
  --accent: #ef4444;
  --accent-2: #f97316;
  --accent-3: #fb7185;
  --shadow: 0 18px 50px rgba(15, 23, 42, .09);
  --radius: 22px;
  --radius-sm: 16px;
  --max: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(239,68,68,.08), transparent 28%),
    radial-gradient(circle at top right, rgba(249,115,22,.08), transparent 26%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 48%, #f8fafc 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.hidden { display: none !important; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,.84);
  border-bottom: 1px solid rgba(226,232,240,.8);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 74px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px; font-weight: 800;
  letter-spacing: .3px; white-space: nowrap;
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; display: grid; place-items: center; box-shadow: 0 10px 20px rgba(239,68,68,.25);
}
.brand-name { font-size: 1.05rem; }
.brand-sub { display:block; font-size: .76rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.nav { display:flex; align-items:center; gap: 8px; flex-wrap: wrap; }
.nav a {
  padding: 10px 14px; border-radius: 999px; color: #334155; font-weight: 600;
}
.nav a:hover, .nav a.active { background: rgba(239,68,68,.09); color: var(--accent); }
.header-actions { display:flex; align-items:center; gap: 10px; }
.search-shell {
  display:flex; align-items:center; gap: 10px; padding: 10px 14px; min-width: 290px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.8);
}
.search-shell input {
  border: none; outline: none; background: transparent; width: 100%; color: var(--text);
}
.search-shell .icon { color: var(--muted); }
.menu-btn {
  display:none; width:42px; height:42px; border:1px solid var(--line); border-radius: 14px;
  background: var(--panel); cursor:pointer;
}
.menu-btn span { display:block; width:18px; height:2px; background:#334155; margin: 4px auto; border-radius: 2px; }

.hero {
  padding: 30px 0 10px;
}
.hero-wrap {
  position: relative; overflow: hidden; border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.20), transparent 24%),
    linear-gradient(135deg, #111827 0%, #1f2937 30%, #7f1d1d 68%, #ef4444 100%);
  color: #fff; box-shadow: var(--shadow);
}
.hero-inner {
  display:grid; grid-template-columns: 1.15fr .95fr; gap: 24px;
  padding: 28px;
}
.hero-copy { display:flex; flex-direction:column; justify-content:center; gap: 18px; min-height: 560px; }
.hero-kicker {
  display:inline-flex; align-items:center; gap: 8px; width: fit-content;
  padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92); font-weight: 700;
}
.hero-title {
  margin: 0; font-size: clamp(2.2rem, 4vw, 4.7rem); line-height: 1.02; letter-spacing: -.03em;
}
.hero-title span { color: #ffe4e6; }
.hero-desc {
  margin: 0; max-width: 56ch; color: rgba(255,255,255,.88); line-height: 1.8; font-size: 1rem;
}
.hero-search {
  display:flex; gap: 10px; flex-wrap: wrap; align-items:center;
}
.hero-search input {
  flex: 1 1 280px; min-height: 54px; border: 0; border-radius: 18px; padding: 0 18px;
  outline: none; background: rgba(255,255,255,.96); color: #111827;
}
.hero-search .btn {
  min-height: 54px; border: 0; padding: 0 18px; border-radius: 18px; cursor:pointer; font-weight: 700;
}
.btn-primary { background: linear-gradient(135deg, #fff, #ffe4e6); color: #9f1239; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.18) !important; }
.hero-stats {
  display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 6px;
}
.stat {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 18px;
  padding: 16px; backdrop-filter: blur(8px);
}
.stat strong { display:block; font-size: 1.25rem; }
.stat span { display:block; color: rgba(255,255,255,.72); font-size: .82rem; margin-top: 4px; }
.hero-side {
  display:flex; flex-direction:column; gap: 14px; justify-content:center;
}
.hero-carousel {
  position: relative; border-radius: 28px; overflow: hidden; background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 16px 40px rgba(15,23,42,.20);
}
.hero-slide {
  display:none; min-height: 560px; position: relative;
}
.hero-slide.active { display:block; }
.hero-slide img {
  width:100%; height: 560px; object-fit: cover; filter: saturate(1.08) contrast(1.02);
}
.hero-slide::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(9,14,25,.05) 0%, rgba(9,14,25,.16) 42%, rgba(9,14,25,.88) 100%);
}
.hero-slide-copy {
  position:absolute; inset: auto 0 0 0; z-index: 1; padding: 24px;
}
.hero-slide-copy h3 { margin: 0 0 8px; font-size: 1.8rem; }
.hero-slide-copy p { margin: 0; color: rgba(255,255,255,.85); line-height: 1.7; }
.hero-pill-row { display:flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pill {
  display:inline-flex; padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.14); font-size: .8rem;
}
.hero-controls {
  position:absolute; z-index: 2; left: 16px; right: 16px; top: 16px;
  display:flex; justify-content:space-between; align-items:center;
}
.hero-controls button {
  width: 42px; height: 42px; border:0; border-radius: 50%; cursor:pointer;
  background: rgba(255,255,255,.18); color:#fff; backdrop-filter: blur(8px);
}
.hero-dots {
  display:flex; gap: 6px; justify-content:center; padding: 12px 0 16px;
}
.hero-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.35); border:0; }
.hero-dot.active { width: 26px; background: #fff; }
.hero-mini {
  display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px;
}
.mini-card {
  border-radius: 22px; overflow:hidden; background: rgba(255,255,255,.92); color: var(--text);
  box-shadow: 0 10px 25px rgba(15,23,42,.10); border: 1px solid rgba(226,232,240,.8);
}
.mini-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.mini-card-body { padding: 14px; }
.mini-card-body h4 { margin: 0 0 6px; font-size: 1rem; }
.mini-card-body p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }

.section { padding: 22px 0; }
.section-head {
  display:flex; align-items:end; justify-content:space-between; gap: 16px; margin-bottom: 14px;
}
.section-head h2 { margin:0; font-size: 1.6rem; }
.section-head p { margin: 8px 0 0; color: var(--muted); }
.section-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.badge-link {
  display:inline-flex; align-items:center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  background: rgba(239,68,68,.08); color: var(--accent); font-weight:700;
}
.toolbar {
  display:flex; gap: 10px; align-items:center; flex-wrap:wrap; margin: 6px 0 18px;
}
.toolbar input, .toolbar select {
  min-height: 46px; padding: 0 14px; border-radius: 14px; border:1px solid var(--line); background: rgba(255,255,255,.88);
}
.toolbar input { flex: 1 1 260px; }
.grid {
  display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px;
}
.card {
  background: var(--panel); border: 1px solid rgba(226,232,240,.85);
  border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(15,23,42,.12); border-color: rgba(239,68,68,.20); }
.card-cover { position:relative; overflow:hidden; aspect-ratio: 3 / 4; background:#e2e8f0; }
.card-cover img { width:100%; height:100%; object-fit:cover; }
.card-chip {
  position:absolute; left: 12px; top: 12px; z-index: 1;
  padding: 6px 10px; border-radius: 999px; background: rgba(17,24,39,.72); color:#fff; font-size:.76rem;
  backdrop-filter: blur(8px);
}
.card-body { padding: 14px; }
.card-title { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.42; }
.card-meta { color: var(--muted); font-size: .84rem; display:flex; flex-wrap:wrap; gap: 8px; }
.card-meta span { padding-right: 8px; border-right: 1px solid rgba(148,163,184,.25); }
.card-meta span:last-child { border-right: 0; padding-right: 0; }
.card-desc { color: #475569; margin: 10px 0 0; line-height: 1.7; font-size: .90rem; }
.card-actions { display:flex; gap: 8px; margin-top: 12px; }
.card-actions a {
  flex: 1; display:inline-flex; justify-content:center; align-items:center; min-height: 40px;
  border-radius: 14px; font-weight:700; border:1px solid rgba(226,232,240,.9);
}
.card-actions a.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color:#fff; border:0; }
.card-actions a.secondary { background: #fff; color:#334155; }

.list {
  display:flex; flex-direction:column; gap: 12px;
}
.list-item {
  display:grid; grid-template-columns: 86px 1fr auto; gap: 14px; align-items:center;
  padding: 14px; background: var(--panel); border: 1px solid rgba(226,232,240,.85); border-radius: 18px; box-shadow: var(--shadow);
}
.list-item .rank { width: 36px; height: 36px; border-radius: 999px; background: rgba(239,68,68,.1); color: var(--accent); display:grid; place-items:center; font-weight: 800; }
.list-item img { width: 86px; height: 120px; object-fit: cover; border-radius: 14px; }
.list-item h3 { margin: 0 0 8px; font-size: 1.06rem; }
.list-item p { margin: 0; color: var(--muted); line-height: 1.65; }
.list-item .right { display:flex; gap: 8px; flex-wrap:wrap; justify-content:flex-end; }
.list-item .tag { padding: 7px 10px; border-radius: 999px; background: rgba(15,23,42,.05); color: #475569; font-size: .8rem; }

.breadcrumb {
  display:flex; flex-wrap:wrap; gap: 8px; color: var(--muted); font-size: .9rem; margin: 14px 0 18px;
}
.breadcrumb a { color: var(--accent); }

.detail-hero {
  display:grid; grid-template-columns: 310px 1fr; gap: 24px; align-items:start;
  padding: 22px; background: var(--panel); border: 1px solid rgba(226,232,240,.85); box-shadow: var(--shadow); border-radius: 28px;
}
.detail-poster { position:relative; border-radius: 24px; overflow:hidden; }
.detail-poster img { width:100%; aspect-ratio: 2 / 3; object-fit:cover; }
.detail-poster .poster-badge {
  position:absolute; left: 14px; top: 14px; padding: 8px 12px; border-radius: 999px;
  background: rgba(17,24,39,.72); color:#fff; font-size:.82rem; backdrop-filter: blur(8px);
}
.detail-title { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.12; }
.detail-sub { color: var(--muted); margin: 12px 0 0; line-height: 1.8; }
.info-grid {
  display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 18px 0;
}
.info-card {
  padding: 14px; background: rgba(248,250,252,.88); border: 1px solid rgba(226,232,240,.9);
  border-radius: 18px;
}
.info-card span { display:block; color: var(--muted); font-size: .82rem; }
.info-card strong { display:block; margin-top: 6px; }
.detail-box {
  margin-top: 18px; background: rgba(255,255,255,.95); border: 1px solid rgba(226,232,240,.85);
  border-radius: 24px; padding: 20px; box-shadow: var(--shadow);
}
.detail-box h2 { margin: 0 0 12px; font-size: 1.3rem; }
.detail-box p { margin: 0; color: #334155; line-height: 1.85; }
.player-wrap {
  border-radius: 24px; overflow:hidden; background: #0f172a; border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow);
}
.player-head {
  padding: 16px 18px; color:#fff; display:flex; align-items:center; justify-content:space-between; gap: 10px;
  background: linear-gradient(135deg, rgba(239,68,68,.82), rgba(249,115,22,.82));
}
.player-head strong { font-size: 1.05rem; }
.player-head span { color: rgba(255,255,255,.85); font-size: .86rem; }
video { width:100%; height:auto; display:block; background:#000; }
.related-grid { display:grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.footer {
  margin-top: 28px; padding: 32px 0 40px; color: #475569;
}
.footer-card {
  padding: 22px; background: rgba(255,255,255,.8); border: 1px solid rgba(226,232,240,.9); border-radius: 26px; box-shadow: var(--shadow);
}
.footer-top { display:flex; justify-content:space-between; gap: 18px; flex-wrap:wrap; align-items:flex-start; }
.footer-top p { margin: 8px 0 0; line-height: 1.75; max-width: 72ch; }
.footer-links { display:flex; gap: 10px; flex-wrap:wrap; }
.footer-links a { padding: 8px 12px; border-radius: 999px; background: rgba(239,68,68,.08); color: var(--accent); font-weight: 700; }
.copy { margin-top: 18px; font-size: .88rem; color: var(--muted); }
.backtop {
  position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border:0; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color:#fff; box-shadow: var(--shadow); cursor:pointer;
}

@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .related-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .hero-inner, .detail-hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: auto; }
  .hero-slide img, .hero-slide { min-height: 420px; height: auto; }
  .hero-stats, .info-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .list-item { grid-template-columns: 72px 1fr; }
  .list-item .right { grid-column: 1 / -1; justify-content:flex-start; }
  .search-shell { min-width: 220px; }
}
@media (max-width: 720px) {
  .container { width: min(var(--max), calc(100% - 20px)); }
  .nav {
    display:none; position:absolute; left: 10px; right: 10px; top: 74px; padding: 12px; flex-direction:column; align-items:stretch;
    background: rgba(255,255,255,.96); border: 1px solid rgba(226,232,240,.9); border-radius: 22px; box-shadow: var(--shadow);
  }
  .nav.open { display:flex; }
  .nav a { width:100%; }
  .menu-btn { display:block; }
  .search-shell { display:none; }
  .hero-inner { padding: 18px; }
  .hero-copy { gap: 14px; }
  .hero-title { font-size: 2rem; }
  .hero-stats, .info-grid, .related-grid, .grid { grid-template-columns: 1fr; }
  .hero-mini { grid-template-columns: 1fr; }
  .section-head { align-items:flex-start; flex-direction:column; }
  .detail-hero { padding: 16px; }
  .player-head { flex-direction: column; align-items:flex-start; }
}
