:root {
  --bg: #0b0b12;
  --bg2: #12121d;
  --card: #191927;
  --line: rgba(255,255,255,.09);
  --text: #f5f4fa;
  --muted: #a7a4b8;
  --accent: #f43f6e;
  --accent2: #8b5cf6;
  --gold: #fbbf24;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.shell { max-width: 1080px; margin: 0 auto; padding: 0 16px 80px; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: rgba(11,11,18,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .4px; font-size: 17px; white-space: nowrap; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display: grid; place-items: center; font-size: 14px;
}
.topbar .spacer { flex: 1; }
.search {
  flex: 1; max-width: 340px; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; color: var(--muted);
}
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.search input::placeholder { color: #77738a; }
.lang { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; white-space: nowrap; }

.hero {
  margin: 18px 0 22px; border-radius: 20px; overflow: hidden; position: relative;
  background: linear-gradient(115deg, #3b0764, #9f1239 60%, #7c2d12);
  min-height: 210px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end;
}
.hero:after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); }
.hero-tag { font-size: 11px; letter-spacing: 2.5px; color: #fbcfe8; font-weight: 700; }
.hero h1 { margin: 8px 0 6px; font-size: clamp(22px, 5vw, 38px); line-height: 1.15; }
.hero p { margin: 0; color: #fecdd3; font-size: 13px; max-width: 460px; }
.hero-btn {
  margin-top: 16px; align-self: flex-start; border: 0; border-radius: 999px;
  background: #fff; color: #9f1239; font-weight: 800; padding: 10px 20px; font-size: 13px;
}

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 14px; }
.section-head h2 { margin: 0; font-size: 19px; }
.section-head span { font-size: 12px; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  border-radius: 999px; padding: 7px 14px; font-size: 12px; white-space: nowrap;
}
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .18s, border-color .18s; }
.card:hover { transform: translateY(-3px); border-color: rgba(244,63,110,.45); }
.card-cover { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.card-body { padding: 10px 11px 12px; }
.card-title { font-size: 13px; font-weight: 700; line-height: 1.35; height: 35px; overflow: hidden; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 11px; color: var(--muted); }
.badge { background: rgba(244,63,110,.15); color: #fda4af; padding: 2px 7px; border-radius: 5px; font-size: 10px; }
.empty { padding: 50px 10px; text-align: center; color: var(--muted); }

.footer { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; color: #77738a; display: flex; flex-wrap: wrap; gap: 14px; }

/* 播放页 */
.player-wrap { max-width: 620px; margin: 0 auto; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; padding: 14px 0; }
.video-box { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 9/16; max-height: 74vh; margin: 0 auto; }
.video-box video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; pointer-events: none; }
.title-row { margin-top: 16px; display: flex; align-items: flex-start; gap: 12px; }
.title-row h1 { margin: 0; font-size: 19px; flex: 1; }
.sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.desc { color: #c9c6d6; font-size: 13px; margin: 12px 0 0; }
.action-row { display: flex; gap: 10px; margin: 16px 0; }
.btn {
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 600;
}
.btn.primary { background: linear-gradient(135deg, var(--accent2), var(--accent)); border-color: transparent; color: #fff; flex: 1; }
.btn.small { padding: 7px 12px; font-size: 12px; }
.btn.ghost { background: transparent; }
.episodes { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }
@media (max-width: 480px) { .episodes { grid-template-columns: repeat(6, 1fr); } }
.ep {
  aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); background: var(--card);
  color: var(--muted); font-size: 12px; display: grid; place-items: center;
}
.ep.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.attribution { margin-top: 18px; border: 1px dashed rgba(139,92,246,.5); border-radius: 10px; padding: 10px 12px; font-size: 11px; color: #c4b5fd; background: rgba(139,92,246,.07); }

/* 广告专用落地页（合规：对审核与真实用户展示同一页面） */
.landing-hero {
  border-radius: 20px; padding: 26px 22px; margin: 14px 0 18px;
  background: radial-gradient(circle at 80% 10%, rgba(244,63,110,.28), transparent 45%), linear-gradient(150deg, #241034, #120d1c);
  border: 1px solid rgba(244,63,110,.22);
}
.landing-hero h1 { font-size: clamp(24px, 6vw, 38px); line-height: 1.18; margin: 10px 0; }
.landing-hero p { color: #d8cfe6; font-size: 14px; }
.cta {
  display: block; width: 100%; border: 0; border-radius: 12px; margin-top: 18px;
  padding: 15px; font-size: 16px; font-weight: 800; color: #fff;
  background: linear-gradient(100deg, var(--accent), #e11d48);
  box-shadow: 0 10px 30px rgba(244,63,110,.28);
}
.landing-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0; }
@media (min-width: 640px) { .landing-grid { grid-template-columns: repeat(3, 1fr); } }
.perk { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 12px; color: var(--muted); }
.perk b { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.disclosure { font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 20px; }
.disclosure b { color: #ddd8ea; }

/* 充值弹窗 */
.sd-modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.75); display: grid; place-items: center; padding: 16px; }
.sd-modal { position: relative; width: min(420px, 100%); background: #171724; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.sd-modal-x { position: absolute; right: 12px; top: 10px; background: none; border: 0; color: var(--muted); font-size: 24px; }
.sd-modal-kicker { font-size: 10px; letter-spacing: 2px; color: #f9a8d4; font-weight: 800; }
.sd-modal h2 { margin: 6px 0 4px; font-size: 22px; }
.sd-modal-sub { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.sd-plans { display: grid; gap: 9px; }
.sd-plan { position: relative; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 12px; cursor: pointer; }
.sd-plan.best { border-color: var(--accent); background: rgba(244,63,110,.07); }
.sd-plan input { accent-color: var(--accent); }
.sd-plan-main { flex: 1; }
.sd-plan-main b { display: block; font-size: 14px; }
.sd-plan-main small { color: var(--muted); font-size: 11px; }
.sd-plan-price { font-weight: 800; font-size: 15px; }
.sd-plan-tag { position: absolute; right: 8px; top: -8px; font-size: 9px; background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 5px; }
.sd-notice { margin: 14px 0; font-size: 11px; color: #c4b5fd; background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.25); border-radius: 9px; padding: 9px 11px; word-break: break-all; }
.sd-pay { width: 100%; border: 0; border-radius: 11px; padding: 13px; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; }
.sd-pay:disabled { opacity: .7; cursor: default; }
.sd-modal-foot { margin-top: 10px; text-align: center; font-size: 10px; color: #77738a; }

/* Legal pages */
.legal { max-width: 760px; padding-bottom: 48px; }
.legal h1 { font-size: 28px; margin: 10px 0 2px; }
.legal h2 { font-size: 16px; margin: 24px 0 6px; color: #f9a8d4; }
.legal p { font-size: 13px; line-height: 1.8; color: #c9c5d6; margin: 6px 0; }
.legal-updated { font-size: 11px; color: #77738a; }
