:root{--red:#f00;--bg:#0f0f0f;--surface:#181818;--hover:#272727;--chip:#272727;--chip-h:#3f3f3f;--text:#fff;--text2:#aaa;--line:rgba(255,255,255,.1);--btn:rgba(255,255,255,.1);--btn-h:rgba(255,255,255,.2);--blue:#3ea6ff;--inv:#f1f1f1;--inv-t:#0f0f0f;--input:#121212;--topbar:56px;--side:240px;--mini:72px;--shadow:0 4px 32px rgba(0,0,0,.5)}
html.light{--bg:#fff;--surface:#f2f2f2;--hover:#e5e5e5;--chip:rgba(0,0,0,.05);--chip-h:rgba(0,0,0,.1);--text:#0f0f0f;--text2:#606060;--line:rgba(0,0,0,.1);--btn:rgba(0,0,0,.05);--btn-h:rgba(0,0,0,.1);--blue:#065fd4;--inv:#0f0f0f;--inv-t:#fff;--input:#fff;--shadow:0 4px 32px rgba(0,0,0,.2)}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:Roboto,Arial,"Helvetica Neue",sans-serif;font-size:14px;line-height:20px;-webkit-font-smoothing:antialiased}
html{color-scheme:dark}html.light{color-scheme:light}
body.noscroll{overflow:hidden}
a{color:var(--blue);text-decoration:none}a:hover{text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0}
input,textarea,select{font:inherit;color:var(--text)}
.ic{fill:currentColor;flex:none;display:block}
.hidden{display:none!important}
.avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;font-weight:500;flex:none;user-select:none}
.vbadge{display:inline-flex;vertical-align:middle;margin-left:4px;color:var(--text2)}
.vbadge .ic{width:14px;height:14px}
/* topbar */
#topbar{position:fixed;top:0;left:0;right:0;height:var(--topbar);background:var(--bg);display:flex;align-items:center;justify-content:space-between;padding:0 16px;z-index:100}
.tb-start,.tb-end{display:flex;align-items:center;min-width:0}
.tb-start{gap:16px;flex:0 0 auto;min-width:168px}
.tb-end{gap:8px;justify-content:flex-end;flex:0 0 auto;min-width:225px}
.icon-btn{width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;position:relative;flex:none}
.icon-btn:hover{background:var(--hover)}
html.light .icon-btn:hover{background:rgba(0,0,0,.1)}
.icon-btn .badge{position:absolute;top:4px;right:2px;background:#cc0000;color:#fff;font-size:10px;line-height:16px;min-width:16px;height:16px;border-radius:8px;padding:0 4px;text-align:center}
.logo{display:inline-flex;align-items:center;gap:3px;color:var(--text);cursor:pointer}
.logo svg{flex:none}
.logo-text{font-size:20px;font-weight:700;letter-spacing:-1.2px;font-family:Roboto,Arial,sans-serif;position:relative;top:-1px}
.tb-center{flex:0 1 732px;display:flex;align-items:center;gap:12px;margin-left:40px;min-width:0}
.search-form{display:flex;flex:1;min-width:0;position:relative}
.search-box{flex:1;display:flex;align-items:center;height:40px;border:1px solid var(--line);border-right:0;border-radius:40px 0 0 40px;background:var(--input);padding:0 4px 0 16px;box-shadow:inset 0 1px 2px rgba(0,0,0,.3)}
html.light .search-box{border-color:#ccc;box-shadow:inset 0 1px 2px #eee}
.search-box:focus-within{border-color:#1c62b9;margin-left:0}
.search-box input{flex:1;min-width:0;background:none;border:0;outline:0;font-size:16px;height:100%}
.search-box input::placeholder{color:var(--text2)}
.search-box .clear{width:32px;height:32px;border-radius:50%;display:none;align-items:center;justify-content:center}
.search-box .clear:hover{background:var(--hover)}
.search-box.has .clear{display:flex}
.search-btn{width:64px;height:40px;border:1px solid var(--line);border-radius:0 40px 40px 0;background:var(--hover);display:flex;align-items:center;justify-content:center}
html.light .search-btn{background:#f8f8f8;border-color:#ccc}
.search-btn:hover{background:var(--chip-h)}
.mic-btn{width:40px;height:40px;border-radius:50%;background:var(--hover);display:flex;align-items:center;justify-content:center;flex:none}
html.light .mic-btn{background:#f2f2f2}
.mic-btn:hover{background:var(--chip-h)}
.mic-btn.listening{background:#f00;color:#fff}
.suggest{position:absolute;top:44px;left:0;right:64px;background:#212121;border-radius:12px;padding:8px 0;box-shadow:var(--shadow);z-index:120;display:none}
html.light .suggest{background:#fff}
.suggest.open{display:block}
.suggest button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:6px 16px;font-size:16px;height:36px}
.suggest button:hover,.suggest button.sel{background:var(--hover)}
html.light .suggest button:hover{background:#f2f2f2}
.create-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px 0 8px;border-radius:18px;background:var(--btn);font-weight:500}
.create-btn:hover{background:var(--btn-h)}
.signin-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px 0 10px;border:1px solid var(--line);border-radius:18px;color:var(--blue);font-weight:500;white-space:nowrap}
.signin-btn:hover{background:rgba(62,166,255,.1)}
.menu-wrap{position:relative}
.menu{position:absolute;right:0;top:46px;min-width:220px;background:#282828;border-radius:12px;padding:8px 0;box-shadow:var(--shadow);display:none;z-index:150;max-height:80vh;overflow:auto}
html.light .menu{background:#fff;border:1px solid var(--line)}
.menu.open{display:block}
.menu.left{right:auto;left:0}
.menu .mi{display:flex;align-items:center;gap:16px;width:100%;padding:0 16px;height:40px;text-align:left;white-space:nowrap}
.menu .mi:hover{background:var(--hover)}
html.light .menu .mi:hover{background:#f2f2f2}
.menu hr{border:0;border-top:1px solid var(--line);margin:8px 0}
.menu .mh{padding:12px 16px;display:flex;gap:16px;align-items:center}
.menu .mh b{font-size:16px;display:block;font-weight:400}
.menu .mh small{color:var(--text2);font-size:14px}
.notif{width:min(480px,92vw);padding:0}
.notif h4{margin:0;padding:12px 16px;font-size:16px;font-weight:500;border-bottom:1px solid var(--line)}
.notif .n{display:flex;gap:12px;padding:12px 16px;align-items:center}
.notif .n:hover{background:var(--hover)}
.notif .n img{width:86px;height:48px;border-radius:6px;object-fit:cover}
.notif .n p{margin:0;font-size:14px;color:var(--text)}
.notif .n small{color:var(--text2)}
/* sidebar */
#sidebar{position:fixed;top:var(--topbar);left:0;bottom:0;width:var(--side);background:var(--bg);overflow-y:auto;padding:12px;z-index:90;overscroll-behavior:contain}
#sidebar::-webkit-scrollbar{width:8px}#sidebar::-webkit-scrollbar-thumb{background:transparent;border-radius:4px}#sidebar:hover::-webkit-scrollbar-thumb{background:#555}
.sb-item{display:flex;align-items:center;gap:24px;height:40px;padding:0 12px;border-radius:10px;width:100%;text-align:left;color:var(--text);white-space:nowrap;overflow:hidden}
.sb-item:hover{background:var(--hover)}
html.light .sb-item:hover{background:rgba(0,0,0,.05)}
.sb-item.active{background:var(--hover);font-weight:500}
html.light .sb-item.active{background:rgba(0,0,0,.1)}
.sb-item .t{overflow:hidden;text-overflow:ellipsis;font-size:14px}
.sb-item .avatar{margin:0 1px}
.sb-item .live{margin-left:auto;width:6px;height:6px;border-radius:50%;background:var(--blue)}
.sb-sep{border:0;border-top:1px solid var(--line);margin:12px 0}
.sb-h{padding:6px 12px;font-size:16px;font-weight:500;display:flex;align-items:center;gap:8px}
.sb-foot{padding:8px 12px;color:var(--text2);font-size:13px;line-height:18px}
.sb-foot b{font-weight:500;display:block;margin-top:8px}
body.mini #sidebar{width:var(--mini);padding:4px}
body.mini .sb-item{flex-direction:column;justify-content:center;height:74px;gap:6px;padding:16px 0 14px;border-radius:10px}
body.mini .sb-item .t{font-size:10px;line-height:14px;max-width:64px}
body.mini .sb-hide{display:none}
body.mini .sb-chan{display:none}
body.drawer #sidebar{transform:translateX(-100%);width:var(--side);transition:transform .2s;z-index:210;top:0;padding-top:0;box-shadow:var(--shadow)}
body.drawer #sidebar .sb-top{display:flex;align-items:center;gap:16px;height:var(--topbar);padding:0 4px;position:sticky;top:0;background:var(--bg);z-index:2}
#sidebar .sb-top{display:none}
body.drawer.drawer-open #sidebar{transform:none}
#scrim{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:200;display:none}
body.drawer.drawer-open #scrim{display:block}
/* page */
#page{padding-top:var(--topbar);margin-left:var(--side);min-height:100vh}
body.mini #page{margin-left:var(--mini)}
body.drawer #page{margin-left:0}
.page-pad{padding:0 24px 40px}
/* chips */
.chips-bar{position:sticky;top:var(--topbar);z-index:50;background:var(--bg);padding:12px 24px;display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;margin:0 -24px}
.chips-bar::-webkit-scrollbar{display:none}
.chips-bar.nosticky{position:static}
.chip{height:32px;padding:0 12px;border-radius:8px;background:var(--chip);font-size:14px;font-weight:500;white-space:nowrap;display:inline-flex;align-items:center;flex:none}
.chip:hover{background:var(--chip-h)}
.chip.active{background:var(--inv);color:var(--inv-t)}
/* video grid + cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(264px,1fr));gap:40px 16px;padding-top:8px}
@media(min-width:1500px){.grid.g4{grid-template-columns:repeat(4,1fr)}}
.vcard{display:block;color:var(--text);min-width:0}
.thumb{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#222;display:block}
.thumb img,.thumb video{width:100%;height:100%;object-fit:cover;display:block}
.thumb video{position:absolute;inset:0}
.vcard:hover .thumb{border-radius:0}
.thumb{transition:border-radius .15s}
.dur{position:absolute;right:4px;bottom:4px;background:rgba(0,0,0,.8);color:#fff;font-size:12px;font-weight:500;line-height:12px;padding:3px 4px;border-radius:4px}
.thumb .vis{position:absolute;left:6px;top:6px;background:rgba(0,0,0,.75);color:#fff;font-size:11px;padding:2px 6px;border-radius:4px}
.vinfo{display:flex;gap:12px;margin-top:12px;position:relative}
.vinfo .meta{min-width:0;flex:1}
.vtitle{font-size:16px;line-height:22px;font-weight:500;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 24px 4px 0;color:var(--text);max-height:44px}
.vsub{font-size:14px;line-height:20px;color:var(--text2)}
.vsub a{color:var(--text2)}.vsub a:hover{color:var(--text)}
.vcard .dots{position:absolute;right:-8px;top:-4px;opacity:0;width:40px;height:40px}
.vcard:hover .dots,.vcard .dots:focus{opacity:1}
.vcard .dots:hover{background:var(--hover);border-radius:50%}
.vcard .menu{top:30px}
.empty{padding:80px 20px;text-align:center;color:var(--text2)}
.empty .ic{margin:0 auto 12px;opacity:.6}
.empty h3{color:var(--text);font-weight:500;margin:0 0 8px;font-size:18px}
/* list rows (search, history, playlists) */
.row{display:flex;gap:16px;margin-bottom:16px;color:var(--text);position:relative}
.row .thumb{width:360px;flex:none}
.row .meta{min-width:0;flex:1}
.row .vtitle{font-size:18px;line-height:26px;margin:0 0 4px;max-height:52px}
.row .chrow{display:flex;align-items:center;gap:8px;margin:12px 0}
.row .chrow .vsub{font-size:12px}
.row .snip{font-size:12px;color:var(--text2);line-height:18px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.row .rm{position:absolute;right:0;top:0;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.row .rm:hover{background:var(--hover)}
.narrow{max-width:1096px;margin:0 auto;padding-top:24px}
.chan-result{display:flex;align-items:center;gap:16px;padding:16px 0 24px;justify-content:center;color:var(--text)}
.chan-result .info{flex:0 1 360px}
.chan-result h3{margin:0;font-size:18px;font-weight:400}
/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 16px;border-radius:18px;background:var(--btn);font-weight:500;white-space:nowrap;color:var(--text)}
.btn:hover{background:var(--btn-h)}
.btn.primary{background:var(--inv);color:var(--inv-t)}
.btn.primary:hover{background:#d9d9d9}
html.light .btn.primary:hover{background:#272727}
.btn.blue{background:#065fd4;color:#fff}.btn.blue:hover{background:#0b52b0}
.btn.sub{background:var(--inv);color:var(--inv-t);padding:0 16px}
.btn.sub.on{background:var(--btn);color:var(--text)}
.btn.sub.on:hover{background:var(--btn-h)}
.btn[disabled]{opacity:.5;cursor:default}
.btn.red{background:#cc0000;color:#fff}
.seg{display:inline-flex;height:36px;border-radius:18px;background:var(--btn);overflow:hidden}
.seg button{display:flex;align-items:center;gap:6px;padding:0 16px 0 14px;font-weight:500;height:36px}
.seg button:hover{background:var(--btn-h)}
.seg button.on{color:var(--blue)}
.seg .sepr{width:1px;background:var(--line);margin:8px 0}
.seg .dl{padding:0 14px 0 12px}
.seg .dl .ic{transform:rotate(180deg)}
.rot{transform:rotate(180deg)}
/* watch */
.watch{display:flex;gap:24px;padding:24px 24px 40px;max-width:1754px;margin:0 auto;align-items:flex-start}
.w-main{flex:1;min-width:0}
.w-side{width:402px;flex:none}
.player{position:relative;background:#000;border-radius:12px;overflow:hidden;aspect-ratio:16/9;width:100%}
.player video{width:100%;height:100%;display:block;background:#000;object-fit:contain}
.player .perr{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;color:#ccc;font-size:16px}
.player .upnext{position:absolute;inset:0;background:rgba(0,0,0,.8);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#fff;z-index:2}
.w-title{font-size:20px;line-height:28px;font-weight:700;margin:12px 0 0;max-height:56px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.w-row{display:flex;flex-wrap:wrap;gap:12px 8px;align-items:center;justify-content:space-between;margin-top:12px}
.w-chan{display:flex;align-items:center;gap:12px;min-width:0}
.w-chan .nm{font-size:16px;font-weight:500;line-height:22px;color:var(--text);display:block}
.w-chan .sb{font-size:12px;color:var(--text2);line-height:18px}
.w-chan .btn.sub{margin-left:12px}
.w-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.w-actions .btn{padding:0 16px 0 12px}
.desc{background:var(--chip);border-radius:12px;padding:12px;margin-top:16px;cursor:pointer;font-size:14px}
.desc:hover{background:var(--chip-h)}
.desc .dh{font-weight:500}
.desc .dh .tg{color:var(--text2);font-weight:400}
.desc .dt{margin-top:4px;white-space:normal;word-break:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.desc.open{cursor:default}.desc.open .dt{display:block;overflow:visible;white-space:pre-wrap}
.desc .more{font-weight:500;display:inline-block;margin-top:8px}
.comments{margin-top:24px}
.c-head{display:flex;align-items:center;gap:32px;margin-bottom:24px}
.c-head h3{font-size:20px;font-weight:700;margin:0}
.c-sort{display:flex;align-items:center;gap:8px;font-weight:500}
.c-add{display:flex;gap:16px;margin-bottom:32px}
.c-add .box{flex:1}
.c-add input.ci,.c-add textarea.ci{width:100%;background:none;border:0;border-bottom:1px solid var(--line);color:var(--text);padding:4px 0 6px;outline:0;font-size:14px;resize:none;overflow:hidden}
.c-add .ci:focus{border-bottom:2px solid var(--text);padding-bottom:5px}
.c-actions{display:none;justify-content:flex-end;gap:8px;margin-top:8px}
.box.focus .c-actions{display:flex}
.cm{display:flex;gap:16px;margin-bottom:20px}
.cm .body{flex:1;min-width:0}
.cm .hd{font-size:13px;font-weight:500}
.cm .hd .t{color:var(--text2);font-weight:400;margin-left:4px}
.cm .hd .cr{background:var(--chip-h);border-radius:10px;padding:0 6px}
.cm .pinl{display:flex;align-items:center;gap:4px;color:var(--text2);font-size:12px;margin-bottom:2px}
.cm .pinl .ic{width:12px;height:12px}
.cm .tx{font-size:14px;line-height:20px;margin-top:2px;white-space:pre-wrap;word-break:break-word}
.cm .ac{display:flex;align-items:center;gap:2px;margin-top:4px;margin-left:-8px;color:var(--text2);font-size:12px}
.cm .ac .ib{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--text)}
.cm .ac .ib:hover{background:var(--hover)}
.cm .ac .ib.on{color:var(--blue)}
.cm .ac .ib .ic{width:18px;height:18px}
.cm .ac .cnt{min-width:24px;margin-right:6px;color:var(--text2)}
.cm .ac .rp{height:32px;padding:0 12px;border-radius:16px;font-weight:500;font-size:13px;color:var(--text)}
.cm .ac .rp:hover{background:var(--hover)}
.cm .tgl{display:inline-flex;align-items:center;gap:8px;color:var(--blue);font-weight:500;font-size:14px;height:36px;padding:0 12px 0 8px;border-radius:18px;margin-left:-8px}
.cm .tgl:hover{background:rgba(62,166,255,.1)}
.cm .replies{margin-top:4px}
.cm.reply{margin-bottom:12px}
.cm.reply .avatar{width:24px!important;height:24px!important;font-size:11px!important}
.cm .rbox{margin:8px 0 12px}
.c-more{display:flex;align-items:center;justify-content:center;padding:12px;color:var(--text2)}
/* side/compact cards */
.side-chips{display:flex;gap:12px;margin-bottom:12px;overflow-x:auto;scrollbar-width:none}
.ccard{display:flex;gap:8px;margin-bottom:8px;color:var(--text);position:relative}
.ccard .thumb{width:168px;border-radius:8px;flex:none}
.ccard .meta{min-width:0;flex:1}
.ccard .vtitle{font-size:14px;line-height:20px;margin:0 24px 2px 0;max-height:40px}
.ccard .vsub{font-size:12px;line-height:18px}
.up-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.up-h b{font-weight:500;font-size:16px}
.toggle{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--text2)}
.toggle i{width:36px;height:14px;background:#717171;border-radius:7px;position:relative;display:block;transition:.2s}
.toggle i:after{content:"";position:absolute;left:0;top:-3px;width:20px;height:20px;border-radius:50%;background:#aaa;transition:.2s}
.toggle.on i{background:#7cbcf6}.toggle.on i:after{left:16px;background:#3ea6ff}
/* channel */
.ch-banner{height:calc(max(15vw,140px));max-height:212px;border-radius:16px;margin:16px 24px 0;background-size:cover;position:relative;overflow:hidden}
.ch-banner:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 20%,rgba(255,255,255,.18),transparent 55%)}
.ch-head{display:flex;gap:24px;padding:16px 24px 0;align-items:center}
.ch-head .info{min-width:0;flex:1}
.ch-head h1{font-size:36px;line-height:44px;font-weight:700;margin:0;display:flex;align-items:center;gap:6px}
.ch-head h1 .vbadge .ic{width:20px;height:20px}
.ch-head .meta{color:var(--text2);margin-top:4px;font-size:14px}
.ch-head .meta b{color:var(--text);font-weight:500}
.ch-head .ds{color:var(--text2);margin-top:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer;max-width:640px}
.ch-head .acts{margin-top:16px;display:flex;gap:8px}
.tabs{display:flex;gap:8px;padding:0 24px;margin-top:16px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.tab{height:48px;padding:0 16px;font-weight:500;font-size:14px;color:var(--text2);white-space:nowrap;position:relative;display:flex;align-items:center;text-transform:uppercase;letter-spacing:.3px}
.tab:hover{color:var(--text)}
.tab.active{color:var(--text)}
.tab.active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--text)}
.shelf{margin-top:24px}
.shelf h2{font-size:20px;font-weight:700;margin:0 0 16px}
.hscroll{display:flex;gap:16px;overflow-x:auto;padding-bottom:8px;scrollbar-width:thin}
.hscroll .vcard{width:210px;flex:none}
.hscroll .vcard .vtitle{font-size:14px;line-height:20px;max-height:40px}
.feature{display:flex;gap:24px;padding:24px 0;border-bottom:1px solid var(--line);color:var(--text)}
.feature .player{width:424px;flex:none;aspect-ratio:16/9}
.feature .thumb{width:424px;flex:none}
.feature h3{font-size:18px;font-weight:500;margin:0 0 8px}
.feature p{color:var(--text2);margin:8px 0 0;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.scard{display:block;color:var(--text);width:210px;flex:none}
.scard .sthumb{aspect-ratio:9/16;border-radius:12px;overflow:hidden;background:#222;position:relative}
.scard img{width:100%;height:100%;object-fit:cover;display:block}
.scard .vtitle{margin:8px 0 2px;font-size:14px;line-height:20px;max-height:40px}
.sgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px;padding-top:16px}
.sgrid .scard{width:auto}
.plcard{display:block;color:var(--text)}
.plcard .stack{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#222}
.plcard .stack img{width:100%;height:100%;object-fit:cover}
.plcard .stack .pc{position:absolute;right:0;top:0;bottom:0;width:40%;background:rgba(0,0,0,.8);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#fff;font-size:14px}
.plcard h4{margin:12px 0 2px;font-size:16px;font-weight:500}
.post{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px;margin:16px 0;max-width:640px}
.post .ph{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.post .tx{font-size:14px;line-height:22px;margin-bottom:12px;white-space:pre-wrap}
.poll .opt{display:flex;justify-content:space-between;border:1px solid var(--line);border-radius:8px;padding:10px 14px;margin-bottom:8px;cursor:pointer;position:relative;overflow:hidden}
.poll .opt span{position:relative;z-index:1}
.poll .opt i{position:absolute;left:0;top:0;bottom:0;background:rgba(62,166,255,.25)}
.about{max-width:760px;padding:24px 0}
.about h3{font-size:16px;font-weight:500;margin:24px 0 12px}
.about .kv{display:flex;gap:12px;align-items:center;margin:12px 0;color:var(--text)}
.about .kv .ic{opacity:.8}
/* library / playlist */
.sec-h{display:flex;align-items:center;gap:12px;margin:24px 0 16px}
.sec-h h2{font-size:20px;font-weight:700;margin:0}
.sec-h .sa{margin-left:auto;color:var(--blue);font-weight:500;font-size:14px;height:32px;padding:0 12px;border-radius:16px;display:flex;align-items:center}
.sec-h .sa:hover{background:rgba(62,166,255,.1)}
.pl-layout{display:flex;gap:24px;padding:24px;max-width:1500px;margin:0 auto}
.pl-card{flex:0 0 360px;border-radius:16px;padding:24px;position:sticky;top:80px;align-self:flex-start;background:linear-gradient(180deg,rgba(80,40,60,.9),#1a1a1a 85%);min-height:420px}
html.light .pl-card{background:linear-gradient(180deg,#f5cfd8,#f2f2f2 85%)}
.pl-card .pt{aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#222;display:flex;align-items:center;justify-content:center}
.pl-card .pt img{width:100%;height:100%;object-fit:cover}
.pl-card h1{font-size:24px;line-height:32px;margin:16px 0 8px;font-weight:700}
.pl-card .st{color:var(--text2);font-size:14px}
.pl-card .pa{display:flex;gap:8px;margin-top:16px}
.pl-card .pa .btn{flex:1}
.pl-list{flex:1;min-width:0}
.pl-list .row .thumb{width:168px;border-radius:8px}
.pl-list .row .vtitle{font-size:16px;line-height:22px}
.pl-list .row .idx{width:28px;flex:none;text-align:center;align-self:center;color:var(--text2)}
.hist-wrap{display:flex;gap:40px;max-width:1300px;margin:0 auto;padding:24px}
.hist-main{flex:1;min-width:0;max-width:850px}
.hist-main h1{font-size:30px;font-weight:700;margin:0 0 24px}
.hist-side{width:300px;flex:none}
.hist-side button{display:flex;gap:16px;align-items:center;height:40px;width:100%;padding:0 8px;border-radius:20px;font-size:14px}
.hist-side button:hover{background:var(--hover)}
.day-h{font-size:18px;font-weight:700;margin:24px 0 16px}
/* shorts */
body.shorts-page #page{padding-top:var(--topbar)}
.shorts-scroll{height:calc(100vh - var(--topbar));height:calc(100dvh - var(--topbar));overflow-y:scroll;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain}
.shorts-scroll::-webkit-scrollbar{display:none}
.short{height:calc(100vh - var(--topbar));height:calc(100dvh - var(--topbar));scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center;gap:16px;padding:16px 0;position:relative}
.short .vwrap{height:100%;aspect-ratio:9/16;max-height:calc(100% - 0px);border-radius:16px;overflow:hidden;position:relative;background:#000;cursor:pointer}
.short video{width:100%;height:100%;object-fit:cover;display:block}
.short .grad{position:absolute;left:0;right:0;bottom:0;height:45%;background:linear-gradient(transparent,rgba(0,0,0,.75));pointer-events:none}
.short .cap{position:absolute;left:16px;right:72px;bottom:16px;color:#fff;pointer-events:none}
.short .cap .who{display:flex;align-items:center;gap:10px;pointer-events:auto;margin-bottom:10px}
.short .cap .who a{color:#fff;font-weight:500;font-size:15px}
.short .cap .who .btn{height:32px;padding:0 14px;pointer-events:auto}
.short .cap p{margin:0;font-size:14px;line-height:20px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.short .pp{position:absolute;left:50%;top:50%;width:72px;height:72px;margin:-36px 0 0 -36px;background:rgba(0,0,0,.5);border-radius:50%;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s;pointer-events:none;color:#fff}
.short .pp.show{opacity:1}
.short .mt{position:absolute;right:12px;top:12px;width:40px;height:40px;border-radius:50%;background:rgba(0,0,0,.4);color:#fff;display:flex;align-items:center;justify-content:center;z-index:2}
.short .prog{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.3)}
.short .prog i{display:block;height:100%;width:0;background:#f00}
.short .acts{display:flex;flex-direction:column;justify-content:flex-end;gap:16px;align-items:center;height:100%;padding-bottom:8px;width:56px}
.short .acts .a{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;color:var(--text);font-weight:500}
.short .acts .a .c{width:48px;height:48px;border-radius:50%;background:var(--btn);display:flex;align-items:center;justify-content:center}
.short .acts .a:hover .c{background:var(--btn-h)}
.short .acts .a.on .c{color:var(--blue)}
.short .acts .av{width:48px;height:48px}
.s-nav{position:fixed;right:24px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:16px;z-index:20}
.s-nav button{width:56px;height:56px;border-radius:50%;background:var(--btn);display:flex;align-items:center;justify-content:center}
.s-nav button:hover{background:var(--btn-h)}
.s-panel{position:fixed;right:0;top:var(--topbar);bottom:0;width:min(420px,100%);background:var(--bg);border-left:1px solid var(--line);z-index:60;overflow:auto;padding:16px}
.s-panel .ph{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.s-panel h3{margin:0;font-size:20px}
/* modal */
.modal-back{position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:300;display:flex;align-items:center;justify-content:center;padding:16px}
.modal{background:#212121;border-radius:12px;box-shadow:var(--shadow);width:min(520px,100%);max-height:92vh;overflow:auto;color:var(--text)}
html.light .modal{background:#fff}
.modal .mh2{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 8px 24px}
.modal .mh2 h2{margin:0;font-size:18px;font-weight:500}
.modal .mb{padding:8px 24px 24px}
.modal.studio{width:min(960px,100%);height:min(640px,92vh);display:flex;flex-direction:column;overflow:hidden;background:var(--surface)}
html.light .modal.studio{background:#fff}
.share-targets{display:flex;gap:16px;overflow-x:auto;padding:8px 0 16px}
.share-targets a{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--text);font-size:12px;flex:none;width:64px}
.share-targets .sc{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:18px}
.linkbox{display:flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:8px 8px 8px 16px;background:var(--bg)}
.linkbox input{flex:1;background:none;border:0;outline:0;min-width:0;font-size:14px}
.chk{display:flex;align-items:center;gap:16px;padding:8px 0;cursor:pointer;font-size:14px}
.chk input{width:18px;height:18px;accent-color:#3ea6ff}
.field{margin-bottom:20px}
.field label{display:block;font-size:12px;color:var(--text2);margin-bottom:6px}
.field input[type=text],.field input[type=password],.field textarea,.field select{width:100%;background:var(--input);border:1px solid var(--line);border-radius:8px;padding:10px 12px;outline:0;font-size:15px}
html.light .field input[type=text],html.light .field input[type=password],html.light .field textarea,html.light .field select{border-color:#ccc}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--blue)}
.field.err input{border-color:#ff4e45}
.field .em{color:#ff4e45;font-size:12px;margin-top:6px;min-height:0}
.field .hint{color:var(--text2);font-size:12px;margin-top:6px}
.auth{max-width:440px;margin:40px auto;padding:36px 40px;border:1px solid var(--line);border-radius:28px;background:var(--surface)}
.auth h1{font-size:24px;font-weight:400;margin:12px 0 4px}
.auth p.sub{color:var(--text2);margin:0 0 24px}
.auth .ac{display:flex;justify-content:space-between;align-items:center;margin-top:24px}
/* studio upload */
.studio-page{background:var(--bg);min-height:calc(100vh - var(--topbar));padding:24px}
.studio-page h1{font-size:24px;font-weight:700;margin:0 0 16px}
.stable{width:100%;border-collapse:collapse;max-width:1100px}
.stable th{text-align:left;font-weight:500;color:var(--text2);font-size:12px;padding:12px 8px;border-bottom:1px solid var(--line)}
.stable td{padding:12px 8px;border-bottom:1px solid var(--line);vertical-align:middle}
.stable td img{width:100px;aspect-ratio:16/9;object-fit:cover;border-radius:4px;display:block}
.u-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px 12px 24px;border-bottom:1px solid var(--line)}
.u-head h2{margin:0;font-size:20px;font-weight:500}
.u-steps{display:flex;justify-content:center;gap:0;padding:16px;border-bottom:1px solid var(--line);position:relative}
.u-step{display:flex;flex-direction:column;align-items:center;gap:6px;width:150px;position:relative;font-size:14px;font-weight:500;color:var(--text2)}
.u-step .d{width:24px;height:24px;border-radius:50%;background:var(--chip-h);display:flex;align-items:center;justify-content:center;color:#fff;z-index:1}
.u-step.act{color:var(--text)}.u-step.act .d{background:#3ea6ff;color:#000}.u-step.done .d{background:#3ea6ff;color:#000}
.u-step:not(:last-child):after{content:"";position:absolute;top:12px;left:calc(50% + 12px);width:calc(100% - 24px);height:2px;background:var(--chip-h)}
.u-step.done:not(:last-child):after{background:#3ea6ff}
.u-body{flex:1;overflow:auto;padding:24px}
.u-foot{display:flex;align-items:center;justify-content:space-between;padding:12px 24px;border-top:1px solid var(--line);gap:12px}
.drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;height:100%;min-height:300px;border:2px dashed transparent;border-radius:12px;text-align:center}
.drop.over{border-color:#3ea6ff;background:rgba(62,166,255,.08)}
.drop .big{width:136px;height:136px;border-radius:50%;background:var(--chip);display:flex;align-items:center;justify-content:center}
.drop .big .ic{width:64px;height:64px;opacity:.8}
.u-cols{display:flex;gap:32px}
.u-cols .l{flex:1;min-width:0}
.u-cols .r{width:300px;flex:none}
.u-prev{background:var(--bg);border-radius:8px;overflow:hidden}
.u-prev video{width:100%;aspect-ratio:16/9;background:#000;display:block}
.u-prev .pi{padding:12px;font-size:13px}
.thumb-pick{display:flex;gap:12px;flex-wrap:wrap}
.thumb-pick button{width:150px;aspect-ratio:16/9;border-radius:6px;overflow:hidden;border:2px solid transparent;background:#222;display:flex;align-items:center;justify-content:center;color:var(--text2);font-size:12px;flex-direction:column;gap:4px}
.thumb-pick button img{width:100%;height:100%;object-fit:cover}
.thumb-pick button.sel{border-color:#3ea6ff}
.radio{display:flex;gap:16px;padding:14px 16px;border:1px solid var(--line);border-radius:8px;margin-bottom:8px;cursor:pointer}
.radio.sel{border-color:#3ea6ff;background:rgba(62,166,255,.07)}
.radio input{accent-color:#3ea6ff;margin-top:3px}
.radio b{display:block;font-weight:500}.radio small{color:var(--text2)}
.note{display:flex;gap:12px;align-items:flex-start;background:rgba(255,200,0,.1);border:1px solid rgba(255,200,0,.35);border-radius:8px;padding:10px 14px;font-size:13px;margin:0 0 16px;color:var(--text)}
.note .ic{color:#ffc800;width:20px;height:20px}
.prog-bar{height:4px;background:var(--chip-h);border-radius:2px;overflow:hidden;margin-top:6px}
.prog-bar i{display:block;height:100%;background:#3ea6ff;width:0;transition:width .2s}
/* admin */
.admin{max-width:1200px;margin:0 auto;padding:24px}
.admin h1{font-size:24px;margin:0 0 4px}
.admin .tools{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:16px 0}
.admin .tools input[type=text]{flex:1;min-width:220px;background:var(--input);border:1px solid var(--line);border-radius:20px;padding:8px 16px;outline:0}
.atable{width:100%;border-collapse:collapse;font-size:13px}
.atable th{text-align:left;color:var(--text2);font-weight:500;padding:8px;border-bottom:1px solid var(--line);position:sticky;top:56px;background:var(--bg);z-index:5}
.atable td{padding:8px;border-bottom:1px solid var(--line);vertical-align:middle}
.atable input.num{width:96px;background:var(--input);border:1px solid var(--line);border-radius:6px;padding:6px 8px;outline:0}
.atable input.num.mod{border-color:#ffb300}
.atable .tt{max-width:340px;display:flex;gap:10px;align-items:center}
.atable .tt img{width:64px;aspect-ratio:16/9;object-fit:cover;border-radius:4px;flex:none}
.atable .tt .ttl{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tag{display:inline-block;font-size:11px;border-radius:4px;padding:1px 6px;background:var(--chip-h);margin-right:4px}
.tag.warn{background:#b3261e;color:#fff}.tag.ok{background:#1e6b34;color:#fff}.tag.mod{background:#8a6100;color:#fff}
.small-btn{height:30px;padding:0 12px;border-radius:15px;background:var(--btn);font-size:13px;font-weight:500}
.small-btn:hover{background:var(--btn-h)}
.small-btn.pri{background:var(--blue);color:#000}
.small-btn.dng{background:#b3261e;color:#fff}
/* toast */
#toast{position:fixed;left:24px;bottom:24px;background:#f1f1f1;color:#0f0f0f;padding:14px 20px;border-radius:8px;font-size:14px;z-index:500;transform:translateY(100px);opacity:0;transition:.25s;pointer-events:none;max-width:calc(100vw - 48px)}
#toast.show{transform:none;opacity:1}
html.light #toast{background:#0f0f0f;color:#fff}
/* mobile bottom nav */
#bnav{display:none;position:fixed;left:0;right:0;bottom:0;height:49px;background:var(--bg);border-top:1px solid var(--line);z-index:95;justify-content:space-around}
#bnav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--text);font-size:10px}
#bnav a .ic{width:24px;height:24px}
#bnav a.active{font-weight:500}
.mob-search{display:none}
@media(max-width:1312px){.w-side{width:360px}}
@media(max-width:1100px){
  .watch{flex-direction:column;gap:0;padding:0 0 80px}
  .w-main{width:100%}.w-side{width:100%;padding:0 16px}
  .w-main>*:not(.player){margin-left:16px;margin-right:16px}
  .player{border-radius:0}
  .w-main>.comments{margin-bottom:24px}
  .ccard .thumb{width:168px}
  .pl-layout,.hist-wrap{flex-direction:column}.pl-card{position:static;flex:none;min-height:0}.hist-side{width:100%}
  .row .thumb{width:240px}
}
@media(max-width:792px){
  :root{--topbar:56px}
  .tb-start{min-width:0;gap:4px}
  .tb-start .ham{display:none}
  .tb-center{margin-left:0;position:fixed;top:0;left:0;right:0;height:56px;background:var(--bg);padding:0 8px;z-index:130;display:none;flex:none}
  body.search-open .tb-center{display:flex}
  .mob-search{display:inline-flex}
  .create-btn span,.create-btn{display:none}
  .tb-end{min-width:0;gap:0}
  .tb-end .hide-m{display:none}
  .tb-start{flex:1}
  #page{margin-left:0!important;padding-bottom:49px}
  #sidebar{transform:translateX(-100%);width:var(--side);transition:transform .2s;z-index:210;top:0;box-shadow:var(--shadow)}
  #sidebar .sb-top{display:flex;align-items:center;gap:16px;height:var(--topbar);padding:0 4px;position:sticky;top:0;background:var(--bg);z-index:2}
  body.drawer-open #sidebar{transform:none}
  body.drawer-open #scrim{display:block}
  body.mini #sidebar{width:var(--side);padding:12px}
  body.mini .sb-item{flex-direction:row;height:40px;padding:0 12px;gap:24px}body.mini .sb-item .t{font-size:14px;max-width:none}
  body.mini .sb-hide,body.mini .sb-chan{display:block}
  #bnav{display:flex}
  .page-pad{padding:0 0 24px}
  .chips-bar{padding:8px 12px;margin:0;gap:8px}
  .grid{grid-template-columns:minmax(0,1fr);gap:20px}
  .vcard .thumb{border-radius:0}
  .vcard .vinfo{padding:0 12px}
  .row{flex-direction:column;gap:8px}.row .thumb{width:100%;border-radius:0}.row .meta{padding:0 12px}
  .narrow{padding-top:0}
  .ch-banner{margin:0;border-radius:0;height:100px}
  .ch-head{padding:12px 12px 0;gap:12px}.ch-head h1{font-size:22px;line-height:28px}.ch-head .avatar{width:64px!important;height:64px!important;font-size:28px!important}
  .tabs{padding:0 4px}.tab{padding:0 12px}
  .feature{flex-direction:column}.feature .player,.feature .thumb{width:100%}
  .page-pad .shelf{padding:0 12px}
  .sgrid{grid-template-columns:repeat(2,1fr);padding:12px}
  .auth{margin:0;border:0;border-radius:0;padding:24px 20px}
  .short{padding:0;gap:0}.short .vwrap{height:100%;width:100%;aspect-ratio:auto;border-radius:0}
  .short .acts{position:absolute;right:8px;bottom:24px;width:48px;height:auto;z-index:5}
  .short .acts .a{color:#fff;text-shadow:0 0 4px rgba(0,0,0,.6)}.short .acts .a .c{background:rgba(0,0,0,.4);width:44px;height:44px}
  .short .cap{right:72px;bottom:24px}
  .s-nav{display:none}
  .shorts-scroll,.short{height:calc(100dvh - var(--topbar) - 49px)}
  .modal.studio{height:100%;max-height:100%;border-radius:0}.modal-back{padding:0}
  .u-cols{flex-direction:column}.u-cols .r{width:100%}
  .u-step{width:90px;font-size:12px}
  .admin{padding:12px;overflow-x:auto}
  .pl-layout,.hist-wrap{padding:12px}
  .c-head{gap:16px}
}

.vcard .menu,.ccard .menu{left:auto;right:0}

.grid>*{min-width:0}
.u-foot .vsub{display:flex;align-items:center;gap:6px}

.obadge{display:inline-block;vertical-align:middle;margin-left:6px;padding:0 6px;border-radius:4px;background:var(--chip-h);color:var(--text);font-size:10px;line-height:16px;font-weight:500;letter-spacing:.3px;text-transform:uppercase}
.ch-head h1 .obadge{font-size:12px;line-height:20px;padding:0 8px;border-radius:6px}
.short .cap .who .obadge{background:rgba(255,255,255,.25);color:#fff}
.field .oh{margin-top:4px}.field .oh:empty{display:none}
.field textarea{resize:vertical}
