/* shortsav — YouTube-style layout (brand: violet/teal, no red) */
:root{--yt-ac:#7c5cff;--yt-ac2:#22d3ee;--yt-top:56px;--yt-side:240px}
body.ytui{background:var(--bg)}
body.ytui .top,body.ytui .dock{display:none!important}
body.ytui .logo b,.yt-logo-tx b{background:linear-gradient(90deg,var(--yt-ac),var(--yt-ac2));-webkit-background-clip:text;background-clip:text;color:transparent}
.yt-top{position:fixed;top:0;left:0;right:0;height:var(--yt-top);z-index:80;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 12px;background:rgba(11,11,16,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.yt-top-l{display:flex;align-items:center;gap:6px;min-width:0}
.yt-icbtn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;border:0;background:none;color:var(--tx);cursor:pointer}
.yt-icbtn:hover{background:#ffffff14}.yt-icbtn svg,.yt-nav svg,.yt-bnav svg,.yt-pill svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.yt-logo{display:flex;align-items:center;gap:6px;font-weight:800;font-size:21px;letter-spacing:-.5px}
.yt-logo-ic{display:inline-flex;width:30px;height:22px;border-radius:7px;background:linear-gradient(135deg,var(--yt-ac),var(--yt-ac2));align-items:center;justify-content:center}.yt-logo-ic svg{width:18px;height:18px}
.yt-search{position:relative;display:flex;flex:1;max-width:640px;margin:0 auto}
.yt-search input{flex:1;min-width:0;background:#0f0f17;border:1px solid var(--line);border-right:0;border-radius:999px 0 0 999px;color:#fff;padding:10px 16px;font:inherit;outline:none}
.yt-search input:focus{border-color:var(--yt-ac)}
.yt-search button{border:1px solid var(--line);border-left:0;background:#1b1b27;color:#fff;border-radius:0 999px 999px 0;padding:0 18px;cursor:pointer}
.yt-search button svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2}
.yt-msearch{display:none}
.yt-side{position:fixed;top:var(--yt-top);bottom:0;left:0;width:var(--yt-side);overflow-y:auto;padding:10px 8px 80px;background:var(--bg);z-index:70;border-right:1px solid #ffffff0a}
.yt-side hr{border:0;border-top:1px solid var(--line);margin:10px 8px}
.yt-nav{display:flex;align-items:center;gap:18px;padding:10px 12px;border-radius:10px;color:var(--tx);font-size:14px}
.yt-nav:hover{background:#ffffff10}.yt-nav.on{background:#ffffff18;font-weight:700}
.yt-side-h{padding:6px 12px;color:var(--mut);font-size:13px;font-weight:700}
.yt-side-subs .yt-muted{padding:0 12px;font-size:13px}
.yt-scrim{display:none}
body.ytui{padding-top:var(--yt-top)}
body.ytui>*:not(.yt-top):not(.yt-side):not(.yt-scrim):not(.yt-bnav):not(.yt-toast):not(.yt-menu):not(.yt-dlg-wrap){margin-left:var(--yt-side)}
body.ytui .page{max-width:1800px}
.yt-bnav{display:none}
.yt-main{padding:12px 20px 40px}
.yt-muted{color:var(--mut)}
/* chips */
.yt-chips{display:flex;gap:10px;overflow-x:auto;padding:4px 0 14px;scrollbar-width:none}.yt-chips::-webkit-scrollbar{display:none}
.yt-chip{flex:0 0 auto;background:#ffffff14;border-radius:8px;padding:7px 13px;font-size:14px;font-weight:600;white-space:nowrap}
.yt-chip.on{background:#fff;color:#0b0b10}
/* grid of video cards */
.yt-grid{display:grid;grid-template-columns:1fr;gap:26px 16px}
@media(min-width:600px){.yt-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1000px){.yt-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1500px){.yt-grid{grid-template-columns:repeat(4,1fr)}}
.yt-card{min-width:0;position:relative}
.yt-thumb{position:relative;display:block;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#1a1a26}
.yt-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.yt-dur{position:absolute;right:6px;bottom:6px;background:#000c;color:#fff;font-size:12px;font-weight:600;padding:2px 5px;border-radius:4px}
.yt-code{position:absolute;left:6px;top:6px;background:#000a;color:#fff;font-size:11px;font-weight:700;padding:2px 6px;border-radius:4px}
.yt-meta{display:flex;gap:12px;padding-top:10px;align-items:flex-start}
.yt-txt{flex:1;min-width:0}
.yt-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:600;font-size:15px;line-height:1.35}
.yt-sub{color:var(--mut);font-size:13px;margin-top:3px}.yt-sub a:hover{color:#fff}
.yt-av{position:relative;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#3b2f7a,#1f6f80);color:#fff;font-weight:700;flex-shrink:0}
.yt-av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.yt-av.big{width:88px;height:88px;font-size:34px}.yt-av.sm{width:24px;height:24px;font-size:12px}
.yt-more{border:0;background:none;color:var(--tx);font-size:20px;line-height:1;padding:4px 6px;border-radius:50%;cursor:pointer}.yt-more:hover{background:#ffffff14}
/* shorts shelf */
.yt-shelf{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;margin:0 0 22px}
.yt-shelf-h{display:flex;align-items:center;gap:8px;margin-bottom:12px}.yt-shelf-h h2{margin:0;font-size:18px}.yt-shelf-h a{margin-left:auto;color:var(--mut);font-size:13px}
.yt-shelf-ic svg{width:24px;height:24px;stroke:var(--yt-ac2);fill:none;stroke-width:1.8}
.yt-shelf-row,.yt-row-scroll{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:6px;scrollbar-width:none}
.yt-short{position:relative;flex:0 0 auto;width:min(38vw,170px);aspect-ratio:9/16;border-radius:12px;overflow:hidden;background:#1a1a26;scroll-snap-align:start}
.yt-short img{width:100%;height:100%;object-fit:cover}
.yt-short-t{position:absolute;left:8px;bottom:8px;font-weight:700;font-size:13px;text-shadow:0 1px 3px #000}
.yt-row-scroll .yt-card{flex:0 0 auto;width:min(70vw,280px)}
.yt-more-wrap{display:flex;justify-content:center;margin:30px 0}
.yt-btn{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:999px;padding:9px 18px;font:600 14px/1 inherit;font-family:inherit;color:#fff;background:linear-gradient(90deg,var(--yt-ac),#5b3fd6);cursor:pointer}
.yt-btn.ghost{background:#ffffff1a}
/* channel */
.yt-chan{margin:-12px -20px 20px}
.yt-chan-banner{height:110px;background:linear-gradient(120deg,#2b1f5c,#155e75 60%,#0b0b10)}
.yt-chan-row{display:flex;gap:18px;align-items:center;padding:14px 20px;flex-wrap:wrap}
.yt-chan-info{flex:1;min-width:180px}.yt-chan-info h1{margin:0;font-size:26px}.yt-chan-info p{margin:4px 0 0}
.yt-follow.on{background:#ffffff26}
/* watch page */
.yt-wbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:14px 0 6px}
.yt-wchan{display:flex;align-items:center;gap:10px}.yt-wname{display:flex;flex-direction:column;font-weight:700}.yt-wname small{color:var(--mut);font-weight:400}
.yt-wacts{display:flex;gap:8px;margin-left:auto;flex-wrap:wrap}
.yt-pill{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:999px;background:#ffffff14;color:#fff;padding:8px 14px;font:600 14px inherit;font-family:inherit;cursor:pointer}
.yt-pill.on{background:var(--yt-ac)}
/* row cards (lists) */
.yt-list{display:flex;flex-direction:column;gap:10px;max-width:1100px}
.yt-card.row{display:grid;grid-template-columns:168px 1fr;gap:12px;align-items:start}
@media(min-width:700px){.yt-card.row{grid-template-columns:246px 1fr;gap:16px}}
.yt-card.row .yt-meta{padding-top:2px}
.yt-li{display:grid;grid-template-columns:24px 1fr auto;gap:8px;align-items:center}.yt-n{color:var(--mut);text-align:center;font-size:13px}
.yt-rm{border:0;background:none;color:var(--mut);font-size:22px;cursor:pointer}
/* library */
.yt-lib h1{margin:6px 0 4px;font-size:26px}
.yt-you-stats{display:flex;gap:10px;margin:14px 0}.yt-you-stats a{flex:1;background:var(--bg2);border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;flex-direction:column}.yt-you-stats b{font-size:22px}.yt-you-stats span{color:var(--mut);font-size:13px}
.yt-yousec{margin:22px 0}
.yt-empty{padding:40px 10px;text-align:center;color:var(--mut)}.yt-empty .yt-btn{margin-top:8px}
.yt-subs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:14px;margin:16px 0}
.yt-subcard{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;font-size:13px}
.yt-pl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;margin-top:16px}
.yt-plcard{display:flex;flex-direction:column;gap:4px}.yt-plthumb{display:block;aspect-ratio:16/9;border-radius:12px;background:linear-gradient(135deg,#2b1f5c,#1a1a26);overflow:hidden}.yt-plthumb img{width:100%;height:100%;object-fit:cover}
.yt-plcard small{color:var(--mut)}
.yt-pl-head{display:flex;gap:8px;margin:10px 0 16px}
.yt-dlg-new{display:flex;gap:8px;margin:12px 0}.yt-dlg-new input{flex:1;min-width:0;background:#0f0f17;border:1px solid var(--line);border-radius:999px;color:#fff;padding:9px 14px;font:inherit}
/* menus */
.yt-menu{position:fixed;z-index:120;width:230px;background:#1d1d29;border:1px solid var(--line);border-radius:12px;padding:6px;box-shadow:0 12px 40px #000a;display:flex;flex-direction:column}
.yt-menu button{border:0;background:none;color:#fff;text-align:left;padding:10px 12px;border-radius:8px;font:inherit;cursor:pointer}.yt-menu button:hover{background:#ffffff14}
.yt-dlg-wrap{position:fixed;inset:0;background:#000a;z-index:130;display:flex;align-items:center;justify-content:center;padding:16px}
.yt-dlg{width:min(420px,100%);background:#1a1a26;border:1px solid var(--line);border-radius:16px;padding:16px}
.yt-dlg h3{margin:0 0 10px;display:flex;justify-content:space-between}.yt-dlg h3 button{background:none;border:0;color:#fff;font-size:24px;cursor:pointer}
.yt-dlg-list{max-height:240px;overflow:auto;display:flex;flex-direction:column;gap:6px}.yt-dlg-list label{display:flex;gap:10px;align-items:center;padding:6px}.yt-dlg-list small{margin-left:auto;color:var(--mut)}
.yt-toast{position:fixed;left:50%;bottom:80px;transform:translateX(-50%);z-index:140;background:#26263a;border:1px solid var(--line);padding:10px 16px;border-radius:10px;display:flex;gap:14px;align-items:center;opacity:0;pointer-events:none;transition:opacity .2s}
.yt-toast.show{opacity:1;pointer-events:auto}.yt-toast button{border:0;background:none;color:var(--yt-ac2);font:600 14px inherit;cursor:pointer}
/* mobile */
@media(max-width:820px){
 .yt-side{transform:translateX(-100%);transition:transform .2s;width:250px}
 body.yt-side-open .yt-side{transform:none}
 body.yt-side-open .yt-scrim{display:block;position:fixed;inset:0;background:#0008;z-index:65}
 body.ytui>*:not(.yt-top):not(.yt-side):not(.yt-scrim):not(.yt-bnav):not(.yt-toast):not(.yt-menu):not(.yt-dlg-wrap){margin-left:0}
 .yt-burger{display:none}
 .yt-search{display:none}.yt-msearch{display:inline-flex}
 .yt-top{justify-content:space-between}
 .yt-bnav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:80;background:rgba(11,11,16,.97);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
 .yt-bnav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:7px 0 6px;color:var(--mut);font-size:11px}.yt-bnav a.on{color:#fff}
 body.ytui{padding-bottom:64px}
 .yt-main{padding:8px 0 30px}.yt-chips{padding-left:12px;padding-right:12px}.yt-grid{gap:22px}.yt-meta{padding-left:12px;padding-right:8px}
 .yt-thumb{border-radius:0}
 .yt-shelf{padding-left:12px}.yt-lib{padding:0 12px}.yt-list{padding:0 12px}
 .yt-chan{margin:-8px 0 16px}
 .yt-wbar{padding:0 0}
}

/* polish */
body.ytui .adslot{display:none}
body.ytui .btn{background:linear-gradient(90deg,var(--yt-ac),#5b3fd6)}
body.ytui .btn.ghost{background:#ffffff1f}
@media(max-width:599px){.yt-grid{grid-template-columns:1fr!important}.yt-grid .yt-thumb{border-radius:0}}
.yt-subs-h{font-size:18px;margin:26px 0 12px}
