/* XFeed —— 深色玻璃拟态 */
:root{
  --bg:#070b12;
  --bg2:#0b1220;
  --card:rgba(255,255,255,.035);
  --card2:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.08);
  --border2:rgba(255,255,255,.14);
  --text:#e8ecf3;
  --sub:#8b98a9;
  --sub2:#5c6b7d;
  --accent:#1d9bf0;
  --accent2:#7856ff;
  --like:#f91880;
  --rt:#00ba7c;
  --grad:linear-gradient(120deg,#1d9bf0,#7856ff);
  --radius:18px;
  --shadow:0 8px 32px rgba(0,0,0,.45);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  background:var(--bg);color:var(--text);
  min-height:100vh;overflow-x:hidden;
}
a{color:var(--accent);text-decoration:none}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
input{font:inherit;color:inherit}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:#232c3a;border-radius:8px;border:2px solid var(--bg)}
::-webkit-scrollbar-track{background:transparent}
::selection{background:rgba(29,155,240,.35)}

/* ======== 登录页 ======== */
.auth-wrap{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  position:relative;overflow:hidden;padding:24px;
}
.aurora{position:absolute;inset:0;overflow:hidden;filter:blur(90px);opacity:.55}
.aurora i{position:absolute;border-radius:50%;animation:drift 18s ease-in-out infinite alternate}
.aurora i:nth-child(1){width:52vw;height:52vw;left:-14vw;top:-18vw;background:radial-gradient(circle,#123f8f,transparent 65%)}
.aurora i:nth-child(2){width:44vw;height:44vw;right:-12vw;top:8vh;background:radial-gradient(circle,#4c2e91,transparent 65%);animation-delay:-6s}
.aurora i:nth-child(3){width:40vw;height:40vw;left:24vw;bottom:-22vw;background:radial-gradient(circle,#0b4d6e,transparent 65%);animation-delay:-12s}
@keyframes drift{
  from{transform:translate(0,0) scale(1)}
  to{transform:translate(6vw,-4vh) scale(1.15)}
}
.auth-grid{position:absolute;inset:0;
  background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:44px 44px;
  mask-image:radial-gradient(ellipse 70% 60% at 50% 40%,#000 30%,transparent 75%);
}
.auth-card{
  position:relative;width:100%;max-width:400px;padding:40px 36px 34px;
  background:rgba(13,19,32,.72);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);
  border:1px solid var(--border2);border-radius:24px;box-shadow:var(--shadow);
  animation:rise .5s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes rise{from{opacity:0;transform:translateY(22px) scale(.97)}to{opacity:1;transform:none}}
.auth-logo{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.auth-logo .mark{
  width:46px;height:46px;border-radius:14px;display:grid;place-items:center;
  background:var(--grad);box-shadow:0 6px 20px rgba(29,155,240,.4);
}
.auth-logo .mark svg{width:24px;height:24px;fill:#fff}
.auth-logo h1{font-size:22px;font-weight:800;letter-spacing:.4px}
.auth-logo h1 em{font-style:normal;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.auth-sub{color:var(--sub);font-size:13.5px;margin-bottom:28px;line-height:1.6}
.field{position:relative;margin-bottom:16px}
.field input{
  width:100%;padding:15px 16px 15px 44px;border-radius:13px;
  background:rgba(255,255,255,.045);border:1px solid var(--border);
  outline:none;font-size:15px;transition:.18s;
}
.field input:focus{border-color:var(--accent);background:rgba(29,155,240,.06);box-shadow:0 0 0 3px rgba(29,155,240,.18)}
.field svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;fill:var(--sub2);transition:.18s}
.field input:focus~svg{fill:var(--accent)}
.btn-grad{
  width:100%;padding:14px;border-radius:13px;font-weight:700;font-size:15px;color:#fff;
  background:var(--grad);box-shadow:0 6px 18px rgba(29,155,240,.32);
  transition:.18s;display:flex;align-items:center;justify-content:center;gap:8px;
}
.btn-grad:hover:not(:disabled){filter:brightness(1.12);transform:translateY(-1px)}
.btn-grad:disabled{opacity:.6;cursor:wait}
.auth-err{
  display:none;margin:14px 0 0;padding:10px 14px;border-radius:11px;font-size:13.5px;
  background:rgba(249,24,128,.1);border:1px solid rgba(249,24,128,.35);color:#ff8fbf;
}
.auth-err.show{display:block;animation:shake .4s}
@keyframes shake{0%,100%{transform:none}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.auth-tip{margin-top:22px;font-size:12px;color:var(--sub2);text-align:center;line-height:1.7}
.spin{width:16px;height:16px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:rot .7s linear infinite}
@keyframes rot{to{transform:rotate(360deg)}}

/* ======== 主界面骨架 ======== */
.layout{display:flex;max-width:1240px;margin:0 auto;min-height:100vh}
.side{
  width:264px;flex-shrink:0;position:sticky;top:0;height:100vh;
  display:flex;flex-direction:column;padding:18px 14px 16px;
  border-right:1px solid var(--border);
}
.brand{display:flex;align-items:center;gap:11px;padding:8px 10px 20px}
.brand .mark{width:38px;height:38px;border-radius:12px;background:var(--grad);display:grid;place-items:center;box-shadow:0 4px 14px rgba(29,155,240,.35)}
.brand .mark svg{width:19px;height:19px;fill:#fff}
.brand b{font-size:17px;letter-spacing:.3px}
.brand b em{font-style:normal;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.nav-item{
  display:flex;align-items:center;gap:13px;padding:11px 13px;border-radius:13px;
  font-size:15px;font-weight:600;color:var(--sub);transition:.15s;width:100%;text-align:left;
}
.nav-item svg{width:20px;height:20px;fill:currentColor}
.nav-item:hover{background:var(--card2);color:var(--text)}
.nav-item.on{background:linear-gradient(120deg,rgba(29,155,240,.16),rgba(120,86,255,.14));color:var(--text)}
.nav-item.on svg{fill:var(--accent)}
.side-label{font-size:11.5px;font-weight:700;letter-spacing:1.4px;color:var(--sub2);padding:20px 13px 8px;text-transform:uppercase}
.sub-list{flex:1;overflow-y:auto;overflow-x:hidden;margin:0 -6px;padding:0 6px;min-height:60px}
.sub-item{
  display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:13px;
  cursor:pointer;transition:.15s;width:100%;text-align:left;
}
.sub-item:hover{background:var(--card2)}
.sub-item.on{background:linear-gradient(120deg,rgba(29,155,240,.16),rgba(120,86,255,.14))}
.sub-item .av{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#1a2433;flex-shrink:0}
.sub-item .who{min-width:0;flex:1}
.sub-item .who b{display:flex;align-items:center;gap:5px;font-size:13.5px;min-width:0}
.sub-item .who .nm{font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sub-item .who span{font-size:12px;color:var(--sub2)}
.sub-item .more-btn{
  opacity:.55;color:var(--sub2);width:28px;height:28px;border-radius:8px;flex-shrink:0;
  display:grid;place-items:center;transition:.15s;
}
.sub-item:hover .more-btn,.sub-item .more-btn.open{opacity:1}
.sub-item .more-btn:hover,.sub-item .more-btn.open{color:var(--text);background:rgba(255,255,255,.1)}
.sub-item .more-btn svg{width:16px;height:16px;fill:currentColor}
.pin-star{display:inline-flex;align-items:center;flex-shrink:0}
.pin-star svg{width:12px;height:12px;fill:#ffcf5c}
.sub-menu{
  position:fixed;z-index:180;min-width:168px;padding:6px;border-radius:12px;
  background:rgba(15,22,34,.96);border:1px solid var(--border2);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  box-shadow:0 12px 36px rgba(0,0,0,.55);display:flex;flex-direction:column;gap:2px;
  animation:fadein .12s ease;
}
.sub-menu .sm-item{
  display:flex;align-items:center;gap:9px;width:100%;padding:9px 11px;border-radius:8px;
  font-size:13px;font-weight:600;color:var(--text);text-align:left;transition:.12s;
}
.sub-menu .sm-item svg{width:14px;height:14px;fill:#ffcf5c;flex-shrink:0}
.sub-menu .sm-item:hover{background:rgba(255,255,255,.08)}
.sub-menu .sm-item.active{color:#ffcf5c}
.sub-menu .sm-item.danger{color:#ff8fbf}
.sub-menu .sm-item.danger:hover{background:rgba(249,24,128,.14)}
.sub-menu .sm-x{width:14px;text-align:center;font-size:13px;line-height:1;flex-shrink:0}
.add-box{display:flex;gap:8px;padding:10px 8px 4px}
.add-box input{
  flex:1;min-width:0;padding:9px 12px;border-radius:11px;font-size:13.5px;
  background:rgba(255,255,255,.045);border:1px solid var(--border);outline:none;transition:.15s;
}
.add-box input:focus{border-color:var(--accent)}
.add-box button{
  width:36px;height:36px;border-radius:11px;background:var(--grad);display:grid;place-items:center;flex-shrink:0;transition:.15s;
}
.add-box button:hover{filter:brightness(1.15)}
.add-box button svg{width:16px;height:16px;fill:#fff}
.me-card{
  display:flex;align-items:center;gap:10px;padding:10px;margin-top:10px;
  border:1px solid var(--border);border-radius:14px;background:var(--card);
}
.me-card .av{width:34px;height:34px;border-radius:50%;background:var(--grad);display:grid;place-items:center;font-weight:800;font-size:14px;color:#fff}
.me-card .who{flex:1;min-width:0}
.me-card .who b{font-size:13.5px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.me-card .who span{font-size:11.5px;color:var(--sub2)}
.icon-btn{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:var(--sub);transition:.15s;flex-shrink:0}
.icon-btn:hover{background:var(--card2);color:var(--text)}
.icon-btn svg{width:17px;height:17px;fill:currentColor}

.main{flex:1;min-width:0;max-width:760px;border-right:1px solid var(--border)}
.topbar{
  position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;
  padding:14px 20px;background:rgba(7,11,18,.78);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
}
.topbar h2{font-size:17px;font-weight:800;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar .upd{font-size:12px;color:var(--sub2);white-space:nowrap}
.refresh-btn{
  display:flex;align-items:center;gap:7px;padding:8px 15px;border-radius:11px;font-size:13px;font-weight:600;
  background:var(--card2);border:1px solid var(--border);transition:.15s;white-space:nowrap;
}
.refresh-btn:hover{border-color:var(--accent);color:var(--accent)}
.refresh-btn svg{width:14px;height:14px;fill:currentColor}
.refresh-btn.busy svg{animation:rot .8s linear infinite}
.unfollow-btn,.follow-btn{
  display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:11px;font-size:13px;font-weight:600;
  transition:.15s;white-space:nowrap;
}
.unfollow-btn{background:rgba(249,24,128,.1);border:1px solid rgba(249,24,128,.35);color:#ff8fbf}
.unfollow-btn:hover{background:rgba(249,24,128,.2);border-color:#ff8fbf}
.follow-btn{background:var(--grad);color:#fff;border:1px solid transparent}
.follow-btn:hover{filter:brightness(1.1)}
.notice-acts{display:flex;justify-content:center;gap:10px;margin-top:16px;flex-wrap:wrap}
.feed{padding:16px 16px 80px}

/* ======== 用户资料头 ======== */
.profile{
  margin:16px;border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;background:var(--card);animation:fadeup .4s ease both;
}
.profile .banner{height:168px;background:linear-gradient(120deg,#16233a,#221a3d);position:relative;overflow:hidden}
.profile .banner img{width:100%;height:100%;object-fit:cover}
.profile .body{padding:0 20px 18px;position:relative}
.profile .av{
  width:88px;height:88px;border-radius:50%;border:4px solid #0a1019;
  margin-top:-44px;position:relative;z-index:2;object-fit:cover;background:#1a2433;
}
.profile .names{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-top:10px}
.profile h3{font-size:20px;font-weight:800;display:flex;align-items:center;gap:6px}
.profile .handle{color:var(--sub);font-size:14px}
.profile .bio{margin-top:10px;font-size:14.5px;line-height:1.65;word-break:break-word;white-space:pre-wrap}
.profile .meta{display:flex;flex-wrap:wrap;gap:16px;margin-top:12px;font-size:13.5px;color:var(--sub)}
.profile .meta b{color:var(--text);font-weight:700}
.profile .meta svg{width:14px;height:14px;fill:var(--sub2);vertical-align:-2px;margin-right:4px}
.vbadge{width:18px;height:18px;fill:var(--accent);flex-shrink:0}

/* ======== 推文卡片 ======== */
.tweet{
  border:1px solid var(--border);border-radius:var(--radius);background:var(--card);
  padding:16px 18px 12px;margin-bottom:14px;transition:border-color .18s,background .18s;
  animation:fadeup .4s ease both;
}
@keyframes fadeup{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.tweet:hover{border-color:var(--border2);background:var(--card2)}
.tweet .ctx{display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;color:var(--sub);margin-bottom:9px}
.tweet .ctx svg{width:14px;height:14px;fill:var(--sub)}
.tweet .ctx.pin svg{fill:var(--accent2)}
.tw-head{display:flex;gap:12px}
.tw-av{width:44px;height:44px;border-radius:50%;object-fit:cover;background:#1a2433;flex-shrink:0;cursor:pointer}
.tw-main{flex:1;min-width:0}
.tw-names{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}
.tw-names b{font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.tw-names .h,.tw-names .t{font-size:13px;color:var(--sub2);white-space:nowrap}
.tw-names .t{margin-left:auto;flex-shrink:0}
.tw-text{margin-top:5px;font-size:14.8px;line-height:1.68;word-break:break-word;white-space:pre-wrap}
.tw-text .h{font-size:14.8px;color:var(--sub2);white-space:nowrap}
.tw-text .t{position:absolute;right:0;top:0}
.tw-head{position:relative}
.tw-text a{word-break:break-all}
.tw-media{margin-top:11px;border-radius:14px;overflow:hidden;border:1px solid var(--border);display:grid;gap:2px;background:#0d1420}
.tw-media.n1{grid-template-columns:1fr}
.tw-media.n2{grid-template-columns:1fr 1fr}
.tw-media.n3{grid-template-columns:1fr 1fr}
.tw-media.n3 .m:first-child{grid-row:span 2}
.tw-media.n4{grid-template-columns:1fr 1fr}
.tw-media .m{position:relative;overflow:hidden;cursor:zoom-in;background:#0d1420}
.tw-media .m img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.tw-media .m:hover img{transform:scale(1.03)}
.tw-media.n1 .m{max-height:480px}
.tw-media.n1 .m img{object-fit:cover;aspect-ratio:auto}
.tw-media.n2 .m,.tw-media.n3 .m,.tw-media.n4 .m{aspect-ratio:1/.78}
.tw-media .m video{width:100%;height:100%;display:block;object-fit:cover;max-height:480px;background:#000}
.tw-media .m .play{
  position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;
}
.tw-media .m .play i{
  width:56px;height:56px;border-radius:50%;display:grid;place-items:center;
  background:rgba(0,0,0,.55);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.25);
}
.tw-media .m .play svg{width:22px;height:22px;fill:#fff;margin-left:3px}
.tw-media .dur{position:absolute;right:8px;bottom:8px;font-size:11px;font-weight:600;padding:3px 8px;border-radius:7px;background:rgba(0,0,0,.6);color:#fff}
.quote{
  margin-top:11px;border:1px solid var(--border);border-radius:14px;padding:11px 14px;
  transition:.15s;cursor:pointer;background:rgba(255,255,255,.02);
}
.quote:hover{background:rgba(255,255,255,.05)}
.quote .q-head{display:flex;align-items:center;gap:7px;min-width:0}
.quote .q-av{width:19px;height:19px;border-radius:50%;object-fit:cover;flex-shrink:0}
.quote .q-head b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quote .q-head span{font-size:12px;color:var(--sub2);white-space:nowrap}
.quote .q-text{margin-top:5px;font-size:13.8px;line-height:1.6;color:#cbd4e0;
  display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;word-break:break-word}
.quote .q-media{margin-top:9px;border-radius:10px;overflow:hidden;max-height:260px;border:1px solid var(--border)}
.quote .q-media img{width:100%;height:100%;object-fit:cover;display:block}
.tw-actions{display:flex;align-items:center;gap:4px;margin-top:11px;margin-left:-9px}
.tw-actions a,.tw-actions span.a{
  display:flex;align-items:center;gap:7px;padding:7px 11px;border-radius:10px;
  font-size:12.8px;color:var(--sub);transition:.15s;font-variant-numeric:tabular-nums;
}
.tw-actions svg{width:16px;height:16px;fill:currentColor}
.tw-actions .a:hover{background:rgba(29,155,240,.1);color:var(--accent)}
.tw-actions .a.like:hover{background:rgba(249,24,128,.1);color:var(--like)}
.tw-actions .a.rt:hover{background:rgba(0,186,124,.1);color:var(--rt)}
.tw-actions .open{margin-left:auto}
.tw-actions .ttr{cursor:pointer}
.ttrans{
  margin-top:8px;padding:10px 12px;font-size:14px;line-height:1.65;white-space:pre-wrap;word-break:break-word;
  border-left:3px solid var(--accent);border-radius:0 10px 10px 0;background:rgba(29,155,240,.06);
}
.ttrans.hide{display:none}
.ttrans .ttag{
  display:inline-block;font-size:10.5px;font-weight:700;color:var(--accent);
  background:rgba(29,155,240,.16);border-radius:4px;padding:1px 6px;margin-right:7px;vertical-align:1px;
}
.tombstone{padding:16px;border:1px dashed var(--border);border-radius:var(--radius);color:var(--sub2);font-size:13.5px;text-align:center;margin-bottom:14px}

/* 分栏 + 加载更多 + 凭证行 */
.tabs{display:flex;gap:4px;padding:4px 20px 0;border-bottom:1px solid var(--border);position:sticky;top:60px;background:rgba(7,11,18,.78);backdrop-filter:blur(16px);z-index:15}
.tab{padding:10px 16px;font-size:14px;font-weight:600;color:var(--sub);border-bottom:2px solid transparent;transition:.15s}
.tab:hover{color:var(--text)}
.tab.on{color:var(--text);border-bottom-color:var(--accent)}
.loadmore{
  display:block;width:100%;padding:13px;margin:4px 0 20px;border-radius:13px;font-size:14px;font-weight:600;
  background:var(--card2);border:1px solid var(--border);color:var(--sub);transition:.15s;
}
.loadmore:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}
.loadmore:disabled{opacity:.5;cursor:wait}
.xcreds-row{
  display:flex;align-items:center;gap:9px;padding:9px 10px;margin-top:8px;font-size:12.5px;
  border:1px dashed var(--border);border-radius:12px;color:var(--sub);cursor:pointer;transition:.15s;width:100%;text-align:left;
}
.xcreds-row:hover{border-color:var(--accent);color:var(--text)}
.xcreds-row svg{width:15px;height:15px;fill:var(--sub2);flex-shrink:0}
.xcreds-row.bound{border-style:solid;border-color:rgba(0,186,124,.4);color:#7ce8c3}
.xcreds-row.bound svg{fill:#7ce8c3}
.restricted-tip{margin-top:8px;font-size:12.5px;color:#ffcf7d}
.restricted-tip button{color:var(--accent);font-weight:700;margin-left:6px}

/* 骨架屏 */
.sk{border:1px solid var(--border);border-radius:var(--radius);padding:16px 18px;margin-bottom:14px;background:var(--card)}
.sk .row{display:flex;gap:12px}
.sk .c{width:44px;height:44px;border-radius:50%;flex-shrink:0}
.sk .l{height:13px;border-radius:7px;margin-top:6px}
.sk .big{height:170px;border-radius:13px;margin-top:13px}
.sk .c,.sk .l,.sk .big{background:linear-gradient(90deg,rgba(255,255,255,.045) 25%,rgba(255,255,255,.1) 50%,rgba(255,255,255,.045) 75%);background-size:200% 100%;animation:shim 1.4s infinite}
@keyframes shim{from{background-position:200% 0}to{background-position:-200% 0}}

/* 状态块 */
.notice{
  margin:24px 16px;padding:30px 20px;text-align:center;color:var(--sub);
  border:1px dashed var(--border);border-radius:var(--radius);font-size:14px;line-height:1.8;
}
.notice .big{font-size:34px;margin-bottom:8px;display:block}
.err-chip{
  display:flex;align-items:center;gap:9px;padding:10px 14px;margin-bottom:12px;
  border-radius:12px;font-size:13px;background:rgba(255,180,60,.08);border:1px solid rgba(255,180,60,.3);color:#ffcf7d;
}
.err-chip svg{width:15px;height:15px;fill:#ffcf7d;flex-shrink:0}
.err-chip .err-txt{flex:1;min-width:0;word-break:break-word}
.err-chip .err-btns{display:flex;align-items:center;gap:8px;flex-shrink:0;margin-left:auto}
.err-chip .err-act{color:var(--accent);font-weight:700;padding:4px 8px;border-radius:7px}
.err-chip .err-rm{
  padding:4px 10px;border-radius:8px;font-size:12px;font-weight:600;
  color:#ff8fbf;background:rgba(249,24,128,.12);border:1px solid rgba(249,24,128,.35);transition:.15s;
}
.err-chip .err-rm:hover{background:rgba(249,24,128,.24)}

/* 灯箱 */
.lightbox{
  position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;
  background:rgba(2,4,8,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
}
.lightbox.show{display:flex;animation:fadein .18s}
@keyframes fadein{from{opacity:0}}
.lightbox img{max-width:92vw;max-height:90vh;border-radius:10px;box-shadow:0 20px 80px rgba(0,0,0,.8)}
.lightbox video{max-width:92vw;max-height:90vh;border-radius:10px}
.lb-x{position:absolute;top:18px;right:20px;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.08);display:grid;place-items:center;font-size:20px;color:#fff}
.lb-x:hover{background:rgba(255,255,255,.16)}
.lb-nav{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.08);display:grid;place-items:center;color:#fff}
.lb-nav:hover{background:rgba(255,255,255,.16)}
.lb-nav svg{width:20px;height:20px;fill:#fff}
.lb-prev{left:18px}.lb-next{right:18px}
.lb-count{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);font-size:13px;color:#fff;background:rgba(255,255,255,.1);padding:4px 12px;border-radius:9px}

/* Toast */
.toasts{position:fixed;right:18px;bottom:18px;z-index:200;display:flex;flex-direction:column;gap:9px}
.toast{
  padding:12px 18px;border-radius:13px;font-size:13.5px;font-weight:600;
  background:rgba(18,26,40,.92);border:1px solid var(--border2);backdrop-filter:blur(14px);
  box-shadow:var(--shadow);animation:rise .3s cubic-bezier(.2,.9,.3,1.2);max-width:320px;
}
.toast.err{border-color:rgba(249,24,128,.4);color:#ff8fbf}
.toast.ok{border-color:rgba(0,186,124,.4);color:#7ce8c3}

/* 移动端 */
.m-top{display:none}
@media (max-width:900px){
  .side{display:none}
  .main{border-right:none;max-width:none}
  .m-top{
    display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:30;
    padding:12px 16px;background:rgba(7,11,18,.85);backdrop-filter:blur(16px);
    border-bottom:1px solid var(--border);
  }
  .m-top .mark{width:32px;height:32px;border-radius:10px;background:var(--grad);display:grid;place-items:center}
  .m-top .mark svg{width:16px;height:16px;fill:#fff}
  .m-top b{flex:1;font-size:15px}
  .m-subs{display:flex;gap:9px;padding:12px 14px;overflow-x:auto;border-bottom:1px solid var(--border)}
  .m-subs .chip{
    flex-shrink:0;display:flex;align-items:center;gap:7px;padding:6px 12px 6px 7px;
    border-radius:99px;border:1px solid var(--border);font-size:12.5px;font-weight:600;color:var(--sub);
  }
  .m-subs .chip.on{border-color:var(--accent);color:var(--text);background:rgba(29,155,240,.12)}
  .m-subs .chip img{width:22px;height:22px;border-radius:50%;object-fit:cover;background:#1a2433}
  .m-subs .chip .dot{width:22px;height:22px;border-radius:50%;background:var(--grad);display:grid;place-items:center;font-size:10px;color:#fff;font-weight:800}
  .m-add{position:sticky;bottom:14px;left:100%;margin:0 14px;float:right}
  .fab{
    width:50px;height:50px;border-radius:50%;background:var(--grad);display:grid;place-items:center;
    box-shadow:0 8px 24px rgba(29,155,240,.45);
  }
  .fab svg{width:22px;height:22px;fill:#fff}
}
@media (min-width:901px){.m-subs{display:none}.fab{display:none}.m-add{display:none}}

/* 弹层 */
.pop{
  position:fixed;inset:0;z-index:150;display:none;align-items:flex-end;justify-content:center;
  background:rgba(2,4,8,.6);backdrop-filter:blur(4px);
}
.pop.show{display:flex}
.pop-card{
  width:100%;max-width:420px;margin:0 12px calc(12px + env(safe-area-inset-bottom));
  background:#0d1420;border:1px solid var(--border2);border-radius:20px;padding:20px;
  animation:rise .3s cubic-bezier(.2,.9,.3,1.2);
}
.pop-card h3{font-size:16px;margin-bottom:4px}
.pop-card p{font-size:12.5px;color:var(--sub);margin-bottom:14px}
.pop-card input,.pop-card textarea{
  width:100%;padding:12px 14px;border-radius:12px;font-size:14px;
  background:rgba(255,255,255,.05);border:1px solid var(--border);outline:none;margin-bottom:14px;
}
.pop-card textarea{resize:vertical;min-height:80px;font-family:ui-monospace,monospace;font-size:12.5px;line-height:1.5;color:var(--fg);margin-bottom:4px}
.pop-card input:focus,.pop-card textarea:focus{border-color:var(--accent)}
.cc-hint{font-size:12px;margin:-6px 0 12px!important;min-height:14px}
.cc-hint.ok{color:#7ce8c3}
.cc-hint.bad{color:#f87171}
/* 设置弹窗：分段控件 + 开关 */
.seg-label{font-size:11.5px;font-weight:700;color:var(--sub2);letter-spacing:.08em;text-transform:uppercase;margin:14px 0 8px}
.seg{display:flex;background:var(--card2);border:1px solid var(--border);border-radius:12px;padding:4px;gap:4px}
.seg-b{
  flex:1;padding:9px 4px;border-radius:9px;font-size:13.5px;font-weight:700;color:var(--sub);
  transition:all .18s;
}
.seg-b:hover{color:var(--fg)}
.seg-b.on{background:var(--grad);color:#fff;box-shadow:0 3px 10px rgba(29,155,240,.35)}
.seg-tip{font-size:12px;color:var(--sub2);margin:8px 2px 0!important}
.swrow{
  display:flex;align-items:center;justify-content:space-between;padding:11px 4px;
  border-bottom:1px solid var(--border);cursor:pointer;user-select:none;
}
.swrow:last-of-type{border-bottom:none}
.swtxt{display:flex;align-items:center;gap:9px;font-size:14px}
.swtxt svg{width:15px;height:15px;fill:var(--sub2)}
.sw{
  width:42px;height:24px;border-radius:99px;background:var(--card2);border:1px solid var(--border2);
  position:relative;transition:all .2s;flex-shrink:0;
}
.sw i{
  position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;
  background:#8b98a5;transition:all .2s cubic-bezier(.2,.9,.3,1.3);
}
.sw.on{background:rgba(29,155,240,.25);border-color:var(--accent)}
.sw.on i{left:20px;background:var(--accent)}
.pop-btns{display:flex;gap:10px;margin-top:16px}
.pop-btns button{flex:1;padding:11px;border-radius:11px;font-weight:700;font-size:14px}
.pop-btns .pri{background:var(--grad);color:#fff}
.pop-btns .sec{background:var(--card2);border:1px solid var(--border)}
.pop-btns .danger{color:#f87171;display:flex;align-items:center;justify-content:center;gap:6px}
.pop-btns .danger svg{width:15px;height:15px;fill:currentColor}
.pop-btns .danger:hover{background:rgba(248,113,113,.12);border-color:rgba(248,113,113,.4)}
@media (min-width:640px){.pop{align-items:center}}
