:root {
  --bg: #111013;
  --s1: #1a191d;
  --s2: #26252b;
  --s3: #34333a;
  --ink: #f5f2f0;
  --mid: #b3aeb3;
  --dim: #9a95a0;
  --line: rgba(255, 255, 255, 0.07);
  --pink: #ec7fa0;
  --pink-ink: #2a1219;
  --pink-soft: rgba(236, 127, 160, 0.16);
  --safe: var(--pink);
  --danger: #e5534b;
  --bad: #ff6b61;
  --warn: #ffb74d;
  --glass: rgba(17, 16, 19, 0.84);
  --glass-hi: rgba(36, 35, 40, 0.86);
  --blur: blur(24px) saturate(160%);
  --bar: rgba(40, 38, 46, 0.52);
  --bar-blur: blur(22px) saturate(180%);
  --bar-edge: rgba(255, 255, 255, 0.1);
  --page: 1360px;
  --pad: 16px;
  --top-h: 56px;
  --tab-h: 76px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: var(--ease);
  /* 动效五档：按下 / 显隐 / 抽屉与面板 / 图片与页面 / 大图轮播 */
  --t-press: .12s;
  --t-fade: .18s;
  --t-sheet: .28s;
  --t-page: .32s;
  --t-hero: .6s;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Source Han Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --num: Bahnschrift, "DIN Alternate", "Segoe UI", var(--font);
}

* { box-sizing: border-box; }
html { color-scheme: dark; overflow-y: scroll; scrollbar-gutter: stable; background: var(--bg); -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
img, video, svg { display: block; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; }
.skip:focus { top: 12px; }
.n { font-family: var(--num); }
.clamp2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }

.app { min-height: 100dvh; }
.wrap { width: min(var(--page), 100%); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
main { padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + 28px); }

/* ---------- 头部 ---------- */
/* --glass-on：0 为透明（压在首页大图上），1 为完整玻璃；首页随滚动渐变 */
.top { --glass-on: 1; position: sticky; top: 0; z-index: 40; padding-top: var(--safe-top); }
.top.is-over { --glass-on: 0; }
.top::before, .top::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.top::before { inset: 0 0 -28px; background: linear-gradient(180deg, rgba(17,16,19,.55), rgba(17,16,19,0)); opacity: calc(1 - var(--glass-on)); }
.top::after {
  inset: 0; opacity: var(--glass-on);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 60%), var(--bar);
  -webkit-backdrop-filter: var(--bar-blur); backdrop-filter: var(--bar-blur);
  box-shadow: inset 0 -1px 0 var(--bar-edge), 0 10px 30px rgba(0,0,0,.16);
}
.top-in { height: var(--top-h); display: flex; align-items: center; gap: 10px; }
.top .lockup { transition: opacity var(--t-fade); }
.top .lockup:active { opacity: .6; }
.lockup { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; letter-spacing: .04em; margin-right: auto; white-space: nowrap; }
.lockup small { font-size: 13px; font-weight: 500; color: var(--dim); letter-spacing: .02em; }
.mark { width: 30px; height: 30px; }
.nav { display: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.13); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.1); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); color: var(--ink); flex: none; transition: background var(--t-fade), transform var(--t-fade) var(--ease); }
.icon-btn:hover { background: rgba(255,255,255,.2); }
.icon-btn:active { background: rgba(255,255,255,.26); transform: scale(.92); }
.icon-btn svg { width: 19px; height: 19px; }
.top .search { display: none; }
.me-btn { height: 36px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; flex: none; transition: transform var(--t-fade) var(--ease), opacity var(--t-fade); }
.me-btn:active { transform: scale(.94); opacity: .85; }
.top-in > .nav + .me-btn { margin-left: auto; }
.me-btn.is-user .av { box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.me-btn.is-user { padding: 0; background: none; color: var(--ink); }
.me-btn .nm { display: none; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--pink-ink); background: linear-gradient(135deg, #f6a5bd, #a8557d); }

/* ---------- 按钮与小件 ---------- */
.btn {
  height: 46px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  transition: transform var(--t-press), background var(--t-fade), color var(--t-fade);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn.pk { background: var(--pink); color: var(--pink-ink); }
.btn.glass { background: rgba(255,255,255,.14); color: var(--ink); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn.ghost { background: var(--s2); color: var(--ink); }
.btn.ghost:hover { background: var(--s3); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.sq { width: 46px; padding: 0; }
.btn.wide { width: 100%; }
.btn.is-on { color: var(--pink); background: var(--pink-soft); }
.btn:disabled { opacity: .45; cursor: default; }

.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.pills::-webkit-scrollbar { display: none; }
.pill {
  height: 36px; padding: 0 15px; border-radius: 999px; background: var(--s2); color: var(--mid);
  font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; flex: none; white-space: nowrap; transition: background var(--t-fade), color var(--t-fade);
}
.pill:hover { color: var(--ink); }
.pill em { font-style: normal; font-size: 12px; opacity: .72; margin-left: 1px; font-family: var(--num); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); font-weight: 700; }
.zones.is-open { flex-wrap: wrap; row-gap: 8px; }
.zone-more { display: none; width: 36px; height: 36px; border-radius: 999px; flex: none; align-items: center; justify-content: center; background: var(--s2); color: var(--mid); transition: background var(--t-fade), color var(--t-fade); }
.zone-more:hover { color: var(--ink); background: var(--s3); }
.zone-more svg { width: 18px; height: 18px; transition: transform var(--t-fade) var(--ease); }
.zones.has-fold .zone-more { display: inline-flex; }
.zones.is-open .zone-more { background: var(--ink); color: var(--bg); }
.zones.is-open .zone-more svg { transform: rotate(180deg); }
@media (min-width: 720px) {
  .zones:not(.is-open) { overflow: hidden; }
  .zones.is-clipped { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
}

.tag { height: 22px; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; flex: none; }
.tag.solid { background: var(--ink); color: var(--bg); }
.tag.pink { background: var(--pink-soft); color: var(--pink); }
.tag.soft { height: 30px; padding: 0 12px; border-radius: 10px; background: var(--s2); color: var(--mid); font-size: 13px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.sec-t { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 30px 0 14px; }
.sec-t :is(h1, h2) { font-size: 20px; font-weight: 700; letter-spacing: .01em; }
#results-title { font-size: 24px; }
.sec-t a, .sec-t span, .sec-t > button { font-size: 13px; color: var(--mid); font-weight: 500; display: inline-flex; align-items: center; gap: 2px; }
.sec-t a:hover, .sec-t > button:hover { color: var(--ink); }
.sec-t svg { width: 14px; height: 14px; }

.switch { position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--s3); flex: none; transition: background var(--t-fade); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform var(--t-fade) var(--ease); }
.switch[aria-checked="true"] { background: var(--pink); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }

.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; color: var(--mid); font-size: 13px; }
.meta i { width: 2px; height: 2px; border-radius: 50%; background: currentColor; opacity: .55; flex: none; }
.meta b { color: inherit; font-weight: 600; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--pink); }
.eyebrow svg { width: 14px; height: 14px; }

/* ---------- 卡片 ---------- */
.vc { position: relative; min-width: 0; }
.vc-ph { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--s2); isolation: isolate; }
.vc-ph .gl { position: absolute; z-index: -1; left: 8%; right: 8%; bottom: -8px; height: 70%; width: 84%; object-fit: cover; border-radius: 12px; filter: blur(18px) saturate(1.4); opacity: .36; pointer-events: none; }
.vc-ph .pic { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.04); transition: transform var(--t-page) var(--ease), opacity var(--t-page) var(--ease); }
.vc-ph .du { position: absolute; z-index: 2; right: 8px; bottom: 8px; height: 20px; padding: 0 6px; border-radius: 6px; display: inline-flex; align-items: center; background: rgba(17,16,19,.72); color: #fff; font: 600 11px var(--num); white-space: nowrap; transition: bottom var(--t-fade) var(--ease); }
.vc-ph .pr ~ .du { bottom: 16px; }
/* 画质标：只在有时长的片子上放左上角；没有时长的写在右下角，两处不重复 */
.vc-ph .q { position: absolute; z-index: 2; left: 8px; top: 8px; height: 18px; padding: 0 5px; border-radius: 6px; display: inline-flex; align-items: center; background: rgba(17,16,19,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font: 700 11px/1 var(--num); letter-spacing: .04em; }
.vc-ph .q.nw { padding: 0 6px; background: var(--pink); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--pink-ink); font: 700 11px/1 var(--font); letter-spacing: 0; }
.is-managing .vc-ph .q { display: none; }
.vc:has(.vc-t:focus-visible) .vc-ph, .vc-all:focus-visible .vc-ph { outline: 2px solid var(--pink); outline-offset: 2px; }
.vc-t:focus-visible, .vc-all:focus-visible { outline: none; }
/* 悬停层：有鼠标的设备上浮起 3px、白色描边，停 350ms 再从底部浮出简介、播放和收藏，划过去不闪 */
.vc-hv, .vc-sv { display: none; }
@media (hover: hover) {
  .vc-ph { transition: transform var(--t-fade) var(--ease); }
  .vc-ph .pic { transition: box-shadow var(--t-fade) var(--ease), opacity var(--t-page) var(--ease); }
  .vc:hover .vc-ph, .vc:has(.vc-t:focus-visible) .vc-ph { transform: translateY(-3px); }
  .vc:hover .vc-ph .pic { box-shadow: 0 0 0 2px rgba(255,255,255,.88), 0 14px 30px rgba(0,0,0,.42); }
  .vc-hv { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 8px; padding: 10px 10px 8px; border-radius: 12px; background: linear-gradient(180deg, rgba(17,16,19,0) 28%, rgba(17,16,19,.92)); opacity: 0; transition: opacity var(--t-fade) var(--ease); pointer-events: none; }
  .vc-hv:not(:has(.vc-ab)) { background: linear-gradient(180deg, rgba(17,16,19,0) 52%, rgba(17,16,19,.78)); }
  .vc-ph:has(.pr) .vc-hv { padding-bottom: 18px; }
  .vc-ab { max-width: 100%; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.88); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .vc-pl { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; color: var(--bg); }
  .vc-pl svg { width: 14px; height: 14px; margin-left: 2px; }
  .vc-sv { position: absolute; z-index: 3; top: 0; left: 48px; width: 30px; height: 30px; margin-top: calc(56.25% - 38px); border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; opacity: 0; visibility: hidden; transition: opacity var(--t-fade) var(--ease), visibility 0s linear var(--t-fade), transform var(--t-fade) var(--ease), background var(--t-fade); }
  .vc:has(.pr) .vc-sv { margin-top: calc(56.25% - 48px); }
  .vc-sv:hover { background: rgba(255,255,255,.3); }
  .vc-sv[aria-pressed="true"] { color: var(--pink); }
  .vc:hover .vc-hv, .vc:has(.vc-t:focus-visible) .vc-hv { opacity: 1; transition-delay: .35s; }
  .vc:hover .vc-sv { opacity: 1; visibility: visible; transform: translateY(-3px); transition-delay: .35s, .35s, 0s, 0s; }
  .vc:has(:focus-visible) .vc-sv { opacity: 1; visibility: visible; transition-delay: 0s; }
  .vc:hover .vc-ph .du, .vc:has(.vc-t:focus-visible) .vc-ph .du { bottom: 13px; transition-delay: .35s; }
  .vc:hover .vc-ph .pr ~ .du, .vc:has(.vc-t:focus-visible) .vc-ph .pr ~ .du { bottom: 23px; }
  .vc:has(.vc-more) .vc-hv, .vc:has(.vc-more) .vc-sv, .is-managing .vc-hv, .is-managing .vc-sv { display: none; }
  .is-managing .vc:hover .vc-ph { transform: none; }
  .is-managing .vc:hover .vc-ph .pic { box-shadow: 0 0 0 1px rgba(255,255,255,.04); }
}
/* 继续观看行尾的「全部记录」 */
.vc-all .vc-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0 10px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); text-align: center; transition: background var(--t-fade); }
.vc-all .vc-ph svg { width: 26px; height: 26px; color: var(--pink); margin-bottom: 2px; }
.vc-all b { font-size: 15px; }
.vc-all small { font-size: 12px; color: var(--dim); }
.vc-all:hover .vc-ph { background: var(--s2); }
.rail > .vc-all { width: 150px; }
.vc-ph .pr, .prog { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 7px; height: 4px; border-radius: 6px; background: rgba(255,255,255,.26); overflow: hidden; }
.vc-ph .pr b, .prog i { display: block; height: 100%; border-radius: 6px; background: var(--pink); }
.dn { position: absolute; z-index: 2; left: 8px; bottom: 8px; height: 20px; padding: 0 7px; border-radius: 6px; display: inline-flex; align-items: center; gap: 3px; background: rgba(17,16,19,.66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 11px; font-weight: 700; }
.dn svg { width: 11px; height: 11px; }
.vc-t { display: block; margin-top: 10px; }
.vc-t h3 { font-size: 15px; font-weight: 500; line-height: 1.45; letter-spacing: .01em; }
.vc-t p { margin-top: 4px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; }
.vc-t p span { overflow: hidden; text-overflow: ellipsis; }
.vc-t p .lf { color: var(--pink); font-weight: 500; }

/* 图片到了再淡入；150ms 内到的不出扫光 */
@keyframes sk { from { background-position: 120% 0; } to { background-position: -60% 0; } }
img.ld { opacity: 0; transition: opacity var(--t-page) var(--ease); }
img.ld.is-in { opacity: 1; }
img.ld.is-now { transition: none; }
.vc-ph:has(.pic.ld:not(.is-in)), .shot:has(img.ld:not(.is-in)) { background: linear-gradient(100deg, var(--s1) 30%, var(--s2) 50%, var(--s1) 70%) 0 0 / 260% 100%; animation: sk 1.5s linear .15s infinite; }
.vc-ph:has(.pic.ld:not(.is-in)) .gl { opacity: 0; }
.vc-more {
  position: absolute; z-index: 3; left: 0; top: 0; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px;
  background: rgba(17,16,19,.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff;
}
.vc-more b { font: 700 30px/1 var(--num); letter-spacing: -.02em; }
.vc-more small { font-size: 12px; color: rgba(255,255,255,.75); }
.vc-more:hover { background: rgba(17,16,19,.42); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
/* 只排一行的片格（手机两行）：窗口多宽放几部，不留半行 */
.grid.one > .vc:nth-child(n+5) { display: none; }
@media (min-width: 720px) { .grid.one > .vc:nth-child(n+4) { display: none; } }
@media (min-width: 1100px) { .grid.one > .vc:nth-child(4) { display: block; } }
@media (min-width: 1280px) { .grid.one > .vc:nth-child(5) { display: block; } }
@media (min-width: 1600px) { .grid.one > .vc:nth-child(6) { display: block; } }
.rail { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 12px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); }
.rail::-webkit-scrollbar { display: none; }
.rail > .vc { flex: none; width: 200px; scroll-snap-align: start; }
/* 热播榜：名次大字压在海报左下角（实心底色 + 描边），前三名粉色描边 */
.sec-t h2 small { margin-left: 8px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--dim); }
.rail.rk > .rk-it { flex: none; width: 226px; scroll-snap-align: start; }
.rk-it { position: relative; min-width: 0; padding-left: 26px; }
.rk-it > .vc { width: auto; }
.rk-no { position: absolute; z-index: 1; left: -2px; top: 0; margin-top: calc((100% - 26px) * .5625 - 45px); font: 700 58px/.8 var(--num); letter-spacing: -.08em; color: var(--bg); -webkit-text-stroke: 1.5px rgba(255,255,255,.5); paint-order: stroke fill; pointer-events: none; }
.rk-it:nth-child(-n+3) .rk-no { -webkit-text-stroke-color: var(--pink); }
#library .zones { margin-bottom: 18px; }

.results-more { margin-top: 20px; }
.empty { margin: 24px 0 0; padding: 40px 20px; border-radius: 20px; background: var(--s1); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.empty .ei { width: 56px; height: 56px; border-radius: 20px; background: var(--s3); display: grid; place-items: center; color: var(--mid); margin-bottom: 6px; }
.empty .ei svg { width: 26px; height: 26px; }
.empty strong { font-size: 18px; }
.empty span { font-size: 14px; color: var(--dim); }
.empty .btn { margin-top: 12px; }

/* ---------- 页脚：手机上让出底栏，电脑四列 ---------- */
.sf { padding: 28px 0 calc(var(--tab-h) + var(--safe-bottom) + 20px); border-top: 1px solid var(--line); background: #0d0c0f; color: var(--dim); font-size: 13px; }
.app:has(> .sf) > main { padding-bottom: 36px; }
.sf-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
.sf-brand { grid-column: 1 / -1; }
.sf-brand .lockup { font-size: 16px; }
.sf-brand .mark { width: 28px; height: 28px; }
.sf-brand p { margin-top: 10px; max-width: 340px; line-height: 1.7; }
.sf-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.sf-col h2 { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--mid); }
.sf-col a { max-width: 100%; padding: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); transition: color var(--t-fade); }
.sf-col a:hover { color: var(--ink); }
.sf-cp { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font: 12px var(--num); color: var(--dim); }
@media (min-width: 720px) {
  .sf { padding: 44px 0 36px; }
  .app:has(> .sf) > main { padding-bottom: 72px; }
  .sf-in { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
  .sf-brand { grid-column: auto; }
  .sf-col a { font-size: 14px; }
  .sf-cp { margin-top: 32px; }
}

/* ---------- 底栏：和品境同款的悬浮玻璃胶囊，左右各留 14，--tab-h 是它占掉的底部高度 ---------- */
/* 阻尼弹簧，越过终点约 4% 再回来；不认 linear() 的浏览器退回 --ease */
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, 0.004 1.2%, 0.024 3.1%, 0.065 5.4%, 0.129 8%, 0.212 10.8%, 0.309 13.8%, 0.415 17%, 0.522 20.4%, 0.626 23.9%, 0.722 27.5%, 0.806 31.3%, 0.877 35.2%, 0.933 39.2%, 0.976 43.4%, 1.006 47.6%, 1.025 51.9%, 1.035 56.3%, 1.038 60.9%, 1.037 65.5%, 1.033 70.2%, 1.027 75%, 1.021 79.8%, 1.015 84.7%, 1.01 89.8%, 1.006 94.8%, 1); }
}
.tabbar {
  position: fixed; left: 14px; right: 14px; bottom: max(14px, var(--safe-bottom)); z-index: 40; height: 62px; padding: 0 6px;
  display: flex; align-items: center; border-radius: 31px; touch-action: none;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.02) 60%), rgba(36,34,42,.62); -webkit-backdrop-filter: var(--bar-blur); backdrop-filter: var(--bar-blur);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.08), 0 18px 40px -12px rgba(0,0,0,.6);
}
.tabbar a {
  position: relative; z-index: 1; flex: 1; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 25px;
  font-size: 11px; font-weight: 500; color: var(--dim); -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-drag: none; -webkit-user-select: none; user-select: none;
  transition: color var(--t-fade) ease, scale .32s var(--spring);
}
.tabbar a svg { width: 23px; height: 23px; transition: color var(--t-fade) ease; }
.tabbar a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.tabbar a[aria-current="page"] svg { color: var(--pink); stroke-width: 2.1; }
/* 选中块：一整块在几格之间滑，按住鼓起来变成透亮的玻璃，手指拖到哪跟到哪（tabs.js） */
.tab-lens {
  position: absolute; z-index: 0; top: 6px; left: 6px; width: calc((100% - 12px) / var(--tab-n, 3)); height: 50px; border-radius: 25px;
  background: rgba(255,255,255,.1); box-shadow: 0 0 0 0 rgba(0,0,0,0); translate: calc(100% * var(--tab-i, 0)) 0; pointer-events: none; will-change: translate, scale;
  transition: translate .55s var(--spring), scale .36s var(--spring), background-color var(--t-fade) ease, box-shadow var(--t-fade) ease;
}
.tab-lens.is-press { scale: 1.14 1.1; background: rgba(255,255,255,.2); box-shadow: 0 8px 22px rgba(0,0,0,.4), 0 0 0 .5px rgba(255,255,255,.2), inset 0 1px 0 rgba(255,255,255,.3); }
.tab-lens.is-drag { transition: scale .36s var(--spring), background-color var(--t-fade) ease, box-shadow var(--t-fade) ease; }
.tabbar a.is-under { scale: 1.08; color: var(--ink); }
.tabbar a.is-under svg { color: var(--pink); stroke-width: 2.1; }
.tabbar.is-pressing a[aria-current="page"]:not(.is-under) { color: var(--dim); font-weight: 500; }
.tabbar.is-pressing a[aria-current="page"]:not(.is-under) svg { color: currentColor; stroke-width: 1.8; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tabbar { background: rgba(30,29,34,.97); }
}

/* ---------- 首页轮播 ---------- */
.hero { position: relative; margin-top: calc(-1 * (var(--top-h) + var(--safe-top) + 1px)); height: 392px; overflow: hidden; background: var(--s1); touch-action: pan-y pinch-zoom; }
.hero-stage, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity var(--t-hero) var(--ease); }
.slide.is-on { opacity: 1; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,16,19,.6) 0, rgba(17,16,19,0) 24%, rgba(17,16,19,.1) 46%, var(--bg) 97%); }
.hero-txt { position: absolute; z-index: 2; left: 0; right: 0; bottom: 16px; }
.hero-copy { display: flex; flex-direction: column; }
.hero-copy h2 { margin-top: 8px; font-size: 28px; line-height: 1.28; font-weight: 700; letter-spacing: .01em; }
.hero .meta { margin-top: 8px; color: #d2cdd1; }
.hero .meta .q { height: 20px; padding: 0 6px; border-radius: 6px; display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.42); color: #fff; font: 700 11px/1 var(--num); letter-spacing: .04em; }
.hero-about { display: none; }
.hero-acts { display: flex; gap: 10px; margin-top: 16px; }
.seg { display: flex; gap: 6px; margin-top: 18px; }
.seg button { flex: 1; height: 14px; display: flex; align-items: center; }
.seg button i { display: block; width: 100%; height: 2px; border-radius: 6px; background: rgba(255,255,255,.22); overflow: hidden; }
.seg button.done i { background: rgba(255,255,255,.75); }
.seg button.on i::after { content: ""; display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; animation: segfill var(--dur, 6s) linear forwards; }
.hero.is-hold .seg button.on i::after, .hero.is-hold .strip button.on::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .seg button.on i::after { animation: none; }
  .strip button.on::before, .strip button.on::after { display: none; }
}
@keyframes segfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.strip { display: none; }

/* ---------- 搜索 ---------- */
.search { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--s2); color: var(--mid); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 15px; color: var(--ink); }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { display: none; }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--pink); }
.search kbd { margin-left: auto; font: 11px Consolas, monospace; padding: 2px 6px; border-radius: 6px; border: 1px solid rgba(255,255,255,.18); color: var(--dim); }
.search:focus-within kbd { display: none; }
.search-x { display: none; flex: none; width: 24px; height: 24px; margin-right: -4px; border-radius: 50%; place-items: center; background: rgba(255,255,255,.12); color: var(--mid); }
.search-x:hover { background: rgba(255,255,255,.2); color: var(--ink); }
.search-x svg { width: 14px; height: 14px; }
.search:has(input:not(:placeholder-shown)) .search-x { display: grid; }
.search:has(input:not(:placeholder-shown)) kbd { display: none; }
.sec-t .res-end { gap: 14px; flex: none; }
.res-end > button { font-size: 13px; color: var(--mid); white-space: nowrap; transition: color var(--t-fade); }
.res-end > button:hover { color: var(--ink); }
#results:has(#results-list > .vc-sk) { min-height: calc(100svh - var(--top-h) - var(--safe-top)); }
/* 搜索结果：频道胶囊和排序、最佳匹配大卡、片名里的关键词标粉 */
.vc-t h3 mark, .rs-best h3 mark { background: none; color: var(--pink); }
.rs-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.rs-zones { flex: 1; min-width: 0; }
.rs-sel { position: relative; gap: 4px; }
.rs-sel svg { width: 14px; height: 14px; }
.rs-sel select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.rs-sort { display: flex; align-items: center; gap: 2px; flex: none; }
.rs-sort::before { content: ""; width: 1px; height: 16px; margin-right: 10px; background: rgba(255,255,255,.12); }
.rs-sort button { height: 32px; padding: 0 10px; border-radius: 10px; font-size: 13px; color: var(--dim); transition: color var(--t-fade), background var(--t-fade); }
.rs-sort button:hover { color: var(--ink); background: var(--s2); }
.rs-sort button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.rs-best { transition: opacity var(--t-fade); }
.is-fading > .rs-best, #results-list.is-fading { opacity: .3; }
#results-list { transition: opacity var(--t-fade); }
.rs-ph { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--s2); }
.rs-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-page) var(--ease); }
.rs-ph .q { position: absolute; z-index: 2; left: 10px; top: 10px; height: 20px; padding: 0 6px; border-radius: 6px; display: inline-flex; align-items: center; background: rgba(17,16,19,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font: 700 11px/1 var(--num); letter-spacing: .04em; }
.rs-ph .du { position: absolute; z-index: 2; right: 10px; bottom: 10px; height: 22px; padding: 0 7px; border-radius: 6px; display: inline-flex; align-items: center; background: rgba(17,16,19,.72); color: #fff; font: 600 12px var(--num); white-space: nowrap; }
.rs-b .eyebrow { margin-top: 12px; }
.rs-b h3 { margin-top: 3px; font-size: 20px; font-weight: 700; line-height: 1.4; }
.rs-b .meta { margin-top: 6px; font-size: 12px; color: var(--dim); }
.rs-ab { margin-top: 10px; max-width: 60ch; color: var(--mid); font-size: 14px; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.rs-code { font-family: var(--num); font-weight: 400; color: var(--dim); }
.rs-code mark { background: none; color: var(--pink); }
.rs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rs-acts { display: flex; gap: 10px; margin-top: 18px; }
.rs-acts [aria-pressed="true"] svg { color: var(--pink); }
.rs-sub { padding-top: 28px; }
.rs-sub h2 { font-size: 18px; }

.spanel {
  position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: calc(var(--safe-top) + 10px) 0 24px; overflow-y: auto;
  opacity: 0; transform: translateY(12px); transition: opacity var(--t-fade), transform var(--t-sheet) var(--ease); pointer-events: none;
}
.spanel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.sp-row { display: flex; align-items: center; gap: 12px; padding: 0 var(--pad) 6px; }
.sp-row .search { flex: 1; min-width: 0; }
.sp-row .cancel { flex: none; white-space: nowrap; font-size: 15px; color: var(--mid); padding: 8px 2px; }
.sp-body { padding: 0 var(--pad); }
.sp-body .sec-t { padding: 20px 0 10px; }
.sp-body .sec-t h2 { font-size: 15px; }
.sp-body .sec-t button svg { width: 16px; height: 16px; }
.sp-body .pills { margin: 0; padding: 0; flex-wrap: wrap; row-gap: 8px; }
.sp-zones { margin-top: 14px !important; }
.sp-top a, .sp-hit, .hot li a, .sp-go { margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 12px; transition: background var(--t-press); }
.sp-top a { display: flex; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.sp-top .shot { width: 112px; flex: none; }
.sp-top .no, .hot .no { width: 22px; flex: none; text-align: center; font: 700 18px var(--num); color: var(--dim); }
.sp-top .no { color: var(--pink); }
.sp-top b { font-size: 15px; font-weight: 500; line-height: 1.42; }
.sp-top small { display: block; margin-top: 3px; font-size: 12px; color: var(--dim); }
.sp-go { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 10px; padding-bottom: 10px; background: var(--pink-soft); }
.sp-go .shot { width: 96px; flex: none; border-radius: 10px; }
.sp-go span:not(.shot) { flex: 1; min-width: 0; }
.sp-go b { display: block; font-size: 14px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-go small { font-size: 12px; color: var(--mid); }
.sp-go em { flex: none; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--pink); color: var(--pink-ink); font: normal 700 13px/28px var(--font); }
.sp-near h3 { margin: 22px 0 10px; font-size: 13px; font-weight: 500; color: var(--dim); }
.near { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.sp-near .near { justify-content: flex-start; margin-top: 0; }
.sp-keys { display: none; }
.spanel [data-k].is-k { background: rgba(255,255,255,.08); }
.spanel .pill[data-k].is-k { background: var(--s3); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--pink); }
.hot li a { display: flex; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; }
.hot .t { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot small { font: 12px var(--num); color: var(--dim); }
.sp-hits { display: flex; flex-direction: column; }
.sp-hit { display: flex; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.sp-hit .shot { width: 120px; flex: none; border-radius: 10px; }
.sp-hit b { font-size: 15px; font-weight: 600; line-height: 1.4; }
.sp-hit small { font-size: 12px; color: var(--dim); }
.sp-hit mark { background: none; color: var(--pink); }
.sp-none { padding: 18px 2px; font-size: 14px; color: var(--dim); }

.shot { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--s2); }
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 播放 ---------- */
.player { position: relative; background: #000; overflow: hidden; color: #fff; }
.player.starwave iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.player.starwave:fullscreen { display: block; width: 100%; height: 100%; }
.player.starwave:fullscreen iframe { height: 100%; aspect-ratio: auto; }
.player.starwave:-webkit-full-screen { display: block; width: 100%; height: 100%; }
.player.starwave:-webkit-full-screen iframe { height: 100%; aspect-ratio: auto; }
.watch-main > .player.starwave.is-pseudo-full { position: fixed; inset: 0; z-index: 300; margin: 0; border-radius: 0; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.player.starwave.is-pseudo-full iframe { height: 100%; aspect-ratio: auto; }
html.is-pseudo-full, html.is-pseudo-full body { overflow: hidden; overscroll-behavior: none; }
.player-gate { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.player-gate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.55); transform: scale(1.04); }
.player-gate .lockup-btn { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #fff; }
.player-gate .lockup-btn i { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.player-gate .lockup-btn svg { width: 26px; height: 26px; }

/* 连播：下一部海报 + 倒数圆环，一秒走一格 */
@property --p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.cd { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; font: 700 18px var(--num); color: #fff; }
.cd::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--pink) var(--p), rgba(255,255,255,.22) 0); transition: --p 1s linear; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }
.cd.sm { width: 24px; height: 24px; font-size: 11px; color: var(--ink); }
.cd.sm::before { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); }
.upnext { position: absolute; z-index: 6; inset: 0; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: rgba(10,9,11,.74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fadein var(--t-page) var(--ease); }
.upnext[hidden] { display: none; }
.upnext .shot { width: 132px; flex: none; }
.upnext .shot::before { content: ""; position: absolute; inset: 0; z-index: 2; background: rgba(0,0,0,.35); }
.upnext .shot .cd { position: absolute; z-index: 3; left: 50%; top: 50%; margin: -22px 0 0 -22px; }
.upnext .ut { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.upnext .ut small { font-size: 12px; color: rgba(255,255,255,.7); }
.upnext .ut b { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.upnext .ub { display: flex; gap: 8px; margin-top: 4px; }
.upnext .ub .btn { height: 34px; padding: 0 14px; font-size: 13px; }
@keyframes fadein { from { opacity: 0; } }

.player-note { font-size: 13px; color: var(--dim); }
.player-note:not(:empty) { padding-top: 10px; }

.info { padding-top: 14px; }
.info h1 { font-size: 20px; line-height: 1.4; font-weight: 700; }
.info h1 .tag { vertical-align: 2px; margin-left: 6px; }
.info .meta { margin-top: 6px; }
.acts { display: flex; justify-content: space-between; margin-top: 16px; padding: 0 4px; }
.act { position: relative; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; color: var(--mid); --bx: 50%; --by: 11px; }
.act svg { width: 22px; height: 22px; color: var(--ink); transition: transform var(--t-press) var(--ease); }
.act:active svg { transform: scale(.8); }
.act[aria-pressed="true"], .act[aria-pressed="true"] svg { color: var(--pink); }
/* 收藏、点赞三拍：按下缩到 80%，松手弹到 118% 冒一圈小点，再回原大小 */
@keyframes pop { 0% { transform: scale(.8); } 45% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes burst { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.45); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1); } }
.act.is-pop svg { animation: pop var(--t-page) var(--bounce); }
.act.is-pop::before {
  content: ""; position: absolute; left: var(--bx); top: var(--by); width: 50px; height: 50px; border-radius: 50%; pointer-events: none; animation: burst var(--t-page) var(--ease) forwards;
  background: radial-gradient(circle at 50% 4%, var(--pink) 2.2px, transparent 2.8px), radial-gradient(circle at 96% 50%, var(--pink) 2.2px, transparent 2.8px), radial-gradient(circle at 50% 96%, var(--pink) 2.2px, transparent 2.8px), radial-gradient(circle at 4% 50%, var(--pink) 2.2px, transparent 2.8px),
    radial-gradient(circle at 17% 17%, #ffb36b 1.6px, transparent 2.2px), radial-gradient(circle at 83% 17%, #ffb36b 1.6px, transparent 2.2px), radial-gradient(circle at 83% 83%, #ffb36b 1.6px, transparent 2.2px), radial-gradient(circle at 17% 83%, #ffb36b 1.6px, transparent 2.2px);
}
.about { margin-top: 16px; padding: 14px 16px; border-radius: 20px; background: var(--s1); color: var(--mid); font-size: 14px; line-height: 1.8; }
.about > :first-child { margin-top: 0; }
.about-t { white-space: pre-line; }
.about.is-short .about-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.about .more { margin-top: 2px; font-size: 13px; color: var(--ink); font-weight: 700; transition: color var(--t-fade); }
.about .more:hover { color: var(--pink); }
/* 资料：导演、主演、地区、语言、上映，标签一列右边对齐内容 */
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 18px; margin: 10px 0 0; font-size: 13px; line-height: 1.7; }
.kv > div { display: contents; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.about.is-short .kv .is-x, .about-sheet .kv .is-x { display: none; }
.info-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.info-tags:empty { display: none; }
a.tag.soft { transition: background var(--t-fade), color var(--t-fade); }
a.tag.soft:hover { background: var(--s3); color: var(--ink); }
.info .meta .q, .about-sheet .meta .q, .rs-b .meta .q { height: 20px; padding: 0 6px; border-radius: 6px; display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.34); color: var(--ink); font: 700 11px/1 var(--num); letter-spacing: .04em; }
/* 选集：两位数编号的定宽小块；当前一集反白，看了一半底下一道粉线，看完变暗，连载最新一集带「新」 */
.eps { margin-top: 14px; }
.ep-head { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.ep-head b { font-size: 15px; font-weight: 700; color: var(--ink); }
.ep-head small { font-size: 12px; color: var(--dim); }
.ep-order, .ep-all { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border-radius: 10px; font-size: 12px; color: var(--mid); }
.ep-order { margin-left: auto; }
.ep-order:hover, .ep-all:hover { background: var(--s2); color: var(--ink); }
.ep-lines { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.ep-lines::-webkit-scrollbar { display: none; }
.ep-lines button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--s2); color: var(--mid); font-size: 13px; white-space: nowrap; }
.ep-lines button em { font: normal 11px var(--num); color: var(--dim); }
.ep-lines button[aria-pressed="true"] { background: var(--pink-soft); color: var(--pink); font-weight: 700; }
.ep-lines button[aria-pressed="true"] em { color: var(--pink); }
.ep-segs { display: flex; gap: 4px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.ep-segs::-webkit-scrollbar { display: none; }
.ep-segs button { flex: none; height: 28px; padding: 0 10px; border-radius: 10px; font: 12px var(--num); color: var(--dim); }
.ep-segs button[aria-pressed="true"] { background: var(--s2); color: var(--ink); font-weight: 700; }
.ep-row { display: flex; gap: 8px; margin: 10px calc(-1 * var(--pad)) 0; padding: 0 var(--pad) 2px; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: var(--pad); }
.ep-row::-webkit-scrollbar { display: none; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; margin-top: 10px; }
.ep { position: relative; flex: none; width: 52px; height: 38px; border-radius: 10px; background: var(--s2); color: var(--ink); font: 600 14px var(--num); font-variant-numeric: tabular-nums; transition: background var(--t-fade); }
.ep-grid .ep { width: auto; }
.ep.is-wide { width: auto; min-width: 52px; padding: 0 10px; font-family: inherit; font-size: 13px; }
.ep:hover { background: var(--s3); }
.ep.is-now { background: var(--ink); color: var(--bg); font-weight: 700; }
.ep.is-seen { color: var(--dim); font-weight: 500; }
.ep.is-half::after { content: ""; position: absolute; left: 10px; right: 50%; bottom: 5px; height: 2px; border-radius: 6px; background: var(--pink); }
.ep.is-new::before { content: "新"; position: absolute; top: -5px; right: -4px; padding: 0 4px; border-radius: 6px; background: var(--pink); color: #fff; font: 700 11px/15px sans-serif; }
.ep-sheet .mg-sheet h2 { margin-bottom: 6px; }
.ep-sheet .ep-grid { max-height: 52dvh; overflow-y: auto; padding-top: 6px; }
.np-tabs, .np-eps { display: none; }
.dm-panel { margin-top: 18px; padding: 0 16px 6px; border-radius: 20px; background: var(--s1); }
.dm-panel .sec-t { align-items: center; padding: 14px 0 10px; }
.dm-panel h2 { font-size: 18px; }
.dm-panel h2 em { margin-left: 4px; font-style: normal; font-size: 13px; font-weight: 500; color: var(--dim); }
.dm-sort { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--s2); }
.dm-sort button { height: 26px; padding: 0 10px; border-radius: 10px; font-size: 12px; color: var(--dim); }
.dm-sort button[aria-pressed="true"] { background: var(--s3); color: var(--ink); font-weight: 700; }
.dm-send { display: flex; gap: 8px; }
.dm-send input { flex: 1; min-width: 0; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--s2); color: var(--ink); font: inherit; font-size: 14px; }
.dm-send input::placeholder { color: var(--dim); }
.dm-send input:focus { outline: none; border-color: var(--pink); }
.dm-send .btn { flex: none; }
.dm-send .btn.pk:disabled { opacity: 1; background: var(--s3); color: var(--dim); box-shadow: none; }
.dm-list { margin: 8px 0 0; padding: 0; list-style: none; }
.dm-list.is-open { max-height: 460px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.dm-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.dm-item:first-child { border-top: 0; }
.dm-at { min-width: 50px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--s2); color: var(--pink); font: 600 12px var(--num); letter-spacing: .02em; text-align: center; }
.dm-at:hover { background: var(--s3); }
.dm-item p { min-width: 0; color: var(--ink); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.dm-item p i { display: inline-block; width: 6px; height: 6px; margin: 0 7px 2px 0; border-radius: 50%; vertical-align: middle; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.dm-item time { color: var(--dim); font: 12px var(--num); white-space: nowrap; }
.dm-empty { padding: 18px 0 14px; text-align: center; color: var(--dim); font-size: 13px; }
.dm-more { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 40px; border-top: 1px solid var(--line); color: var(--mid); font-size: 13px; font-weight: 600; }
.dm-more:hover { color: var(--ink); }
.dm-more[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (max-width: 520px) { .dm-item time { display: none; } }
.about-row, .dm-open, .dm-panel .dm-x, .p-top { display: none; }
.about-sheet .meta { margin-top: 6px; }
.about-sheet .meta [data-f="code"], .about-sheet .meta [data-f="plays"], .about-sheet .meta i:has(+ [data-f="code"]), .about-sheet .meta i:has(+ [data-f="plays"]) { display: none; }
.about-sheet .kv { margin-top: 16px; font-size: 14px; }
.about-sheet .about-full { margin-top: 14px; color: var(--mid); font-size: 15px; line-height: 1.8; white-space: pre-line; }
.about-sheet .info-tags { margin-top: 14px; }

.next-panel .sec-t { padding-top: 22px; padding-bottom: 6px; }
.next-panel .auto { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mid); }
.next-panel .auto .a-l { display: none; }
.lrow .shot .du { position: absolute; z-index: 2; right: 6px; bottom: 6px; height: 18px; padding: 0 5px; border-radius: 6px; display: inline-flex; align-items: center; background: rgba(17,16,19,.72); color: #fff; font: 600 11px var(--num); white-space: nowrap; }
.lrow { display: flex; gap: 12px; padding: 8px 0; }
.lrow .shot { width: 144px; flex: none; border-radius: 10px; }
.lrow .b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lrow .b b { font-size: 15px; font-weight: 500; line-height: 1.42; }
.lrow .b small { font-size: 12px; color: var(--dim); }
.lrow .soon { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-top: 1px; color: var(--pink); font-size: 12px; font-weight: 700; }
.lrow .soon svg { width: 11px; height: 11px; }
.lrow[aria-current="true"] .shot { box-shadow: 0 0 0 2px var(--pink); }
.lrow[aria-current="true"] .b small:last-child { color: var(--pink); font-weight: 700; }

/* ---------- 历史 ---------- */
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 0 4px; }
.page-head h1 { font-size: 30px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.page-head h1 span { font: 400 15px var(--num); color: var(--dim); }
.page-head .tools button { font-size: 15px; color: var(--mid); font-weight: 500; transition: color var(--t-fade); }
.page-head .tools button:hover { color: var(--ink); }
.is-editing .page-head .tools button { color: var(--pink); font-weight: 700; }
.wkm { margin-top: 12px; padding: 16px; border-radius: 20px; background: var(--s1); display: flex; align-items: flex-end; gap: 16px; }
.wkm b { display: block; font: 700 28px/1 var(--num); }
.wkm b small { font: 400 13px var(--font); color: var(--mid); margin-left: 4px; }
.wkm p { margin-top: 6px; font-size: 12px; color: var(--dim); }
.wkm .bars { margin-left: auto; height: 52px; display: flex; align-items: flex-end; gap: 6px; }
.wkm .bars i { width: 10px; min-height: 3px; border-radius: 6px; background: var(--s3); }
.wkm .bars i.on { background: var(--pink); }
.wkm b.is-0, .wk b.is-0 { font: 700 15px/1.4 var(--font); }
.wkm p a, .wk p a { color: var(--pink); }
.wkm p a:hover, .wk p a:hover { text-decoration: underline; text-underline-offset: 3px; }
#hist-filter { margin-top: 10px; }
#hist-filter .tabs { display: inline-flex; flex: none; gap: 22px; }
#hist-filter .tab { position: relative; height: 36px; padding: 0; border-radius: 0; background: none; color: var(--mid); }
#hist-filter .tab[aria-selected="true"] { color: var(--ink); font-weight: 700; }
#hist-filter .tab[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 16px; height: 3px; margin-left: -8px; border-radius: 6px; background: var(--pink); }
@media (min-width: 720px) {
  #hist-filter { float: left; margin: 14px 24px 0 0; }
  .hist-main .hist-row { margin: 14px 0 0; padding: 0; }
  #hist-sub, #hist-paused, #hist-cont, #hist-groups, #hist-empty { clear: both; }
}
.hcont { position: relative; display: block; margin-top: 16px; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--s2); }
.hcont img { width: 100%; height: 100%; object-fit: cover; }
.hcont::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.82)); }
.hc-t { position: absolute; z-index: 2; left: 16px; right: 16px; top: 14px; bottom: 14px; display: flex; flex-direction: column; }
.hc-t b { margin-top: auto; font-size: 20px; font-weight: 700; line-height: 1.3; }
.hbar { display: block; height: 3px; border-radius: 6px; background: rgba(255,255,255,.25); margin: 10px 0; overflow: hidden; }
.hbar i { display: block; height: 100%; border-radius: 6px; background: var(--pink); }
.hc-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: rgba(255,255,255,.75); }
.hc-r .btn { height: 36px; padding: 0 14px; font-size: 14px; }
.dayh { display: flex; align-items: baseline; justify-content: space-between; padding: 24px 0 8px; }
.dayh h2 { font-size: 18px; font-weight: 700; }
.dayh h2 em { margin-left: 8px; font: normal 400 12px var(--num); color: var(--dim); }
.dayh span, .dayh button { font-size: 13px; color: var(--dim); }
.dayh button { color: var(--ink); font-weight: 700; }
.hlist { display: flex; flex-direction: column; }
.hrow { position: relative; overflow: hidden; border-radius: 12px; display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--t-fade) var(--ease), opacity var(--t-fade); }
.hrow > .hitem { min-height: 0; }
.hrow.is-gone { grid-template-rows: 0fr; opacity: 0; }
.hrow.is-back { animation: rowin var(--t-fade) var(--ease); }
@keyframes rowin { from { opacity: 0; transform: translateY(-6px); } }
.hrow .del { position: absolute; right: 0; top: 6px; bottom: 6px; width: 76px; border-radius: 12px 0 0 12px; background: var(--danger); color: #fff; font-size: 14px; font-weight: 700; }
.hitem { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 7px 0; background: var(--bg); cursor: pointer; transition: transform var(--t-sheet) var(--ease); touch-action: pan-y pinch-zoom; }
.hrow.is-swiped .hitem { transform: translateX(-84px); }
.hrow.is-drag .hitem { transition: none; }
.hitem .shot { width: 132px; flex: none; border-radius: 10px; }
.hitem .b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-right: 44px; }
.hitem .b b { font-size: 15px; font-weight: 500; line-height: 1.42; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.hitem .b span { font-size: 12px; color: var(--dim); }
.hitem time { position: absolute; right: 0; top: 9px; font: 12px var(--num); color: var(--dim); }
.done { display: inline-flex; align-items: center; gap: 3px; }
.done svg { width: 12px; height: 12px; }
.hck { display: none; width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); place-items: center; color: var(--pink-ink); }
.hck svg { width: 13px; height: 13px; visibility: hidden; }
.is-editing .hck { display: grid; }
.is-editing .hitem time { display: none; }
.hitem[aria-selected="true"] .hck { background: var(--pink); box-shadow: none; }
.hitem[aria-selected="true"] .hck svg { visibility: visible; }
.editbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; padding: 12px var(--pad) calc(12px + var(--safe-bottom)); display: grid; grid-template-columns: 1fr 2fr; gap: 10px; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-top: 1px solid var(--line); }
.is-editing .tabbar { visibility: hidden; }
.hside { display: none; }
.card { padding: 20px; border-radius: 20px; background: var(--s1); }
.card + .card { margin-top: 16px; }
.card h3 { font-size: 15px; margin-bottom: 14px; }
.wk { display: flex; align-items: flex-end; gap: 16px; }
.wk b { display: block; font: 700 28px/1 var(--num); }
.wk b small { font: 400 13px var(--font); color: var(--mid); margin-left: 4px; }
.wk p { margin-top: 6px; font-size: 12px; color: var(--dim); }
.wk .bars { margin-left: auto; height: 70px; display: flex; align-items: flex-end; gap: 6px; }
.wk .bars div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--dim); }
.wk .bars i { width: 12px; min-height: 3px; border-radius: 6px; background: var(--s3); }
.wk .bars .is-today i { background: var(--pink); }
.wk .bars .is-today { color: var(--ink); }
.zbar { display: grid; grid-template-columns: 52px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; margin-top: 10px; color: var(--mid); }
.zbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zbar i { height: 8px; border-radius: 6px; background: var(--s3); position: relative; overflow: hidden; }
.zbar i b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--pink); }
.zbar em { font: normal 12px var(--num); text-align: right; }
.hopt { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; font-size: 15px; font-weight: 700; text-align: left; }
.hopt + .hopt { border-top: 1px solid var(--line); }
.hopt small { display: block; font-size: 12px; font-weight: 400; color: var(--dim); margin-top: 2px; }
.hopt.danger { color: var(--bad); }
.hopt.danger:disabled { opacity: .4; cursor: default; }
.hopt svg { width: 16px; height: 16px; }
.paused-note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--pink-soft); color: var(--pink); font-size: 14px; font-weight: 500; }

/* ---------- 我的 / 邀请 ---------- */
.prof { display: flex; align-items: center; gap: 14px; padding: 18px 4px 0; }
.prof .av { width: 60px; height: 60px; font-size: 24px; }
.av { overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prof h1 { font-size: 20px; font-weight: 700; }
.prof p { font-size: 13px; color: var(--dim); }
.mcard { position: relative; margin-top: 20px; padding: 18px; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 140% at 100% 0, rgba(236,127,160,.5), rgba(236,127,160,.08) 55%, transparent 70%), var(--s1); box-shadow: inset 0 0 0 1px rgba(236,127,160,.28); }
.mcard.is-free { background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.mcard .lbl { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--pink); }
.mcard h2 { margin-top: 6px; font-size: 20px; padding-right: 80px; }
.mcard p { margin-top: 2px; font-size: 13px; color: var(--mid); padding-right: 80px; }
.mcard p b { color: var(--ink); font-family: var(--num); }
@media (max-width: 719.98px) { body[data-page="me"] .top .me-btn { display: none; } }
.mcard .btn { margin-top: 16px; height: 40px; font-size: 14px; }
.ring { position: absolute; right: 18px; top: 18px; width: 68px; height: 68px; border-radius: 50%; background: conic-gradient(var(--pink) 0 var(--p, 0%), rgba(255,255,255,.12) 0); display: grid; place-items: center; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--s1); }
.ring span { position: relative; text-align: center; }
.ring b { display: block; font: 700 18px/1.1 var(--num); }
.ring small { display: block; font-size: 11px; color: var(--mid); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; padding: 14px 0; border-radius: 20px; background: var(--s1); }
.trio div { text-align: center; }
.trio div + div { border-left: 1px solid var(--line); }
.trio b { display: block; font: 700 24px var(--num); }
.trio span { font-size: 12px; color: var(--mid); }
.mlist { margin-top: 14px; border-radius: 20px; background: var(--s1); overflow: hidden; }
.mlist > a, .mlist > div, .mlist > form button { width: 100%; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; font-size: 15px; text-align: left; }
.mlist > * + * { background: linear-gradient(var(--line), var(--line)) 48px 0 / calc(100% - 48px) 1px no-repeat; }
.mlist svg { width: 20px; height: 20px; color: var(--mid); flex: none; }
.mlist .end { margin-left: auto; color: var(--dim); font-size: 13px; display: flex; align-items: center; gap: 4px; }
.mlist .end svg { width: 16px; height: 16px; }
.mlist .bad, .mlist .bad svg { color: var(--bad); }
.peek { margin-top: 14px; padding: 0 16px 16px; border-radius: 20px; background: var(--s1); }
.peek-h { display: flex; align-items: center; gap: 12px; height: 52px; font-size: 15px; }
.peek-h svg { width: 20px; height: 20px; color: var(--mid); flex: none; }
.peek-h .end { margin-left: auto; display: flex; align-items: center; gap: 4px; color: var(--dim); font: 13px var(--num); transition: color var(--t-fade); }
.peek-h .end svg { width: 16px; height: 16px; color: inherit; }
.peek-g + .peek-h { margin-top: 6px; }
.peek-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.peek-c { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--s2); }
.peek-c img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.peek-c .du { position: absolute; right: 5px; bottom: 5px; height: 18px; padding: 0 5px; border-radius: 6px; display: inline-flex; align-items: center; background: rgba(17,16,19,.72); color: #fff; font: 600 11px var(--num); white-space: nowrap; }
.peek-c .prog { left: 6px; right: 6px; bottom: 6px; height: 3px; }
.peek-c.is-nil, .peek-c.is-go { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.peek-c.is-go { display: grid; place-items: center; color: var(--dim); font-size: 12px; transition: color var(--t-fade), background-color var(--t-fade); }
@media (hover: hover) {
  a.peek-c:not(.is-go):hover img { transform: scale(1.05); }
  .peek-c.is-go:hover { color: var(--ink); background: var(--s2); }
  .peek-h:hover .end { color: var(--ink); }
}
.inv-panel { display: none; }
.inv-h { padding: 20px 4px 0; text-align: center; }
.inv-h h1 { font-size: 28px; font-weight: 700; }
.inv-h h1 b { color: var(--pink); }
.inv-h p { margin-top: 8px; font-size: 14px; color: var(--mid); line-height: 1.7; }
.slots { display: flex; justify-content: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.slots div { text-align: center; font-size: 12px; color: var(--dim); }
.slots i { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; }
.slots i svg { width: 26px; height: 26px; }
.slots .ok i { background: var(--pink); color: var(--pink-ink); box-shadow: 0 10px 30px -8px rgba(236,127,160,.7); }
.slots .wait i { border: 2px dashed rgba(255,255,255,.25); color: var(--dim); }
.lk { margin-top: 26px; padding: 14px; border-radius: 20px; background: var(--s1); }
.lk .url { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--s2); font: 14px Consolas, monospace; color: var(--mid); min-width: 0; }
.lk .url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk .url svg { width: 16px; height: 16px; flex: none; }
.lk .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.lk .two.has-tg { grid-template-columns: 1fr 1fr 46px; }
.lk .two.has-tg.no-share { grid-template-columns: 1fr 46px; }
.btn.tg { background: #2aabee; color: #fff; }
.rec div { display: flex; align-items: center; gap: 12px; padding: 11px 2px; background: linear-gradient(var(--line), var(--line)) 42px 100% / calc(100% - 42px) 1px no-repeat; font-size: 14px; }
.rec .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink); flex: none; }
.rec .dot svg { width: 15px; height: 15px; }
.rec .gold .dot { background: var(--pink); color: var(--pink-ink); }
.rec time { margin-left: auto; font: 12px var(--num); color: var(--dim); white-space: nowrap; }
.rec-empty { padding: 18px 2px; font-size: 14px; color: var(--dim); }
.rule { margin-top: 18px; padding: 14px 16px; border-radius: 20px; background: var(--s1); font-size: 13px; line-height: 1.8; color: var(--mid); }

/* ---------- 弹窗与登录 ---------- */
dialog { color: var(--ink); }
.glass-dialog {
  width: min(400px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px; overflow: visible;
  background: var(--s1); box-shadow: 0 30px 90px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.06);
}
.glass-dialog::backdrop { background: rgba(10,9,11,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.glass-dialog[open] { animation: pop var(--t-sheet) var(--ease); }
.glass-dialog:focus, .glass-dialog:focus-visible { outline: none; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.dlg-x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--s2); display: grid; place-items: center; color: var(--mid); }
.dlg-x:hover { color: var(--ink); }
.dlg-x svg { width: 18px; height: 18px; }
.confirm-box { padding: 30px 26px 24px; text-align: center; }
.confirm-box h2 { font-size: 20px; }
.confirm-box p { margin-top: 8px; font-size: 14px; color: var(--mid); line-height: 1.6; }
.confirm-box .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }

.login-box { padding: 28px; display: flex; flex-direction: column; }
.login-box .film { display: flex; gap: 12px; align-items: center; padding: 10px; margin-bottom: 20px; border-radius: 12px; background: var(--s2); }
.login-box .film .shot { width: 96px; flex: none; border-radius: 10px; }
.login-box .film b { display: block; font-size: 14px; line-height: 1.4; }
.login-box .film small { font-size: 12px; color: var(--dim); }
.login-box .film.is-next { margin: 20px 0 4px; }
.login-box .film.is-next small { display: block; margin-bottom: 4px; }
.login-box :is(h1, h2) { font-size: 20px; font-weight: 700; }
@media (min-width: 720px) { .login-box :is(h1, h2) { font-size: 24px; } }
.login-box .sub { margin-top: 6px; font-size: 14px; color: var(--mid); line-height: 1.6; }
.login-box form { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.flab { margin: 2px 0 -6px 2px; font-size: 13px; font-weight: 500; color: var(--mid); }
.field { height: 48px; border-radius: 12px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: center; gap: 10px; padding: 0 16px; color: var(--dim); transition: box-shadow var(--t-fade); }
.field:focus-within { box-shadow: inset 0 0 0 1.5px var(--pink); color: var(--ink); }
.field .caps { flex: none; padding: 2px 8px; border-radius: 6px; background: rgba(255,183,77,.14); color: var(--warn); font-size: 11px; font-weight: 700; white-space: nowrap; }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 15px; color: var(--ink); }
.field input::placeholder { color: var(--dim); }
.field .eye { width: 30px; height: 30px; display: grid; place-items: center; color: var(--dim); flex: none; }
.field .eye svg { width: 18px; height: 18px; }
.field .btn { height: 34px; padding: 0 12px; font-size: 13px; }
.login-box .btn.go { margin-top: 4px; height: 50px; }
.login-note { min-height: 20px; margin-top: -4px; font-size: 13px; color: var(--mid); text-align: left; }
.login-note:empty { min-height: 0; margin: 0; }
/* 出错：输入框红边，左右晃 3 下；提示前加感叹号 */
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.login-box.is-err .field:not(:focus-within) { box-shadow: inset 0 0 0 1.5px var(--bad); }
.login-box.is-err .field { animation: shake var(--t-page) ease-in-out; }
.login-box.is-err .login-note:not(:empty) { display: flex; align-items: center; gap: 6px; color: #ff8f86; }
.login-box.is-err .login-note:not(:empty)::before { content: "!"; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--bad); color: #1a0f10; font: 700 11px/16px var(--num); text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.btn.is-busy { opacity: .86; pointer-events: none; }
.login-alt { font-size: 14px; color: var(--mid); text-align: center; }
.login-alt a, .login-alt button, .login-note a { color: var(--pink); font-weight: 700; }
.gift { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--pink-soft); font-size: 13px; line-height: 1.55; }
.gift svg { width: 26px; height: 26px; color: var(--pink); flex: none; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mid); }
.check input { width: 18px; height: 18px; accent-color: var(--pink); }
.steps { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--dim); }
.steps i { width: 24px; height: 4px; border-radius: 6px; background: var(--s3); }
.steps i.on { background: var(--pink); }
.login-box .step { display: flex; flex-direction: column; gap: 12px; }
/* 找回密码 */
.login-forgot { margin: -4px 2px 0 0; text-align: right; font-size: 13px; }
.login-forgot a { color: var(--mid); font-weight: 600; }
.login-who { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--s2); }
.login-who .av { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: var(--pink-ink); font-weight: 700; }
.login-who div { min-width: 0; }
.login-who b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-who small { display: block; font-size: 12px; color: var(--dim); }
.login-who .ok { margin-left: auto; flex: none; font-size: 12px; font-weight: 700; color: var(--pink); }
.login-pair { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.login-pair .btn { text-decoration: none; }
.login-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--s2); }
.login-contact[hidden] { display: none; }
/* 联系方式大行（contact-rows.css）换成品艺的深色 */
.login-contact .sf-ctc-row { background: var(--s3); }
.login-contact .sf-ctc-ico { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.login-contact .sf-ctc-txt small { color: var(--dim); }
.login-contact .sf-ctc-txt b { color: var(--ink); }
.login-contact .sf-ctc-btn.is-ink { background: var(--pink); color: var(--pink-ink); }
.login-contact .sf-ctc-btn.is-soft { background: rgba(255, 255, 255, 0.1); color: var(--ink); }
@media (min-width: 960px) and (hover: hover) {
  .login-contact .sf-ctc-row.is-phone .sf-ctc-btn.is-soft { background: var(--pink); color: var(--pink-ink); }
  .login-contact .sf-ctc-btn.is-soft:hover { background: rgba(255, 255, 255, 0.16); }
}
.hcont .eyebrow { text-shadow: 0 1px 10px rgba(0,0,0,.75); }
.login-page { display: flex; justify-content: center; padding-top: 28px; }
.login-page .login-box { width: min(420px, 100%); border-radius: 20px; background: var(--s1); }
.lwall { display: none; }
.gate-box { align-items: center; text-align: center; }
.gate-box .ei { width: 60px; height: 60px; border-radius: 20px; background: var(--pink-soft); color: var(--pink); display: grid; place-items: center; margin-bottom: 16px; }
.gate-box .ei svg { width: 28px; height: 28px; }
.gate-box .btn { margin-top: 20px; }
.login-page.has-hot { flex-direction: column; align-items: center; }
.login-page.has-hot .nf-hot-sec { width: 100%; margin-top: 36px; }
.nf-hot .vc-sv { display: none !important; }
.nf-hot img.is-err { visibility: hidden; }

.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--tab-h) + var(--safe-bottom) + 20px); transform: translate(-50%, 10px); display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: rgba(245,242,240,.96); color: var(--bg); box-shadow: 0 12px 30px rgba(0,0,0,.4); font-size: 14px; font-weight: 700; opacity: 0; transition: opacity var(--t-fade), transform var(--t-sheet) var(--ease); pointer-events: none; white-space: nowrap; }
.toast svg { width: 16px; height: 16px; flex: none; color: var(--pink); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.dark { gap: 12px; padding: 8px 8px 8px 18px; background: rgba(44,43,49,.96); color: var(--ink); font-weight: 500; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 12px 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08); }
.toast.dark.is-on { pointer-events: auto; }
.toast.dark button { height: 30px; padding: 0 14px; border-radius: 999px; background: var(--pink-soft); color: var(--pink); font-size: 14px; font-weight: 700; }
.share-pop { position: fixed; z-index: 86; min-width: 188px; display: grid; padding: 6px; border-radius: 14px; background: rgba(44,43,49,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 16px 36px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08); animation: fadein var(--t-fade) var(--ease); }
.share-pop > * { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; color: var(--ink); text-align: left; white-space: nowrap; }
.share-pop > :hover, .share-pop > :focus-visible { background: rgba(255,255,255,.08); outline: none; }
.share-pop svg { flex: none; color: var(--mid); }
.offline { position: fixed; z-index: 85; left: var(--pad); right: var(--pad); top: calc(var(--safe-top) + var(--top-h) + 10px); max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(44,43,49,.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 12px 30px rgba(0,0,0,.4); font-size: 13px; animation: fadein var(--t-fade) var(--ease); }
.offline svg { width: 18px; height: 18px; flex: none; color: var(--warn); }
.offline button { margin-left: auto; color: var(--pink); font-weight: 700; }
.offline.is-back svg { color: #7bd88f; }
.offline.is-flash { animation: off-flash .5s var(--ease); }
@keyframes off-flash { 30% { box-shadow: 0 0 0 2px var(--warn), 0 12px 30px rgba(0,0,0,.4); } }
.sp-hit, .grid > .vc { animation: fadein var(--t-page) var(--ease) both; }
.shint { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--s1); font-size: 13px; color: var(--mid); }
.shint svg { width: 16px; height: 16px; flex: none; color: var(--pink); }

/* ---------- 超级会员管理 ---------- */
.mg-btn {
  height: 34px; padding: 0 12px; border-radius: 999px; flex: none; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--ink); font-size: 14px; font-weight: 700; transition: background var(--t-fade), color var(--t-fade);
}
.mg-btn:hover { background: rgba(255,255,255,.18); }
.mg-btn svg { width: 18px; height: 18px; }
.mg-btn[aria-pressed="true"] { background: var(--pink); color: var(--pink-ink); padding: 0 16px; }
.vck { display: none; position: absolute; z-index: 3; left: 8px; top: 8px; width: 24px; height: 24px; border-radius: 50%; place-items: center; background: rgba(0,0,0,.4); box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); color: var(--pink-ink); }
.vck svg { width: 14px; height: 14px; visibility: hidden; }
.is-managing .vck { display: grid; }
.is-managing .vc { cursor: pointer; }
.is-managing .vc:hover .vc-ph .pic { transform: none; }
.vc.is-picked .vck { background: var(--pink); box-shadow: none; }
.vc.is-picked .vck svg { visibility: visible; }
.vc.is-picked .vc-ph .pic { transform: scale(.93) !important; }
.vc.is-picked .vc-ph::after { content: ""; position: absolute; z-index: 2; inset: 0; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--pink); pointer-events: none; }
.vc.is-picked .vc-t h3 { color: var(--pink); }
.is-managing .tabbar { visibility: hidden; }
.is-managing main { padding-bottom: calc(var(--safe-bottom) + 150px); }
.is-managing .toast { bottom: calc(var(--safe-bottom) + 130px); }
.mgbar {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; padding: 10px var(--pad) calc(12px + var(--safe-bottom)); display: grid; gap: 8px;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-top: 1px solid var(--line);
}
.mg-head { display: flex; align-items: center; gap: 4px; min-height: 36px; }
.mg-head b { flex: 1; font-size: 15px; font-weight: 700; }
.mg-head b .n { color: var(--pink); font-size: 18px; }
.mg-head button { height: 36px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--mid); }
.mg-head button:hover { color: var(--ink); background: var(--s2); }
.mg-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mg-acts .btn { width: 100%; height: 42px; padding: 0 10px; gap: 6px; }
.mg-acts .btn svg { width: 17px; height: 17px; }
.act.is-mg svg { color: var(--pink); }
.mg-sheet { padding: 26px 22px 22px; }
.mg-sheet h2 { font-size: 20px; font-weight: 700; padding-right: 40px; }
.mg-sheet .sub { margin-top: 6px; font-size: 14px; color: var(--mid); line-height: 1.6; }
.mg-zones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mg-zones .pill { height: 40px; padding: 0 18px; font-size: 15px; }
.mg-film { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 10px; border-radius: 12px; background: var(--s2); }
.mg-film .shot { position: relative; width: 96px; aspect-ratio: 16 / 9; flex: none; overflow: hidden; border-radius: 10px; }
.mg-film .shot img { width: 100%; height: 100%; object-fit: cover; }
.mg-film b { display: block; font-size: 14px; line-height: 1.4; }
.mg-film small { font-size: 12px; color: var(--dim); }
.mg-list { margin-top: 10px; }
.mg-list button { width: 100%; min-height: 62px; display: flex; align-items: center; gap: 14px; padding: 10px 4px; text-align: left; border-bottom: 1px solid var(--line); }
.mg-list button:last-child { border-bottom: 0; }
.mg-list button > svg:first-child { color: var(--ink); flex: none; }
.mg-list button > svg:last-child { color: var(--dim); flex: none; width: 16px; height: 16px; }
.mg-list span { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; }
.mg-list small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--dim); }
.mg-list .danger, .mg-list .danger > svg:first-child { color: var(--danger); }

/* ---------- 手机 ---------- */
@media (max-width: 719.98px) {
  input:not([type="checkbox"]):not([type="radio"]), .eps select, textarea { font-size: 16px; }
  html.is-searching .top,
  html:has(#search-panel.is-open) .top { visibility: hidden; }
  body[data-page="watch"] .tabbar { display: none; }
  body[data-page="watch"] main { padding-bottom: calc(var(--safe-bottom) + 28px); }
  .watch-back { margin-right: auto; }
  .watch-main > .player { margin: 0 calc(-1 * var(--pad)); }
  .hide-m { display: none !important; }
  #library .vc-ph .gl, #results .vc-ph .gl { display: none; }
  .is-editing .toast { bottom: calc(var(--safe-bottom) + 90px); }
  .glass-dialog.sheet { width: 100%; max-width: 100%; max-height: calc(100dvh - 40px); margin: auto 0 0; border-radius: 20px 20px 0 0; padding-bottom: var(--safe-bottom); overflow-y: auto; }
  .glass-dialog.sheet[open] { animation: rise var(--t-page) var(--ease); }
  .glass-dialog.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 6px; background: var(--s3); margin: 10px auto 0; }
  .glass-dialog.sheet .login-box { padding-top: 18px; }
  .mg-sheet h2 { padding-right: 0; }

  /* 搜索最佳匹配：整宽大图，下面只留「最佳匹配」、片名和一行事实（画质、时长在图上） */
  .rs-b .meta .q, .rs-b .meta .n, .rs-b .meta i:has(+ .n), .rs-ab, .rs-acts { display: none; }

  /* 播放页：事实行只留画质、频道、年份、时长、播放；简介收一行，先写导演，点开抽屉 */
  .info h1 { font-size: 18px; }
  .info .meta [data-f="region"], .info .meta [data-f="code"], .info .meta i:has(+ [data-f="region"]), .info .meta i:has(+ [data-f="code"]) { display: none; }
  .about-row { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; padding: 11px 12px 11px 14px; border-radius: 12px; background: var(--s1); color: var(--mid); font-size: 13px; text-align: left; }
  .about-row > span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .about-row b { color: var(--ink); font-weight: 700; }
  .about-row svg { flex: none; color: var(--dim); }
  .about-row em { margin-left: 8px; font-style: normal; }
  .acts { margin-top: 14px; }

  /* 弹幕平时是一条输入条；点开从播放器下沿铺到底，画面照常播 */
  .dm-panel { margin-top: 14px; padding: 0; background: none; }
  .dm-panel:not(.is-sheet) .sec-t, .dm-panel:not(.is-sheet) .dm-list, .dm-panel:not(.is-sheet) .dm-more, .dm-panel:not(.is-sheet) .dm-send .btn { display: none; }
  .dm-panel:not(.is-sheet) .dm-send { align-items: center; gap: 0; height: 48px; padding-left: 14px; border-radius: 12px; background: var(--s1); }
  .dm-panel:not(.is-sheet) .dm-open { display: inline-flex; align-items: baseline; gap: 5px; flex: none; height: 22px; padding-right: 12px; border-right: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 700; }
  .dm-open em { font: 500 13px var(--num); font-style: normal; color: var(--dim); }
  .dm-panel:not(.is-sheet) .dm-send input { height: 48px; padding: 0 14px 0 12px; border: 0; border-radius: 0 12px 12px 0; background: none; }
  .dm-panel.is-sheet { position: fixed; z-index: 70; left: 0; right: 0; top: var(--dm-top, 40vh); bottom: 0; display: flex; flex-direction: column; margin: 0; padding: 0 var(--pad) var(--safe-bottom); border-radius: 20px 20px 0 0; background: var(--glass-hi); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 -16px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06); animation: rise var(--t-sheet) var(--ease); }
  .dm-panel.is-sheet .sec-t { flex: none; gap: 10px; }
  .dm-panel.is-sheet .dm-sort { margin-left: auto; }
  .dm-panel.is-sheet .dm-x { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--s2); color: var(--mid); }
  .dm-x svg { width: 16px; height: 16px; }
  .dm-panel.is-sheet .dm-send { flex: none; }
  .dm-panel.is-sheet .dm-list { flex: 1; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; }
  .dm-panel.is-sheet .dm-more { display: none; }
  html.is-dm-sheet, html.is-dm-sheet body { overflow: hidden; }
}
/* 手机竖屏播放页：不放顶栏，画面顶到状态栏下面并吸顶，往下翻内容从它下面过；返回、搜索叠在画面上 */
@media (max-width: 719.98px) and (orientation: portrait) {
  body[data-page="watch"] .top { display: none; }
  body[data-page="watch"] .watch-main { display: contents; }
  body[data-page="watch"] .watch-main > .player:not(.is-pseudo-full) { position: sticky; top: 0; z-index: 30; padding-top: var(--safe-top); }
  .p-top { position: absolute; z-index: 8; top: var(--safe-top); left: 0; right: 0; display: flex; justify-content: space-between; padding: 6px 6px 0; pointer-events: none; transition: opacity var(--t-fade) var(--ease); }
  .p-top button { width: 40px; height: 40px; padding: 4px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.42); background-clip: content-box; color: #fff; pointer-events: auto; }
  .p-top.is-idle { opacity: 0; }
  .p-top.is-idle button { pointer-events: none; }
  .player.is-pseudo-full .p-top, .player:fullscreen .p-top { display: none; }
  .player:-webkit-full-screen .p-top { display: none; }
}
@media (pointer: coarse) and (max-height: 500px) {
  input:not([type="checkbox"]):not([type="radio"]), .eps select, textarea { font-size: 16px; }
}
@keyframes rise { from { transform: translateY(40px); opacity: .4; } }

/* ---------- 平板与桌面 ---------- */
@media (min-width: 720px) {
  :root { --pad: 28px; --top-h: 72px; }
  main { padding-bottom: 64px; }
  .tabbar { display: none; }
  .dlg-x + .login-box { padding-top: 60px; }
  .top-in { gap: 16px; }
  .nav { display: flex; gap: 6px; margin-left: 12px; }
  .nav > a, .ndd-btn { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; display: flex; align-items: center; font-size: 15px; color: var(--mid); white-space: nowrap; transition: color var(--t-fade), background var(--t-fade); }
  .nav > a:hover, .ndd-btn:hover, .ndd.is-open .ndd-btn { color: var(--ink); }
  .nav > a[aria-current="page"], .ndd-btn[aria-current="page"] { background: rgba(255,255,255,.12); color: var(--ink); font-weight: 700; }

  /* 顶栏「频道 ▾」下拉：频道封面格 + 常用类型 */
  .ndd { position: relative; display: flex; }
  .ndd-btn { gap: 3px; padding-right: 10px; }
  .ndd-btn svg { opacity: .6; transition: transform var(--t-fade) var(--ease), opacity var(--t-fade); }
  .ndd.is-open .ndd-btn svg { opacity: 1; transform: rotate(180deg); }
  .ndd-p { position: absolute; z-index: 2; top: calc(100% + 14px); left: -16px; width: 600px; padding: 16px; border-radius: 20px; background: var(--glass-hi); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--t-fade) var(--ease), transform var(--t-fade) var(--ease), visibility 0s linear var(--t-fade); }
  .ndd-p::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .ndd.is-open .ndd-p { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .ndd-chs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .ndd-ch { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--s2); isolation: isolate; }
  .ndd-ch .shot { display: block; aspect-ratio: 16 / 9; }
  .ndd-ch .shot img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t-page) var(--ease), transform var(--t-page) var(--ease); }
  .ndd-ch:hover .shot img { transform: scale(1.05); }
  .ndd-ch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,16,19,0) 30%, rgba(17,16,19,.86)); pointer-events: none; }
  .ndd-cn { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
  .ndd-cn b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
  .ndd-cn em { flex: none; font: normal 12px var(--num); color: rgba(255,255,255,.7); }
  .ndd-ch.is-on::after { box-shadow: inset 0 0 0 2px var(--pink); border-radius: inherit; }
  .ndd-ts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
  .ndd-ts a { height: 30px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.08); font-size: 13px; transition: background var(--t-fade), color var(--t-fade); }
  .ndd-ts a:hover { background: rgba(255,255,255,.16); }
  .ndd-ts em { font: normal 11px var(--num); color: var(--dim); }
  .ndd-ts a.is-fav { background: var(--pink-soft); color: var(--pink); font-weight: 700; }
  .ndd-ts a.is-fav em { color: inherit; opacity: .7; }
  .ndd-ts .ndd-all { margin-left: auto; background: none; color: var(--mid); }
  .ndd-ts .ndd-all:hover { background: rgba(255,255,255,.08); color: var(--ink); }
  .lockup { margin-right: 0; font-size: 20px; }
  .mark { width: 34px; height: 34px; }
  .top .search { display: flex; flex: 0 1 auto; min-width: 150px; width: min(400px, 32vw); height: 42px; margin-left: auto; border-radius: 999px; background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .top .search:focus-within { box-shadow: none; outline: 2px solid var(--pink); outline-offset: 2px; }
  .top .search-open { display: none; }
  .me-btn.is-user .nm { display: block; }
  .top-in > .me-btn:only-of-type { margin-left: 0; }
  .spanel { position: fixed; inset: auto; top: calc(100% + 8px); right: var(--pad); width: 440px; max-height: min(600px, calc(100dvh - 120px)); padding: 6px 0 16px; border-radius: 20px; background: var(--glass-hi); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); }
  .spanel .sp-row { display: none; }
  .spanel .sp-body { padding: 0 18px; }
  .sp-keys { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
  .sp-keys span { display: inline-flex; align-items: center; gap: 4px; }
  .sp-keys kbd { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; display: inline-grid; place-items: center; background: var(--s3); font: 600 11px var(--num); color: var(--ink); }
  .toast { bottom: 32px; }
  .hide-d { display: none !important; }

  /* 大图高度跟着窗口高度走，1440×900 下约 480，第一排片子留在第一屏 */
  .hero { height: clamp(420px, calc(100dvh - 400px), 540px); margin-top: calc(-1 * (var(--top-h) + 1px)); }
  .hero-stage::after { background: linear-gradient(90deg, rgba(17,16,19,.92) 0, rgba(17,16,19,.55) 38%, rgba(17,16,19,0) 64%), linear-gradient(180deg, rgba(17,16,19,.55) 0, transparent 22%, transparent 70%, var(--bg) 100%); }
  .hero-txt { bottom: 56px; }
  .hero-copy { max-width: 620px; }
  .hero-copy h2 { margin-top: 12px; font-size: 40px; line-height: 1.22; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .hero-about { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; max-width: 560px; margin-top: 12px; color: var(--mid); font-size: 15px; line-height: 1.75; }
  .hero .meta { margin-top: 12px; font-size: 14px; }
  .hero-acts { margin-top: 24px; gap: 12px; }
  .hero-acts .btn { height: 50px; padding: 0 26px; font-size: 16px; }
  .hero-acts .btn.sq { width: 50px; padding: 0; }
  .seg { max-width: 320px; }

  /* 列数跟着窗口走：720–1099 三列，1100–1279 四列，1280–1599 五列，1600 以上六列；一排放不下的继续观看、热播榜藏起来 */
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; }
  .vc-t h3 { font-size: 16px; }
  .rail.cont, .rail.rk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; overflow: visible; margin: 0; padding: 0; }
  .rail.cont > .vc, .rail.rk > .rk-it { width: auto; }
  .rail.cont > .vc:nth-child(n+4), .rail.rk > .rk-it:nth-child(n+4) { display: none; }
  .rk-it { padding-left: 36px; }
  .rk-no { left: -4px; margin-top: calc((100% - 36px) * .5625 - 57px); font-size: 74px; -webkit-text-stroke-width: 2px; }
  .sec-t { padding-top: 40px; padding-bottom: 18px; }
  .sec-t h2 { font-size: 24px; }
  #results-title { font-size: 30px; }

  .watch { padding-top: 24px; }
  .watch-main > .player { border-radius: 20px; }
  .upnext { gap: 28px; padding: 0 64px; justify-content: center; }
  .upnext .shot { width: 300px; border-radius: 12px; }
  .upnext .shot .cd { width: 64px; height: 64px; margin: -32px 0 0 -32px; font-size: 24px; }
  .upnext .ut { max-width: 360px; gap: 10px; }
  .upnext .ut small { font-size: 14px; }
  .upnext .ut b { font-size: 24px; }
  .upnext .ub .btn { height: 44px; padding: 0 20px; font-size: 15px; }
  .info h1 { margin-top: 6px; font-size: 24px; line-height: 1.35; }
  .info .meta { font-size: 14px; margin-top: 8px; }
  .acts { justify-content: flex-start; gap: 10px; margin-top: 18px; padding: 0; }
  .act { width: auto; height: 42px; padding: 0 18px; border-radius: 999px; flex-direction: row; gap: 7px; background: var(--s2); color: var(--ink); font-size: 14px; font-weight: 700; --bx: 27px; --by: 50%; }
  .act svg { width: 18px; height: 18px; }
  .act[aria-pressed="true"] { background: var(--pink); color: var(--pink-ink); }
  .act[aria-pressed="true"] svg { color: var(--pink-ink); }
  .about { padding: 16px 18px; font-size: 15px; }
  .lrow .shot { width: 168px; }
  .info { padding-top: 16px; }

  /* 弹幕条：播放器正下方、和播放器一样宽，全页唯一的弹幕输入框在这里 */
  .dmbar { display: flex; align-items: center; gap: 10px; height: 52px; margin-top: 12px; padding: 0 8px 0 18px; border-radius: 16px; background: var(--s1); color: var(--mid); font-size: 13px; }
  .dmb-n { display: flex; align-items: center; flex: none; white-space: nowrap; }
  .dmb-n b { color: var(--ink); font-weight: 600; }
  .dmb-on:not([hidden]) + .dmb-c::before { content: ""; display: inline-block; width: 1px; height: 14px; margin: 0 12px; background: rgba(255,255,255,.14); vertical-align: -2px; }
  .dmb-sw { width: 38px; height: 22px; margin-left: 6px; }
  .dmb-sw::after { width: 16px; height: 16px; }
  .dmb-sw[aria-checked="true"]::after { transform: translateX(16px); }
  .dmb-st { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--mid); transition: background var(--t-fade), color var(--t-fade); }
  .dmb-st:hover, .dmb-st[aria-expanded="true"] { background: var(--s2); color: var(--ink); }
  .dmbar .dm-send { position: relative; flex: 1; min-width: 0; }
  .dmbar .dm-open { display: none; }
  .dmbar .dm-send input { height: 36px; padding: 0 74px 0 14px; border-color: transparent; border-radius: 12px; font-size: 13px; }
  .dmbar .dm-send input:focus { border-color: var(--pink); }
  .dmbar .dm-send input[readonly] { cursor: pointer; }
  .dmbar .dm-send .btn { position: absolute; top: 3px; right: 3px; height: 30px; padding: 0 14px; border-radius: 10px; font-size: 13px; }
  .dmb-rule { flex: none; padding: 0 6px; font-size: 12px; color: var(--dim); white-space: nowrap; transition: color var(--t-fade); }
  .dmb-rule:hover { color: var(--ink); }

  /* 搜索：胶囊一行摊开，排序靠右；最佳匹配横排大卡 */
  .rs-zones { margin: 0; padding: 0; flex-wrap: wrap; row-gap: 8px; }
  .rs-best { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 28px; align-items: center; padding: 16px 28px 16px 16px; border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
  .rs-best:hover .rs-ph img { transform: scale(1.03); }
  .rs-b .eyebrow { margin-top: 0; }
  .rs-b h3 { margin-top: 6px; font-size: 24px; line-height: 1.35; }
  .rs-b h3 a:hover { color: var(--pink); }
  .rs-b .meta { margin-top: 10px; font-size: 13px; color: var(--mid); }

  /* 资料区下面：同频道更多，固定 4 列 */
  .more-chan .sec-t { padding-top: 34px; padding-bottom: 14px; }
  .more-chan .sec-t h2 { font-size: 18px; }
  .grid.more-g { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .hist-main .page-head { padding-top: 32px; }
  .wkm { display: none; }
  .hitem { gap: 16px; padding: 10px 0; }
  .hitem .shot { width: 200px; }
  .hitem .b b { font-size: 16px; }
  .hitem .b span { font-size: 13px; }
  .hitem time { top: 14px; }
  .toast.dark { bottom: 40px; }
  .hcont { aspect-ratio: 16 / 6; }
  .hc-t b { font-size: 24px; }
  .editbar { left: 50%; right: auto; bottom: 24px; width: 420px; transform: translateX(-50%); border-radius: 20px; border: 0; padding: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08); }
  .mgbar {
    left: 50%; right: auto; bottom: 24px; width: min(720px, calc(100% - 56px)); transform: translateX(-50%); display: flex; align-items: center; gap: 16px;
    border: 0; border-radius: 20px; padding: 10px 10px 10px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08);
  }
  .mg-head { flex: 1; min-width: 0; }
  .mg-acts { display: flex; }
  .mg-acts .btn { width: auto; padding: 0 18px; }
  .is-managing main { padding-bottom: 120px; }
  .is-managing .toast { bottom: 108px; }
  .mg-btn { height: 40px; padding: 0 16px; }
  .mg-sheet { padding: 30px 28px 26px; }

  .login-page { padding-top: 64px; }
  .inv-h { padding-top: 36px; }

  /* 海报墙按视口高度定尺寸：每格高 17.5vh，7 行 8 列转 -8° 后四角仍能盖满 */
  .lwall { display: block; position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
  .lwall-in { position: absolute; left: 50%; top: 50%; width: calc(17.5vh * 16 / 9 * 8 + 84px); display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; opacity: .55; transform: translate(-50%, -50%) rotate(-8deg); animation: fadein 1.2s var(--ease) both; }
  .lwall-in img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--s1); }
  .lwall::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(17,16,19,.72), rgba(17,16,19,.45) 70%, rgba(17,16,19,.72)); }
  .lwall + .app { position: relative; z-index: 1; }
  .lwall + .app .login-box { background: rgba(26,25,29,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 70px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.07); }
}

/* 电脑：悬停一行出现删除 */
@media (min-width: 720px) and (hover: hover) {
  .hrow .del { z-index: 2; top: 50%; right: 0; bottom: auto; width: auto; height: 36px; margin-top: -18px; padding: 0 16px; border-radius: 999px; opacity: 0; transition: opacity var(--t-fade); }
  .hrow:hover .del, .hrow .del:focus-visible { opacity: 1; }
  .hrow:hover .hitem time { visibility: hidden; }
}

@media (min-width: 1100px) {
  :root { --pad: 40px; }
  .hero { height: clamp(440px, calc(100dvh - 420px), 560px); }
  .hero-txt { bottom: 56px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: end; gap: 80px; }
  .hero-copy h2 { font-size: 48px; line-height: 1.2; }
  .seg { display: none; }
  .strip { display: grid; gap: 6px; padding: 10px; border-radius: 20px; background: rgba(17,16,19,.5); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
  .strip button { position: relative; display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; text-align: left; transition: background var(--t-fade); }
  .strip button:hover { background: rgba(255,255,255,.06); }
  .strip .shot { width: 92px; flex: none; border-radius: 10px; }
  .strip .shot img { transition: opacity var(--t-page) var(--ease); }
  .strip button:not(.on) .shot img.is-in { opacity: .78; }
  .strip b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.42; }
  .strip small { display: block; margin-top: 2px; font-size: 12px; color: var(--dim); }
  .strip button.on { background: rgba(255,255,255,.1); }
  .strip button.on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 1px; background: rgba(255,255,255,.15); }
  .strip button.on::before { content: ""; position: absolute; z-index: 1; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 1px; background: var(--pink); transform-origin: left; animation: segfill var(--dur, 6s) linear forwards; }
  .grid, .rail.cont, .rail.rk { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail.cont > .vc:nth-child(4), .rail.rk > .rk-it:nth-child(4) { display: block; }

  .watch { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; align-items: start; }
  .next-panel .sec-t { padding-top: 0; }
  .watch .eps { display: none; }
  /* 右栏页签：选集 / 接下来 / 弹幕 */
  .next-panel.has-tabs .np-tabs { display: flex; gap: 4px; margin-bottom: 12px; padding: 3px; border-radius: 12px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
  .np-tabs button { flex: 1; height: 36px; border-radius: 10px; font-size: 14px; color: var(--mid); transition: background var(--t-fade), color var(--t-fade); }
  .np-tabs button:hover { color: var(--ink); }
  .np-tabs button[aria-selected="true"] { background: var(--s3); color: var(--ink); font-weight: 700; }
  .np-tabs em { margin-left: 5px; font-size: 12px; font-style: normal; font-weight: 500; color: var(--dim); }
  .next-panel.has-tabs:not([data-on="next"]) > .sec-t, .next-panel.has-tabs:not([data-on="next"]) > #next-list { display: none; }
  .next-panel[data-on="eps"] > .np-eps { display: block; }
  .next-panel.has-tabs:not([data-on="dm"]) > .dm-panel { display: none; }
  .next-panel.has-tabs > .sec-t { padding: 0 2px 8px; }
  .next-panel.has-tabs > .sec-t h2, .next-panel.has-tabs .auto .a-s { display: none; }
  .next-panel.has-tabs .auto { flex: 1; justify-content: space-between; font-size: 12px; color: var(--dim); }
  .next-panel.has-tabs .auto .a-l { display: inline; }
  .np-eps .ep-head { min-height: 28px; }
  /* 「弹幕」页签：列表高度跟播放器加弹幕条对齐，超出在栏内滚 */
  .next-panel > .dm-panel { margin: 0; padding: 0; border-radius: 0; background: none; }
  .next-panel > .dm-panel .sec-t { justify-content: flex-end; padding: 0 0 8px; }
  .next-panel > .dm-panel h2 { display: none; }
  .next-panel > .dm-panel .dm-list { max-height: max(300px, calc(var(--ph, 520px) - 32px)); margin-top: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }

  .hist { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
  .hside { display: block; position: sticky; top: calc(var(--top-h) + 32px); margin-top: 32px; }
  .hist.is-guest { grid-template-columns: minmax(0, 1fr); }
  .hist.is-guest .hside { display: none; }
  .hist.is-guest .hist-main .hlist { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  /* 历史主栏：一行一部改成 4 列片卡，按天分组 */
  .hist-main .hlist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
  .hist-main .hrow { border-radius: 12px 12px 0 0; }
  .hist-main .hitem { flex-direction: column; align-items: stretch; gap: 10px; padding: 0; }
  .hist-main .hitem .shot { width: 100%; border-radius: 12px; }
  .hist-main .hitem .b { padding-right: 0; }
  .hist-main .hitem .b b { font-size: 15px; }
  .hist-main .hitem .b > span + span { display: none; }
  .hist-main .hitem time { position: static; margin-top: -6px; }
  .hist-main .hck { position: absolute; z-index: 3; left: 8px; top: 8px; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
  .hist-main .hrow .del { top: 8px; right: 8px; bottom: auto; margin-top: 0; }
  .hist-main .hrow:hover .hitem time { visibility: visible; }
  .hist-main .hitem:hover .shot img { transform: scale(1.04); }
  .hist-main .hitem .shot img { transition: transform var(--t-page) var(--ease); }

  .me-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 36px; }
  .me-grid .prof { padding-top: 0; }
  .me-grid .vip-entry, .me-grid .mcard .ring { display: none; }
  .me-grid .mcard h2, .me-grid .mcard p { padding-right: 0; }
  .inv-panel { display: block; padding: 28px; border-radius: 20px; background: var(--s1); }
  .inv-panel .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
  .inv-panel h2 { margin-top: 10px; font-size: 30px; font-weight: 700; }
  .inv-panel h2 b { color: var(--pink); }
  .inv-panel .sec-t h2 { margin-top: 0; font-size: 18px; }
  .inv-panel .sub { margin-top: 8px; color: var(--mid); line-height: 1.7; max-width: 560px; }
  .inv-panel .ring { position: relative; right: auto; top: auto; width: 96px; height: 96px; flex: none; }
  .inv-panel .ring::before { background: var(--s1); }
  .inv-panel .ring b { font-size: 24px; }
  .inv-panel .slots { justify-content: flex-start; }
  .inv-panel .lk { margin-top: 24px; padding: 0; background: none; display: flex; gap: 10px; }
  .inv-panel .lk .url { flex: 1; }
  .inv-panel .lk .two { display: flex; margin: 0; }
  .vip-page { max-width: 760px; margin: 0 auto; }
}

/* ---------- 播放器适配 ---------- */
/* 窗口矮时按高度收窄播放器，控制栏、弹幕条和片名第一行都留在第一屏 */
@media (min-width: 720px) {
  .watch-main > .player:not(.is-pseudo-full), .watch-main > .dmbar { width: min(100%, max(480px, calc((100dvh - var(--top-h) - 128px) * 16 / 9))); margin-inline: auto; }
}
/* 手机横屏：顶栏压矮，播放器整块放进一屏 */
@media (pointer: coarse) and (max-height: 500px) and (min-width: 560px) {
  body[data-page="watch"] { --top-h: 56px; }
  body[data-page="watch"] .watch { padding-top: 12px; }
  body[data-page="watch"] .watch-main > .player:not(.is-pseudo-full) { width: min(100%, calc((100dvh - var(--top-h) - 24px) * 16 / 9)); margin-inline: auto; border-radius: 16px; }
}
/* 大屏：播放页放宽，播放器跟着变大 */
@media (hover: none) { .sp-keys { display: none !important; } }
/* 1280 起普通片格五列，1600 起六列（片卡宽度稳在 224–250px）；带侧栏的页面少一列 */
@media (min-width: 1280px) {
  .grid, .rail.cont, .rail.rk { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rail.cont > .vc:nth-child(5), .rail.rk > .rk-it:nth-child(5) { display: block; }
}
@media (min-width: 1600px) {
  body[data-page="watch"] main > .wrap { --page: 1680px; }
  body[data-page="home"], body[data-page="history"], body[data-page="category"] { --page: 1680px; }
  .grid, .rail.cont, .rail.rk { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hist-main .hlist { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hist.is-guest .hist-main .hlist { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rail.cont > .vc:nth-child(6), .rail.rk > .rk-it:nth-child(6) { display: block; }
  .watch { grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; }
}

/* 电脑：影院模式、小窗、快捷键 */
.player-hold, .mini-bar { display: none; }
.act kbd { display: none; }
@media (min-width: 1100px) {
  .act-keys { margin-left: auto; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--mid); }
  .act-keys svg { color: var(--mid); }
  .act-keys kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--s2); font: 700 12px var(--num); color: var(--ink); }
  .act-keys:hover { color: var(--ink); }

  /* 影院：播放器占满宽度，高 = 窗口 - 顶栏 - 120，「接下来」挪到下方右侧 */
  .watch.is-theater { grid-template-columns: minmax(0, 1fr) 400px; row-gap: 0; }
  .watch.is-theater .watch-main { display: contents; }
  .watch.is-theater .watch-main > * { grid-column: 1; }
  .watch.is-theater .watch-main > .player, .watch.is-theater .watch-main > .player-hold, .watch.is-theater .watch-main > .dmbar { grid-column: 1 / -1; }
  .watch.is-theater .next-panel { grid-column: 2; grid-row: 3 / span 4; padding-top: 16px; }
  .watch.is-theater .watch-main > .player:not(.is-pseudo-full):not(.is-mini) { width: 100%; height: max(360px, calc(100dvh - var(--top-h) - 120px)); margin: 0; border-radius: 16px; }
  .watch.is-theater .watch-main > .dmbar { width: 100%; }
  .watch.is-theater .player.starwave:not(.is-mini) iframe { height: 100%; aspect-ratio: auto; }

  /* 小窗：缩到右下角 400 宽接着放，原位置留同样高的占位，点占位或回到按钮放回去 */
  .player-hold:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); color: var(--dim); font-size: 14px; transition: color var(--t-fade); }
  .player-hold:hover { color: var(--ink); }
  .watch-main > .player.starwave.is-mini { position: fixed; right: 24px; bottom: 24px; z-index: 120; width: 400px; height: auto; margin: 0; border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); animation: mini-in var(--t-sheet) var(--ease); }
  @keyframes mini-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
  .player.starwave.is-mini iframe { height: auto; aspect-ratio: 16 / 9; }
  .player.is-mini .mini-bar { position: absolute; top: 8px; left: 8px; z-index: 7; display: flex; gap: 6px; opacity: 0; transition: opacity var(--t-fade); }
  .player.is-mini:hover .mini-bar, .player.is-mini .mini-bar:focus-within { opacity: 1; }
  .mini-bar button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(17,16,19,.72); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
  .mini-bar button:hover { background: var(--pink); color: var(--pink-ink); }
}

/* 快捷键说明 */
.glass-dialog.keys-dialog { width: min(720px, calc(100% - 32px)); }
.keys-dialog .mg-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.keys-dialog h2, .keys-dialog .sub { grid-column: 1 / -1; }
.keys-g { margin-top: 20px; }
.keys-g:first-of-type { grid-row: span 2; }
.keys-g h3 { font-size: 12px; font-weight: 700; color: var(--dim); letter-spacing: .04em; }
.keys-g dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; border-bottom: 1px solid var(--line); }
.keys-g dl > div:last-child { border-bottom: 0; }
.keys-g dt { font-size: 14px; color: var(--ink); }
.keys-g dd { display: flex; align-items: center; gap: 4px; flex: none; }
.keys-g kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 6px; background: var(--s2); box-shadow: inset 0 -1px 0 rgba(0,0,0,.35); font: 700 12px var(--num); color: var(--ink); }
.keys-g dd i { font-style: normal; color: var(--dim); font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
/* 片卡到播放页：海报接到播放器位置，其余部分快速交叉淡入；不支持的浏览器照常跳转 */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(root) { animation-duration: var(--t-fade); }
  ::view-transition-group(film) { animation-duration: var(--t-page); animation-timing-function: var(--ease); border-radius: 12px; overflow: hidden; }
  ::view-transition-old(film), ::view-transition-new(film) { height: 100%; object-fit: cover; }
}

.login-or { display: flex; align-items: center; gap: 12px; margin: 2px 0; color: var(--dim); font-size: 12px; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-box a.tg-btn,
.login-box a.tg-btn:hover,
.login-box a.tg-btn:visited,
.login-box a.tg-btn:active {
  width: 100%;
  margin-top: 0;
  background: #2aabee;
  color: #fff;
  text-decoration: none;
}
.login-box a.tg-btn svg { width: 18px; height: 18px; flex: none; }
.mlist > button { width: 100%; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border: 0; background: none; font: inherit; font-size: 15px; text-align: left; color: inherit; cursor: pointer; }
.mlist > button svg { width: 20px; height: 20px; color: var(--mid); flex: none; }
.me-flash { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--pink-soft); color: var(--ink); font-size: 13px; font-weight: 600; }
.me-flash.is-err { background: rgba(255,138,128,.16); color: #ffb4ac; }
.acct-dialog form, .acct-dialog .acct-box { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 24px 22px; }
.acct-dialog h2 { font-size: 20px; padding-right: 36px; }
.acct-dialog p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--mid); }
.acct-dialog .acct-err { color: #ffb4ac; }
.acct-dialog .acct-note:empty { display: none; }
.acct-dialog .btn.go { height: 48px; }
.acct-dialog .btn:disabled { opacity: .45; cursor: default; }

/* ---------- 分类：首页类型行、片数行，分类页面板、吸顶条、抽屉 ---------- */
.pill-fav svg { width: 15px; height: 15px; color: var(--pink); }
.pill-fav[aria-pressed="true"] svg { color: var(--bg); }
.c-sub { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 12px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); }
.c-sub::-webkit-scrollbar { display: none; }
.c-sub > button { flex: none; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--mid); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); white-space: nowrap; transition: color var(--t-fade), box-shadow var(--t-fade), background var(--t-fade); }
.c-sub > button:hover { color: var(--ink); }
.c-sub > button[aria-pressed="true"] { color: var(--pink); background: var(--pink-soft); box-shadow: inset 0 0 0 1px rgba(236,127,160,.45); font-weight: 700; }
.c-sub > button em { display: none; }
#library .zones { margin-bottom: 0; }
.c-bar { display: flex; align-items: center; gap: 8px; min-height: 40px; margin: 10px 0 8px; font-size: 13px; color: var(--dim); }
.c-bar b { color: var(--ink); font-weight: 700; }
.c-bar .is-r { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--mid); font-size: 13px; }
.c-bar .is-r:hover { color: var(--ink); }
.c-bar svg { width: 14px; height: 14px; }
.c-dd { display: inline-flex; align-items: center; gap: 3px; height: 32px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--s2); color: var(--mid); font-size: 13px; white-space: nowrap; }
.c-dd.is-on { color: var(--ink); font-weight: 700; }
.vc-sk .vc-ph { background: linear-gradient(100deg, var(--s1) 30%, var(--s2) 50%, var(--s1) 70%) 0 0 / 260% 100%; animation: sk 1.5s linear infinite; }
.vc-sk .vc-t i { display: block; height: 12px; margin-top: 8px; border-radius: 6px; background: var(--s1); }
.vc-sk .vc-t i + i { width: 55%; }
.meta-cat { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; transition: text-decoration-color var(--t-fade); }
.meta-cat:hover { text-decoration-color: var(--pink); }
button.zbar { width: calc(100% + 16px); margin: 6px -8px 0; padding: 4px 8px; border-radius: 10px; text-align: left; transition: background var(--t-fade), color var(--t-fade); }
button.zbar:hover { background: var(--s2); color: var(--ink); }
button.zbar[aria-pressed="true"] { background: var(--pink-soft); color: var(--pink); font-weight: 700; }
.mg-h { margin-top: 18px; font-size: 13px; font-weight: 500; color: var(--dim); }
.mg-h + .mg-zones { margin-top: 10px; }
.mg-warn { display: block; margin-top: 6px; color: var(--warn); font-weight: 500; }

.sp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sp-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 16 / 9; min-width: 0; padding: 8px 10px; border-radius: 12px; overflow: hidden; background: var(--s2); color: #fff; isolation: isolate; }
.sp-tile .shot { position: absolute; inset: 0; z-index: -2; display: block; }
.sp-tile .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-page) var(--ease); }
.sp-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,16,19,0) 35%, rgba(17,16,19,.82)); }
@media (hover: hover) { .sp-tile:hover .shot img { transform: scale(1.04); } }
.sp-tile b { font-size: 15px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-tile small { font: 12px var(--num); color: rgba(255,255,255,.72); }
.spanel .sp-tile.is-k { box-shadow: 0 0 0 2px var(--pink); }
@media (min-width: 720px) { .sp-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } }
.sp-types { margin-top: 14px; }
.sp-types .pill { height: 32px; padding: 0 13px; font-size: 13px; }

.cat-page { padding-top: 14px; }
.c-head h1 { display: flex; align-items: baseline; gap: 8px; font-size: 24px; font-weight: 700; }
.c-head h1 small { font: 400 14px var(--num); color: var(--dim); }
.c-head p { margin-top: 6px; font-size: 14px; color: var(--mid); line-height: 1.6; }
.c-crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.c-crumb a:hover { color: var(--ink); }
.c-crumb [aria-current] { color: var(--mid); }
.c-panel, .c-res { display: none; }
.c-grid { margin-top: 6px; transition: opacity var(--t-fade); }
.c-grid.is-fading { opacity: .3; }
.c-foot { margin-top: 26px; text-align: center; font: 13px var(--num); color: var(--dim); }
.c-foot .btn { margin-left: 8px; }
.c-outs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.c-stick { display: none; }
.cat-back { margin-right: 2px; }
.cat-back svg { width: 20px; height: 20px; }
.c-opt { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 14px; color: var(--mid); white-space: nowrap; transition: background var(--t-fade), color var(--t-fade); }
.c-opt em { font: normal 12px var(--num); color: var(--dim); }
.c-opt:hover { color: var(--ink); background: var(--s2); }
.c-opt[aria-pressed="true"] { background: var(--pink-soft); color: var(--pink); font-weight: 700; }
.c-opt[aria-pressed="true"] em { color: var(--pink); opacity: .8; }
.c-opt:disabled { opacity: .38; cursor: not-allowed; background: none; }
.c-drow { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; }
.c-drow + .c-drow { border-top: 1px solid var(--line); }
.c-drow > b { flex: none; width: 44px; line-height: 32px; font-size: 13px; font-weight: 500; color: var(--dim); }
.c-opts { display: flex; flex-wrap: wrap; gap: 4px 6px; min-width: 0; }
.c-dialog .mg-sheet { padding-bottom: 18px; }
.c-sheet { margin-top: 8px; }
.c-sheet .c-drow { display: block; padding: 12px 0; }
.c-sheet .c-drow > b { display: block; width: auto; line-height: 1.4; margin-bottom: 8px; }
.c-sheet .c-opt { height: 36px; padding: 0 14px; background: var(--s2); }
.c-sheet .c-opt[aria-pressed="true"] { background: var(--pink-soft); }
.c-acts { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 16px; }
@media (min-width: 720px) {
  .cat-page { padding-top: 28px; }
  .cat-page .c-sub, .cat-page .c-bar { display: none; }
  .c-head h1 { font-size: 30px; }
  .c-head h1 small { font-size: 15px; }
  .c-head p { font-size: 15px; max-width: 720px; }
  .c-panel { display: block; margin-top: 22px; padding: 8px 20px; border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
  .c-res { display: flex; align-items: baseline; gap: 12px; padding: 30px 0 18px; }
  .c-res h3 { font-size: 24px; font-weight: 700; }
  .c-res span { font-size: 14px; color: var(--mid); }
  .c-res .is-r { margin-left: auto; font-size: 14px; color: var(--mid); }
  .c-res .is-r:hover { color: var(--ink); }
  .c-grid { margin-top: 0; }
  .c-stick:not([hidden]) { display: block; position: fixed; z-index: 39; left: 0; right: 0; top: calc(var(--top-h) + var(--safe-top)); animation: stick-in var(--t-sheet) var(--ease); }
  .c-stick::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 60px; background: var(--bar); -webkit-backdrop-filter: var(--bar-blur); backdrop-filter: var(--bar-blur); box-shadow: inset 0 -1px 0 var(--bar-edge); }
  @keyframes stick-in { from { opacity: 0; transform: translateY(-8px); } }
  .c-stick-in { display: flex; align-items: center; gap: 12px; height: 60px; }
  .c-stick-in > b { flex: none; display: flex; align-items: baseline; gap: 6px; font-size: 16px; font-weight: 700; }
  .c-stick-in > b small { font: 400 13px var(--num); color: var(--dim); }
  .c-chips { display: flex; gap: 6px; min-width: 0; overflow: hidden; }
  .c-x { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--pink-soft); color: var(--pink); font-size: 13px; font-weight: 700; }
  .c-x svg { width: 14px; height: 14px; opacity: .8; }
  .c-x:hover svg { opacity: 1; }
  .c-edit { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 14px; font-weight: 700; }
  .c-edit:hover, .c-edit[aria-expanded="true"] { background: rgba(255,255,255,.18); }
  .c-edit svg { width: 16px; height: 16px; }
  .c-float { display: block; margin-top: 8px; max-height: calc(100dvh - var(--top-h) - 100px); overflow-y: auto; background: var(--glass-hi); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); animation: stick-in var(--t-fade) var(--ease); }
  .c-sub { margin-top: 14px; }
  .c-sub > button { height: 32px; padding: 0 14px; }
}
@media (min-width: 720px) and (max-width: 1099.98px) {
  .c-chips { display: none; }
  .ndd-p { width: 440px; }
  .ndd-chs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top .lockup small { display: none; }
  .nav { gap: 2px; }
  .nav > a, .ndd-btn { padding: 0 11px; }
  .ndd-btn { padding-right: 8px; }
}
@media (min-width: 1600px) {
  body[data-page="category"] { --page: 1680px; }
  .c-panel { max-width: 1360px; }
}

/* ---------- 首页片库就地筛选、往下翻自动加载；历史页状态 × 分类 ---------- */
@keyframes stickin { from { opacity: 0; transform: translateY(-8px); } }
.sec-t > .lib-filter { height: 32px; padding: 0 12px; gap: 5px; border-radius: 999px; background: var(--s2); color: var(--ink); transition: background var(--t-fade); }
.sec-t > .lib-filter:hover, .lib-filter[aria-expanded="true"] { background: var(--s3); }
.lib-filter svg { width: 16px; height: 16px; }
.lib-filter em { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 10px; background: var(--pink); color: var(--pink-ink); font: normal 700 11px/18px var(--num); text-align: center; }
#lib-panel[hidden] { display: none !important; }
.lib-bar .lib-sum { margin-left: auto; white-space: nowrap; }
.lib-bar .lib-sum + .is-r { margin-left: 4px; }
#lib-list { transition: opacity var(--t-fade); }
#lib-list.is-fading { opacity: .3; }
#lib-list.is-in { animation: fadein var(--t-fade) var(--ease); }
.feed { margin-top: 18px; }
.feed > .grid { margin-bottom: 18px; }
.feed-t { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font: 13px var(--num); color: var(--dim); }
.feed-t .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.feed-t.is-bad { color: var(--mid); }
.feed-t.is-bad svg { width: 16px; height: 16px; }
.feed-t .btn { margin-left: 6px; }
.feed-t.is-end i { flex: 0 1 48px; height: 1px; background: var(--line); }
.feed-top { display: flex; width: fit-content; margin: 6px auto 0; gap: 4px; }
.feed-top svg { width: 16px; height: 16px; }
.hist-row { margin-top: 10px; align-items: center; }
.hseg { display: inline-flex; flex: none; gap: 2px; padding: 3px; border-radius: 999px; background: var(--s2); }
.hseg button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--mid); white-space: nowrap; transition: background var(--t-fade), color var(--t-fade); }
.hseg button:hover { color: var(--ink); }
.hseg button[aria-pressed="true"] { background: rgba(255,255,255,.16); color: var(--ink); font-weight: 700; }
.hseg em, #hist-sub > button em { font: normal 12px var(--num); opacity: .72; margin-left: 2px; }
#hist-sub > button em { display: inline; }
.hgap { flex: none; width: 1px; height: 20px; background: var(--line); }
#hist-sub { margin-top: 10px; }
@media (max-width: 719.98px) {
  .lib-stick:not([hidden]) { display: block; position: fixed; z-index: 39; left: 0; right: 0; top: calc(var(--top-h) + var(--safe-top)); background: rgba(24,23,28,.92); -webkit-backdrop-filter: var(--bar-blur); backdrop-filter: var(--bar-blur); box-shadow: inset 0 -1px 0 var(--bar-edge), 0 8px 24px rgba(0,0,0,.28); animation: stickin var(--t-sheet) var(--ease); }
  .lib-stick .c-stick-in { display: flex; align-items: center; gap: 6px; height: 48px; }
  .lib-stick .c-stick-in > b { flex: none; display: flex; align-items: baseline; gap: 5px; font-size: 15px; font-weight: 700; }
  .lib-stick .c-stick-in > b small { font: 400 12px var(--num); color: var(--dim); }
  .lib-stick .c-chips { flex: 1; display: flex; gap: 6px; min-width: 0; margin-left: 4px; overflow-x: auto; scrollbar-width: none; }
  .lib-stick .c-chips::-webkit-scrollbar { display: none; }
  .lib-stick .c-x { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 6px 0 10px; border-radius: 999px; background: var(--pink-soft); color: var(--pink); font-size: 12px; font-weight: 700; }
  .lib-stick .c-x svg { width: 13px; height: 13px; }
  .lib-stick .c-edit { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
  .lib-stick .c-edit svg { width: 17px; height: 17px; }
}
@media (min-width: 720px) {
  .lib-panel { margin-top: 14px; padding: 4px 20px; }
  .lib-bar .lib-sum { margin-left: 0; }
  .lib-bar .lib-sum + .is-r { margin-left: auto; }
  .feed { margin-top: 26px; }
}

/* ---------- 回到顶部（totop.js）：手机浮在底栏上面，管理条、编辑条出来时跟着抬高；电脑播放页小窗占了右下角就先收起 ---------- */
.to-top {
  position: fixed; z-index: 38; right: 14px; bottom: calc(max(14px, var(--safe-bottom)) + 62px + 12px);
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.02) 60%), rgba(36,34,42,.62); -webkit-backdrop-filter: var(--bar-blur); backdrop-filter: var(--bar-blur);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.08), 0 14px 30px -10px rgba(0,0,0,.6);
  -webkit-tap-highlight-color: transparent;
  opacity: 0; scale: .6; translate: 0 14px; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-fade) ease, scale var(--t-sheet) var(--ease), translate var(--t-sheet) var(--ease), background-color var(--t-fade), color var(--t-fade), bottom var(--t-sheet) var(--ease), visibility 0s linear var(--t-sheet);
}
.to-top svg { width: 22px; height: 22px; }
.to-top.is-on { opacity: 1; scale: 1; translate: 0 0; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.to-top.is-on:active { scale: .9; }
.to-top:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.is-managing .to-top { bottom: calc(var(--safe-bottom) + 150px); }
.is-editing .to-top { bottom: calc(var(--safe-bottom) + 90px); }
html.is-searching .to-top.is-on,
body:has(.player.is-mini) .to-top.is-on { opacity: 0; scale: .6; translate: 0 14px; visibility: hidden; pointer-events: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .to-top { background: rgba(30,29,34,.97); }
}
@media (hover: hover) {
  .to-top.is-on:hover { background: var(--ink); color: var(--bg); }
}
@media (max-width: 719.98px) {
  body[data-page="watch"] .to-top { bottom: calc(max(14px, var(--safe-bottom)) + 4px); }
}
@media (min-width: 720px) {
  .to-top { right: 24px; bottom: 24px; width: 48px; height: 48px; }
}

/* ---------- 标题折行、图片失败、触屏热区 ---------- */
h1, h2, .rs-b h3 { text-wrap: balance; }
.vc-t h3, .clamp2 { text-wrap: pretty; }
.slide img.ld.is-err { visibility: hidden; }
/* 触屏上看得见的大小不变，四周垫一层透明点击区补到 44px。横滑行里的胶囊会被滚动区裁掉，不在这里 */
@media (pointer: coarse) {
  :is(.lockup, .me-btn, .icon-btn, .cht-more, .cht-in a, .sec-t > a, .sec-t > button, .res-end > button, .sf-col a, .cx-crumb a, .cx-seg a, .meta-cat, .dm-open, .switch,
    .tools > button, .hist-kind a, .hseg button, .pill.tab, .field .eye, .login-forgot a, .login-alt a, .login-alt button, .nf-home, .seg button, .btn.sm, .mfo, .mchh-sort, .mban-t h2 a, .p-top button, .cx-fbtn, .mcard .vip-entry, .rd-sl > a) { position: relative; }
  :is(.lockup, .me-btn, .icon-btn, .cht-more, .cht-in a, .sec-t > a, .sec-t > button, .res-end > button, .sf-col a, .cx-crumb a, .cx-seg a, .meta-cat, .dm-open, .switch,
    .tools > button, .hist-kind a, .hseg button, .pill.tab, .field .eye, .login-forgot a, .login-alt a, .login-alt button, .nf-home, .seg button, .btn.sm, .mfo, .mchh-sort, .mban-t h2 a, .p-top button, .cx-fbtn, .mcard .vip-entry, .rd-sl > a)::before { content: ""; position: absolute; inset: min(0px, calc(50% - 22px)); }
  .sf-col a { padding: 8px 0; }
  .about-row { min-height: 44px; }
}
