/* 番单 · B 站风格皮肤（浅/深双色） */

:root {
  /* 纯白 + 纯黑：无渐变、无彩色 */
  --pink: #000;
  --pink-d: #000;
  --pink-ink: #000;
  --pink-soft: #fff;
  --pink-cta: #000;
  --pink-cta-d: #000;
  --t1: #000;
  --t2: rgba(0, 0, 0, .64);
  --t3: rgba(0, 0, 0, .46);
  --t4: rgba(0, 0, 0, .24);
  --bg: #fff;
  --bg2: #fff;
  --line: rgba(0, 0, 0, .12);
  --card: #fff;
  --hd1: #fff;
  --hd2: #fff;
  --sh: 0 1px 0 rgba(0, 0, 0, .08);
  --fill: #f4f4f5;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

[data-theme='dark'] {
  /* 纯白 + 纯黑：无渐变、无彩色 */
  --pink: #000;
  --pink-d: #000;
  --pink-ink: #000;
  --pink-soft: #fff;
  --pink-cta: #000;
  --pink-cta-d: #000;
  --t1: #000;
  --t2: rgba(0, 0, 0, .64);
  --t3: rgba(0, 0, 0, .46);
  --t4: rgba(0, 0, 0, .24);
  --bg: #fff;
  --bg2: #fff;
  --line: rgba(0, 0, 0, .12);
  --card: #fff;
  --hd1: #fff;
  --hd2: #fff;
  --sh: 0 1px 0 rgba(0, 0, 0, .08);
  --fill: #f4f4f5;
  color-scheme: light;
}

/* 深色：整页反相，图片再反回去，灰阶照样干净 */
[data-theme='dark'] { background: #000; filter: invert(1); }
[data-theme='dark'] img,
[data-theme='dark'] video { filter: invert(1); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; height: 100%; }

body {
  background: var(--bg);
  color: var(--t1);
  font: 400 14px/1.4 -apple-system, BlinkMacSystemFont, 'PingFang SC', 'HarmonyOS Sans SC', 'Source Han Sans SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
em, i { font-style: normal; }

.app { min-height: 100%; display: flex; flex-direction: column; }

/* ---------------- 顶部 ---------------- */

.hd {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: var(--safe-t);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}

.hd-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 7px;
}

.hd-bar[hidden] { display: none; }

.ava {
  flex: none;
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #000;
}
.ava svg { width: 19px; height: 19px; }

.search {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 18px;
  background: var(--fill);
  border: 0;
}

.search .i-se { width: 16px; height: 16px; flex: none; color: var(--t3); }

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  outline: none;
  font-size: 13px;
  color: var(--t1);
}
.search input::placeholder { color: var(--t3); }
.search input::-webkit-search-cancel-button { display: none; }

.clr { flex: none; width: 17px; height: 17px; color: var(--t4); display: grid; place-items: center; }
.clr[hidden] { display: none; }
.clr svg { width: 17px; height: 17px; }

.hd-btn {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: rgba(0, 0, 0, .72);
}
[data-theme='dark'] .hd-btn { color: rgba(0, 0, 0, .6); }
.hd-btn svg { width: 22px; height: 22px; }

.hd-bar .dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 1.5px var(--hd2);
}
.hd-bar .dot[hidden] { display: none; }
.ava .dot {
  top: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 2px var(--hd2);
}

.hd-bar--back { gap: 4px; }
.hd-ttl {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 32px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 分类 tab */
.tabs {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 0 12px;
  height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  padding: 0;
  font-size: 16px;
  color: var(--t2);
  transition: color .15s;
}
[data-theme='dark'] .tab { color: var(--t2); }

.tab[hidden] { display: none; }
.tab.is-on { color: var(--t1); font-weight: 600; }
.tab.is-on::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 3px;
  border-radius: 2px;
  background: var(--pink);
}

.tab-n { margin-left: 2px; font-size: 11px; color: var(--t3); }
.tab-n:empty { display: none; }

.tab-ic { margin-left: auto; padding: 6px 0 9px; color: rgba(0, 0, 0, .5); }
[data-theme='dark'] .tab-ic { color: rgba(0, 0, 0, .6); }
.tab-ic svg { width: 18px; height: 18px; display: block; }

body.is-detail .tabs { display: none; }
/* 详情页：底栏收起来，顶栏标题滚过 hero 再淡入 */
body.is-detail .bnav { display: none; }
body.is-detail .view { padding-bottom: calc(24px + var(--safe-b)); }
.hd-bar--back .hd-ttl { opacity: 0; transition: opacity .18s; }
.hd-bar--back.is-scrolled .hd-ttl { opacity: 1; }
body.is-detail .hd { background: var(--bg); border-bottom: 1px solid var(--line); }

/* ---------------- 列表 ---------------- */

.view { flex: 1; padding-bottom: calc(64px + var(--safe-b)); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
  padding: 10px 12px 8px;
  max-width: 100%;
  overflow-x: clip;
}

.card { display: block; width: 100%; min-width: 0; text-align: left; }
.card:active .poster { transform: scale(.97); }

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg2);
  transition: transform .12s;
}
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

.p-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1px 5px;
  font-size: 10px;
  line-height: 15px;
  color: #fff;
  border-radius: 0 10px 0 10px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
}
.p-badge.is-vip { background: #000; }

.p-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 26px 9px 8px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, .26) 50%, rgba(0, 0, 0, 0));
}
.p-eps {
  font-size: 11.5px;
  line-height: 1.2;
  opacity: .96;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.p-score {
  flex: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.p-ttl {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.36;
  color: var(--t1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-sub {
  margin-top: 4px;
  font-size: 12px;
  /* 比 --t3 稍深一点：追番数这类小字在白底上要够 4.5:1 */
  color: rgba(0, 0, 0, .55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-theme='dark'] .p-sub { color: rgba(0, 0, 0, .6); }

.sec-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 16px 8px;
  font-size: 15px;
  font-weight: 600;
}
.sec-h::before { content: ''; width: 3px; height: 13px; border-radius: 2px; background: var(--pink); }
.sec-h i { font-size: 12px; font-weight: 400; color: var(--t3); }

/* 骨架 / 空 / 错 */
.sk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 11px; padding: 6px 12px; }
.sk-card { animation: pulse 1.4s ease-in-out infinite; }
.sk-poster { aspect-ratio: 3 / 4; border-radius: 6px; background: var(--bg2); }
.sk-t { height: 11px; margin-top: 7px; border-radius: 3px; background: var(--bg2); }
.sk-t.s { width: 60%; height: 9px; margin-top: 5px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.empty, .err { padding: 64px 32px; text-align: center; color: var(--t3); }
.empty .big, .err .big { margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--t1); }
.empty .art { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink); }
.empty .art svg { width: 40px; height: 40px; }
.empty button, .err button {
  margin-top: 16px;
  padding: 7px 20px;
  border-radius: 15px;
  font-size: 13px;
  color: var(--pink);
  border: 1px solid var(--pink);
}

/* ---------------- 详情 ---------------- */

.dt { padding-top: 2px; }

.dt-hero { position: relative; padding: 4px 16px 0; overflow: hidden; }
.dt-hero::before {
  content: '';
  position: absolute;
  inset: -20px 0 auto;
  height: 210px;
  background-image: var(--cover-url, none);
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(1.3);
  opacity: .5;
  transform: scale(1.15);
}
.dt-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .55), rgba(255, 255, 255, .72) 62%, var(--bg));
}

.dt-top { position: relative; z-index: 1; display: flex; gap: 12px; }

.dt-cover {
  flex: none;
  width: 96px;
  height: 128px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.dt-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dt-info { min-width: 0; padding-top: 4px; }
.dt-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dt-rate { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.dt-rate b { font-size: 20px; font-weight: 700; color: var(--pink-ink); letter-spacing: -.5px; }
.dt-rate span { font-size: 11px; color: var(--t3); }

.dt-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.dt-tag {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--pink-ink);
  background: var(--pink-soft);
}
.dt-tag.gray { color: var(--t2); background: var(--bg2); }

.dt-acts { position: relative; z-index: 1; display: flex; gap: 8px; padding: 16px 16px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-main { flex: 1; color: #fff; background: var(--pink-cta); }
.btn-main:active { background: var(--pink-cta-d); }
.btn-ghost { color: var(--t1); border: 1px solid var(--t4); background: transparent; }
.btn-ghost.on { color: var(--pink); border-color: var(--pink); background: var(--pink-soft); }
.btn-ic { flex: none; width: 44px; padding: 0; color: var(--t2); border: 1px solid var(--t4); }

.dt-sum { padding: 16px 16px 2px; }
.dt-sum p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--t2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dt-sum p.open { -webkit-line-clamp: unset; display: block; }
.dt-sum .more { margin-top: 6px; font-size: 12px; color: var(--t3); }
.dt-sum .more::after { content: ' ∨'; }
.dt-sum .more.on::after { content: ' ∧'; }

.eps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 2px 16px 6px; }

.ep {
  position: relative;
  height: 44px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid var(--line);
  color: var(--t1);
  background: var(--bg2);
  display: grid;
  place-items: center;
  padding: 0 3px;
  white-space: nowrap;
  overflow: hidden;
}
.ep:active { background: var(--line); }
.ep.on { color: #fff; background: var(--pink); }
.ep .v { position: absolute; top: 3px; right: 3px; font-size: 9px; line-height: 1; padding: 2px 3px; color: #fff; background: var(--pink); border-radius: 3px; }
.ep.on .v { background: rgba(0, 0, 0, .22); }
.ep-more { margin: 6px 16px 4px; width: calc(100% - 32px); }

/* ---------------- 我的 ---------------- */

.me-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 16px;
  background: var(--bg);
}
.me-ava {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  background: #000;
}
.me-name { font-size: 17px; font-weight: 600; }
.me-sub { margin-top: 3px; font-size: 12px; color: var(--t3); }

.rows { margin-top: 8px; }
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
.row-ic { width: 22px; height: 22px; flex: none; color: var(--pink); }
.row-t { flex: 1; font-size: 14px; }
.row-v { font-size: 13px; color: var(--t3); }
.row-arrow { width: 16px; height: 16px; color: var(--t4); flex: none; }

/* ---------------- 追番 / 观看记录列表 ---------------- */

.hlist { display: flex; flex-direction: column; }

.hrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.hrow:active { background: var(--bg2); }

.hcover {
  position: relative;
  flex: none;
  width: 64px;
  height: 86px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg2);
}
.hcover img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hno { display: block; width: 100%; height: 100%; background: var(--bg2); }
.hno.hglyph { display: grid; place-items: center; font-style: normal; font-size: 26px; font-weight: 700; color: var(--t2); box-shadow: inset 0 0 0 1px var(--line); }

.hplay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .48);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.hprog { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--pink); }

.hmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.htitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hsub { font-size: 12px; color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hsub.dim { color: var(--t3); }
.hdot { margin: 0 4px; color: var(--t4); }

.hx {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--t3);
  font-size: 13px;
}
.hx:active { background: var(--bg2); color: var(--t1); }

.switch { width: 40px; height: 22px; border-radius: 11px; background: var(--line); position: relative; transition: background .18s; }
.switch.on { background: var(--pink); }
.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .18s;
}
.switch.on::after { transform: translateX(18px); }

/* ---------------- 底部导航 ---------------- */

.bnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  padding: 0 4px var(--safe-b);
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -1px 8px rgba(0, 0, 0, .05);
}
[data-theme='dark'] .bnav { box-shadow: none; }

.bn {
  flex: 1;
  height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--t2);
  font-size: 10px;
  transition: color .15s;
}
.bn svg { width: 23px; height: 23px; }
.bn.is-on { color: var(--pink-ink); }
.bn.is-on span { font-weight: 600; }

/* ---------------- 播放器 ---------------- */

.player {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: #000;
  color: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.player[hidden] { display: none; }

.p-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(6px + var(--safe-t)) 8px 6px;
  background: #000;
}
.p-top > * { pointer-events: auto; }

.p-btn { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; }
.p-btn svg { width: 22px; height: 22px; }

.p-hd-ttl { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; overflow: hidden; color: #fff; }
.p-hd-ttl b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.p-dm {
  flex: none;
  height: 26px;
  padding: 0 11px;
  border-radius: 13px;
  font-size: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
}
.p-dm.off { color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .1); }

.p-stage {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 58vh;
  background: #000;
  /* 手势层自己处理横滑/竖滑，别让浏览器抢去做双击缩放和滚动 */
  touch-action: manipulation;
  overscroll-behavior: contain;
}
.p-stage video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }

.dm-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dm-layer.off { display: none; }

/* 手势层：亮度遮罩 + 手势提示（都不吃触摸） */
.p-dim {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s linear;
}
.p-ges {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translate(-50%, -6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(6px);
  transition: opacity .16s ease, transform .16s ease;
}
.p-ges.on { opacity: 1; transform: translate(-50%, 0); }
.p-ges b { font-size: 15px; font-weight: 700; }
.p-ges span { color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; }
.dm {
  position: absolute;
  white-space: nowrap;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 0 1px rgba(0, 0, 0, .6);
  will-change: transform;
  left: 0;
}
.dm.mine {
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 7px rgba(0, 0, 0, .85);
}
.dm.mine::after {
  content: '我';
  margin-left: 5px;
  padding: 0 4px;
  border-radius: 4px;
  font-size: .68em;
  font-weight: 700;
  color: #fff;
  background: var(--pink);
  vertical-align: middle;
}

.p-splash {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  background: rgba(0, 0, 0, .5);
  text-align: center;
  padding: 0 24px;
  line-height: 1.6;
}
.p-splash[hidden] { display: none; }

.p-info {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 14px 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .8);
  overflow-wrap: anywhere;
}

.p-info #pEp {
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.p-qual {
  flex: none;
  margin-top: 1px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .1);
}

.p-eps-wrap { padding: 4px 0 calc(16px + var(--safe-b)); }

.p-about { padding: 6px 14px calc(20px + var(--safe-b)); }
.p-about[hidden] { display: none; }
.p-about-h {
  margin-bottom: 7px;
  font-size: 12px;
  color: rgba(255, 255, 255, .62);
}
.p-about-t {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .68);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.p-about-t.open {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.p-about-more {
  margin-top: 6px;
  padding: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, .62);
  background: none;
}
.p-about-more[hidden] { display: none; }

.p-eps-h {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 14px 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, .62);
}
.p-eps-h span { font-size: 11px; color: rgba(255, 255, 255, .52); }

.eps-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 6px;
}
.eps-row button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  text-align: left;
  min-width: 0;
  width: 100%;
  height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .12);
  white-space: nowrap;
  overflow: hidden;
}
.eps-row button b { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.eps-row button i {
  min-width: 0;
  font-style: normal;
  font-size: 11.5px;
  opacity: .6;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eps-row button.on { color: #fff; background: var(--pink); }
.eps-row button.on i { opacity: .88; }

@media (max-width: 559px) {
  .eps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------- 提示 ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + var(--safe-b));
  z-index: 80;
  transform: translateX(-50%);
  max-width: 78vw;
  padding: 9px 16px;
  border-radius: 18px;
  font-size: 13px;
  color: #fff;
  background: rgba(0, 0, 0, .88);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}
.toast[hidden] { display: none; }

@media (min-width: 560px) {
  .grid, .sk-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
  .eps { grid-template-columns: repeat(8, 1fr); }
  .app { max-width: 720px; margin: 0 auto; }
  .bnav { left: 50%; right: auto; width: 100%; max-width: 720px; transform: translateX(-50%); }
}

/* ---------------- 详情页：数据行 / 番剧信息 / 猜你喜欢 ---------------- */

.dt-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px 0;
  font-size: 12px;
  color: var(--t3);
}
.dt-meta b { font-weight: 600; color: var(--t2); }

.info-list { padding: 0 16px; }
.info-row {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.info-row:last-child { border-bottom: 0; }
.info-k {
  flex: none;
  width: 52px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--t3);
}
.info-v {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--t2);
  overflow-wrap: anywhere;
}
.info-v.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.info-v.clamp.open { display: block; -webkit-line-clamp: unset; }

.rel-rail {
  display: flex;
  gap: 10px;
  padding: 2px 14px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.rel-rail::-webkit-scrollbar { display: none; }
.rel-rail .card {
  flex: none;
  width: 100px;
  scroll-snap-align: start;
}
.rel-rail .p-score { font-size: 13px; }
.rel-rail .p-ttl {
  font-size: 13px;
  margin-top: 6px;
  -webkit-line-clamp: 2;
}
.rel-rail .p-sub { font-size: 11.5px; }

/* 播放页：播放量 / 互动数 */

.p-stat {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .55);
}
.p-stat i { font-style: normal; color: rgba(255, 255, 255, .28); }
.p-stat[hidden] { display: none; }

.p-acts {
  flex: none;
  display: flex;
  gap: 22px;
  padding: 10px 14px 2px;
}
.p-acts[hidden] { display: none; }
.p-act { display: flex; flex-direction: column; gap: 2px; }
.p-act b { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .88); }
.p-act i { font-style: normal; font-size: 10.5px; color: rgba(255, 255, 255, .5); }

/* ---------------- 桌面版（≥1100）：独立的一套班排 ---------------- */
/* 手机仍是「顶栏 + 底部 tab + 两列」，桌面换成「两行页头 + 1320 居中 + 六列 + 详情左右分栏」 */

@media (min-width: 1100px) {
  .app { max-width: none; margin: 0; }

  /* 页头第一行：番单 / 居中搜索 / 头像；第二行：分类导航 */
  .hd {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: sticky;
    top: 0;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .03);
  }
  .hd-bar {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px) 1fr;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 0;
  }
  #barList::before {
    content: '番单';
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .06em;
  }
  .hd-bar .search {
    grid-column: 2;
    grid-row: 1;
    height: 38px;
    border-radius: 8px;
  }
  .hd-bar .search input { font-size: 14px; }
  .ava { grid-column: 3; grid-row: 1; justify-self: end; width: 34px; height: 34px; }

  .hd-bar--back {
    display: flex;
    gap: 10px;
    max-width: 1200px;
    padding: 8px 0;
  }
  .hd-bar--back .hd-ttl { font-size: 18px; }
  .hd-btn { width: 36px; height: 36px; }

  .tabs {
    width: 100%;
    max-width: 1320px;
    height: 48px;
    margin: 0 auto;
    padding: 0;
    gap: 26px;
    overflow: visible;
  }
  .tab { font-size: 15px; }
  .tab:hover { color: var(--t1); }
  .tab.is-on::after { bottom: 9px; }
  .tab.is-on:hover { color: var(--pink-ink); }
  .tab-ic { display: none; }

  /* 列表区 */
  .view { width: 100%; max-width: 1320px; margin: 0 auto; padding-bottom: 40px; }
  .grid, .sk-grid {
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
    gap: 26px 16px;
    padding: 18px 0 24px;
  }
  .sk-grid { padding: 18px 0; }
  .card { width: auto; }
  .p-ttl { margin-top: 9px; font-size: 15px; line-height: 22px; font-weight: 500; }
  .p-sub { font-size: 12.5px; line-height: 18px; }
  .card:hover .poster { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .13); }
  .card:hover .p-ttl { color: var(--pink-ink); }
  .card:focus-visible { outline: 0; }
  .card:focus-visible .poster { outline: 2px solid var(--pink); outline-offset: 3px; }
  .bnav { display: none; }
  .toast { bottom: 28px; }

  /* 列表型页面收成阅读宽度，别拉满 1320 */
  .hlist, .rows, .me-head,
  .dl-head, .dl-sum, .dl-list { max-width: 900px; margin-left: auto; margin-right: auto; }

  /* 详情：正文 + 右侧猜你喜欢 */
  .dt {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 36px;
    align-items: start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 24px;
  }
  .dt-main { min-width: 0; }
  .dt-side { position: sticky; top: 78px; }

  .dt-hero { padding: 22px 0 0; }
  .dt-hero::before { inset: -20px 0 auto; height: 260px; }
  .dt-top { gap: 20px; align-items: flex-start; }
  .dt-cover { width: 150px; height: 200px; border-radius: 10px; }
  .dt-info { padding-top: 6px; }
  .dt-title { font-size: 26px; line-height: 1.25; margin-bottom: 12px; -webkit-line-clamp: 2; }
  .dt-rate b { font-size: 24px; }
  .dt-tag { font-size: 12px; padding: 3px 9px; }

  .dt-acts { padding: 20px 0 0; gap: 10px; }
  .dt-acts .btn-main { flex: none; min-width: 200px; }
  .dt-acts .btn { height: 42px; }
  .dt-meta { padding: 14px 0 0; font-size: 12.5px; gap: 18px; }
  .dt-sum { padding: 18px 0 0; }
  .dt-sum p { font-size: 14px; line-height: 1.75; }
  .dt-sum .more { font-size: 12.5px; }

  .dt-main .sec-h { margin: 26px 0 12px; font-size: 16px; }
  .dt-side .sec-h { margin: 0 0 12px; font-size: 15px; }

  .eps { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; padding: 0; }
  .ep { height: 42px; font-size: 13.5px; }
  .ep:hover { border-color: var(--pink); color: var(--pink-ink); }
  .ep.on:hover { color: #fff; }
  .ep-more { width: auto; margin: 12px 0 0; padding: 0 22px; }

  .info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; padding: 0; }
  .info-row { padding: 12px 0; }

  .dt-side .rel-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .dt-side .rel-rail .card { width: auto; }
  .dt-side .rel-rail .p-ttl { font-size: 12.5px; line-height: 17px; }
  .dt-side .rel-rail .p-sub { font-size: 11px; }

  /* 播放器：限宽居中，别让 16:9 撑出屏幕 */
  .player { align-items: center; }
  .player > * { width: 100%; max-width: 1320px; }
  .p-stage { max-width: min(1320px, calc((100vh - 300px) * 16 / 9)); max-height: none; }
  .p-top { padding: 12px 4px; }
  .p-eps-wrap { padding: 16px 0 44px; }
  .p-eps-h { padding: 2px 4px 10px; font-size: 12.5px; }
  .eps-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 0 4px 8px; }
  .ep-more { margin: 12px 4px 0; width: auto; padding: 0 18px; }
  .p-hd-ttl b { font-size: 15px; }
  .p-ctl { padding: 12px 4px 0; gap: 10px; }
  .p-cbtn { height: 32px; font-size: 13px; }
  .p-info { padding: 12px 4px 0; }
  .p-acts { padding: 12px 4px 0; }
  .p-resume, .dm-send { margin-left: 4px; margin-right: 4px; }
}

/* ---------------- 索引 / 排行 / 时间表 ---------------- */

.flt { display: none; padding: 6px 12px 10px; border-bottom: 1px solid var(--line); }
.flt.open { display: block; }
.flt-sk { height: 300px; margin: 12px; border-radius: 10px; background: var(--bg2); animation: pulse 1.4s ease-in-out infinite; }

.flt-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.flt-c { flex: 1; font-size: 12px; color: var(--t3); }
.flt-c b { font-weight: 600; color: var(--t2); }
.flt-t {
  padding: 6px 15px;
  border: 0;
  border-radius: 99px;
  background: var(--bg2);
  color: var(--t2);
  font: inherit;
  font-size: 12px;
}
.flt-t:active { color: var(--pink-ink); }

.frow { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; }
.flb { flex: none; width: 34px; padding-top: 5px; font-size: 12px; color: var(--t3); }
.fvs { display: flex; flex: 1; flex-wrap: wrap; gap: 2px 4px; min-width: 0; }
.fv {
  padding: 5px 9px;
  border: 0;
  border-radius: 99px;
  background: none;
  color: var(--t2);
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
}
.fv.is-on { background: var(--pink-soft); color: var(--pink-ink); font-weight: 600; }
.fv-dir { color: var(--t3); }
.fv-dir.is-on { color: var(--pink-ink); }

.more { padding: 16px 12px 28px; text-align: center; }
.more button {
  padding: 9px 26px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--bg);
  color: var(--t2);
  font: inherit;
  font-size: 13px;
}
.more button:active { border-color: var(--pink); color: var(--pink); }

.seg-bar { display: flex; gap: 6px; padding: 12px 12px 4px; }
.seg {
  padding: 6px 16px;
  border: 0;
  border-radius: 99px;
  background: var(--bg2);
  color: var(--t2);
  font: inherit;
  font-size: 13px;
}
.seg.is-on { background: var(--pink-cta); color: #fff; font-weight: 600; }

.ri {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
}
.ri + .ri { border-top: 1px solid var(--line); }
.ri:active { background: var(--bg2); }
.ri-n {
  flex: none;
  width: 22px;
  text-align: center;
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  color: var(--t3);
  font-variant-numeric: tabular-nums;
}
.ri-n.top { color: var(--pink); }
.ri-cv { flex: none; width: 52px; height: 70px; border-radius: 5px; overflow: hidden; background: var(--bg2); }
.ri-cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ri-m { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; }
.ri-t {
  font-size: 14px;
  line-height: 1.35;
  color: var(--t1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ri-s { font-size: 12px; color: var(--t3); }
.ri-sc { flex: none; align-self: flex-start; margin-top: 2px; font-size: 13px; font-weight: 600; color: #000; font-variant-numeric: tabular-nums; }

.ri-sk .ri { pointer-events: none; }
.rk-grid .ri { content-visibility: auto; contain-intrinsic-size: auto 92px; }
.ri-cv-sk { animation: pulse 1.4s ease-in-out infinite; }

.tl { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 26px; }
.tl-col { padding: 4px 12px 10px; border-radius: 10px; }
.tl-h { display: flex; align-items: center; gap: 7px; padding: 6px 0 8px; font-size: 13px; font-weight: 600; color: var(--t1); }
.tl-h span { font-size: 12px; font-weight: 400; color: var(--t3); }
.tl-col.is-today { background: var(--pink-soft); }
.tl-col.is-today .tl-h { color: var(--pink-ink); }
.tl-col.is-today .tl-h span { color: var(--pink); }
.tl-col.is-today .tl-ep { background: var(--bg); }
.tl-eps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tl-ep {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px;
  border: 0;
  border-radius: 6px;
  background: var(--bg2);
  text-align: left;
  font: inherit;
  color: inherit;
}
.tl-ep:active { background: var(--pink-soft); }
.tl-cv { flex: none; width: 40px; height: 54px; border-radius: 4px; overflow: hidden; background: var(--bg); }
.tl-cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-m { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tl-t {
  font-size: 12px;
  line-height: 1.3;
  color: var(--t1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tl-e { font-size: 11px; color: var(--pink-ink); }
.tl-none { padding: 8px 2px; font-size: 12px; color: var(--t3); }

@media (min-width: 1100px) {
  .flt { display: block; padding: 8px 12px 12px; }
  .flt-t { display: none; }
  .frow { align-items: center; padding: 7px 0; }
  .flb { width: 44px; padding-top: 0; font-size: 13px; }
  .fvs { gap: 2px 6px; }
  .fv:hover { background: var(--bg2); }
  .fv.is-on:hover { background: var(--pink-soft); }
  .seg-bar { padding: 16px 12px 6px; }
  .ri { padding: 12px; }
  .ri:hover { background: var(--bg2); }
  .ri-cv { width: 62px; height: 84px; }
  .ri-t { font-size: 15px; }
  .tl { flex-direction: row; align-items: flex-start; gap: 10px; padding: 10px 12px 34px; }
  .tl-col { flex: 1 1 0; min-width: 0; padding: 6px 8px 10px; }
  .tl-eps { grid-template-columns: minmax(0, 1fr); }
  .tl-col.is-today { box-shadow: inset 0 2px 0 var(--pink); }
}

/* 排行榜：宽屏走多列网格，省掉大片空白 */
.rk-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.rk-grid .ri { border-radius: 8px; }

@media (min-width: 560px) {
  .rk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
  .rk-grid .ri + .ri { border-top: 0; }
  .rk-grid .ri { border-bottom: 1px solid var(--line); }
}

@media (min-width: 1100px) {
  .rk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; padding: 0 12px 30px; }
  .rk-grid .ri + .ri { border-top: 0; }
  .rk-grid .ri { padding: 12px 10px; border-bottom: 1px solid var(--line); }
}

/* ---------------- 搜索联想 ---------------- */

.sg {
  position: absolute;
  top: calc(100% + 7px);
  left: -6px;
  right: -6px;
  z-index: 45;
  padding: 5px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  animation: sgdrop .16s ease;
}
.sg[hidden] { display: none; }
@keyframes sgdrop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.sg-h {
  padding: 6px 9px 5px;
  font-size: 11.5px;
  color: var(--t3);
}

.sg-i {
  display: block;
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.35;
  text-align: left;
  color: var(--t1);
  background: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sg-i.on { background: var(--bg2); }

/* 无限滚动哨兵：不占位，只给 IntersectionObserver 一个参照点 */
.sentinel { height: 1px; }

/* ---------------- 登录 / 注册 ---------------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet[hidden] { display: none; }

.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .46);
  animation: fadein .18s ease;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.sheet-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 12px 18px calc(16px + var(--safe-b));
  border-radius: 18px 18px 0 0;
  background: var(--card);
  box-shadow: 0 -10px 34px rgba(0, 0, 0, .22);
  animation: sheetup .24s cubic-bezier(.2, .8, .2, 1);
}
@keyframes sheetup { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

.sheet-h {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}
.sheet-h b { flex: 1; font-size: 16px; font-weight: 600; color: var(--t1); }
.sheet-x {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--t2);
  background: var(--bg2);
}
.sheet-x svg { width: 16px; height: 16px; }

.auth-tabs {
  display: flex;
  gap: 4px;
  margin: 12px 0 14px;
  padding: 3px;
  border-radius: 11px;
  background: var(--bg2);
}
.at {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--t2);
  background: none;
  transition: color .15s, background .15s;
}
.at.is-on {
  color: var(--pink-ink);
  font-weight: 600;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.fi { display: block; margin-bottom: 10px; }
.fi[hidden] { display: none; }
.fi > span {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--t2);
}
.fi > input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  color: var(--t1);
  background: var(--bg2);
  outline: none;
  transition: border-color .15s, background .15s;
}
.fi > input::placeholder { color: var(--t3); }
.fi > input:focus { border-color: var(--pink); background: var(--card); }

.cap {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.cap img {
  flex: none;
  width: 116px;
  height: 40px;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
  cursor: pointer;
}
.cap-r {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cap-r input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--t1);
  background: var(--bg2);
  outline: none;
}
.cap-r input:focus { border-color: var(--pink); background: var(--card); }
.cap-refresh {
  flex: none;
  height: 40px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--pink-ink);
  background: var(--pink-soft);
  white-space: nowrap;
}

/* 蜜罐字段：正常用户看不到，机器人会填 */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.auth-err {
  margin: 2px 0 10px;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #000;
  background: rgba(0, 0, 0, .09);
}
.auth-err[hidden] { display: none; }

.btn-block {
  display: flex;
  width: 100%;
  height: 42px;
  margin-top: 2px;
  border-radius: 21px;
  font-size: 15px;
  flex: 0 0 auto;
}
.btn-block:disabled { opacity: .6; }

.auth-tip {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--t3);
}

/* ---------------- 播放器：附加控件 ---------------- */

.p-ctl {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 0;
}
.p-cbtn {
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .12);
  white-space: nowrap;
}
.p-cbtn b { font-weight: 600; color: #fff; }
.p-cbtn:active { background: rgba(255, 255, 255, .2); }
.p-cbtn:disabled { color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); }

.p-resume {
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 9px 14px 0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.4;
  text-align: left;
  color: rgba(255, 255, 255, .9);
  background: rgba(0, 0, 0, .16);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .34);
}
.p-resume[hidden] { display: none; }
.p-resume b { font-weight: 600; color: var(--pink); }

.dm-send {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 0;
}
.dm-send input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 17px;
  font-size: 13px;
  color: #fff;
  background: rgba(255, 255, 255, .13);
  outline: none;
}
.dm-send input::placeholder { color: rgba(255, 255, 255, .42); }
.dm-send input:focus { background: rgba(255, 255, 255, .19); }
.dm-send button {
  flex: none;
  height: 34px;
  padding: 0 15px;
  border-radius: 17px;
  font-size: 13px;
  color: #fff;
  background: var(--pink);
}
.dm-send button:disabled { opacity: .45; }

/* ---------------- 播放器：弹幕设置面板 ---------------- */

/* 底部上滑面板：不挤压播放器内容，视频保持可见 */
.dm-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  margin: 0 auto;
  width: 100%;
  max-width: 520px;
  max-height: 76vh;
  overflow-y: auto;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: rgba(0, 0, 0, .97);
  box-shadow: 0 -12px 34px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .92);
  animation: dpUp .22s cubic-bezier(.22, .8, .3, 1);
  backdrop-filter: blur(14px);
}
.dm-panel[hidden] { display: none; }

/* 换源面板：清晰度 + 线路 */
.ps-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 69;
  margin: 0 auto;
  width: 100%;
  max-width: 520px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: rgba(0, 0, 0, .97);
  box-shadow: 0 -12px 34px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .92);
  animation: dpUp .22s cubic-bezier(.22, .8, .3, 1);
  backdrop-filter: blur(14px);
}
.ps-panel[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .ps-panel { animation: none; } }
/* 宽屏改成贴在控制条上方的浮层，不压弹幕输入框 */
@media (min-width: 900px) {
  .ps-panel {
    left: auto;
    right: 24px;
    bottom: 128px;
    width: 340px;
    max-width: 340px;
    max-height: 60vh;
    border-radius: 12px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .62), inset 0 0 0 1px rgba(255, 255, 255, .1);
    animation: psPop .16s cubic-bezier(.22, .8, .3, 1);
  }
}
@keyframes psPop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ps-sec { margin-top: 12px; }
.ps-t { margin-bottom: 7px; font-size: 12px; color: rgba(255, 255, 255, .55); }
.ps-tip { color: rgba(255, 255, 255, .35); }
.ps-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-chip {
  padding: 7px 12px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .88);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.2;
}
.ps-chip:active { background: rgba(255, 255, 255, .22); }
.ps-chip.on { background: #fff; color: #000; }
.ps-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: left;
}
.ps-line b { font-weight: 600; }
.ps-line i { font-style: normal; font-size: 10.5px; color: rgba(255, 255, 255, .5); }
.ps-line.on i { color: rgba(0, 0, 0, .55); }
.ps-none { font-size: 12px; color: rgba(255, 255, 255, .4); }
@keyframes dpUp { from { transform: translateY(102%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .dm-panel { animation: none; } }
.dp-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2px;
}
.dp-h b { font-size: 14px; font-weight: 600; }
.dp-x {
  height: 26px;
  padding: 0 11px;
  border-radius: 13px;
  font-size: 12.5px;
  color: var(--pink);
  background: rgba(0, 0, 0, .14);
}
.dp-x:active { background: rgba(0, 0, 0, .24); }

.dp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.dp-h + .dp-row { border-top: 0; }
.dp-row > span { flex: none; width: 58px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.dp-row input[type='range'] {
  flex: 1;
  min-width: 0;
  height: 20px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.dp-row input[type='range']::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .18);
}
.dp-row input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--pink);
}
.dp-row input[type='range']::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .18);
}
.dp-row input[type='range']::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--pink);
}
.dp-v {
  flex: none;
  width: 40px;
  text-align: right;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.dp-row--sw { justify-content: space-between; }
.dp-row--sw > span { width: auto; font-size: 13px; color: rgba(255, 255, 255, .84); }
.dp-row--sw .switch { flex: none; }
.dp-row--txt input[type='text'] {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  font-size: 12.5px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  outline: none;
}
.dp-row--txt input[type='text']::placeholder { color: rgba(255, 255, 255, .34); }
.dp-row--txt input[type='text']:focus { background: rgba(255, 255, 255, .16); }

.dp-f {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.dp-f button {
  flex: 1;
  height: 32px;
  border-radius: 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .11);
}
.dp-f button:last-child { color: #fff; background: var(--pink); }
.dp-f button:active { opacity: .8; }

@media (min-width: 560px) {
  .sheet { align-items: center; }
  .sheet-card {
    border-radius: 18px;
    padding-bottom: 18px;
  }
}
/* ---------------- 下载（动漫资源） ---------------- */

.dl-head { padding: 10px 12px 0; }
.dl-q {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 6px 0 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--bg2);
}
.dl-q svg { width: 17px; height: 17px; flex: none; color: var(--t3); }
.dl-q input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--t1);
  outline: none;
  -webkit-appearance: none;
}
.dl-q input::placeholder { color: var(--t3); }
.dl-q input::-webkit-search-cancel-button { display: none; }
.dl-clr {
  flex: none;
  padding: 4px 10px;
  border: 0;
  border-radius: 99px;
  background: none;
  color: var(--t3);
  font: inherit;
  font-size: 12px;
}
.dl-clr[hidden] { display: none; }
.dl-clr:active { color: var(--t1); }

.dl-sum { padding: 8px 0 2px; font-size: 12px; color: var(--t3); }

.dl-list { padding: 2px 12px 28px; }
.dl-item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.dl-item:last-child { border-bottom: 0; }
.dl-t {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--t1);
  text-align: left;
  overflow-wrap: anywhere;
}
.dl-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--t3);
}
.dl-src {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
  color: var(--t2);
}
.dl-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dl-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border: 1px solid var(--t4);
  border-radius: 99px;
  background: transparent;
  color: var(--t1);
  font: inherit;
  font-size: 12px;
  text-decoration: none;
}
.dl-btn:active { border-color: var(--pink); }
.dl-btn.on { border-color: var(--pink-cta); background: var(--pink-cta); color: #fff; }
.dl-mag {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg2);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--t2);
  white-space: pre-line;
  overflow-wrap: anywhere;
  max-height: 190px;
  overflow-y: auto;
  overscroll-behavior: contain;
  user-select: text;
  -webkit-user-select: text;
}

.hd.no-search #searchBox { display: none; }

.dl-list + .seg-bar,
#dlSegs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
#dlSegs::-webkit-scrollbar { display: none; }
#dlSegs .seg { flex: 0 0 auto; white-space: nowrap; }

body.is-dl .hd #searchBox { display: none; }

/* ---------- 漫画 / 小说 ---------- */

.bk-head { padding: 10px 12px 0; }
.bk-head .dl-q { margin-top: 2px; }
#bkSegs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#bkSegs::-webkit-scrollbar { display: none; }
#bkSegs .seg { flex: 0 0 auto; white-space: nowrap; }

#bkSegs.can-scroll,
#dlSegs.can-scroll {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 40px), transparent 100%);
}
#bkSegs.can-scroll:not(.at-start),
#dlSegs.can-scroll:not(.at-start) {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 30px, #000 calc(100% - 40px), transparent 100%);
}
#bkSegs.can-scroll.at-end,
#dlSegs.can-scroll.at-end {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30px, #000 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 30px, #000 100%);
}

.bk-hit { padding: 10px 12px 2px; font-size: 12px; color: var(--t3); }

.bk-item {
  display: flex;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: inherit;
  font: inherit;
  align-items: center;
}
.bk-item:active { background: rgba(0, 0, 0, .04); }

.bk-cov {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.bk-cov img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bk-cov i { font-style: normal; font-size: 19px; color: var(--t3); }

.bk-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bk-t {
  font-size: 14.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bk-meta { font-size: 12px; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 阅读器 */
body.is-rd { overflow: hidden; }

#rd {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
#rd[hidden] { display: none; }

.rd-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: calc(6px + var(--safe-t)) 8px 6px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.rd-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rd-t b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-t span { font-size: 11.5px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rd-ic {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: inherit;
  border-radius: 50%;
}
.rd-ic:active { background: rgba(0, 0, 0, .06); }
.rd-ic svg { width: 22px; height: 22px; }

.rd-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

.rd-imgs { display: flex; flex-direction: column; }
.rd-imgs img { width: 100%; display: block; min-height: 120px; background: var(--bg2); }

.rd-text { padding: 16px 18px 40px; line-height: 1.95; color: var(--t1); }
.rd-text p { margin: 0 0 .85em; }
.rd-text p.ind { text-indent: 2em; }

.rd-load { padding: 56px 16px; text-align: center; color: var(--t3); font-size: 13px; }

.rd-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px calc(8px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: var(--bg);
}

/* 听书条 */
.tts-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  overflow-x: auto;
  scrollbar-width: none;
}
.tts-bar[hidden] { display: none; }
.tts-bar::-webkit-scrollbar { display: none; }
.tts-play {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 17px;
  background: var(--t1);
  color: var(--bg);
  font: inherit;
  font-size: 13px;
  letter-spacing: .02em;
}
.tts-play:active { opacity: .82; }
.tts-b {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15px;
  line-height: 1;
  padding: 0;
}
.tts-pos { flex: 0 0 auto; font-size: 11.5px; color: var(--t3); font-variant-numeric: tabular-nums; }
.tts-sel {
  flex: 1 1 104px;
  min-width: 92px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: inherit;
  font: inherit;
  font-size: 12px;
  padding: 0 2px;
}
.tts-rate-b {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.tts-x {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 0;
  background: none;
  color: var(--t3);
  font: inherit;
  font-size: 13px;
  padding: 0;
}
.rd-nav.on { background: rgba(0, 0, 0, .07); }
.rd-nav {
  flex: 1;
  height: 38px;
  border: 1px solid var(--line);
  background: none;
  border-radius: 19px;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
}
.rd-nav:active { background: rgba(0, 0, 0, .06); }
.rd-nav[disabled] { opacity: .32; }
.rd-nav.sm { flex: 0 0 auto; width: 52px; font-size: 12.5px; }
.rd-fs { display: flex; gap: 6px; }

.rd-toc { position: absolute; inset: 0; background: rgba(0, 0, 0, .3); display: flex; flex-direction: column; justify-content: flex-end; }
.rd-toc-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: #fff; font-size: 13px; }
.rd-toc-h button { background: none; border: 0; color: #fff; font-size: 13px; font-family: inherit; }
.rd-toc-list {
  background: var(--bg);
  border-radius: 14px 14px 0 0;
  max-height: 68vh;
  overflow-y: auto;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.rd-ch {
  text-align: left;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rd-ch.on { border-color: currentColor; font-weight: 600; }

/* ---------- 统一搜索 / 影视 / 评论 ---------- */

.ub-note { padding: 10px 12px 24px; font-size: 12px; color: var(--t3); }

.fs { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .34); display: flex; align-items: flex-end; }
.fs-box {
  width: 100%;
  background: var(--bg);
  border-radius: 16px 16px 0 0;
  padding: 14px 16px calc(16px + var(--safe-b));
  max-height: 82vh;
  overflow-y: auto;
}
.fs-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fs-h b { font-size: 16px; font-weight: 600; }
.fs-h button { width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; color: inherit; padding: 0; }
.fs-h svg { width: 20px; height: 20px; }
.fs-body { display: flex; gap: 12px; margin: 12px 0; }
.fs-cov { width: 88px; height: 124px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: 0 0 auto; }
.fs-info { font-size: 13px; color: var(--t2); line-height: 1.7; }
.fs-watch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fs-w { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: inherit; text-decoration: none; }
.fs-w:active { background: rgba(0, 0, 0, .05); }
.fs-db { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--t3); }

.cm { padding: 0 12px 10px; }
.cm-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--t3); padding: 2px 0 10px; }
.cm-sort { background: none; border: 0; color: var(--t3); font: inherit; font-size: 12px; padding: 0; }
.cm-form { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.cm-form input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 0 14px;
  font: inherit;
  font-size: 13.5px;
  background: none;
  color: inherit;
}
.cm-send { height: 38px; padding: 0 16px; border-radius: 19px; border: 0; background: var(--t1); color: var(--bg); font: inherit; font-size: 13px; }
.cm-send[disabled] { opacity: .5; }
.cm-x { height: 38px; padding: 0 8px; border: 0; background: none; color: var(--t3); font: inherit; font-size: 12px; }
.cm-i { padding: 11px 0; border-top: 1px solid var(--line); }
.cm-h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--t3); }
.cm-h b { font-size: 13px; color: var(--t1); font-weight: 600; }
.cm-me { font-style: normal; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; font-size: 10px; }
.cm-t { margin: 6px 0 8px; font-size: 14px; line-height: 1.62; }
.cm-a { display: flex; gap: 16px; }
.cm-b { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--t3); }
.cm-b.on { color: var(--t1); font-weight: 600; }
.cm-kids { margin-top: 9px; padding: 7px 10px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.cm-k { font-size: 12.5px; color: var(--t2); line-height: 1.5; }
.cm-k b { color: var(--t1); margin-right: 6px; font-weight: 600; }
.cm-load { padding: 14px 0; font-size: 12.5px; color: var(--t3); }
.cm-more {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13px;
  margin: 12px 0 4px;
}
/* 下载页 B 站直下块 */
.dd { margin: 6px 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.dd-top { display: flex; align-items: center; gap: 10px; }
.dd-cov { flex: none; width: 46px; height: 62px; border-radius: 6px; object-fit: cover; background: var(--fill); }
.dd-info { min-width: 0; }
.dd-name { font-size: 13.5px; font-weight: 600; color: var(--t1); overflow-wrap: anywhere; }
.dd-sub { margin-top: 3px; font-size: 11.5px; color: var(--t3); }
.dd-pick { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dd-tab { flex: none; padding: 5px 10px; border: 1px solid var(--t4); border-radius: 99px; background: none; color: var(--t2); font: inherit; font-size: 11.5px; }
.dd-tab.on { border-color: var(--pink-cta); background: var(--pink-cta); color: #fff; }
.dd-qn { display: flex; gap: 6px; margin-top: 10px; }
.dd-q { flex: none; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; background: none; color: var(--t2); font: inherit; font-size: 11.5px; }
.dd-q.on { border-color: var(--pink-cta); background: var(--pink-cta); color: #fff; }
.dd-tip { margin-top: 8px; font-size: 11px; line-height: 1.5; color: var(--t3); }
.dd-eps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; max-height: 150px; overflow-y: auto; overscroll-behavior: contain; }
.ep-w { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--card); }
.ep-c { min-width: 36px; height: 30px; padding: 0 8px; border: 0; border-radius: 0; background: transparent; color: var(--t1); font: inherit; font-size: 12px; }
.ep-w:active { border-color: var(--pink); }
.ep-c:active { color: var(--pink); }
.ep-c.vip { color: var(--t3); }
.ep-d { width: 26px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--t2); font: inherit; font-size: 12px; line-height: 1; }
.ep-d:active { color: var(--pink); }
.dd-none { display: flex; align-items: baseline; gap: 8px; padding: 11px 12px; }
.dd-none b { font-size: 12.5px; color: var(--t1); }
.dd-none span { font-size: 11.5px; color: var(--t3); }
/* 源管理 */
.src-card { height: 84vh; max-height: 820px; display: flex; flex-direction: column; }
.src-tabs { margin: 2px 0 6px; }
.src-find { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.src-q { flex: 1; min-width: 0; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--fill); color: var(--t1); font: inherit; font-size: 12.5px; }
.src-q:focus { border-color: var(--t3); outline: none; }
.src-q::placeholder { color: var(--t4); }
.src-q::-webkit-search-cancel-button { -webkit-appearance: none; }
.src-only { flex: none; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: none; color: var(--t2); font: inherit; font-size: 12px; }
.src-only.is-on { border-color: var(--pink-cta); background: var(--pink-cta); color: #fff; }
.src-more { display: block; width: 100%; margin: 14px 0 4px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--t2); font: inherit; font-size: 12px; }
.src-more:active { background: var(--fill); }
.src-list { flex: 1; min-height: 90px; overflow-y: auto; overscroll-behavior: contain; }
.src-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.src-row:last-child { border-bottom: 0; }
.src-k { display: none; }
.src-n { flex: 1; min-width: 0; font-size: 13px; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-sw { flex: none; width: 38px; height: 22px; padding: 0; border: 1px solid var(--t4); border-radius: 99px; background: var(--fill); position: relative; }
.src-sw.on { background: var(--pink-cta); border-color: var(--pink-cta); }
.src-sw i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .16s; }
.src-sw.on i { transform: translateX(16px); }
.src-x { flex: none; width: 26px; height: 26px; padding: 0; border: 0; background: none; color: var(--t3); font-size: 13px; }
.src-note { flex: 1; min-width: 0; font-size: 11.5px; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-sec { display: flex; align-items: center; gap: 6px; margin: 15px 2px 3px; font-size: 11px; color: var(--t3); }
.src-sec:first-child { margin-top: 6px; }
.src-sec i { flex: 1; height: 1px; background: var(--line); }
.src-sec.is-adult { margin-top: 22px; }
.src-sec > .src-18 { margin-left: 0; }
.src-sec-n { font-size: 10.5px; color: var(--t3); font-variant-numeric: tabular-nums; }
.src-sec .src-adult-b { height: 22px; padding: 0 9px; font-size: 11px; }
.src-a,
.src-f { flex: none; height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--t3); font: inherit; font-size: 11px; line-height: 20px; }
.src-a.on { color: var(--t1); border-color: var(--t3); }
.src-a:active,
.src-f:active { background: var(--fill); }
/* 源账号 / 源收藏 */
.acct-card { max-width: 380px; }
.acct-sub { margin: 2px 0 12px; font-size: 12px; line-height: 1.5; color: var(--t3); }
.acct-out { display: block; width: 100%; margin-top: 10px; height: 38px; border: 0; background: none; color: var(--t3); font: inherit; font-size: 12.5px; }
.acct-out[hidden] { display: none; }
.fav-card { max-height: 78vh; display: flex; flex-direction: column; padding-bottom: 0; }
.fav-list { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 6px 8px; }
.fav-list .err { padding: 10px 6px 18px; }
.fav-pg { flex: none; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 4px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); font-size: 12px; color: var(--t3); font-variant-numeric: tabular-nums; }
.fav-pg[hidden] { display: none; }
.fav-b { height: 30px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--t1); font: inherit; font-size: 12px; }
.fav-b:disabled { color: var(--t4); }
.seg-bar .seg.is-fav { border-style: dashed; color: var(--t2); }

.src-adult { display: flex; align-items: center; gap: 8px; padding: 7px 2px 9px; border-bottom: 1px solid var(--line); }
.src-adult-t { flex: 1; min-width: 0; font-size: 11.5px; color: var(--t3); }
.src-adult-t i { font-style: normal; color: var(--t1); }
.src-adult-b { flex: none; height: 25px; padding: 0 10px; border: 1px solid var(--t4); border-radius: 99px; background: none; color: var(--t1); font-size: 11.5px; }
.src-adult-b:active { background: var(--fill); }
.src-18 { display: inline-block; margin-left: 6px; padding: 0 4px; border: 1px solid currentColor; border-radius: 3px; font-size: 9px; line-height: 15px; color: var(--t3); font-weight: 600; vertical-align: 1px; }
.src-adult > .src-18 { margin-left: 0; }
.src-imp { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.src-imp-h { margin-bottom: 6px; font-size: 12.5px; color: var(--t2); }
.src-ta { width: 100%; min-height: 66px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--t1); font: inherit; font-size: 12px; line-height: 1.5; resize: vertical; }
.src-imp-f { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.src-btn { flex: none; padding: 7px 14px; border: 1px solid var(--t4); border-radius: 99px; background: none; color: var(--t1); font: inherit; font-size: 12.5px; }
.src-btn.main { border-color: var(--pink-cta); background: var(--pink-cta); color: #fff; }
.src-btn:disabled { opacity: .55; }

/* 装到手机 */
.ins-card { max-height: 78vh; overflow: auto; }
.ins-body { padding: 4px 0 12px; }
.ins-p { margin: 10px 0; font-size: 13px; line-height: 1.6; color: var(--t2); }
.ins-url {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--fill);
}
.ins-url span {
  flex: 1;
  min-width: 0;
  font: 500 13px/1.3 ui-monospace, Menlo, Consolas, monospace;
  color: var(--t1);
  word-break: break-all;
}
.ins-go { width: 100%; margin-top: 12px; padding: 11px 0; font-size: 14px; }
.ins-steps { margin: 14px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.9; color: var(--t2); }
.ins-steps li::marker { color: var(--t4); }
.ins-note { margin: 10px 0 0; font-size: 12px; line-height: 1.7; color: var(--t3); }
.ins-note:empty { display: none; }
/* ================= 扩展页：音乐 / 图库 / 投屏 / 代理 ================= */

.pg-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 14px 14px 2px; }
.pg-hd-l { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pg-hd-l h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.3px; }
.pg-hd-l span { font-size: 12px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-hd-r { flex: none; }
.pg-lk { padding: 5px 12px; border: 1px solid var(--t4); border-radius: 99px; background: none; color: var(--t2); font: inherit; font-size: 12.5px; }
.pg-lk:active { color: var(--t1); border-color: var(--t1); }
.pg-load { padding: 40px 14px; text-align: center; font-size: 13px; color: var(--t3); }
.pg-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 54px 24px; text-align: center; }
.pg-empty b { font-size: 15px; }
.pg-empty span { font-size: 12.5px; line-height: 1.6; color: var(--t3); max-width: 320px; }
.pg-more { display: block; margin: 18px auto 26px; padding: 9px 22px; border: 1px solid var(--t4); border-radius: 99px; background: none; color: var(--t2); font: inherit; font-size: 13px; }
.pg-more:active { color: var(--t1); border-color: var(--t1); }

#view > .dl-q { margin: 12px 14px 0; }

/* ---------- 音乐 ---------- */

.mu-list { padding: 4px 0 20px; }
.mu-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 14px; border: 0; background: none; text-align: left;
  font: inherit; color: inherit;
}
.mu-row + .mu-row { border-top: 1px solid var(--line); }
.mu-row:active { background: var(--fill); }
.mu-row.is-on { background: var(--fill); }
.mu-n { flex: none; width: 20px; text-align: center; font-size: 12.5px; color: var(--t3); font-variant-numeric: tabular-nums; }
.mu-row.is-on .mu-n { color: var(--t1); }
.mu-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.mu-eq b { display: block; width: 2px; background: var(--t1); animation: mueq .9s ease-in-out infinite; }
.mu-eq b:nth-child(1) { height: 6px; animation-delay: 0s; }
.mu-eq b:nth-child(2) { height: 11px; animation-delay: .18s; }
.mu-eq b:nth-child(3) { height: 8px; animation-delay: .36s; }
@keyframes mueq { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
.mu-t { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.mu-t b { font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-row.is-on .mu-t b { font-weight: 600; }
.mu-t em { font-size: 12px; font-style: normal; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-d { flex: none; font-size: 12px; color: var(--t3); font-variant-numeric: tabular-nums; }
.mu-tag { flex: none; padding: 1px 6px; border: 1px solid var(--t4); border-radius: 4px; font-size: 10.5px; color: var(--t3); }
.mu-tag:empty { display: none; }

.mu-bar {
  position: fixed; left: 0; right: 0; z-index: 39;
  bottom: calc(54px + var(--safe-b));
  background: var(--bg); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0,0,0,.06);
}
.mu-bar[hidden] { display: none; }
.mu-prog { display: block; width: 100%; height: 14px; padding: 0; border: 0; background: none; }
.mu-prog i { display: block; height: 2px; width: 0; background: var(--pink); transition: width .2s linear; }
.mu-bar-row { display: flex; align-items: center; gap: 10px; padding: 4px 14px 10px; }
.mu-meta { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.mu-meta b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-meta em { font-size: 11.5px; font-style: normal; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-pp { flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--pink-cta); color: #fff; display: grid; place-items: center; }
.mu-pp svg { width: 20px; height: 20px; }
.mu-pp:active { transform: scale(.94); }
.mu-time { flex: none; font-size: 11.5px; color: var(--t3); font-variant-numeric: tabular-nums; }
.mu-lk { flex: none; width: 34px; height: 30px; padding: 0; border: 1px solid var(--t4); border-radius: 8px; background: none; color: var(--t2); font: inherit; font-size: 12px; }
.mu-lk.is-on { border-color: var(--t1); color: var(--t1); }
.mu-lrc {
  max-height: 34vh; overflow-y: auto; padding: 6px 14px 12px;
  border-top: 1px solid var(--line); scroll-behavior: smooth;
}
.mu-lrc[hidden] { display: none; }
.mu-ln { display: block; width: 100%; padding: 5px 0; border: 0; background: none; text-align: left; font: inherit; font-size: 13px; line-height: 1.5; color: var(--t3); }
.mu-ln.is-on { color: var(--t1); font-weight: 600; }
.mu-ln.is-wait { color: var(--t3); font-size: 12.5px; text-align: center; padding: 14px 0; }
body.has-mu .view { padding-bottom: calc(160px + var(--safe-b)); }

/* ---------- 图库 ---------- */

.gx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; padding: 12px 12px 8px; }
.gx-grid > * { content-visibility: auto; contain-intrinsic-size: auto 260px; }
.gx-c { display: flex; flex-direction: column; gap: 5px; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; }
.gx-im { position: relative; display: block; overflow: hidden; border-radius: 9px; background: var(--fill); }
.gx-im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gx-pn { position: absolute; right: 6px; top: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.62); color: #fff; font-size: 10.5px; font-style: normal; }
.gx-c b { font-size: 13px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gx-c em { font-size: 11.5px; font-style: normal; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-dt { padding: 4px 12px 28px; }
.gx-back { padding: 6px 0; border: 0; background: none; color: var(--t2); font: inherit; font-size: 13px; }
.gx-dt h3 { margin: 4px 0 6px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.gx-da { font-size: 12px; color: var(--t3); }
.gx-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0 0; }
.gx-tags span { padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; font-size: 11.5px; color: var(--t2); }
.gx-desc { margin: 10px 0 0; font-size: 12.5px; line-height: 1.65; color: var(--t2); }
.gx-fig { margin: 14px 0 0; }
.gx-fig img { width: 100%; height: auto; display: block; border-radius: 8px; background: var(--fill); }
.gx-fig figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 2px 0; font-size: 11.5px; color: var(--t3); }
.gx-save { padding: 4px 12px; border: 1px solid var(--t4); border-radius: 99px; background: none; color: var(--t2); font: inherit; font-size: 12px; }
.gx-save:disabled { opacity: .6; }

/* ---------- 投屏 ---------- */
/* ---------- 投屏 ---------- */

.cs-main { margin: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.cs-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t2); }
.cs-head b { font-size: 14.5px; font-weight: 600; color: var(--t1); }
.cs-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--t4); flex: none; }
.cs-dot.is-on { background: var(--t1); }
.cs-ico { margin-left: auto; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--fill); color: var(--t2); font: inherit; font-size: 13px; line-height: 1; }
.cs-one { display: block; width: 100%; margin-top: 12px; height: 42px; border: 0; border-radius: 10px; background: var(--pink-cta); color: #fff; font: inherit; font-size: 14px; font-weight: 500; }
.cs-one:disabled { opacity: .5; }
.cs-quick { display: flex; gap: 7px; margin-top: 9px; }
.cs-q { flex: 1; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: none; color: var(--t2); font: inherit; font-size: 12.5px; }
.cs-q:active { background: var(--fill); }
.cs-note { margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--t3); }
.cs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cs-chip { padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; background: none; color: var(--t2); font: inherit; font-size: 11.5px; }
.cs-chip.is-on { border-color: var(--t1); color: var(--t1); font-weight: 500; }
.cs-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.cs-more > summary { font-size: 12px; color: var(--t3); list-style: none; cursor: pointer; }
.cs-more > summary::-webkit-details-marker { display: none; }
.cs-more > summary::after { content: ' +'; }
.cs-more[open] > summary::after { content: ' −'; }

.cs-card { margin: 12px 12px 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; }
.cs-tt { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.cs-kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 12.5px; color: var(--t2); border-top: 1px solid var(--line); margin-top: 8px; }
.cs-kv code { font-size: 11.5px; color: var(--t1); word-break: break-all; text-align: right; }
.cs-kv b { font-weight: 500; }
.cs-no { color: var(--t3); font-style: normal; }
.cs-empty { display: flex; flex-direction: column; gap: 6px; padding: 12px 0 4px; }
.cs-empty b { font-size: 13.5px; }
.cs-empty span { font-size: 12px; line-height: 1.65; color: var(--t3); }
.cs-hint { font-family: ui-monospace, Menlo, Consolas, monospace; }
.cs-acts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.cs-btn { padding: 7px 14px; border: 1px solid var(--t4); border-radius: 99px; background: none; color: var(--t1); font: inherit; font-size: 12.5px; }
.cs-btn.is-main { border-color: var(--pink-cta); background: var(--pink-cta); color: #fff; }
.cs-btn:disabled { opacity: .55; }
.cs-msg { margin-top: 9px; padding: 7px 10px; border-radius: 8px; background: var(--fill); font-size: 12px; line-height: 1.6; color: var(--t2); }
.cs-shot { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cs-shot img { max-width: 100%; max-height: 60vh; border-radius: 8px; border: 1px solid var(--line); }
.cs-net { padding: 0 6px; border: 1px solid var(--t4); border-radius: 4px; font-size: 10.5px; font-style: normal; color: var(--t3); font-weight: 500; }
.cs-st { margin-left: auto; font-size: 11.5px; font-style: normal; color: var(--t3); }
.cs-st.is-ok { color: var(--t1); }

/* ---------- 代理 ---------- */

.px-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 12px 0; }
.px-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; border: 1px solid var(--line); border-radius: 10px; }
.px-stats b { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.px-stats span { font-size: 10.5px; color: var(--t3); }
.px-g { margin: 10px 12px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.px-gh { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 13px; border: 0; background: none; text-align: left; font: inherit; color: inherit; }
.px-gn { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.px-gn em { font-size: 10.5px; font-style: normal; color: var(--t3); }
.px-now { font-size: 12px; color: var(--t2); max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-ar { font-style: normal; color: var(--t3); transition: transform .15s; }
.px-ar.is-open { transform: rotate(90deg); }
.px-nl { max-height: 46vh; overflow-y: auto; border-top: 1px solid var(--line); }
.px-nd { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 13px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: inherit; font-size: 12.5px; color: var(--t2); }
.px-nd:last-child { border-bottom: 0; }
.px-nd span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-nd em { flex: none; font-style: normal; font-size: 11px; color: var(--t3); font-variant-numeric: tabular-nums; }
.px-nd.is-on { color: var(--t1); font-weight: 600; }
.px-gb { display: flex; gap: 7px; padding: 10px 13px; border-top: 1px solid var(--line); }

.src-adult { display: flex; align-items: center; gap: 8px; padding: 8px 2px 10px; border-bottom: 1px solid var(--line); }
.src-adult-t { flex: 1; min-width: 0; font-size: 12px; color: var(--t2); }
.src-adult-t i { font-style: normal; color: var(--t3); }
.src-adult-b { flex: none; height: 26px; padding: 0 10px; border: 1px solid var(--t4); border-radius: 99px; background: none; color: var(--t1); font-size: 11.5px; }
.src-18 { flex: none; display: inline-block; margin-left: 6px; padding: 0 4px; border: 1px solid var(--pink-cta); border-radius: 3px; font-size: 9.5px; line-height: 14px; font-style: normal; font-weight: 500; color: var(--pink-cta); vertical-align: 1px; }
.src-row.is-adult .src-n { color: var(--t2); }
/* ---------- 详情页「播放源」：线路 + 清晰度 ---------- */

.dt-src { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 0; }
.dtsrc-row { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.dtsrc-k { flex: none; width: 34px; padding-top: 6px; font-size: 12px; color: var(--t3); }
.dtsrc-chips { display: flex; flex: 1; flex-wrap: wrap; gap: 7px; min-width: 0; }
.dtsrc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--fill);
  color: var(--t2);
  font-size: 12.5px;
  line-height: 1.15;
  transition: background .12s, color .12s, border-color .12s;
}
.dtsrc-chip i { font-style: normal; font-size: 10.5px; color: var(--t3); font-variant-numeric: tabular-nums; }
.dtsrc-chip:hover { border-color: var(--t4); color: var(--t1); }
.dtsrc-chip.on { background: #000; border-color: #000; color: #fff; font-weight: 600; }
.dtsrc-chip.on i { color: rgba(255, 255, 255, .62); }
.dtsrc-line { flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 12px 7px; border-radius: 9px; text-align: left; }
.dtsrc-line b { font-weight: 600; font-size: 12.5px; line-height: 1.2; }
.dtsrc-line i { font-size: 10.5px; line-height: 1.2; }
.dtsrc-load { padding-top: 6px; font-size: 12px; color: var(--t3); }
.dt-src.dtsrc-busy { opacity: .5; pointer-events: none; }
@media (min-width: 1100px) { .dt-src { padding: 12px 0 0; } }
/* ================= 移动端体验优化 ================= */
/* tab 条：能左右滑时两侧渐隐做提示，滑到头自动收起（can-l / can-r 由 app.js 维护） */
.tabs {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
}
.tabs.can-l { mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0, #000 20px); -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0, #000 20px); }
.tabs.can-r { mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 20px), rgba(0,0,0,0) 100%); -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 20px), rgba(0,0,0,0) 100%); }
.tabs.can-l.can-r { mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0, #000 20px, #000 calc(100% - 20px), rgba(0,0,0,0) 100%); -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0, #000 20px, #000 calc(100% - 20px), rgba(0,0,0,0) 100%); }

@media (max-width: 1099px) {
  /* 顶部 tab：间距收一点，多露出一项；命中区两侧各加 2px */
  .tabs { gap: 15px; }
  .tab { padding: 0 2px; }

  /* 命中区：圆形/胶囊按钮统一抬到 36px 高 */
  .ava { width: 36px; height: 36px; }
  .ava svg { width: 21px; height: 21px; }
  .seg { min-height: 36px; padding: 0 16px; display: inline-flex; align-items: center; }
  .flt-t { min-height: 36px; padding: 0 15px; display: inline-flex; align-items: center; }
  .fv { min-height: 32px; padding: 0 9px; display: inline-flex; align-items: center; }
  .pg-lk { min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; }
  .cs-btn, .src-adult-b, .dd-tab, .dd-q { min-height: 36px; display: inline-flex; align-items: center; }
  .mu-lk { height: 36px; }

  /* 说明性小字：手机上不低于 12px */
  .p-eps, .p-eps-h span, .tl-e, .mu-time, .mu-meta em, .gx-c em, .gx-tags span,
  .gx-fig figcaption, .cs-kv code, .cs-net, .cs-st, .px-stats span, .px-gn em,
  .px-nd em, .src-note, .src-sec, .dt-rate span, .rel-rail .p-sub, .dd-sub, .dd-tip { font-size: 12px; }
  .mu-tag, .cm-me, .p-act i, .ps-line i { font-size: 11.5px; }
  .gx-pn { font-size: 12px; padding: 0 6px; }
  .cs-one { min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--pink-cta); border-radius: 99px; background: var(--pink-cta); color: #fff; font: inherit; font-size: 12.5px; }
}
/* mobile-perf: 长列表里没滚到的卡片先不渲染，小屏把毛玻璃关掉（软件合成器做 blur 很贵） */
.card, .tl-item, .cm-item, .fs-item, .mu-item { content-visibility: auto; contain-intrinsic-size: auto 232px; }

@media (max-width: 559px) {
  .p-badge, .p-dm, .p-ges, .dm-panel, .ps-panel { backdrop-filter: none; }
}

/* ---------------- 顶部栏空壳 / 我的 / 设置 / 页内搜索 ---------------- */

.hd-bar:empty { display: none; }

.me-info { flex: 1; min-width: 0; }
.me-info .me-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-act {
  flex: none;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  background: var(--pink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.me-out { margin-top: 26px; margin-bottom: 24px; }
.me-out .row-t { color: var(--t2); }
.me-out .row { justify-content: center; }

.row-ic { width: 18px; height: 18px; color: var(--t2); flex: none; }
.row-static { cursor: default; }

.set-sec { max-width: 900px; margin: 0 auto; }
.set-h {
  padding: 18px 16px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--t3);
}

.mslist { max-width: 900px; }
.msrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
}
.ms-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ms-v {
  flex: none;
  max-width: 38%;
  font-size: 12px;
  color: var(--t3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ms-del {
  flex: none;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--t3);
}
.ms-empty { padding: 14px 16px; font-size: 13px; color: var(--t3); }

.ms-imp { display: flex; gap: 8px; padding: 12px 16px 4px; max-width: 900px; }
.ms-imp input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--fill);
  font-size: 13px;
  color: var(--t1);
}
.ms-imp button {
  flex: none;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--pink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.ms-imp button[disabled] { opacity: .5; }
.set-note {
  padding: 2px 16px 22px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--t3);
}

.sbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin: 8px 16px 6px;
  padding: 0 14px;
  border-radius: 20px;
  background: var(--fill);
}
.sbar svg { width: 17px; height: 17px; color: var(--t3); flex: none; }
.sbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--t1);
  outline: none;
  -webkit-appearance: none;
}
.sbar input::-webkit-search-cancel-button,
.sbar input::-webkit-search-decoration { display: none; }
.sbar-x { flex: none; padding: 2px 4px; font-size: 12px; color: var(--t3); }

.bk-kind {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-style: normal;
  font-size: 11px;
  line-height: 1.4;
  color: var(--t2);
  vertical-align: 1px;
}
/* ---------- 听书 ---------- */
.ln-head { padding: 16px 12px 6px; display: flex; flex-direction: column; gap: 5px; }
.ln-head b { font-size: 17px; }
.ln-head span { font-size: 12px; color: var(--t3); }
.ln-item { align-items: center; }
.ln-play { margin-left: auto; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--pink-cta); color: #fff; display: grid; place-items: center; }
.ln-play svg { width: 16px; height: 16px; }
.seg-src { border-style: dashed; color: var(--t2); }

/* ---------- 音乐 / 图库：列表里的收藏心 ---------- */
.mu-fav {
  flex: none;
  margin-left: 6px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--t3);
  font-size: 15px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.mu-fav.is-on { color: var(--pink-cta); }
.mu-fav:active { background: var(--fill); }
.gx-fav {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  opacity: 0.78;
}
.gx-fav.is-on { background: var(--pink-cta); opacity: 1; }

/* ---------- 代理页（照 FlClash 的结构：大圆角卡片 + 分段按钮 + 单选节点） ---------- */
.fc { display: flex; flex-direction: column; gap: 12px; padding: 2px 12px 26px; }
.fc-hero { display: flex; flex-direction: column; gap: 11px; padding: 15px 16px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.fc-hero-hd { display: flex; align-items: center; gap: 9px; }
.fc-hero-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fc-hero-t b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-hero-t em { font-size: 11.5px; color: var(--t3); }
.fc-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--t4); }
.fc-dot.is-on { background: var(--pink-cta); box-shadow: 0 0 0 4px rgba(0, 0, 0, .07); }
.fc-mini { flex: none; height: 30px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--t2); font-size: 12.5px; }
.fc-mini:active { background: var(--fill); }
.fc-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.fc-flow > div { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 11px; border-radius: 15px; background: var(--fill); }
.fc-flow em { font-size: 11.5px; color: var(--t3); }
.fc-flow b { font-size: 19px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fc-cum { font-size: 11.5px; color: var(--t3); font-variant-numeric: tabular-nums; }
.fc-micros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.fc-micros span { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 9px; border: 1px solid var(--line); border-radius: 13px; }
.fc-micros b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fc-micros em { font-size: 11px; color: var(--t3); }
.fc-sec { display: flex; align-items: baseline; gap: 8px; padding: 4px 3px 0; }
.fc-sec b { font-size: 13.5px; font-weight: 700; }
.fc-sec em { font-size: 11.5px; color: var(--t3); }
.fc-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 17px; background: var(--fill); }
.fc-sg { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px 9px; border-radius: 13px; color: var(--t2); }
.fc-sg b { font-size: 13px; font-weight: 600; }
.fc-sg em { font-size: 10.5px; color: var(--t3); }
.fc-sg.is-on { background: var(--pink-cta); color: #fff; }
.fc-sg.is-on em { color: rgba(255, 255, 255, .64); }
.fc-gs { display: flex; flex-direction: column; gap: 9px; }
.fc-g { border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.fc-gh { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; text-align: left; }
.fc-gh:active { background: var(--fill); }
.fc-gt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fc-gt b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-gt em { font-size: 11.5px; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-chev { flex: none; color: var(--t3); font-size: 17px; line-height: 1; transition: transform .16s; }
.fc-chev.is-open { transform: rotate(90deg); }
.fc-nl { max-height: 44vh; overflow-y: auto; border-top: 1px solid var(--line); }
.fc-nd { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--t2); font-size: 13px; text-align: left; }
.fc-nd:last-child { border-bottom: 0; }
.fc-nd:active { background: var(--fill); }
.fc-nn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-nd.is-on { color: var(--t1); font-weight: 600; }
.fc-radio { flex: none; position: relative; width: 17px; height: 17px; border: 1.6px solid var(--t4); border-radius: 50%; }
.fc-nd.is-on .fc-radio { border-color: var(--pink-cta); }
.fc-nd.is-on .fc-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--pink-cta); }
.fc-lat { flex: none; min-width: 44px; text-align: right; font-size: 11.5px; color: var(--t3); font-variant-numeric: tabular-nums; }
.fc-lat.is-good { color: var(--t1); font-weight: 600; }
.fc-lat.is-mid { color: var(--t2); }
.fc-lat.is-bad { color: var(--t3); }
.fc-gact { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.fc-card { border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.fc-row { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.fc-row:last-child { border-bottom: 0; }
.fc-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fc-rt b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-rt em { font-size: 11px; color: var(--t3); }
.fc-note { padding: 14px; font-size: 12.5px; line-height: 1.5; color: var(--t3); }
.fc-btn { flex: none; height: 32px; padding: 0 14px; border: 1px solid var(--t4); border-radius: 99px; background: none; color: var(--t1); font-size: 12.5px; }
.fc-btn:active { background: var(--fill); }
.fc-btn:disabled { opacity: .45; }
.fc-btn.is-main { border-color: var(--pink-cta); background: var(--pink-cta); color: #fff; font-weight: 600; }
.fc-btn.is-quiet { border-color: var(--line); color: var(--t2); }
.fc-row-acts { display: flex; gap: 8px; padding: 12px 14px; }
.fc-form { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.fc-form input, .fc-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--fill); color: var(--t1); font: inherit; font-size: 13px; }
.fc-form input:focus, .fc-form textarea:focus { outline: none; border-color: var(--t4); background: var(--card); }
.fc-form textarea { min-height: 96px; resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.5; }
.fc-form-acts { display: flex; gap: 8px; }
.fc-con { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.fc-con:last-child { border-bottom: 0; }
.fc-ct { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fc-ct b { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-ct em { font-size: 11px; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-cb { flex: none; font-size: 11.5px; color: var(--t2); font-variant-numeric: tabular-nums; }
.fc-empty { padding: 16px 14px; border: 1px dashed var(--line); border-radius: 18px; font-size: 12.5px; color: var(--t3); text-align: center; }
@media (min-width: 1100px) { .fc { padding: 0 0 26px; } }
@media (max-width: 559px) { .fc-cum, .fc-gt em, .fc-rt em, .fc-ct em, .fc-micros em { font-size: 12px; } }

/* ---------------- 播放页：跟随浅/深色主题 ---------------- */
/* 这一页原来写死深色（#000 底 + 白字）。整页反相做深色主题后正好翻过来：
   浅色主题下变成黑乎乎一整页，深色主题下反倒一片白。
   现在外壳（顶栏 / 信息 / 控制条 / 选集 / 简介 / 面板）全部走主题变量，
   只有视频画面那块保持纯黑；深色主题是反相实现，所以那边用「写白显黑」的写法。 */

.player { background: var(--bg); color: var(--t1); }
.p-top { background: var(--bg); }
.p-btn { color: var(--t1); }
.p-hd-ttl { color: var(--t1); }
.p-dm { color: var(--t1); background: var(--fill); }
.p-dm.off { color: var(--t3); background: var(--fill); }
.p-info { color: var(--t2); }
.p-qual { color: var(--t2); background: var(--fill); }

/* 播放页里的简介 / 选集 / 互动数 */
.p-about-h, .p-eps-h { color: var(--t3); }
.p-about-t { color: var(--t2); }
.p-about-more { color: var(--t3); }
.p-eps-h span { color: var(--t4); }
.eps-row button { color: var(--t2); background: var(--fill); }
.eps-row button.on { color: #fff; background: var(--pink); }
.p-stat { color: var(--t3); }
.p-stat i { color: var(--t4); }
.p-act b { color: var(--t1); }
.p-act i { color: var(--t3); }

/* 控制条 / 弹幕输入 */
.p-cbtn { color: var(--t2); background: var(--fill); }
.p-cbtn b { color: var(--t1); }
.p-cbtn:active { background: rgba(0, 0, 0, .09); }
.p-cbtn:disabled { color: var(--t4); background: var(--fill); }
.p-resume { color: var(--t1); background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.dm-send input { color: var(--t1); background: var(--fill); }
.dm-send input::placeholder { color: var(--t3); }
.dm-send input:focus { background: rgba(0, 0, 0, .07); }
.dm-send button { color: #fff; background: var(--pink); }

/* 换源 / 弹幕设置面板 */
.dm-panel, .ps-panel {
  background: var(--bg);
  color: var(--t1);
  box-shadow: 0 -12px 34px rgba(0, 0, 0, .14), inset 0 0 0 1px var(--line);
}
@media (min-width: 900px) {
  .ps-panel { box-shadow: 0 10px 34px rgba(0, 0, 0, .16), inset 0 0 0 1px var(--line); }
}
.ps-t { color: var(--t3); }
.ps-tip { color: var(--t4); }
.ps-chip { background: var(--fill); color: var(--t2); }
.ps-chip:active { background: rgba(0, 0, 0, .1); }
.ps-chip.on { background: var(--pink); color: #fff; }
.ps-line i { color: var(--t3); }
.ps-line.on i { color: rgba(255, 255, 255, .72); }
.ps-none { color: var(--t3); }
.dp-x { color: var(--pink); background: var(--fill); }
.dp-x:active { background: rgba(0, 0, 0, .1); }
.dp-row { border-top: 1px solid var(--line); }
.dp-row > span { color: var(--t3); }
.dp-row input[type='range']::-webkit-slider-runnable-track { background: rgba(0, 0, 0, .16); }
.dp-row input[type='range']::-moz-range-track { background: rgba(0, 0, 0, .16); }
.dp-v { color: var(--t1); }
.dp-row--sw > span { color: var(--t1); }
.dp-row--txt input[type='text'] { color: var(--t1); background: var(--fill); }
.dp-row--txt input[type='text']::placeholder { color: var(--t3); }
.dp-row--txt input[type='text']:focus { background: rgba(0, 0, 0, .07); }
.dp-f { border-top: 1px solid var(--line); }
.dp-f button { color: var(--t1); background: var(--fill); }
.dp-f button:last-child { color: #fff; background: var(--pink); }

/* 视频画面区：两个主题下都是纯黑；深色主题整页反相，这里写白 -> 显示成黑 */
[data-theme='dark'] .p-stage { background: #fff; }
[data-theme='dark'] .p-stage video { background: #fff; }
[data-theme='dark'] .p-dim { background: #fff; }
[data-theme='dark'] .p-ges { background: rgba(255, 255, 255, .62); color: #000; }
[data-theme='dark'] .p-ges span { color: rgba(0, 0, 0, .72); }
[data-theme='dark'] .p-splash { color: rgba(0, 0, 0, .8); background: rgba(255, 255, 255, .5); }
/* 弹幕压在视频上，视频本身不跟着反相，所以弹幕文字要显白 */
.dm-layer { color: #fff; }
[data-theme='dark'] .dm-layer { color: #000; }
[data-theme='dark'] .dm { text-shadow: 0 1px 2px rgba(255, 255, 255, .85), 0 0 1px rgba(255, 255, 255, .6); }
[data-theme='dark'] .dm.mine { text-shadow: 0 1px 3px rgba(255, 255, 255, .9), 0 0 7px rgba(255, 255, 255, .85); }
[data-theme='dark'] .dm.mine::after { color: #000; background: #fff; }

/* ---------------- 详情页 / 播放页：黑方块改浅底（浅色主题不再出现整块黑） ---------------- */
/* 选中态和主按钮统一改成「浅底 + 描边 + 黑字」。深色主题靠整页反相，
   这里的浅底会变成深底、黑描边变白描边，两个主题都成立。 */

/* 详情页主按钮（播放第 1 话）：浅底 + 1.5px 描边，不再整块黑 */
.dt-acts .btn-main { color: var(--t1); background: var(--fill); box-shadow: inset 0 0 0 1.5px var(--t1); font-weight: 600; }
.dt-acts .btn-main:active { background: rgba(0, 0, 0, .1); }

/* 线路 / 清晰度 chips：未选是透明描边，选中是浅底 + 黑描边 + 黑字 + 加粗 */
.dtsrc-chip { background: transparent; border-color: var(--line); color: var(--t2); }
.dtsrc-chip.on { background: var(--fill); border-color: var(--t1); color: var(--t1); font-weight: 600; }
.dtsrc-chip.on i { color: var(--t3); }
.dtsrc-chip.on:hover { border-color: var(--t1); }

/* 评论区「登录 / 发送」 */
.cm-send { color: var(--t1); background: var(--fill); box-shadow: inset 0 0 0 1px var(--t1); font-weight: 600; }

/* 播放页：弹幕发送 / 选集选中 / 弹幕设置面板的选中 chip */
.dm-send button { color: var(--t1); background: var(--fill); box-shadow: inset 0 0 0 1px var(--t1); font-weight: 600; }
.eps-row button.on { color: var(--t1); background: var(--fill); box-shadow: inset 0 0 0 1.5px var(--t1); font-weight: 600; }
.ps-chip.on { color: var(--t1); background: var(--fill); box-shadow: inset 0 0 0 1px var(--t1); font-weight: 600; }
.ps-line.on i { color: var(--t3); }
.ps-line.on { box-shadow: inset 0 0 0 1px var(--t1); }

/* ---------------- 全局：实心黑块一律改「浅底 + 墨线描边」，浅色主题不再出现整块黑 ---------------- */
/* 深色主题是整页反相实现的：这里的浅底在深色下变成深底、墨线变成白线，
   两个主题都能各自成立，不用再按主题写两套。 */

.btn-main { color: var(--t1); background: var(--fill); box-shadow: inset 0 0 0 1.5px var(--t1); font-weight: 600; }
.btn-main:active { background: rgba(0, 0, 0, .1); }

.seg.is-on { color: var(--t1); background: var(--fill); box-shadow: inset 0 0 0 1px var(--t1); font-weight: 600; }

.ep.on { color: var(--t1); background: var(--fill); border-color: var(--t1); }
.ep.on .v { color: var(--t1); background: rgba(0, 0, 0, .1); }

.dl-btn.on { color: var(--t1); background: var(--fill); border-color: var(--t1); font-weight: 600; }
.dd-tab.on { color: var(--t1); background: var(--fill); border-color: var(--t1); font-weight: 600; }
.dd-q.on { color: var(--t1); background: var(--fill); border-color: var(--t1); font-weight: 600; }

.src-only.is-on { color: var(--t1); background: var(--fill); border-color: var(--t1); font-weight: 600; }
.src-btn.main { color: var(--t1); background: var(--fill); border-color: var(--t1); font-weight: 600; }

.cs-btn.is-main { color: var(--t1); background: var(--fill); border-color: var(--t1); font-weight: 600; }
.cs-one { color: var(--t1); background: var(--fill); border: 1px solid var(--t1); font-weight: 600; }

.mu-pp { color: var(--t1); background: var(--fill); box-shadow: inset 0 0 0 1px var(--t1); }
.ln-play { color: var(--t1); background: var(--fill); box-shadow: inset 0 0 0 1px var(--t1); }
.gx-fav.is-on { color: var(--t1); background: var(--fill); box-shadow: inset 0 0 0 1px var(--t1); }

.me-ava { color: var(--t1); background: var(--fill); box-shadow: inset 0 0 0 1px var(--t1); }
.me-act { color: var(--t1); background: var(--fill); box-shadow: inset 0 0 0 1px var(--t1); }

.fc-sg.is-on { color: var(--t1); background: var(--fill); box-shadow: inset 0 0 0 1px var(--t1); }
.fc-sg.is-on em { color: var(--t3); }
.fc-btn.is-main { color: var(--t1); background: var(--fill); border-color: var(--t1); font-weight: 600; }

.dp-f button:last-child { color: var(--t1); background: var(--fill); box-shadow: inset 0 0 0 1px var(--t1); font-weight: 600; }

/* ---------------- 浅色模式零黑块（续）：选集「会员」角标 / 海报 VIP 角标 ---------------- */
.ep .v { color: var(--t2); background: var(--fill); }
.ep.on .v { color: var(--t1); background: rgba(0, 0, 0, .08); }
.p-badge.is-vip { background: rgba(0, 0, 0, .62); }
