/* ============================================================
   若琳影视 · 主题样式
   ============================================================ */
/* 确保 hidden 属性始终生效（不被 display:flex 等覆盖） */
[hidden] { display: none !important; }
:root {
  --bg: #0d0f14;
  --bg-soft: #12151d;
  --surface: #171b25;
  --surface-2: #1e2330;
  --card: #1a1f2b;
  --line: rgba(255,255,255,.07);
  --text: #e9ecf3;
  --text-2: #a7adbd;
  --text-3: #6d7488;
  --accent: #ff4d6d;
  --accent-2: #ff7a59;
  --accent-grad: linear-gradient(135deg, #ff4d6d, #ff7a59);
  --ok: #2fd67b;
  --warn: #ffb020;
  --err: #ff5a5f;
  --shadow: 0 12px 32px rgba(0,0,0,.45);
  --radius: 14px;
  --radius-sm: 10px;
  --topbar-h: 60px;
  --bn-h: 58px;
}
html[data-theme="light"] {
  --bg: #f4f5f9;
  --bg-soft: #eceef4;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --card: #ffffff;
  --line: rgba(20,24,40,.09);
  --text: #1b2030;
  --text-2: #5a6072;
  --text-3: #9aa0b3;
  --shadow: 0 12px 28px rgba(30,34,60,.12);
}
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { scroll-behavior:smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  transition: background .3s ease, color .3s ease;
}
a { color: inherit; text-decoration: none; }
img { display:block; }
button { font-family: inherit; cursor:pointer; }
input, select, textarea { font-family: inherit; }
::selection { background: rgba(255,77,109,.35); }
::-webkit-scrollbar { width:8px; height:8px; }
::-webkit-scrollbar-thumb { background:rgba(128,136,160,.35); border-radius:8px; }
::-webkit-scrollbar-track { background:transparent; }

/* ---------- 顶部栏 ---------- */
.topbar {
  position: sticky; top:0; z-index:100;
  height: var(--topbar-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width:1280px; margin:0 auto; height:100%; padding:0 18px; display:flex; align-items:center; gap:22px; }
.logo { display:flex; align-items:center; gap:9px; flex-shrink:0; }
.logo-badge {
  width:34px; height:34px; border-radius:10px; background:var(--accent-grad);
  display:flex; align-items:center; justify-content:center; color:#fff;
  box-shadow:0 6px 16px rgba(255,77,109,.4);
}
.logo-badge svg { width:18px; height:18px; }
.logo-text { font-size:21px; font-weight:800; letter-spacing:.5px; }
.logo-text span { background:var(--accent-grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.main-nav { display:flex; gap:4px; }
.nav-link {
  padding:8px 14px; border-radius:10px; font-size:15px; color:var(--text-2);
  transition:all .2s; position:relative;
}
.nav-link:hover { color:var(--text); background:var(--surface); }
.nav-link.active { color:var(--accent); font-weight:600; background:rgba(255,77,109,.1); }
.topbar-right { margin-left:auto; display:flex; align-items:center; gap:10px; }
.search-box {
  display:flex; align-items:center; gap:8px; width:260px;
  background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:8px 12px;
  transition:border .2s, box-shadow .2s;
}
.search-box:focus-within { border-color:rgba(255,77,109,.6); box-shadow:0 0 0 3px rgba(255,77,109,.15); }
.search-ico { width:17px; height:17px; fill:var(--text-3); flex-shrink:0; }
.search-box input { flex:1; background:none; border:none; outline:none; color:var(--text); font-size:14px; min-width:0; }
.search-box input::placeholder { color:var(--text-3); }
.icon-btn {
  width:38px; height:38px; border-radius:11px; border:1px solid var(--line);
  background:var(--surface); display:flex; align-items:center; justify-content:center;
  color:var(--text-2); transition:all .2s; flex-shrink:0;
}
.icon-btn:hover { color:var(--text); border-color:rgba(255,77,109,.5); }
.icon-btn svg { width:19px; height:19px; fill:currentColor; }
.hamburger { display:none; flex-direction:column; gap:4px; background:none; border:none; width:40px; height:40px; align-items:center; justify-content:center; }
.hamburger span { width:20px; height:2px; background:var(--text); border-radius:2px; transition:.25s; }
.hamburger.open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

/* ---------- 主体 ---------- */
.app { max-width:1280px; margin:0 auto; padding:20px 18px 80px; min-height:70vh; }
.footer { text-align:center; color:var(--text-3); font-size:12.5px; padding:24px 16px 84px; border-top:1px solid var(--line); }
.footer .footer-sub { margin-top:5px; font-size:12px; opacity:.8; word-break:break-all; }

/* ---------- 首页 hero ---------- */
.hero {
  position:relative; border-radius:20px; overflow:hidden; margin-bottom:26px;
  background: var(--surface-2);
  border:1px solid var(--line);
}
.hero-bg { position:absolute; inset:0; background-size:cover; background-position:center 30%; filter:blur(2px) brightness(.45); transform:scale(1.06); }
.hero-bg::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(13,15,20,.9) 0%, rgba(13,15,20,.55) 55%, rgba(13,15,20,.25) 100%); }
.hero-inner { position:relative; z-index:2; padding:38px 32px 34px; max-width:720px; }
.hero h1 { font-size:30px; font-weight:800; letter-spacing:1px; }
.hero h1 b { background:var(--accent-grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.hero p { color:var(--text-2); margin:8px 0 18px; font-size:14px; }
.hero-search { display:flex; gap:10px; max-width:520px; }
.hero-search .search-box { flex:1; width:auto; background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.18); }
.hero-search .search-box input { color:#fff; }
.hero-search .search-box input::placeholder { color:rgba(255,255,255,.55); }
.hero-search .search-ico { fill:rgba(255,255,255,.6); }
.hero-chips { display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
.chip {
  padding:6px 13px; border-radius:999px; font-size:13px; cursor:pointer;
  background:rgba(255,255,255,.09); color:rgba(255,255,255,.9); border:1px solid rgba(255,255,255,.14);
  transition:all .2s;
}
.chip:hover { background:var(--accent); border-color:var(--accent); color:#fff; }
.hero-feat { position:absolute; right:26px; bottom:22px; z-index:2; display:none; align-items:center; gap:10px; }
.hero-feat .hf-poster { width:120px; height:170px; border-radius:12px; overflow:hidden; box-shadow:var(--shadow); border:2px solid rgba(255,255,255,.25); }
.hero-feat .hf-poster img { width:100%; height:100%; object-fit:cover; }

/* ---------- 区块 ---------- */
.section { margin-bottom:28px; }
.section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.section-title { display:flex; align-items:center; gap:9px; font-size:18px; font-weight:700; }
.section-title::before { content:""; width:4px; height:18px; border-radius:2px; background:var(--accent-grad); }
.section-more { font-size:13px; color:var(--text-3); cursor:pointer; transition:color .2s; }
.section-more:hover { color:var(--accent); }
.row-scroll {
  display:grid; grid-auto-flow:column; grid-auto-columns:148px; gap:13px;
  overflow-x:auto; padding:2px 2px 10px; scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
.row-scroll::-webkit-scrollbar { display:none; }
.row-scroll .vcard { scroll-snap-align:start; }

/* ---------- 视频卡片 ---------- */
.vcard { position:relative; cursor:pointer; }
.vcard-poster {
  position:relative; aspect-ratio:2/3; border-radius:var(--radius-sm); overflow:hidden;
  background:var(--surface-2); box-shadow:0 4px 12px rgba(0,0,0,.25);
  transition:transform .25s ease, box-shadow .25s ease;
}
.vcard:hover .vcard-poster { transform:translateY(-4px); box-shadow:0 12px 26px rgba(0,0,0,.4); }
.vcard-poster img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.vcard:hover .vcard-poster img { transform:scale(1.07); }
.vcard-poster .ph { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:var(--text-2); font-size:13px; font-weight:600; line-height:1.4; padding:10px; text-align:center; background:linear-gradient(160deg,var(--surface-2),var(--card)); word-break:break-all; overflow:hidden; }
.vcard-poster .ph.loading { opacity:.6; }
.vcard-badge {
  position:absolute; left:0; bottom:0; right:0; padding:5px 8px; font-size:11.5px;
  background:linear-gradient(transparent, rgba(0,0,0,.82)); color:#fff;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.vcard-score {
  position:absolute; top:6px; right:6px; padding:2px 7px; border-radius:7px; font-size:11.5px; font-weight:700;
  background:rgba(0,0,0,.6); color:#ffd166; backdrop-filter:blur(4px);
}
.vcard-name { margin-top:8px; font-size:13.5px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vcard-sub { font-size:12px; color:var(--text-3); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ---------- 通用网格 ---------- */
.grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(148px,1fr));
  gap:16px 13px;
}
.empty {
  text-align:center; color:var(--text-3); padding:60px 20px; font-size:14px;
}
.empty svg { width:56px; height:56px; fill:var(--text-3); opacity:.4; margin-bottom:12px; }
.empty p { margin-top:6px; }

/* ---------- 骨架屏 ---------- */
.skeleton { position:relative; overflow:hidden; background:var(--surface-2); border-radius:var(--radius-sm); }
.skeleton::after {
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation:sk 1.4s infinite;
}
@keyframes sk { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.sk-card { aspect-ratio:2/3; border-radius:var(--radius-sm); background:var(--surface-2); }
.sk-line { height:13px; margin-top:8px; border-radius:4px; background:var(--surface-2); }
.sk-line.w60{width:60%}.sk-line.w80{width:80%}

/* ---------- 分类页 ---------- */
.page-head { margin-bottom:18px; }
.page-title { font-size:22px; font-weight:800; display:flex; align-items:center; gap:10px; }
.page-title .pt-badge { font-size:12px; font-weight:500; color:var(--text-3); }
.filter-bar { display:flex; gap:8px; flex-wrap:wrap; margin:14px 0; }
.fbtn {
  padding:7px 15px; border-radius:10px; font-size:13.5px; cursor:pointer; border:1px solid var(--line);
  background:var(--surface); color:var(--text-2); transition:all .2s;
}
.fbtn:hover { color:var(--text); }
.fbtn.active { background:var(--accent-grad); color:#fff; border-color:transparent; font-weight:600; }
.site-tabs { display:flex; gap:8px; overflow-x:auto; padding:4px 2px 8px; scrollbar-width:none; }
.site-tabs::-webkit-scrollbar { display:none; }
.pager { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:26px; }
.pager .pg-btn {
  padding:9px 20px; border-radius:11px; background:var(--surface); border:1px solid var(--line);
  color:var(--text); font-size:14px; transition:all .2s;
}
.pager .pg-btn:hover:not(:disabled) { background:var(--accent); color:#fff; }
.pager .pg-btn:disabled { opacity:.4; cursor:not-allowed; }
.pager .pg-info { color:var(--text-3); font-size:13.5px; }

/* ---------- 详情页 ---------- */
.detail {
  display:grid; grid-template-columns:230px 1fr; gap:30px;
  background:var(--surface); border:1px solid var(--line); border-radius:20px; padding:26px;
}
.detail-poster { position:relative; border-radius:14px; overflow:hidden; aspect-ratio:2/3; box-shadow:var(--shadow); }
.detail-poster img { width:100%; height:100%; object-fit:cover; }
.detail-poster .ph { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:40px; color:var(--text-3); background:var(--surface-2); }
.detail-info h1 { font-size:24px; font-weight:800; line-height:1.3; }
.detail-tags { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 14px; }
.dtag { padding:4px 11px; border-radius:999px; font-size:12px; background:var(--surface-2); color:var(--text-2); border:1px solid var(--line); }
.dtag.hot { background:rgba(255,77,109,.12); color:var(--accent); border-color:rgba(255,77,109,.3); }
.d-meta { font-size:13.5px; color:var(--text-2); line-height:2; }
.d-meta b { color:var(--text-3); font-weight:500; margin-right:6px; }
.d-blurb { margin-top:14px; font-size:13.5px; color:var(--text-2); line-height:1.8; max-height:96px; overflow:hidden; position:relative; transition:max-height .3s; }
.d-blurb.expand { max-height:600px; }
.d-blurb-toggle { margin-top:6px; font-size:12.5px; color:var(--accent); cursor:pointer; }
.d-actions { display:flex; gap:10px; margin-top:18px; flex-wrap:wrap; }
.btn {
  display:inline-flex; align-items:center; gap:8px; padding:11px 22px; border-radius:12px;
  font-size:14.5px; font-weight:600; border:none; transition:all .2s;
}
.btn-primary { background:var(--accent-grad); color:#fff; box-shadow:0 8px 20px rgba(255,77,109,.35); }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 12px 26px rgba(255,77,109,.45); }
.btn-ghost { background:var(--surface-2); color:var(--text); border:1px solid var(--line); }
.btn-ghost:hover { color:var(--accent); border-color:rgba(255,77,109,.5); }
.btn svg { width:17px; height:17px; fill:currentColor; }
.play-section { margin-top:24px; }
.play-title { font-size:16px; font-weight:700; margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.line-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.line-tab {
  padding:8px 18px; border-radius:11px; font-size:13.5px; cursor:pointer;
  background:var(--surface-2); border:1px solid var(--line); color:var(--text-2); transition:all .2s;
}
.line-tab:hover { color:var(--text); }
.line-tab.active { background:var(--accent-grad); color:#fff; border-color:transparent; font-weight:600; }
.ep-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(72px,1fr)); gap:9px;
}
.ep {
  padding:9px 4px; text-align:center; font-size:13px; border-radius:9px; cursor:pointer;
  background:var(--surface-2); border:1px solid var(--line); color:var(--text-2);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:all .2s;
}
.ep:hover { color:var(--accent); border-color:rgba(255,77,109,.5); }
.ep.active { background:var(--accent-grad); color:#fff; border-color:transparent; font-weight:600; }
.related-grid { grid-template-columns:repeat(auto-fill, minmax(148px,1fr)); gap:16px 13px; }

/* ---------- 播放器 ---------- */
.player-mask, .iframe-mask {
  position:fixed; inset:0; z-index:500; background:var(--bg);
  display:flex; flex-direction:column;
}
.player-shell, .iframe-shell { display:flex; flex-direction:column; height:100%; width:100%; max-width:1180px; margin:0 auto; }
.player-head {
  display:flex; align-items:center; gap:10px; padding:10px 14px;
  background:var(--surface); border-bottom:1px solid var(--line); min-height:52px;
}
.player-head .icon-btn { width:36px; height:36px; }
.player-title { flex:1; font-size:14.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.player-body { flex:1; display:flex; align-items:center; justify-content:center; background:#000; position:relative; min-height:0; }
.video-wrap { width:100%; height:100%; position:relative; }
.video-wrap video { width:100%; height:100%; object-fit:contain; background:#000; }
.video-wrap iframe { width:100%; height:100%; border:none; }
.play-tip {
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; color:var(--text-2); background:#000;
}
.play-tip .pt-ico { width:56px; height:56px; border-radius:50%; background:var(--surface-2); display:flex; align-items:center; justify-content:center; }
.play-tip .pt-ico svg { width:26px; height:26px; fill:var(--accent); }
.play-tip .pt-msg { font-size:14px; }
.loading-dots { display:flex; gap:6px; }
.loading-dots span { width:9px; height:9px; border-radius:50%; background:var(--accent); animation:ld 1s infinite; }
.loading-dots span:nth-child(2){ animation-delay:.15s }
.loading-dots span:nth-child(3){ animation-delay:.3s }
@keyframes ld { 0%,100%{opacity:.25; transform:scale(.8)} 50%{opacity:1; transform:scale(1)} }
.player-ctl { background:var(--surface); border-top:1px solid var(--line); padding:12px 16px 18px; max-height:34vh; overflow-y:auto; }
.pc-row { margin-bottom:10px; }
.pc-row:last-child { margin-bottom:0; }
.pc-label { font-size:12px; color:var(--text-3); margin-bottom:8px; display:flex; align-items:center; gap:6px; }
.pc-label b { color:var(--accent); }
.pc-episodes { display:flex; gap:7px; flex-wrap:wrap; }
.pc-ep {
  padding:6px 13px; border-radius:8px; font-size:12.5px; cursor:pointer;
  background:var(--surface-2); border:1px solid var(--line); color:var(--text-2); transition:all .15s;
}
.pc-ep:hover { color:var(--accent); }
.pc-ep.active { background:var(--accent-grad); color:#fff; border-color:transparent; font-weight:600; }
.pc-tabs { display:flex; gap:8px; flex-wrap:wrap; }
.ctl-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.ctl-actions .fbtn { padding:6px 12px; font-size:12.5px; }
.ctl-actions .fbtn.active { background:var(--accent-grad); }

/* ---------- 播放前强制广告（腾讯/优酷式片头） ---------- */
.preroll {
  position:absolute; inset:0; z-index:10; background:#000;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.preroll-ad {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
}
.preroll-ad img { max-width:100%; max-height:100%; object-fit:contain; }
.preroll-ad iframe { width:100%; height:100%; border:none; }
.preroll-badge {
  position:absolute; top:14px; right:14px; z-index:2;
  padding:6px 13px; border-radius:8px; font-size:12.5px; color:#fff;
  background:rgba(0,0,0,.55); backdrop-filter:blur(4px);
  border:1px solid rgba(255,255,255,.2); pointer-events:none;
}
.preroll-badge b { color:var(--accent); font-size:14px; }
.preroll-close {
  position:absolute; top:14px; right:14px; z-index:2;
  padding:8px 18px; border-radius:8px; font-size:13px; font-weight:600; border:none;
  background:var(--accent-grad); color:#fff; cursor:pointer;
  box-shadow:0 4px 14px rgba(0,0,0,.45);
}
.preroll-close:hover { filter:brightness(1.08); }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position:fixed; inset:0; z-index:600; background:rgba(5,6,10,.7); backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center; padding:16px;
}
.modal {
  width:100%; max-width:560px; max-height:88vh; overflow-y:auto;
  background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:22px;
  box-shadow:var(--shadow); animation:pop .25s ease;
}
@keyframes pop { from{transform:scale(.94); opacity:0} to{transform:scale(1); opacity:1} }
.modal h3 { font-size:17px; font-weight:700; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.modal .m-close { margin-left:auto; }
.form-group { margin-bottom:14px; }
.form-group label { display:block; font-size:13px; color:var(--text-2); margin-bottom:7px; }
.form-group input, .form-group textarea, .form-group select {
  width:100%; padding:11px 13px; border-radius:11px; border:1px solid var(--line);
  background:var(--surface-2); color:var(--text); font-size:14px; outline:none; transition:border .2s;
}
.form-group input:focus, .form-group textarea:focus { border-color:rgba(255,77,109,.6); }
.form-hint { font-size:12px; color:var(--text-3); margin-top:6px; line-height:1.6; }
.modal-actions { display:flex; gap:10px; margin-top:18px; }
.modal-actions .btn { flex:1; justify-content:center; }

/* ---------- 源管理 ---------- */
.src-list { display:flex; flex-direction:column; gap:9px; margin-top:6px; }
.src-item {
  display:flex; align-items:center; gap:12px; padding:11px 13px; border-radius:12px;
  background:var(--surface-2); border:1px solid var(--line); transition:border .2s;
}
.src-item .si-dot { width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.si-dot.on { background:var(--ok); box-shadow:0 0 8px rgba(47,214,123,.6); }
.si-dot.off { background:var(--text-3); }
.si-dot.err { background:var(--err); }
.src-item .si-name { flex:1; font-size:14px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.src-item .si-info { font-size:11.5px; color:var(--text-3); }
.src-item .si-switch { margin-left:auto; }
.switch { position:relative; width:42px; height:24px; flex-shrink:0; }
.switch input { opacity:0; width:0; height:0; }
.switch .slider { position:absolute; inset:0; border-radius:999px; background:var(--surface); border:1px solid var(--line); transition:.25s; cursor:pointer; }
.switch .slider::before { content:""; position:absolute; width:17px; height:17px; border-radius:50%; background:var(--text-3); top:2px; left:3px; transition:.25s; }
.switch input:checked + .slider { background:var(--accent); border-color:transparent; }
.switch input:checked + .slider::before { transform:translateX(18px); background:#fff; }

/* ---------- 我的页 ---------- */
.mine-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px,1fr)); gap:14px; }
.mine-card {
  padding:22px 18px; border-radius:16px; background:var(--surface); border:1px solid var(--line);
  cursor:pointer; transition:all .2s; display:flex; align-items:center; gap:16px;
}
.mine-card:hover { border-color:rgba(255,77,109,.5); transform:translateY(-2px); }
.mine-card .mc-ico { width:44px; height:44px; border-radius:13px; background:var(--accent-grad); display:flex; align-items:center; justify-content:center; color:#fff; flex-shrink:0; }
.mine-card .mc-ico svg { width:22px; height:22px; fill:currentColor; }
.mine-card .mc-name { font-size:15.5px; font-weight:700; }
.mine-card .mc-desc { font-size:12px; color:var(--text-3); margin-top:3px; }
.sec-block { margin-top:26px; }
.sec-block-title { font-size:16px; font-weight:700; margin-bottom:14px; display:flex; align-items:center; gap:8px; }

/* ---------- 直播 ---------- */
.live-groups { display:flex; flex-direction:column; gap:20px; }
.lg-group-title { font-size:15px; font-weight:700; margin-bottom:10px; display:flex; align-items:center; gap:8px; }
.live-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(130px,1fr)); gap:10px; }
.live-item {
  padding:12px; border-radius:12px; background:var(--surface); border:1px solid var(--line);
  text-align:center; cursor:pointer; transition:all .2s; font-size:13.5px;
}
.live-item:hover { border-color:rgba(255,77,109,.5); color:var(--accent); }
.live-item .li-ico { font-size:20px; margin-bottom:4px; }

/* ---------- Toast ---------- */
.toast-wrap { position:fixed; top:72px; left:50%; transform:translateX(-50%); z-index:900; display:flex; flex-direction:column; gap:8px; align-items:center; pointer-events:none; }
.toast {
  padding:10px 20px; border-radius:12px; background:var(--surface-2); color:var(--text);
  border:1px solid var(--line); font-size:13.5px; box-shadow:var(--shadow);
  animation:tIn .25s ease; max-width:86vw; text-align:center;
}
.toast.ok { border-color:rgba(47,214,123,.5); }
.toast.err { border-color:rgba(255,90,95,.5); }
.toast.tOut { animation:tOut .3s ease forwards; }
@keyframes tIn { from{transform:translateY(-10px); opacity:0} to{transform:translateY(0); opacity:1} }
@keyframes tOut { to{transform:translateY(-10px); opacity:0} }

/* ---------- 移动端底部导航 ---------- */
.bottom-nav {
  display:none; position:fixed; bottom:0; left:0; right:0; z-index:120; height:var(--bn-h);
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:blur(14px); border-top:1px solid var(--line);
  grid-template-columns:repeat(5,1fr);
}
.bn-item { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; color:var(--text-3); font-size:10.5px; transition:color .2s; }
.bn-item svg { width:21px; height:21px; fill:currentColor; }
.bn-item.active { color:var(--accent); }
.bn-item.active svg { filter:drop-shadow(0 0 6px rgba(255,77,109,.6)); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .topbar-inner { gap:12px; padding:0 12px; }
  .main-nav { display:none; }
  .hamburger { display:flex; }
  .main-nav.mobile {
    display:flex; position:fixed; top:var(--topbar-h); left:0; right:0; z-index:99;
    flex-direction:column; background:var(--bg); border-bottom:1px solid var(--line);
    padding:10px 14px; gap:2px; box-shadow:var(--shadow);
  }
  .main-nav.mobile .nav-link { padding:13px 14px; }
  .search-box { width:180px; }
  .hero-inner { padding:28px 20px; }
  .hero h1 { font-size:23px; }
  .detail { grid-template-columns:1fr; }
  .detail-poster { width:180px; margin:0 auto; }
}
@media (max-width: 600px) {
  .app { padding:14px 12px 96px; }
  .topbar { height:56px; }
  :root { --topbar-h:56px; }
  .logo-text { font-size:19px; }
  #topSearch { display:none; }
  .bottom-nav { display:grid; }
  .grid { grid-template-columns:repeat(3, 1fr); gap:13px 10px; }
  .row-scroll { grid-auto-columns:118px; gap:10px; }
  .related-grid { grid-template-columns:repeat(3,1fr); gap:13px 10px; }
  .hero { border-radius:16px; }
  .hero h1 { font-size:21px; }
  .hero p { font-size:12.5px; }
  .detail { padding:16px; gap:18px; }
  .detail-info h1 { font-size:19px; }
  .ep-grid { grid-template-columns:repeat(auto-fill,minmax(60px,1fr)); }
  .player-ctl { max-height:38vh; }
  .modal { padding:18px; }
  .mine-grid { grid-template-columns:1fr 1fr; gap:11px; }
  .footer { padding-bottom:76px; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns:repeat(2,1fr); }
  .related-grid { grid-template-columns:repeat(2,1fr); }
}
