/* Bountik（赏拍）—— 手机优先，深色 */
:root {
  --bg: #0B0B10; --bg2: #13131B; --card: #1A1A24; --card2: #232330; --line: #2C2C3A; --ink: #F6F4FA; --ink2: #A9A6B8; --ink3: #6F6C80;
  --g1: #FFC93C; --g2: #FF7A3D; --g3: #FF3D77; --grad: linear-gradient(120deg, var(--g1), var(--g2) 55%, var(--g3));
  --mint: #5CF2C0; --red: #FF5470; --gold: #FFC93C; --r: 20px; --nav: 62px; color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Noto Sans", "Segoe UI", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
svg.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ic.flip { transform: scaleX(-1); color: var(--ink3); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; }
.dim { color: var(--ink2); font-size: 13px; }
.fine { color: var(--ink3); font-size: 12px; margin-top: 12px; text-align: center; }
.fine a, .link { color: var(--g1); font-weight: 600; font-size: 13px; }
.warn { color: var(--red); font-size: 13px; }
.hint { color: var(--ink2); font-size: 13px; background: var(--card2); border-radius: 12px; padding: 9px 12px; margin: 10px 0; }
.reason { color: #FFB3C0; font-size: 13px; background: rgba(255, 84, 112, .12); border-radius: 10px; padding: 7px 10px; margin: 8px 0; }

#app { max-width: 520px; margin: 0 auto; min-height: 100dvh; padding: 0 16px calc(var(--nav) + 34px + env(safe-area-inset-bottom)); position: relative; }
#app.full { padding: 0; height: 100dvh; overflow: hidden; background: #000; }
@media (min-width: 560px) { body { background: radial-gradient(900px 500px at 50% -10%, #1d1626, var(--bg)); } #app.full { border-radius: 0; } }

/* 积分 */
.pts { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pts svg { width: 17px; height: 17px; color: var(--g1); }
.pts b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pts.big { font-size: 30px; letter-spacing: -.02em; }
.pts.big svg { width: 26px; height: 26px; }

/* 头像、等级 */
.av { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; flex: none;
  background: linear-gradient(135deg, hsl(var(--h, 20) 80% 58%), hsl(calc(var(--h, 20) + 50) 85% 45%)); border: 2px solid rgba(255, 255, 255, .85); }
.av.sm { width: 32px; height: 32px; font-size: 14px; border-width: 1.5px; }
.av.xs { width: 22px; height: 22px; font-size: 11px; border-width: 1px; }
.av.lg { width: 62px; height: 62px; font-size: 26px; }
.av.off { background: var(--grad); color: #1a0d05; }
.av.off svg { width: 60%; height: 60%; }
.lv { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 10px; background: var(--card2); color: var(--ink2); white-space: nowrap; }
.lv.lv3, .lv.lv4 { background: rgba(92, 242, 192, .15); color: var(--mint); }
.lv.lv5, .lv.lv6, .lv.lv7, .lv.off { background: var(--grad); color: #2a1206; }
.lv.mint { background: rgba(92, 242, 192, .15); color: var(--mint); }
.uline { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.uline b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 20px; border-radius: 22px; font-weight: 800; color: #24100A; background: var(--grad);
  box-shadow: 0 8px 22px rgba(255, 100, 70, .28); transition: transform .12s; white-space: nowrap; }
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .45; box-shadow: none; }
.btn.big { width: 100%; height: 52px; border-radius: 26px; font-size: 16px; margin-top: 14px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 17px; box-shadow: none; }
.btn.sm svg { width: 16px; height: 16px; }
.btn.ghost { background: var(--card2); color: var(--ink); box-shadow: none; }
.btn.mint { background: var(--mint); color: #05291d; box-shadow: none; }
.btn.danger { background: var(--red); color: #fff; box-shadow: none; }
.row2 { display: flex; gap: 10px; margin-top: 14px; }
.row2 > * { flex: 1; }

/* 底部导航 */
#nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; align-items: center; max-width: 520px; margin: 0 auto; height: calc(var(--nav) + env(safe-area-inset-bottom));
  padding: 0 6px env(safe-area-inset-bottom); background: rgba(14, 14, 20, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
#nav.dark { background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .35)); border-top-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
#nav a { flex: 1; display: grid; justify-items: center; gap: 2px; font-size: 10.5px; font-weight: 700; color: var(--ink3); position: relative; padding: 6px 0; }
#nav a.on { color: var(--ink); }
#nav a.on svg { color: var(--g1); }
#nav .dot { position: absolute; top: 4px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
#nav .add { width: 54px; height: 38px; border-radius: 14px; background: var(--grad); color: #24100A; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(255, 100, 70, .4); margin: 0 6px; }
#nav .add svg { stroke-width: 2.8; }

/* 页头 */
.head { display: flex; align-items: center; gap: 10px; padding: calc(14px + env(safe-area-inset-top)) 0 10px; position: sticky; top: 0; z-index: 10; background: linear-gradient(var(--bg) 70%, transparent); }
.head h1 { font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.head p { color: var(--ink2); font-size: 13px; }
.head > div { flex: 1; min-width: 0; }
.head .bal { background: var(--card); padding: 6px 12px; border-radius: 16px; border: 1px solid var(--line); }
.backbtn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; flex: none; }
.h-row { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 10px; }
.h-row h2 { font-size: 18px; font-weight: 900; }
.h-row span { color: var(--ink3); font-size: 12px; flex: 1; }

/* 视频流 */
.feed { height: 100dvh; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; max-width: 520px; margin: 0 auto; background: #000; }
.feed::-webkit-scrollbar { display: none; }
.feedtop { position: absolute; top: 0; left: 0; right: 0; z-index: 12; display: flex; align-items: center; justify-content: center; padding: calc(10px + env(safe-area-inset-top)) 14px 0; pointer-events: none; max-width: 520px; margin: 0 auto; }
.feedtop > * { pointer-events: auto; }
.feedtop .backbtn { position: absolute; left: 14px; background: rgba(0, 0, 0, .4); }
.tabs2 { display: flex; gap: 18px; font-weight: 800; font-size: 16px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.tabs2 button { color: rgba(255, 255, 255, .6); padding: 6px 2px; position: relative; }
.tabs2 button.on { color: #fff; }
.tabs2 button.on::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 0; height: 3px; border-radius: 2px; background: var(--grad); }
.sound { position: absolute; right: 14px; width: 36px; height: 36px; border-radius: 18px; background: rgba(0, 0, 0, .45); display: grid; place-items: center; }
.sound.muted { box-shadow: 0 0 0 2px rgba(255, 201, 60, .7); }
.sound svg { width: 18px; height: 18px; }
.slide { height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; position: relative; overflow: hidden; background: #000; }
.slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.slide .tap { position: absolute; inset: 0; z-index: 2; }
.slide .shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .25) 30%, transparent 48%, transparent 82%, rgba(0, 0, 0, .35)); z-index: 1; }
.bigplay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .15s; }
.bigplay svg { width: 84px; height: 84px; color: rgba(255, 255, 255, .8); filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .5)); }
.slide.paused .bigplay { opacity: 1; }
/* 没有 ffmpeg 时盖在网页上的水印（替身，不是压进画面的） */
.wm { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.wm span { position: absolute; left: 0; top: 0; font-weight: 800; font-size: 15px; color: rgba(255, 255, 255, .5); text-shadow: 0 1px 3px rgba(0, 0, 0, .7); white-space: nowrap; animation: wm 16s steps(1) infinite; padding: 0 10px; }
.wm.sm span { font-size: 11px; animation-duration: 22s; }
@keyframes wm { 0% { transform: translate(8vw, 18vh); } 25% { transform: translate(38vw, 58vh); } 50% { transform: translate(12vw, 40vh); } 75% { transform: translate(34vw, 26vh); } }
.wm.sm span { animation-name: wms; }
@keyframes wms { 0% { transform: translate(8%, 30px); } 25% { transform: translate(40%, 120px); } 50% { transform: translate(10%, 80px); } 75% { transform: translate(35%, 50px); } }
.rail { position: absolute; right: 8px; bottom: calc(var(--nav) + 26px + env(safe-area-inset-bottom)); z-index: 4; display: grid; gap: 16px; justify-items: center; }
.rav { position: relative; margin-bottom: 8px; }
.fol { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--g3); display: grid; place-items: center; }
.fol.on { background: #fff; color: var(--g3); }
.fol svg { width: 14px; height: 14px; stroke-width: 3; }
.rb { display: grid; justify-items: center; gap: 1px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); min-width: 48px; }
.rb svg { width: 31px; height: 31px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.rb b { font-size: 12px; font-weight: 700; }
.rb.like.on svg { fill: var(--g3); stroke: var(--g3); }
.rb.like.pop svg { animation: pop .35s; }
@keyframes pop { 40% { transform: scale(1.4); } }
.rb .valid { display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 800; color: #05291d; background: var(--mint); border-radius: 8px; padding: 0 5px 0 3px; margin-top: 2px; text-shadow: none; }
.rb .valid svg { width: 11px; height: 11px; stroke-width: 3.2; filter: none; }
.rb .valid i { font-style: normal; }
.meta { position: absolute; left: 14px; right: 76px; bottom: calc(var(--nav) + 18px + env(safe-area-inset-bottom)); z-index: 4; text-shadow: 0 1px 5px rgba(0, 0, 0, .7); }
.meta .who { font-weight: 800; font-size: 16px; display: inline-flex; gap: 8px; align-items: center; }
.meta .cap { font-size: 14px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta .stat { display: flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(255, 255, 255, .8); margin-top: 5px; }
.meta .stat svg { width: 14px; height: 14px; }
.bchip { margin-top: 9px; display: flex; align-items: center; gap: 8px; background: rgba(20, 20, 28, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 201, 60, .35); border-radius: 14px; padding: 8px 10px; text-shadow: none; }
.bchip > svg { color: var(--g1); width: 18px; height: 18px; }
.bchip .bt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.bchip .bl { font-size: 11px; color: var(--ink2); white-space: nowrap; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 9px; background: var(--card2); color: var(--ink2); text-shadow: none; white-space: nowrap; }
.tag svg { width: 12px; height: 12px; stroke-width: 2.6; }
.tag.gold { background: var(--gold); color: #2a1a00; }
.tag.mint { background: var(--mint); color: #05291d; }
.tag.warn { background: rgba(255, 84, 112, .18); color: #FF9DB0; }

/* 空状态、加载 */
.empty { text-align: center; padding: 44px 20px; color: var(--ink2); display: grid; justify-items: center; gap: 10px; }
.empty.full { height: 100%; align-content: center; color: #fff; }
.empty h2 { font-size: 18px; color: var(--ink); }
.orb { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, rgba(255, 201, 60, .35), rgba(255, 61, 119, .12)); color: var(--g1); }
.orb svg { width: 36px; height: 36px; }
.loading { height: 120px; display: grid; place-items: center; }
.loading::after { content: ""; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--g2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 筛选 */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--ink2); white-space: nowrap; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg { display: flex; background: var(--card); border-radius: 16px; padding: 4px; margin: 6px 0 10px; }
.seg button { flex: 1; height: 40px; border-radius: 12px; font-weight: 800; color: var(--ink2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: var(--card2); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.seg svg { width: 18px; height: 18px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 16px -16px 12px; padding: 0 16px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 10px 8px; font-weight: 700; font-size: 14px; color: var(--ink3); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--g2); }
.tabs i { font-style: normal; font-size: 11px; background: var(--card2); border-radius: 8px; padding: 1px 6px; color: var(--ink2); }

/* 悬赏卡 */
.list { display: grid; gap: 12px; }
.bcard { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; position: relative; overflow: hidden; }
.bcard:active { transform: scale(.985); }
.bcard.official { background: linear-gradient(135deg, #2a1c12, #2a1220); border-color: rgba(255, 201, 60, .4); padding-top: 38px; }
.bcard.today { box-shadow: 0 10px 32px rgba(255, 110, 60, .22); }
.ribbon { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 900; padding: 5px 12px 5px 10px; border-radius: 0 0 14px 0; background: var(--grad); color: #24100A; }
.ribbon svg { width: 14px; height: 14px; }
.bc-top { display: flex; justify-content: space-between; align-items: center; }
.left { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--mint); }
.left svg { width: 14px; height: 14px; }
.left.done { color: var(--ink3); }
.bc-text { font-size: 16px; font-weight: 700; margin: 8px 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bc-foot { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--ink2); }
.bc-foot span { display: inline-flex; align-items: center; gap: 4px; }
.bc-foot .by { flex: 1; min-width: 0; gap: 6px; }
.bc-foot svg { width: 14px; height: 14px; }

/* 悬赏页 */
.bhero { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 20px 18px; position: relative; overflow: hidden; }
.bhero::before { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 61, .28), transparent 70%); }
.bhero.official { padding-top: 40px; border-color: rgba(255, 201, 60, .4); }
.bhero > * { position: relative; }
.bhero .ribbon { position: absolute; }
.amt { display: flex; align-items: baseline; gap: 8px; }
.amt .pts.big { font-size: 40px; }
.amt small, .amt2 { color: var(--ink2); font-size: 13px; }
.amt2 { display: flex; align-items: center; gap: 5px; color: var(--gold); font-weight: 700; margin-top: 2px; }
.amt2 svg { width: 16px; height: 16px; }
.btext { font-size: 18px; font-weight: 700; margin: 14px 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tr { font-size: 12px; color: var(--ink3); text-decoration: underline; margin-bottom: 6px; }
.brow { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.rate { font-size: 12px; color: var(--ink2); background: var(--card2); border-radius: 10px; padding: 3px 9px; }
.bstats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.bstats div { background: var(--card2); border-radius: 14px; padding: 10px 6px; text-align: center; }
.bstats b { display: block; font-size: 15px; font-weight: 800; }
.bstats span { font-size: 11px; color: var(--ink3); }
.bhero > .btn.sm { margin-top: 12px; }
.bhero > .hint { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scard { background: var(--card); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.thumb { display: block; position: relative; aspect-ratio: 3/4; background: #000; overflow: hidden; }
.thumb video, .thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; display: block; }
.thumb .tags { position: absolute; left: 6px; top: 6px; right: 6px; z-index: 3; }
.tstat { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 9px; padding: 18px 8px 6px; font-size: 11px; font-weight: 700; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); z-index: 3; }
.tstat span { display: inline-flex; align-items: center; gap: 2px; }
.tstat span:first-child { color: var(--mint); }
.tstat svg { width: 12px; height: 12px; }
.sc-foot { padding: 8px 10px 4px; font-size: 13px; font-weight: 600; }
.sc-foot a { display: flex; align-items: center; gap: 6px; }
.sc-acts { padding: 4px 8px 10px; display: grid; gap: 6px; }
.scard .reason { margin: 4px 8px; }

/* 弹层 */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .2s; }
.sheet { position: relative; width: 100%; max-width: 520px; max-height: 88dvh; overflow-y: auto; background: var(--bg2); border-radius: 26px 26px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); border-top: 1px solid var(--line); }
.sheet.tall { height: 76dvh; display: flex; flex-direction: column; }
.sheet-wrap.on .sheet-bg { opacity: 1; }
.sheet-wrap.on .sheet { transform: none; }
.grip { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 12px; }
.sheet h3 { font-size: 19px; font-weight: 900; margin-bottom: 6px; }
input, textarea, select { width: 100%; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; outline: none; margin-top: 10px; }
input:focus, textarea:focus { border-color: var(--g2); }
textarea { resize: vertical; }
.lab { display: block; font-size: 12px; font-weight: 700; color: var(--ink2); margin-top: 14px; }
.amtbox { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; margin-top: 6px; }
.amtbox svg { color: var(--g1); width: 26px; height: 26px; }
.amtbox input { border: 0; margin: 0; padding: 12px 0; font-size: 26px; font-weight: 900; background: none; }
.sheet .chips { padding: 10px 0 0; }
.calc { background: var(--card); border-radius: 14px; padding: 4px 14px; margin-top: 12px; }
.calc div { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
.calc div:last-of-type { border: 0; }
.pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pickbtn { display: grid; justify-items: center; gap: 6px; padding: 22px 8px; border-radius: 18px; background: var(--card); border: 1.5px dashed var(--line); cursor: pointer; }
.pickbtn svg { width: 30px; height: 30px; color: var(--g1); }
.preview { width: 100%; max-height: 300px; border-radius: 14px; background: #000; margin-top: 12px; display: block; }
.prog { height: 6px; border-radius: 3px; background: var(--line); margin-top: 12px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }

/* 评论 */
.cms { flex: 1; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.cm { display: flex; gap: 10px; padding: 10px 0; align-items: flex-start; }
.cm.reply { padding: 8px 0 0; }
.cm-b { flex: 1; min-width: 0; }
.cm-h { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink3); }
.cm-h b { color: var(--ink2); }
.cm-t { font-size: 15px; overflow-wrap: anywhere; }
.cm-a { display: flex; gap: 14px; font-size: 12px; color: var(--ink3); font-weight: 700; margin-top: 3px; }
.cm-like { display: grid; justify-items: center; color: var(--ink3); font-size: 11px; min-width: 28px; }
.cm-like svg { width: 18px; height: 18px; }
.cm-like.on { color: var(--g3); }
.cm-like.on svg { fill: currentColor; }
.cm-like i { font-style: normal; }
.cm-in { border-top: 1px solid var(--line); padding-top: 8px; }
#cm-to { font-size: 12px; color: var(--ink2); display: flex; align-items: center; gap: 6px; }
#cm-to svg { width: 14px; height: 14px; }
.cm-row { display: flex; gap: 8px; align-items: center; }
.cm-row input { margin: 0; flex: 1; }
.cm-row .btn { height: 44px; }

/* 榜单 */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 8px; margin: 26px 0 16px; }
.pod { flex: 1; max-width: 130px; display: grid; justify-items: center; gap: 3px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 8px 8px; padding: 14px 6px 34px; position: relative; }
.pod b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod small { font-size: 10.5px; color: var(--ink3); }
.pod .step { position: absolute; bottom: 6px; font-style: normal; font-weight: 900; font-size: 18px; color: var(--ink3); }
.pod.p1 { padding-top: 26px; padding-bottom: 54px; border-color: rgba(255, 201, 60, .55); background: linear-gradient(#2c2212, var(--card)); }
.pod.p1 .step { color: var(--gold); font-size: 24px; }
.pod.p2 { padding-bottom: 42px; }
.pod .crown { position: absolute; top: -16px; width: 30px; height: 30px; color: var(--gold); fill: var(--gold); }
.rlist, .mlist { display: grid; gap: 8px; }
.rrow, .mrow { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; width: 100%; text-align: left; }
.rrow > i { font-style: normal; font-weight: 900; color: var(--ink3); width: 22px; text-align: center; }
.rrow > div, .mrow > div:first-child { flex: 1; min-width: 0; }
.rrow b, .mrow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow small, .mrow small { color: var(--ink3); font-size: 12px; display: block; }
.mrow.new { border-color: var(--g2); }
.mrow.col { flex-direction: column; align-items: stretch; }
.ua { display: flex; gap: 16px; }
.delta { font-weight: 900; font-variant-numeric: tabular-nums; }
.delta.pos { color: var(--mint); }
.delta.neg { color: var(--red); }
.hot { color: var(--gold); font-weight: 800; }

/* 我 */
.mehero { border-radius: 24px; padding: 18px; background: linear-gradient(135deg, #2b1b12 0%, #2a1220 60%, #1c1430 100%); border: 1px solid rgba(255, 201, 60, .25); }
.mh-top { display: flex; align-items: center; gap: 12px; }
.mh-top > div { flex: 1; min-width: 0; }
.mh-top h2 { font-size: 20px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-nums { display: flex; gap: 22px; margin: 16px 0 12px; align-items: flex-end; flex-wrap: wrap; }
.mh-nums span { display: block; font-size: 12px; color: var(--ink2); }
.mh-nums > div > b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--grad); }
.mh-foot { font-size: 12px; color: var(--ink2); margin-top: 6px; }
.badges { display: flex; gap: 10px; overflow-x: auto; padding: 14px 0 2px; scrollbar-width: none; }
.badges::-webkit-scrollbar { display: none; }
.badge { flex: none; width: 78px; display: grid; justify-items: center; gap: 5px; text-align: center; font-size: 11px; color: var(--ink3); opacity: .5; }
.badge i { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1.5px dashed var(--line); }
.badge.on { opacity: 1; color: var(--ink); }
.badge.on i { background: var(--grad); border: 0; color: #24100A; box-shadow: 0 6px 16px rgba(255, 110, 60, .35); }
.mefoot { margin-top: 26px; display: grid; gap: 10px; }
.langsel { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 6px 4px 14px; font-weight: 700; }
.langsel select { width: auto; margin: 0; border: 0; background: var(--card2); padding: 8px 10px; }
h4 { font-size: 14px; color: var(--ink2); margin: 16px 0 8px; }

/* 登录 */
.auth { padding-top: calc(40px + env(safe-area-inset-top)); display: grid; gap: 6px; }
.logo { text-align: center; margin-bottom: 14px; }
.logo img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 12px 40px rgba(255, 110, 60, .35); }
.logo h1 { font-size: 30px; font-weight: 900; letter-spacing: -.02em; margin-top: 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo p { color: var(--ink2); }
.form input.code { text-align: center; font-size: 30px; font-weight: 900; letter-spacing: .4em; }
.note-box { background: rgba(255, 201, 60, .1); border: 1px solid rgba(255, 201, 60, .3); color: #FFE08A; border-radius: 14px; padding: 10px 12px; font-size: 13px; margin-top: 14px; }
.auth .langsel { margin-top: 18px; }

/* 规则、后台 */
.doc { background: var(--card); border-radius: var(--r); padding: 6px 18px 18px; border: 1px solid var(--line); }
.doc h3 { margin: 16px 0 6px; font-size: 16px; }
.doc ul, .doc ol { margin: 0; padding-left: 20px; color: var(--ink2); }
.doc li { margin: 4px 0; }
.doc p { color: var(--ink2); }
.acard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.ac-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ac-h small { color: var(--ink3); margin-left: auto; }
.ac-t { font-size: 16px; font-weight: 600; margin: 10px 0 4px; overflow-wrap: anywhere; white-space: pre-wrap; }
.sets label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink2); }
.sets label input { width: 150px; flex: none; }
#tp { font-size: 12px; line-height: 1.6; white-space: pre; overflow-x: auto; }

/* 提示、彩纸 */
#toasts { position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 99; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: rgba(40, 40, 54, .96); color: #fff; padding: 10px 16px; border-radius: 16px; font-weight: 700; font-size: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .5); animation: tin .25s; max-width: 440px; text-align: center; }
.toast.good { background: var(--mint); color: #05291d; }
.toast.bad { background: var(--red); }
.toast.out { opacity: 0; transition: opacity .3s; }
@keyframes tin { from { transform: translateY(-16px); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 98; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 15px; border-radius: 2px; animation: fall 1.5s ease-in forwards; }
@keyframes fall { to { top: 105%; transform: rotate(720deg); } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .wm span { animation-duration: 60s; } }

/* 第二轮：搜索、类目、资料 */
img.av { object-fit: cover; background: var(--card2); padding: 0; }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 0 14px; margin-bottom: 10px; }
.search:focus-within { border-color: var(--g2); }
.search svg { color: var(--ink3); width: 20px; height: 20px; }
.search input { border: 0; margin: 0; padding: 12px 0; background: none; }
.search input::-webkit-search-cancel-button { filter: invert(1); }
.chip.cat.on { background: var(--grad); color: #24100A; border-color: transparent; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.bc-foot .cat { color: var(--g1); font-weight: 700; }
.bio { color: var(--ink2); font-size: 14px; margin-top: 10px; overflow-wrap: anywhere; }
.pf { display: grid; }
.pf-av { display: flex; align-items: center; gap: 14px; margin: 8px 0 4px; }
.pf-av .av.lg { width: 76px; height: 76px; font-size: 30px; }
.pf .btn.big.ghost { margin-top: 10px; }
.av-prev { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; display: block; margin: 12px 0 4px; border: 2px solid var(--line); }
#more.loading { height: 70px; }

/* 首页视频：封面层和等待转圈 */
.slide .pst { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; z-index: 1; pointer-events: none; transition: opacity .15s; }
.slide.on .pst { opacity: 0; }
.slide .spin { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .8s linear infinite; z-index: 3; pointer-events: none; }
.slide.on:not(.wait) .spin, .slide.paused .spin { display: none; }
