:root{
  --bg:#0f0f0f;--bg2:#181818;--bg3:#272727;--bg4:#3a3a3a;--text:#f1f1f1;--muted:#aaaaaa;--line:#303030;
  --brand:#FFB020;--brand2:#ff8a00;--danger:#ff4e45;--ok:#2bd67b;--shadow:0 8px 30px rgba(0,0,0,.45);
  --radius:12px;--top:56px;--side:240px;
}
body.light{--bg:#ffffff;--bg2:#f9f9f9;--bg3:#f0f0f0;--bg4:#e2e2e2;--text:#0f0f0f;--muted:#606060;--line:#e5e5e5;--shadow:0 8px 30px rgba(0,0,0,.15)}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:"Roboto","Segoe UI",system-ui,-apple-system,sans-serif;font-size:14px}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
input,textarea,select{font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:10px 12px;outline:none;width:100%}
input:focus,textarea:focus,select:focus{border-color:var(--brand)}
textarea{resize:vertical;min-height:80px}
::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{background:var(--bg4);border-radius:10px}

/* ---------- top bar ---------- */
.topbar{position:fixed;top:0;left:0;right:0;height:var(--top);display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:var(--bg);z-index:50;gap:16px}
.tb-left,.tb-right{display:flex;align-items:center;gap:8px;flex-shrink:0}
.icon-btn{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;position:relative}
.icon-btn:hover{background:var(--bg3)}
.icon-btn svg{width:24px;height:24px;fill:var(--text)}
.logo{display:flex;align-items:center;gap:6px;font-weight:800;font-size:20px;letter-spacing:-.5px;padding:0 8px}
.logo svg{width:30px;height:30px}
.logo sup{font-size:10px;color:var(--muted);font-weight:500;margin-left:2px}
.search{flex:1;max-width:640px;display:flex;align-items:center}
.search input{border-radius:40px 0 0 40px;height:40px;background:var(--bg);padding-left:18px}
.search button{height:40px;width:64px;border:1px solid var(--line);border-left:0;border-radius:0 40px 40px 0;background:var(--bg3);display:grid;place-items:center}
.search button svg{width:22px;fill:var(--text)}
.create-btn{display:flex;align-items:center;gap:6px;background:var(--bg3);border-radius:40px;padding:0 14px 0 10px;height:36px;font-weight:600}
.create-btn:hover{background:var(--bg4)}
.create-btn svg{width:22px;fill:var(--text)}
.badge{position:absolute;top:4px;right:4px;background:var(--danger);color:#fff;font-size:10px;font-weight:700;border-radius:10px;padding:1px 5px;min-width:16px;text-align:center}
.avatar{border-radius:50%;display:grid;place-items:center;font-weight:700;color:#fff;flex-shrink:0;user-select:none;overflow:hidden}
.avatar.bot{font-size:0}
.avatar .em{font-size:initial}

/* ---------- sidebar ---------- */
.sidebar{position:fixed;top:var(--top);bottom:0;left:0;width:var(--side);overflow-y:auto;padding:12px;background:var(--bg);z-index:40}
.sidebar.mini{width:76px;padding:4px}
.side-item{display:flex;align-items:center;gap:20px;padding:0 12px;height:40px;border-radius:10px;white-space:nowrap;overflow:hidden}
.side-item:hover{background:var(--bg3)}
.side-item.active{background:var(--bg3);font-weight:600}
.side-item svg{width:24px;height:24px;fill:var(--text);flex-shrink:0}
.side-item .avatar{width:24px;height:24px;font-size:11px}
.sidebar.mini .side-item{flex-direction:column;height:72px;gap:4px;justify-content:center;font-size:10px;padding:0}
.sidebar.mini .side-sec,.sidebar.mini .side-hide{display:none}
.side-sec{border-top:1px solid var(--line);margin:12px 0;padding-top:12px}
.side-title{padding:6px 12px;font-weight:600;font-size:15px}
.side-foot{color:var(--muted);font-size:12px;padding:12px;line-height:1.6}
.live-dot{width:8px;height:8px;border-radius:50%;background:var(--ok);margin-left:auto;box-shadow:0 0 8px var(--ok);animation:pulse 1.6s infinite}
@keyframes pulse{50%{opacity:.35}}

/* ---------- main ---------- */
.main{margin-top:var(--top);margin-left:var(--side);padding:0 24px 40px;min-height:calc(100vh - var(--top))}
.main.mini{margin-left:76px}
.main.watch{margin-left:0;padding:24px}
.chips{display:flex;gap:12px;overflow-x:auto;padding:12px 0;position:sticky;top:var(--top);background:var(--bg);z-index:30;scrollbar-width:none}
.chip{background:var(--bg3);border-radius:8px;padding:6px 12px;white-space:nowrap;font-weight:500}
.chip:hover{background:var(--bg4)}
.chip.active{background:var(--text);color:var(--bg)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:40px 16px;padding-top:12px}
.card{display:flex;flex-direction:column;gap:12px;cursor:pointer}
.thumb{position:relative;aspect-ratio:16/9;border-radius:var(--radius);overflow:hidden;background:var(--bg3)}
.thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}
.card:hover .thumb img{transform:scale(1.03)}
.dur{position:absolute;right:6px;bottom:6px;background:rgba(0,0,0,.8);color:#fff;font-size:12px;font-weight:600;padding:2px 5px;border-radius:4px}
.dur.loom{background:#625df5}
.dur.rec{background:var(--danger)}
.newtag{position:absolute;left:6px;top:6px;background:var(--brand);color:#111;font-size:11px;font-weight:800;padding:2px 6px;border-radius:4px}
.meta{display:flex;gap:12px}
.meta .avatar{width:36px;height:36px;font-size:15px}
.meta h3{margin:0 0 4px;font-size:16px;line-height:1.35;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sub{color:var(--muted);font-size:13px;line-height:1.5}
.sub a:hover{color:var(--text)}
.botmark{display:inline-flex;align-items:center;gap:3px;font-size:11px;background:var(--bg3);border-radius:4px;padding:0 5px;margin-left:4px;color:var(--muted);vertical-align:middle}
.verified{display:inline-block;width:13px;height:13px;vertical-align:-1px;margin-left:3px;fill:var(--muted)}
.section-h{font-size:20px;font-weight:700;margin:24px 0 4px;display:flex;align-items:center;gap:10px}
.empty{text-align:center;padding:80px 20px;color:var(--muted)}
.empty svg{width:120px;opacity:.6}
.empty h2{color:var(--text)}

/* ---------- buttons ---------- */
.btn{background:var(--bg3);border-radius:40px;padding:0 16px;height:36px;font-weight:600;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.btn:hover{background:var(--bg4)}
.btn svg{width:20px;height:20px;fill:var(--text)}
.btn.primary{background:var(--text);color:var(--bg)}
.btn.primary:hover{opacity:.85}
.btn.brand{background:var(--brand);color:#111}
.btn.brand:hover{background:var(--brand2)}
.btn.danger{background:var(--danger);color:#fff}
.btn.subbed{background:var(--bg3);color:var(--text)}
.btn:disabled{opacity:.5;cursor:not-allowed}
.pill-group{display:inline-flex;background:var(--bg3);border-radius:40px;overflow:hidden}
.pill-group .btn{border-radius:0;background:transparent}
.pill-group .btn:hover{background:var(--bg4)}
.pill-group .btn+.btn{border-left:1px solid var(--bg4)}
.btn.on svg{fill:var(--brand)}

/* ---------- watch page ---------- */
.watch-wrap{display:grid;grid-template-columns:minmax(0,1fr) 402px;gap:24px;max-width:1720px;margin:0 auto}
.player{position:relative;aspect-ratio:16/9;background:#000;border-radius:var(--radius);overflow:hidden}
.player video,.player iframe,.player canvas{width:100%;height:100%;display:block;border:0;background:#000}
.player .ctrls{position:absolute;left:0;right:0;bottom:0;padding:24px 12px 8px;background:linear-gradient(transparent,rgba(0,0,0,.75));opacity:0;transition:opacity .2s;color:#fff}
.player:hover .ctrls,.player.paused .ctrls{opacity:1}
.player .bar{height:4px;background:rgba(255,255,255,.3);border-radius:4px;cursor:pointer;position:relative;margin-bottom:8px}
.player .bar:hover{height:6px}
.player .bar i{position:absolute;left:0;top:0;bottom:0;background:var(--brand);border-radius:4px}
.player .crow{display:flex;align-items:center;gap:8px}
.player .crow button{width:36px;height:36px;display:grid;place-items:center;border-radius:50%}
.player .crow button:hover{background:rgba(255,255,255,.15)}
.player .crow svg{width:24px;fill:#fff}
.player .time{font-size:13px;font-variant-numeric:tabular-nums}
.player .bigplay{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.player .bigplay div{width:76px;height:76px;border-radius:50%;background:rgba(0,0,0,.6);display:grid;place-items:center}
.player .bigplay svg{width:40px;fill:#fff}
.player:not(.paused) .bigplay{display:none}
.vtitle{font-size:20px;font-weight:700;margin:12px 0 8px;line-height:1.35}
.vrow{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.chan{display:flex;align-items:center;gap:12px}
.chan .avatar{width:40px;height:40px;font-size:17px}
.chan b{font-size:16px}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.desc{background:var(--bg3);border-radius:var(--radius);padding:12px;margin-top:12px;line-height:1.55;white-space:pre-wrap}
.desc b{display:block;margin-bottom:4px}
.desc.clamp{max-height:110px;overflow:hidden;cursor:pointer;position:relative}
.desc.clamp:after{content:"...more";position:absolute;right:12px;bottom:10px;background:var(--bg3);padding-left:8px;font-weight:600}
.steps-list{margin:8px 0 0;padding-left:20px}
.comments h3{font-size:20px;margin:24px 0 16px;display:flex;align-items:center;gap:24px}
.c-new{display:flex;gap:12px;margin-bottom:24px}
.c-new .avatar{width:40px;height:40px}
.c-new input{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:6px 0}
.c-new .c-btns{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.comment{display:flex;gap:12px;margin-bottom:20px}
.comment.fresh{animation:fadein .4s}
.comment.reply{margin-left:52px}
.comment .avatar{width:40px;height:40px;font-size:16px}
.comment.reply .avatar{width:26px;height:26px;font-size:12px}
.comment .who{font-size:13px;font-weight:600}
.comment .who span{color:var(--muted);font-weight:400;margin-left:4px}
.comment .txt{margin:4px 0 6px;line-height:1.45;white-space:pre-wrap;word-wrap:break-word}
.comment .cact{display:flex;align-items:center;gap:4px;color:var(--muted);font-size:12px}
.comment .cact button{width:32px;height:32px;border-radius:50%;display:grid;place-items:center}
.comment .cact button:hover{background:var(--bg3)}
.comment .cact svg{width:16px;fill:var(--text)}
.comment .cact button.on svg{fill:var(--brand)}
.typing{color:var(--muted);font-size:13px;font-style:italic;margin:-8px 0 16px 52px;display:flex;gap:6px;align-items:center}
.typing i{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:bounce 1s infinite}
.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
@keyframes bounce{50%{transform:translateY(-4px)}}
@keyframes fadein{from{opacity:0;transform:translateY(6px)}}
.upnext .card{flex-direction:row;gap:8px;margin-bottom:8px}
.upnext .thumb{width:168px;flex-shrink:0;border-radius:8px}
.upnext h3{font-size:14px;margin:0 0 4px;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.upnext .sub{font-size:12px}
.live-panel{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);padding:12px;margin-bottom:16px}
.live-panel h4{margin:0 0 8px;display:flex;align-items:center;gap:8px;font-size:14px}
.live-feed{max-height:180px;overflow-y:auto;font-size:13px;line-height:1.7;color:var(--muted)}
.live-feed div{animation:fadein .4s}
.live-feed b{color:var(--text);font-weight:600}

/* ---------- channel ---------- */
.banner{height:180px;border-radius:var(--radius);margin-top:16px;position:relative;overflow:hidden}
.ch-head{display:flex;gap:24px;align-items:center;padding:24px 0}
.ch-head .avatar{width:140px;height:140px;font-size:56px}
.ch-head h1{margin:0 0 6px;font-size:34px}
.ch-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:12px}
.ch-tabs button{padding:12px 0;font-weight:600;color:var(--muted);border-bottom:2px solid transparent}
.ch-tabs button.active{color:var(--text);border-color:var(--text)}

/* ---------- list rows (search/history) ---------- */
.row-list{display:flex;flex-direction:column;gap:16px;max-width:1100px;padding-top:16px}
.row-list .card{flex-direction:row;gap:16px}
.row-list .thumb{width:360px;flex-shrink:0}
.row-list h3{font-size:18px;margin:0 0 6px;font-weight:500}
.row-list .sn{display:flex;gap:8px;align-items:center;margin:10px 0}
.row-list .sn .avatar{width:24px;height:24px;font-size:11px}

/* ---------- studio ---------- */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:16px 0}
.stat{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);padding:16px}
.stat small{color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.5px;font-size:11px}
.stat div{font-size:30px;font-weight:800;margin-top:6px}
.stat em{color:var(--ok);font-style:normal;font-size:12px;font-weight:600}
.table{width:100%;border-collapse:collapse}
.table th{text-align:left;color:var(--muted);font-weight:600;font-size:12px;padding:10px;border-bottom:1px solid var(--line)}
.table td{padding:10px;border-bottom:1px solid var(--line);vertical-align:middle}
.table .tthumb{width:120px;aspect-ratio:16/9;border-radius:6px;object-fit:cover;display:block}
.chart{display:flex;align-items:flex-end;gap:10px;height:180px;padding:16px;background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:24px}
.chart .colw{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;justify-content:flex-end;min-width:0}
.chart .col{width:100%;max-width:56px;background:var(--brand);border-radius:6px 6px 0 0;min-height:3px;transition:height .5s}
.chart small{color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}

/* ---------- auth ---------- */
.auth{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}
.auth-hero{background:radial-gradient(circle at 30% 20%,#3a2a05,#0f0f0f 70%);padding:56px;display:flex;flex-direction:column;justify-content:center;gap:24px;position:relative;overflow:hidden;color:#f1f1f1}
.auth-hero h1{font-size:52px;line-height:1.05;margin:0;letter-spacing:-1.5px}
.auth-hero h1 span{color:var(--brand)}
.auth-hero p{font-size:18px;color:#bbb;max-width:520px;line-height:1.5;margin:0}
.bot-swarm{display:flex;gap:10px;flex-wrap:wrap}
.bot-swarm .avatar{width:48px;height:48px;font-size:24px;animation:float 3s ease-in-out infinite}
@keyframes float{50%{transform:translateY(-8px)}}
.feat{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:560px}
.feat div{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:12px;font-size:13px;color:#ccc}
.feat b{color:#fff;display:block;margin-bottom:2px}
.auth-form{display:grid;place-items:center;padding:40px;background:var(--bg)}
.auth-card{width:100%;max-width:400px}
.auth-card h2{font-size:28px;margin:0 0 6px}
.field{margin:14px 0}
.field label{display:block;font-weight:600;margin-bottom:6px;font-size:13px}
.field .hint{color:var(--muted);font-size:12px;margin-top:4px}
.colors{display:flex;gap:8px;flex-wrap:wrap}
.colors button{width:30px;height:30px;border-radius:50%;border:3px solid transparent}
.colors button.sel{border-color:var(--text)}
.err{color:var(--danger);font-size:13px;min-height:18px;margin-top:8px}
.switch{margin-top:16px;color:var(--muted)}
.switch a{color:var(--brand);font-weight:600;cursor:pointer}
.big{width:100%;justify-content:center;height:44px;font-size:15px}

/* ---------- modal ---------- */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:100;display:grid;place-items:center;padding:20px;animation:fade .2s}
@keyframes fade{from{opacity:0}}
.modal{background:var(--bg2);border-radius:16px;width:100%;max-width:880px;max-height:92vh;overflow:auto;box-shadow:var(--shadow);border:1px solid var(--line)}
.modal-h{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--bg2);z-index:2}
.modal-h h2{margin:0;font-size:20px}
.modal-b{padding:20px}
.tabs{display:flex;gap:8px;margin-bottom:16px}
.tabs button{padding:8px 16px;border-radius:40px;background:var(--bg3);font-weight:600;display:flex;align-items:center;gap:6px}
.tabs button.active{background:var(--text);color:var(--bg)}
.rec-stage{aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden;position:relative;display:grid;place-items:center}
.rec-stage video{width:100%;height:100%;object-fit:cover;display:block}
.rec-stage video.mirror{transform:scaleX(-1)}
.perm{text-align:center;color:#ddd;padding:24px;max-width:460px}
.perm svg{width:56px;fill:var(--brand)}
.perm h3{margin:8px 0;color:#fff}
.perm p{color:#aaa;line-height:1.5}
.rec-ind{position:absolute;top:12px;left:12px;background:rgba(0,0,0,.65);color:#fff;border-radius:20px;padding:4px 12px;font-weight:700;display:flex;align-items:center;gap:8px;font-variant-numeric:tabular-nums}
.rec-ind i{width:10px;height:10px;border-radius:50%;background:var(--danger);animation:pulse 1s infinite}
.meter{position:absolute;bottom:12px;left:12px;display:flex;gap:2px;align-items:flex-end;height:24px}
.meter i{width:4px;background:var(--ok);border-radius:2px;height:3px;transition:height .08s}
.devstatus{position:absolute;top:12px;right:12px;display:flex;gap:6px}
.devstatus span{background:rgba(0,0,0,.65);color:#fff;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:600}
.devstatus span.ok:before{content:"● ";color:var(--ok)}
.rec-bar{display:flex;justify-content:center;gap:12px;margin-top:16px;align-items:center;flex-wrap:wrap}
.recbtn{width:64px;height:64px;border-radius:50%;border:4px solid var(--text);display:grid;place-items:center}
.recbtn i{width:44px;height:44px;border-radius:50%;background:var(--danger);transition:all .2s}
.recbtn.on i{width:24px;height:24px;border-radius:6px}
.form-grid{display:grid;grid-template-columns:1fr 280px;gap:20px}
.preview-thumb{border-radius:12px;overflow:hidden;aspect-ratio:16/9;background:var(--bg3)}
.preview-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.drop{border:2px dashed var(--line);border-radius:12px;padding:48px;text-align:center;color:var(--muted)}
.drop.over{border-color:var(--brand)}
.loom-prev{margin-top:12px;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#000}
.loom-prev iframe{width:100%;height:100%;border:0}

/* ---------- dropdowns / toasts ---------- */
.dropdown{position:fixed;top:52px;right:16px;width:360px;max-height:70vh;overflow:auto;background:var(--bg2);border-radius:12px;box-shadow:var(--shadow);border:1px solid var(--line);z-index:90;padding:8px 0;animation:fade .15s}
.dropdown .dh{padding:8px 16px 12px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}
.dropdown .dh .avatar{width:40px;height:40px;font-size:17px}
.dd-item{display:flex;align-items:center;gap:14px;padding:10px 16px;cursor:pointer;width:100%;text-align:left}
.dd-item:hover{background:var(--bg3)}
.dd-item svg{width:22px;fill:var(--text)}
.notif{display:flex;gap:12px;padding:12px 16px;cursor:pointer;line-height:1.4}
.notif:hover{background:var(--bg3)}
.notif .avatar{width:40px;height:40px;font-size:18px}
.notif.unread{background:rgba(255,176,32,.07)}
.notif small{color:var(--muted)}
#toasts{position:fixed;left:24px;bottom:24px;z-index:200;display:flex;flex-direction:column;gap:8px}
.toast{background:var(--text);color:var(--bg);padding:12px 16px;border-radius:10px;box-shadow:var(--shadow);display:flex;align-items:center;gap:10px;animation:slidein .3s;max-width:380px;font-weight:500}
.toast .avatar{width:28px;height:28px;font-size:14px}
@keyframes slidein{from{opacity:0;transform:translateX(-20px)}}

@media (max-width:1100px){.watch-wrap{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}}
@media (max-width:900px){.auth{grid-template-columns:1fr}.auth-hero{display:none}.sidebar{display:none}.main,.main.mini{margin-left:0}.row-list .thumb{width:200px}.create-btn span{display:none}}

/* ---------- articles ---------- */
.dur.art{background:#16a34a}
.article{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);padding:32px 44px;font-family:Georgia,"Times New Roman",serif;font-size:18px;line-height:1.8;max-width:860px;overflow-wrap:break-word}
.article h1,.article h2,.article h3{font-family:system-ui,-apple-system,sans-serif;line-height:1.3;margin:1.4em 0 .5em}
.article img,.editor img{max-width:100%;height:auto;border-radius:10px;display:block;margin:8px 0}
.article blockquote,.editor blockquote{border-left:4px solid var(--brand);margin:16px 0;padding:4px 16px;color:var(--muted);font-style:italic}
.article a{color:#3ea6ff}
.art-byline{display:flex;gap:12px;align-items:center;font-family:system-ui,sans-serif;font-size:14px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.art-tools{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px;align-items:center}
.art-tools .btn{height:34px;padding:0 12px}
.editor{min-height:300px;max-height:52vh;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:16px 20px;background:var(--bg);line-height:1.7;font-size:16px;outline:none}
.editor:focus{border-color:var(--brand)}
.editor.over{border-color:var(--brand);border-style:dashed}
.editor:empty:before{content:attr(data-ph);color:var(--muted)}
.editor h2{font-size:22px;margin:16px 0 6px}
@media (max-width:900px){.article{padding:20px}}

/* ---------- shorts ---------- */
.dur.short{background:#ff4e45}
.short-shelf{display:flex;gap:16px;overflow-x:auto;padding:8px 0 16px;scrollbar-width:thin}
.short-shelf.wrap{flex-wrap:wrap;overflow:visible}
.short-card{width:200px;flex-shrink:0;cursor:pointer}
.short-card .sthumb{aspect-ratio:9/16;border-radius:12px;overflow:hidden;background:var(--bg3)}
.short-card img{width:100%;height:100%;object-fit:cover;transition:transform .25s}
.short-card:hover img{transform:scale(1.04)}
.short-card h4{margin:8px 0 2px;font-size:15px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.main.shorts-main{padding:0}
.shorts-feed{height:calc(100vh - var(--top));overflow-y:scroll;scroll-snap-type:y mandatory;scrollbar-width:none}
.shorts-feed::-webkit-scrollbar{display:none}
.short-item{height:calc(100vh - var(--top));scroll-snap-align:start;scroll-snap-stop:always;display:flex;justify-content:center;align-items:center;gap:16px;padding:16px 0}
.short-frame{height:100%;aspect-ratio:9/16;max-width:calc(100vw - 100px);border-radius:16px;overflow:hidden;background:#000;position:relative}
.short-frame video,.short-frame .short-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;cursor:pointer}
.short-poster{filter:brightness(.7)}
.short-mute{position:absolute;top:12px;right:12px;width:40px;height:40px;border-radius:50%;background:rgba(0,0,0,.5);display:grid;place-items:center;z-index:2}
.short-mute svg{width:22px;fill:#fff}
.short-info{position:absolute;left:0;right:0;bottom:0;padding:60px 16px 18px;background:linear-gradient(transparent,rgba(0,0,0,.85));color:#fff;z-index:2}
.short-ch{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.short-ch .btn{height:30px;padding:0 12px;font-size:13px}
.short-ch .btn.subbed{background:rgba(255,255,255,.2);color:#fff}
.short-title{font-size:15px;line-height:1.4;font-weight:500}
.short-views{font-size:12px;opacity:.75;margin-top:4px}
.short-side{display:flex;flex-direction:column;align-items:center;gap:4px;align-self:flex-end;padding-bottom:20px}
.short-side button{width:48px;height:48px;border-radius:50%;background:var(--bg3);display:grid;place-items:center;font-size:20px;margin-top:10px}
.short-side button:hover{background:var(--bg4)}
.short-side button svg{width:24px;fill:var(--text)}
.short-side button.on svg{fill:var(--brand)}
.short-side small{font-size:12px;font-weight:600}
.short-missing{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:24px;color:#ddd;background:rgba(0,0,0,.55);z-index:1}
.short-frame.art{background:var(--bg2);border:1px solid var(--line);display:flex;flex-direction:column;cursor:pointer;color:var(--text)}
.art-cover{position:relative;height:62%;flex-shrink:0;background:var(--bg3)}
.art-cover img{width:100%;height:100%;object-fit:cover}
.art-tag{position:absolute;left:12px;top:12px;background:#16a34a;color:#fff;font-weight:800;font-size:12px;padding:4px 10px;border-radius:20px}
.art-body{padding:18px;display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}
.art-body h3{margin:0;font-size:22px;line-height:1.25}
.art-body p{margin:0;color:var(--muted);line-height:1.55;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
.short-item.end{height:60vh}
.rec-stage.vertical{aspect-ratio:9/16;height:min(58vh,560px);width:auto;margin:0 auto}
.short-or{text-align:center;color:var(--muted);margin-top:12px;display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap}

/* ---------- full-page reader ---------- */
.reader-main{min-height:100vh;background:var(--bg);padding:56px 20px 80px}
.reader-back{position:fixed;top:16px;left:16px;z-index:20;background:var(--bg3);border-radius:40px;padding:8px 16px;font-weight:600;box-shadow:var(--shadow)}
.reader-back:hover{background:var(--bg4)}
.reader{max-width:720px;margin:0 auto}
.reader.wide{max-width:1000px}
.reader-kicker{color:var(--brand);font-weight:700;font-size:13px;letter-spacing:.5px;text-transform:uppercase;margin-bottom:12px}
.reader-head h1{font-family:system-ui,-apple-system,sans-serif;font-size:clamp(32px,5vw,48px);line-height:1.12;letter-spacing:-1px;margin:0 0 24px}
.reader-head .art-byline{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:32px}
.reader-body{font-family:Georgia,"Times New Roman",serif;font-size:20px;line-height:1.8;overflow-wrap:break-word}
.reader-body h2,.reader-body h3{font-family:system-ui,-apple-system,sans-serif;line-height:1.3;margin:1.6em 0 .5em}
.reader-body img{max-width:100%;height:auto;border-radius:12px;display:block;margin:28px auto}
.reader-body blockquote{border-left:4px solid var(--brand);margin:24px 0;padding:4px 20px;color:var(--muted);font-style:italic}
.reader-body a{color:#3ea6ff}
.reader-foot{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:48px;padding-top:20px}
.reader-comments h3{margin-top:32px}
@media (max-width:600px){.reader-body{font-size:18px}.reader-main{padding-top:64px}}

.short-side button.short-del:hover{background:var(--danger)}
.short-side button.short-del:hover svg{fill:#fff}

/* ---------- autoplay next ---------- */
.autonext{position:absolute;inset:0;background:rgba(0,0,0,.82);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#fff;z-index:5;padding:20px;text-align:center;animation:fade .3s}
.an-row{display:flex;gap:14px;align-items:center;max-width:520px;text-align:left}
.an-row img{width:160px;aspect-ratio:16/9;object-fit:cover;border-radius:8px}
.an-row b{font-size:18px;line-height:1.3}
.an-count{font-size:14px;color:#ddd}
.an-btns{display:flex;gap:10px}
.autonext .btn:not(.brand){background:rgba(255,255,255,.15);color:#fff}
