/* Chanukah — YouTube-style light theme */
:root{
  --ink:#0f0f0f;--sub:#606060;--bg:#fff;--hov:rgba(0,0,0,.05);--chip:rgba(0,0,0,.05);--chip-h:rgba(0,0,0,.1);
  --line:rgba(0,0,0,.1);--red:#f0441a;--blue:#065fd4;--gold:#f2a007;--sk:#efede9;--ease:cubic-bezier(.2,.8,.2,1);
  --mh:56px;--gw:0px;--pad:24px;--r:12px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-padding-top:120px}
body{font-family:Figtree,Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:14px;line-height:20px;-webkit-font-smoothing:antialiased;overflow-x:hidden;min-height:100vh;min-height:100dvh}
a{color:inherit;text-decoration:none}
button,input{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer}
img{display:block}
.ico{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none;display:block}
.ico.f{fill:currentColor;stroke-width:1.2}
:focus{outline:none}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:6px}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ib{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none}
@media (hover:hover){.ib:hover{background:var(--hov)}}
.ib:active{background:var(--chip-h)}

/* ---------- masthead */
.mh{position:fixed;inset:0 0 auto 0;height:var(--mh);z-index:60;background:#fff;display:flex;align-items:center;padding:0 16px;gap:16px}
.mh-l{display:flex;align-items:center;gap:8px;flex:none;width:200px}
.logo{display:flex;align-items:center;gap:4px;height:40px;padding:0 6px 0 8px;font-weight:700;font-size:19px;letter-spacing:-.7px}
.logo svg{width:31px;height:24px;flex:none}
.mh-c{flex:1;display:flex;justify-content:center;min-width:0}
.sb{position:relative;display:flex;width:100%;max-width:640px;height:40px}
.sb .in{flex:1;display:flex;align-items:center;min-width:0;border:1px solid #ccc;border-right:0;border-radius:40px 0 0 40px;padding:0 4px 0 16px;box-shadow:inset 0 1px 2px #eee;background:#fff}
.sb.foc .in{border-color:#1c62b9;box-shadow:inset 0 1px 2px rgba(0,0,0,.25);padding-left:0;margin-left:32px}
.sb .in>.ico{display:none;width:20px;height:20px;margin:0 12px 0 16px}
.sb.foc .in>.ico{display:block}
.sb.foc{margin-left:-32px}
.sb input{flex:1;min-width:0;border:0;outline:0;font-size:16px;height:38px;background:none}
.sb input::-webkit-search-cancel-button{display:none}
.sb .clr{width:36px;height:36px;border-radius:50%;display:none;place-items:center}
@media (hover:hover){.sb .clr:hover{background:var(--hov)}}
.sb.has .clr{display:grid}
.sb .go{width:64px;flex:none;border:1px solid #d3d3d3;border-radius:0 40px 40px 0;background:#f8f8f8;display:grid;place-items:center}
@media (hover:hover){.sb .go:hover{background:#f0f0f0;box-shadow:0 1px 0 rgba(0,0,0,.1)}}
.sb .go .ico{width:24px;height:24px}
.sug{position:absolute;top:44px;left:0;right:64px;background:#fff;border-radius:12px;box-shadow:0 4px 32px rgba(0,0,0,.1),0 0 0 1px rgba(0,0,0,.04);padding:16px 0;display:none;z-index:70;max-height:70vh;overflow:auto}
.sb.foc .sug.on{display:block}
.sug a{display:flex;align-items:center;gap:14px;padding:0 16px;height:32px;font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sug a .ico{width:20px;height:20px;stroke-width:2}
.sug a span{overflow:hidden;text-overflow:ellipsis}
.sug a span b{font-weight:400}
@media (hover:hover){.sug a.on,.sug a:hover{background:#eee}}
.sug a small{font-weight:400;color:var(--sub);font-size:13px;margin-left:auto;padding-left:12px}
.mh-r{width:200px;flex:none;display:flex;justify-content:flex-end}
.sbtn,.sback{display:none}

/* ---------- guide */
.guide{position:fixed;top:var(--mh);left:0;bottom:0;width:240px;z-index:40;background:#fff;overflow-y:auto;overflow-x:hidden;padding:0 12px 24px;scrollbar-width:thin;scrollbar-color:transparent transparent;display:none}
@media (hover:hover){.guide:hover{scrollbar-color:#ccc transparent}}
.gi{display:flex;align-items:center;gap:24px;height:40px;padding:0 12px;border-radius:10px;font-size:14px;white-space:nowrap;overflow:hidden}
.gi span{overflow:hidden;text-overflow:ellipsis}
@media (hover:hover){.gi:hover{background:var(--hov)}}
.gi.on{background:var(--hov);font-weight:500}
.gi .ico{width:24px;height:24px}
.gi.on .ico{stroke-width:2.2}
.gi .ga{width:24px;height:24px;border-radius:50%;object-fit:cover;flex:none;background:var(--sk)}
.gi .gtc{margin-left:auto;color:var(--sub);font-size:12px}
.gh{font-size:16px;font-weight:500;padding:6px 12px 4px;display:flex;align-items:center;gap:8px}
.gsep{height:1px;background:var(--line);margin:12px 0}
.gfoot{padding:16px 12px 0;color:#909090;font-size:12px;line-height:18px}
.mini{position:fixed;top:var(--mh);left:0;bottom:0;width:72px;z-index:40;background:#fff;padding:4px;display:none}
.mi{display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 0 14px;border-radius:10px;font-size:10px;line-height:14px}
@media (hover:hover){.mi:hover{background:var(--hov)}}
.mi.on .ico{stroke-width:2.2}
.scrim{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:80;opacity:0;pointer-events:none;transition:opacity .2s}
body.drawer .scrim{opacity:1;pointer-events:auto}
body.drawer .guide{display:block;z-index:90;top:0;padding-top:0;box-shadow:none;transform:none}
.guide .gtop{display:none;height:var(--mh);align-items:center;gap:8px;padding:0 4px;position:sticky;top:0;background:#fff;z-index:2}
body.drawer .guide .gtop{display:flex}
body.drawer .guide{animation:gin .2s ease}
@keyframes gin{from{transform:translateX(-100%)}to{transform:none}}

body.g-full{--gw:240px}
body.g-full .guide{display:block}
body.g-mini{--gw:72px}
body.g-mini .mini{display:block}

main{padding-top:var(--mh);margin-left:var(--gw);min-height:100vh;min-height:100dvh}

/* ---------- phone pivot bar */
.pivot{display:none}

/* ---------- chips */
.chips{position:sticky;top:var(--mh);z-index:30;background:#fff;display:flex;align-items:center;gap:12px;padding:12px var(--pad);overflow-x:auto;scrollbar-width:none;scroll-behavior:smooth}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;height:32px;padding:0 12px;border-radius:8px;background:var(--chip);font-weight:500;font-size:14px;line-height:32px;white-space:nowrap;display:inline-flex;align-items:center;gap:6px;transition:background .1s}
@media (hover:hover){.chip:hover{background:var(--chip-h)}}
.chip.on{background:var(--ink);color:#fff}
.chip img{width:20px;height:20px;border-radius:50%;object-fit:cover;margin-left:-4px}
.chip small{font-size:12px;opacity:.6;font-weight:400}
.chips .csep{flex:none;width:1px;height:24px;background:var(--line)}
.cwrap{position:sticky;top:var(--mh);z-index:30;background:#fff}
.cwrap .chips{position:relative;top:0}
.carr{position:absolute;top:0;bottom:0;display:none;align-items:center;z-index:2;pointer-events:none}
.carr button{pointer-events:auto;background:#fff}
.carr.l{left:0;padding-left:calc(var(--pad) - 8px);background:linear-gradient(90deg,#fff 70%,transparent);padding-right:24px}
.carr.r{right:0;padding-right:calc(var(--pad) - 8px);background:linear-gradient(270deg,#fff 70%,transparent);padding-left:24px}
.cwrap.cl .carr.l,.cwrap.cr .carr.r{display:flex}
@media (hover:none){.cwrap .carr{display:none!important}}

/* ---------- hero */
.hero-w{padding:0 var(--pad) 0}
.hero{position:relative;width:100%;aspect-ratio:16/9;max-height:min(62vh,640px);background:#0f0f0f;overflow:hidden;cursor:pointer;border-radius:16px;margin-top:8px;isolation:isolate}
.hero .po,.hero .fr{position:absolute;inset:0}
.hero .po{z-index:2;transition:opacity .8s;pointer-events:none;background:#0f0f0f}
.hero .po img{width:100%;height:100%;object-fit:cover}
.hero.live .po{opacity:0}
.hero .fr{z-index:1;pointer-events:none}
.hero .fr iframe,.hero .fr>div{position:absolute;border:0}
.hero .shade{position:absolute;inset:auto 0 0 0;height:62%;z-index:3;pointer-events:none;background:linear-gradient(0deg,rgba(0,0,0,.72),rgba(0,0,0,.28) 45%,transparent)}
.hero .hx{position:absolute;left:32px;right:32px;bottom:28px;z-index:4;display:flex;align-items:flex-end;gap:24px;color:#fff;pointer-events:none}
.hero .hx>div{min-width:0;flex:1}
.hero .ttl{font-size:28px;line-height:36px;font-weight:700;letter-spacing:-.3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 12px rgba(0,0,0,.3);max-width:760px}
.hero .who{font-size:14px;opacity:.9;margin-top:6px;display:flex;align-items:center;gap:8px}
.hero .acts{display:flex;gap:8px;margin-top:16px;pointer-events:auto}
.pill{height:36px;padding:0 16px;border-radius:18px;display:inline-flex;align-items:center;gap:6px;font-weight:500;font-size:14px;white-space:nowrap;flex:none}
.pill .ico{width:22px;height:22px;margin-left:-6px}
.pill.w{background:#fff;color:#0f0f0f}@media (hover:hover){.pill.w:hover{background:#e6e6e6}}
.pill.d{background:var(--ink);color:#fff}@media (hover:hover){.pill.d:hover{background:#272727}}
.pill.g{background:var(--chip)}@media (hover:hover){.pill.g:hover{background:var(--chip-h)}}
.pill.t{background:rgba(255,255,255,.2);color:#fff;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}@media (hover:hover){.pill.t:hover{background:rgba(255,255,255,.3)}}
.pill .ico.f{width:20px;height:20px}
.hero .dots{display:flex;gap:6px;pointer-events:auto;padding-bottom:12px}
.hero .dots button{width:8px;height:8px;border-radius:4px;background:rgba(255,255,255,.45);transition:width .3s,background .3s;padding:0}
.hero .dots button.on{width:22px;background:#fff}
.tonight{position:absolute;top:16px;left:16px;z-index:4;height:28px;padding:0 12px 0 8px;border-radius:14px;background:rgba(0,0,0,.5);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;font-size:13px;font-weight:500;display:flex;align-items:center;gap:6px;pointer-events:none}
.tonight .ico{width:16px;height:16px;color:var(--gold);fill:var(--gold);stroke:var(--gold)}
.hero .hprog{position:absolute;left:0;bottom:0;height:3px;background:rgba(255,255,255,.9);z-index:5;width:0}

/* ---------- grid of video cards */
.grid{display:grid;grid-template-columns:repeat(var(--cols,4),minmax(0,1fr));gap:40px 16px;padding:12px var(--pad) 40px}
.vc{display:block;min-width:0;position:relative;border-radius:var(--r)}
.th{position:relative;display:block;aspect-ratio:16/9;border-radius:var(--r);overflow:hidden;background:var(--sk)}
.th img{width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .25s}
.th img.ld{opacity:1}
.th .dur{position:absolute;right:8px;bottom:8px;z-index:3;background:rgba(0,0,0,.6);color:#fff;font-size:12px;line-height:18px;font-weight:500;padding:0 4px;border-radius:4px;letter-spacing:.3px;transition:opacity .2s}
.th .bar{position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(200,200,200,.6);z-index:3}
.th .bar i{display:block;height:100%;background:var(--red)}
.th .pv{position:absolute;inset:0;z-index:2;opacity:0;transition:opacity .3s;pointer-events:none;background:#000}
.th .pv.on{opacity:1}
.th .pv iframe,.th .pv>div{position:absolute;border:0;left:0;width:100%;top:-60px;height:calc(100% + 120px)}
.th .pvb{position:absolute;left:0;bottom:0;height:3px;background:var(--red);z-index:4;width:0}
.vc .dt{display:flex;gap:12px;margin-top:12px;min-width:0}
.av{width:36px;height:36px;border-radius:50%;flex:none;display:grid;place-items:center;font-size:15px;font-weight:500;color:#fff;overflow:hidden;background:#888;user-select:none}
.av img{width:100%;height:100%;object-fit:cover}
.av{position:relative}.av .fc{position:absolute;inset:0;background-repeat:no-repeat;background-color:#ddd}
.av.s{width:24px;height:24px;font-size:11px}
.av.m{width:40px;height:40px;font-size:17px}
.av.l{width:120px;height:120px;font-size:52px}
.av.xl{width:160px;height:160px;font-size:68px}
.vc .tx{min-width:0;flex:1;padding-right:20px}
.vc .t{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:16px;line-height:22px;font-weight:500;max-height:44px}
.vc .m{display:block;color:var(--sub);font-size:14px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vc .m:first-of-type{margin-top:4px}
@media (hover:hover){.lk:hover{color:var(--ink)}}
.vc .badge{display:inline-flex;align-items:center;gap:3px;background:var(--chip);color:var(--sub);font-size:12px;line-height:18px;font-weight:500;padding:0 4px;border-radius:2px;margin-top:4px}
.vc .badge .ico{width:14px;height:14px}
@media (hover:hover){.vc:hover .t{color:#000}}
@media (hover:hover){.vc::before{content:'';position:absolute;inset:-8px;border-radius:16px;background:transparent;transition:background .15s;z-index:-1}.vc:active::before{background:var(--hov)}}

/* skeleton */
.sk .th{animation:sk 1.3s ease-in-out infinite}
.sk .av{background:var(--sk);animation:sk 1.3s ease-in-out infinite}
.sk .t,.sk .m{background:var(--sk);border-radius:4px;height:20px;animation:sk 1.3s ease-in-out infinite}
.sk .t{width:90%}.sk .m{width:60%;height:16px;margin-top:8px}
@keyframes sk{50%{opacity:.55}}

/* ---------- shelves */
.shelf{grid-column:1/-1;min-width:0;padding:8px 0 0;border-top:4px solid transparent}
.shelf+.vc,.grid>.shelf~.vc{}
.shh{display:flex;align-items:center;gap:8px;margin-bottom:16px;min-height:40px}
.shh h2{font-size:20px;line-height:28px;font-weight:700;display:flex;align-items:center;gap:8px}
.shh h2 .ico{width:26px;height:26px}
.shh .sl{width:24px;height:24px;color:var(--red)}
.shh .sp{flex:1}
.shh .all{display:inline-flex;align-items:center;height:36px;font-size:14px;padding:0 16px;border-radius:18px;font-weight:500;color:var(--ink)}
@media (hover:hover){.shh .all:hover{background:var(--hov)}}
.rowsc{position:relative}
.row{display:grid;grid-auto-flow:column;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;scroll-behavior:smooth;overscroll-behavior-x:contain}
.row::-webkit-scrollbar{display:none}
.row>*{scroll-snap-align:start}
.row.r-sh{grid-auto-columns:calc((100% - 16px*5)/6)}
.row.r-v{grid-auto-columns:calc((100% - 16px*(var(--cols,4) - 1))/var(--cols,4))}
.row.r-pl{grid-auto-columns:calc((100% - 16px*(var(--cols,4) - 1))/var(--cols,4))}
.rowsc .ra{position:absolute;top:calc(var(--ty,40%) - 20px);z-index:3;width:40px;height:40px;border-radius:50%;background:#fff;box-shadow:0 4px 4px rgba(0,0,0,.3),0 0 4px rgba(0,0,0,.2);display:none;place-items:center}
@media (hover:hover){.rowsc .ra:hover{background:#f2f2f2}}
.rowsc .ra.l{left:-20px}.rowsc .ra.r{right:-20px}
.rowsc.cl .ra.l,.rowsc.cr .ra.r{display:grid}
@media (hover:none){.rowsc .ra{display:none!important}}
.shelf.sep{border-top:1px solid var(--line);padding-top:24px}

/* shorts card */
.sc{display:block;min-width:0}
.sc .st{position:relative;aspect-ratio:9/16;border-radius:var(--r);overflow:hidden;background:var(--sk)}
.sc .st img{width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .25s}
.sc .st img.ld{opacity:1}
.sc .st.wd img{object-fit:cover}
.sc .t{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:16px;line-height:22px;font-weight:500;margin-top:8px;padding-right:16px}
.sc .m{color:var(--sub);font-size:14px;line-height:20px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* playlist card */
.pc{display:block;min-width:0}
.pc .stk{position:relative;padding-top:8px}
.pc .stk::before,.pc .stk::after{content:'';position:absolute;left:12px;right:12px;top:0;height:12px;border-radius:12px 12px 0 0;background:var(--c1,#b9b2a8)}
.pc .stk::after{left:6px;right:6px;top:4px;background:var(--c2,#8f877c)}
.pc .th{z-index:1}
.pc .pcnt{position:absolute;right:8px;bottom:8px;z-index:3;background:rgba(0,0,0,.6);color:#fff;font-size:12px;line-height:18px;font-weight:500;padding:0 4px;border-radius:4px;display:flex;align-items:center;gap:3px}
.pc .pcnt .ico{width:16px;height:16px}
.pc .hov{position:absolute;inset:0;z-index:2;background:rgba(0,0,0,.6);color:#fff;display:flex;align-items:center;justify-content:center;gap:6px;font-weight:500;font-size:14px;letter-spacing:.3px;opacity:0;transition:opacity .15s}
@media (hover:hover){.pc:hover .hov{opacity:1}}
.pc .t{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:16px;line-height:22px;font-weight:500;margin-top:12px}
.pc .m{color:var(--sub);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc .m2{color:var(--sub);font-weight:500;margin-top:4px;display:inline-block}
@media (hover:hover){.pc .m2:hover{color:var(--ink)}}

/* ---------- page heads (topic / teacher / list pages) */
.ph{display:flex;align-items:center;gap:24px;padding:24px var(--pad) 8px;max-width:1284px}
.ph .art{width:120px;height:120px;border-radius:50%;object-fit:cover;flex:none;background:var(--sk)}
.ph h1{font-size:36px;line-height:44px;font-weight:700;letter-spacing:-.5px}
.ph .m{color:var(--sub);margin-top:6px;font-size:14px}
.ph .m b{color:var(--ink);font-weight:500}
.ph .acts{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
.pt{font-size:24px;line-height:32px;font-weight:700;padding:24px var(--pad) 4px}
.tabs{display:flex;gap:0;padding:0 var(--pad);border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.tabs a{height:48px;padding:0 12px;display:flex;align-items:center;font-weight:500;font-size:16px;color:var(--sub);border-bottom:2px solid transparent;flex:none}
@media (hover:hover){.tabs a:hover{color:var(--ink);border-color:#909090}}
.tabs a.on{color:var(--ink);border-color:var(--ink)}
.tabs+.chips,.tabs+.cwrap{padding-top:4px}
.more{display:flex;justify-content:center;padding:8px 0 48px}
.sent{height:1px}
.spin-row{display:flex;justify-content:center;padding:16px 0 56px}
.ld-ring{width:36px;height:36px;border-radius:50%;border:3px solid #e5e5e5;border-top-color:#606060;animation:rot 1s linear infinite}
@keyframes rot{to{transform:rotate(360deg)}}

/* topics page */
.tgrid{display:grid;grid-template-columns:repeat(var(--cols,4),minmax(0,1fr));gap:32px 16px;padding:16px var(--pad) 40px}
.tc{display:block;min-width:0}
.tc .mos{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;gap:2px;aspect-ratio:16/9;border-radius:var(--r);overflow:hidden;background:var(--sk)}
.tc .mos span{display:block;overflow:hidden;background:var(--sk)}
.tc .mos span:first-child{grid-row:1/3}
.tc .mos img{width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .25s,transform .3s}
.tc .mos img.ld{opacity:1}
@media (hover:hover){.tc:hover .mos img{transform:scale(1.03)}}
.tc .dt{display:flex;gap:12px;margin-top:12px;align-items:center}
.tc .ta{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none;background:var(--sk)}
.tc .ti{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;flex:none;background:var(--chip)}
.tc b{font-size:16px;font-weight:500;line-height:22px;display:block}
.tc small{color:var(--sub);font-size:14px}

/* teachers */
.spgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:32px 16px;padding:16px var(--pad) 48px}
.spc{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:8px;border-radius:12px;min-width:0}
@media (hover:hover){.spc:hover{background:var(--hov)}}
.spc b{font-size:15px;font-weight:500;line-height:20px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.spc small{color:var(--sub);font-size:13px;margin-top:-6px}

/* list rows (search results / history / playlists) */
.lst{padding:8px var(--pad) 48px;max-width:1300px}
.lr{display:flex;gap:16px;padding:8px 0;min-width:0;border-radius:12px;position:relative}
.lr .th{width:360px;flex:none}
.lr .tx{min-width:0;flex:1;padding-top:2px}
.lr .t{font-size:18px;line-height:26px;font-weight:400;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lr .m{color:var(--sub);font-size:12px;line-height:18px;margin-top:4px;display:flex;align-items:center;flex-wrap:wrap;gap:0 4px}
.lr .who{display:flex;align-items:center;gap:8px;color:var(--sub);font-size:12px;margin:12px 0 8px}
@media (hover:hover){.lr .who:hover{color:var(--ink)}}
.lr .snip{display:block;color:var(--sub);font-size:12px;line-height:18px;background:#f2f2f2;border-radius:8px;padding:8px 10px;margin-top:8px;max-width:640px}
.lr .snip .ts{display:inline-block;color:var(--blue);font-weight:500;margin-right:6px}
.lr .snip:empty{display:none}
.lr mark,.sg mark{background:none;color:var(--ink);font-weight:700}
.lr .snip mark{background:#fff3b0;color:var(--ink);font-weight:500;border-radius:2px}
.lr .badge{display:inline-flex;align-items:center;gap:4px;background:var(--chip);color:var(--sub);font-size:12px;line-height:20px;font-weight:500;padding:0 6px;border-radius:4px;margin-top:8px}
.lr .badge .ico{width:14px;height:14px}
@media (hover:hover){.lr:hover .t{color:#000}}
.lr.ch{align-items:center;padding:12px 0 20px;border-bottom:1px solid var(--line);margin-bottom:12px}
.lr.ch .avw{width:360px;flex:none;display:flex;justify-content:center}
.lr.ch .t{font-size:18px}
.lr.plr .th{width:360px}
.rsum{color:var(--sub);font-size:14px;padding:12px 0 4px}
.rsum b{color:var(--ink);font-weight:500}
.empty{padding:72px 24px;text-align:center;max-width:560px;margin:0 auto}
.empty .ei{width:120px;height:120px;border-radius:50%;background:#f2f2f2;display:grid;place-items:center;margin:0 auto 24px;color:#909090}
.empty .ei .ico{width:56px;height:56px;stroke-width:1.25}
.empty h2{font-size:20px;line-height:28px;font-weight:500}
.empty p{color:var(--sub);margin-top:8px;font-size:14px}
.empty .sgs{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:20px}
.empty .acts{display:flex;gap:8px;justify-content:center;margin-top:20px}

/* ---------- playlist page */
.plp{display:flex;gap:24px;padding:24px var(--pad) 48px;align-items:flex-start}
.plh{width:360px;flex:none;position:sticky;top:calc(var(--mh) + 24px);border-radius:16px;overflow:hidden;color:#fff;padding:24px;isolation:isolate;min-height:calc(100vh - var(--mh) - 48px);display:flex;flex-direction:column}
.plh .bgx{position:absolute;inset:0;z-index:-1;background:var(--bgc,#4a4038)}
.plh .bgx img{width:100%;height:100%;object-fit:cover;filter:blur(40px) saturate(1.3);transform:scale(1.4);opacity:.75}
.plh .bgx::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.55))}
.plh .th{border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.plh h1{font-size:26px;line-height:34px;font-weight:700;margin-top:20px;letter-spacing:-.3px}
.plh .who{display:flex;align-items:center;gap:8px;margin-top:14px;font-weight:500}
.plh .m{opacity:.75;margin-top:6px;font-size:13px}
.plh .acts{display:flex;gap:8px;margin-top:20px}
.plh .acts .pill{flex:1;justify-content:center;height:40px;border-radius:20px}
.pll{flex:1;min-width:0}
.pr{display:flex;align-items:center;gap:8px;padding:8px 8px 8px 0;border-radius:12px;min-width:0}
@media (hover:hover){.pr:hover{background:var(--hov)}}
.pr .n{width:32px;flex:none;text-align:center;color:var(--sub);font-size:14px}
.pr .th{width:160px;flex:none;border-radius:8px}
.pr .th .dur{font-size:12px;right:4px;bottom:4px}
.pr .tx{min-width:0;flex:1;padding-left:8px}
.pr .t{font-size:16px;line-height:22px;font-weight:500;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pr .m{color:var(--sub);font-size:12px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- watch */
body.watching .guide,body.watching .mini{display:none}
body.watching{--gw:0px}
.wt{display:grid;grid-template-columns:minmax(0,1fr) 402px;grid-template-areas:"p s" "b s";grid-template-rows:auto 1fr;gap:0 24px;padding:24px 24px 48px;max-width:1754px;margin:0 auto}
.plw{grid-area:p}.wt-b{grid-area:b;min-width:0}.wt-s{grid-area:s;min-width:0}
body.theater .wt{grid-template-areas:"p p" "b s";padding-top:0;max-width:none}
body.theater .plw{margin:0 -24px;background:#000}
body.theater .plw .pl{max-width:calc((100vh - 56px - 160px)*16/9);max-height:calc(100vh - 56px - 160px);margin:0 auto;border-radius:0}
body.theater .wt-s{padding-top:24px}
body.drawer.watching .guide{display:block}
.plw{position:relative}
.pl{position:relative;aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden;color:#fff;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.pl .media{position:absolute;left:0;right:0;top:-60px;bottom:-60px;pointer-events:none}
.pl .media iframe,.pl .media>div{width:100%;height:100%;border:0;display:block}
.pl .poster{position:absolute;inset:0;z-index:2;background:#000;transition:opacity .5s}
.pl .poster img{width:100%;height:100%;object-fit:cover}
.pl.shown .poster{opacity:0;pointer-events:none}
.pl .shield{position:absolute;inset:0;z-index:3;cursor:pointer}
.pl.idle .shield{cursor:none}
.pl .grad{position:absolute;left:0;right:0;bottom:0;height:160px;z-index:4;pointer-events:none;background:linear-gradient(0deg,rgba(0,0,0,.75),rgba(0,0,0,.35) 50%,transparent);transition:opacity .25s}
.pl .tgrad{position:absolute;left:0;right:0;top:0;height:100px;z-index:4;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.5),transparent);transition:opacity .25s;opacity:0}
.pl.fs .tgrad{opacity:1}
.pl .ptop{position:absolute;left:0;right:0;top:0;z-index:6;display:none;align-items:center;gap:12px;padding:14px 18px;font-size:18px;font-weight:500}
.pl.fs .ptop{display:flex}
.pl .ptop span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 0 2px rgba(0,0,0,.5)}
.pl .cbar{position:absolute;left:12px;right:12px;bottom:0;z-index:6;transition:opacity .25s}
.pl.idle .cbar,.pl.idle .grad,.pl.idle .tgrad,.pl.idle .ptop{opacity:0;pointer-events:none}
.pl:not(.started) .cbar,.pl:not(.started) .grad{opacity:0;pointer-events:none}
.pl.started:not(.playing) .cbar,.pl.started:not(.playing) .grad{opacity:1!important}
.scrub{position:relative;height:16px;display:flex;align-items:flex-end;padding-bottom:5px;cursor:pointer;touch-action:none}
.scrub .trk{position:relative;width:100%;height:3px;background:rgba(255,255,255,.2);transition:height .1s}
@media (hover:hover){.scrub:hover .trk,.scrub.drag .trk{height:5px}}
.scrub .buf,.scrub .fil,.scrub .hvr{position:absolute;left:0;top:0;bottom:0}
.scrub .buf{background:rgba(255,255,255,.4)}
.scrub .hvr{background:rgba(255,255,255,.5);display:none}
@media (hover:hover){.scrub:hover .hvr{display:block}}
.scrub .fil{background:var(--red)}
.scrub .knob{position:absolute;bottom:4px;width:13px;height:13px;margin-left:-6.5px;margin-bottom:-4px;border-radius:50%;background:var(--red);transform:scale(0);transition:transform .1s}
@media (hover:hover){.scrub:hover .knob,.scrub.drag .knob{transform:scale(1)}}
.pl.touch .knob{transform:scale(1)}
.scrub .tip{position:absolute;bottom:22px;transform:translateX(-50%);background:rgba(28,28,28,.9);font-size:13px;font-weight:500;padding:4px 8px;border-radius:4px;opacity:0;pointer-events:none;white-space:nowrap}
@media (hover:hover){.scrub:hover .tip,.scrub.drag .tip{opacity:1}}
.ctl{display:flex;align-items:center;height:48px;gap:0}
.cb{width:48px;height:48px;display:grid;place-items:center;color:#fff;opacity:.92;flex:none;position:relative}
@media (hover:hover){.cb:hover{opacity:1}}
.cb .ico{width:24px;height:24px;stroke-width:2;filter:drop-shadow(0 0 2px rgba(0,0,0,.35))}
.cb .ico.f{stroke-width:1}
.cb.on::after{content:'';position:absolute;left:12px;right:12px;bottom:9px;height:3px;border-radius:2px;background:var(--red)}
.vol{display:flex;align-items:center}
.vol input{width:0;opacity:0;transition:width .2s,opacity .2s;accent-color:#fff;height:4px;cursor:pointer}
@media (hover:hover){.vol:hover input,.vol:focus-within input{width:64px;opacity:1;margin-right:10px}}
.ttime{font-size:14px;font-weight:400;white-space:nowrap;padding:0 8px;text-shadow:0 0 2px rgba(0,0,0,.5);overflow:hidden;text-overflow:ellipsis;min-width:0}
.ttime .ch{opacity:.85}
.ctl .sp{flex:1}
.ap{width:52px;height:48px;display:grid;place-items:center;flex:none}
.ap i{display:block;position:relative;width:36px;height:14px;border-radius:7px;background:rgba(255,255,255,.3);transition:background .2s}
.ap i::after{content:'';position:absolute;top:-3px;left:-2px;width:20px;height:20px;border-radius:50%;background:#bdbdbd;display:grid;transition:transform .2s,background .2s;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.ap.on i::after{transform:translateX(20px);background:#fff}
.ap svg{position:absolute}
.pmenu{position:absolute;right:12px;bottom:60px;z-index:8;width:251px;background:rgba(28,28,28,.92);border-radius:12px;padding:8px 0;display:none;text-shadow:none;backdrop-filter:blur(6px)}
.pmenu.open{display:block}
.pmenu h4{font-size:13px;font-weight:500;padding:6px 16px;opacity:.7}
.pmenu button{display:flex;align-items:center;gap:12px;width:100%;height:40px;padding:0 16px;font-size:14px;color:#fff;text-align:left}
@media (hover:hover){.pmenu button:hover{background:rgba(255,255,255,.1)}}
.pmenu button .ico{width:20px;height:20px;opacity:0}
.pmenu button.on .ico{opacity:1}
.pl .spin{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;z-index:5;border-radius:50%;border:4px solid rgba(255,255,255,.2);border-top-color:#fff;animation:rot 1s linear infinite;display:none;pointer-events:none}
.pl.loading .spin{display:block}
.pl .bigp{position:absolute;left:50%;top:50%;width:68px;height:48px;margin:-24px 0 0 -34px;z-index:5;border-radius:14px;background:rgba(33,33,33,.8);display:none;place-items:center;transition:background .1s}
.pl .bigp .ico{width:26px;height:26px;fill:#fff;stroke:#fff}
.pl.blocked .bigp{display:grid}
.pl.blocked .spin{display:none}
@media (hover:hover){.pl .shield:hover~.bigp,.pl .bigp:hover{background:var(--red)}}
.pl .cap{position:absolute;left:5%;right:5%;bottom:64px;z-index:5;text-align:center;pointer-events:none;transition:bottom .25s}
.pl.idle .cap{bottom:24px}
.pl .cap span{display:inline;background:rgba(8,8,8,.75);color:#fff;font-size:clamp(14px,2.1vw,26px);line-height:1.45;padding:2px 8px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.pl .flash{position:absolute;top:50%;z-index:5;width:56px;height:56px;margin-top:-28px;border-radius:50%;background:rgba(0,0,0,.5);display:grid;place-items:center;opacity:0;pointer-events:none;font-size:12px;font-weight:500}
.pl .flash.c{left:50%;margin-left:-28px}
.pl .flash.l{left:18%}.pl .flash.r{right:18%}
.pl .flash.go{animation:fl .6s ease}
@keyframes fl{0%{opacity:.9;transform:scale(.85)}100%{opacity:0;transform:scale(1.15)}}
.pl .slate{position:absolute;inset:0;z-index:7;display:none;background:#0f0f0f;align-items:center;justify-content:center;text-align:center;padding:24px}
.pl.errored .slate{display:flex}
.pl.errored .shield,.pl.errored .cbar,.pl.errored .grad,.pl.errored .spin{display:none}
.slate .si{width:56px;height:56px;margin:0 auto 12px;color:#aaa}
.slate .si .ico{width:56px;height:56px;stroke-width:1.25}
.slate b{display:block;font-size:20px;line-height:28px;font-weight:500}
.slate p{color:#aaa;margin-top:6px;font-size:14px}
.slate .acts{display:flex;gap:8px;justify-content:center;margin-top:18px;flex-wrap:wrap}
.endc{position:absolute;inset:0;z-index:7;display:none;background:rgba(0,0,0,.82);align-items:center;justify-content:center;padding:16px}
.pl.ended .endc{display:flex}
.pl.ended .shield,.pl.ended .cbar,.pl.ended .grad{display:none}
.endc .in{width:min(420px,100%);text-align:center}
.endc small{color:#ccc;font-size:16px;display:block;margin-bottom:10px}
.endc .eth{position:relative;width:min(320px,70%);margin:0 auto;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#333}
.endc .eth img{width:100%;height:100%;object-fit:cover}
.endc b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:18px;line-height:24px;font-weight:500;margin-top:12px}
.endc .ew{color:#bbb;font-size:14px;margin-top:4px}
.endc .acts{display:flex;gap:12px;justify-content:center;margin-top:16px;align-items:center}
.ring{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;position:relative;background:rgba(255,255,255,.15)}
.ring svg.rg{position:absolute;inset:0;width:64px;height:64px;transform:rotate(-90deg)}
.ring svg.rg circle{fill:none;stroke:#fff;stroke-width:4;stroke-dasharray:189;stroke-dashoffset:189}
.ring .ico{width:28px;height:28px;fill:#fff;stroke:#fff}
.pl.fs,.pl.fake-fs{border-radius:0}
.pl.fake-fs{position:fixed;inset:0;z-index:200;aspect-ratio:auto}
body.fake{overflow:hidden}
.pl.fs .media{top:0;bottom:0}
.pl.fs .media.crop{top:-60px;bottom:-60px}

.wt-t{font-size:20px;line-height:28px;font-weight:700;margin-top:12px;word-break:break-word}
.own{display:flex;align-items:center;gap:12px;margin-top:12px;flex-wrap:wrap}
.own .who{display:flex;align-items:center;gap:12px;min-width:0;margin-right:12px}
.own .who b{display:block;font-size:16px;font-weight:500;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.own .who small{display:block;color:var(--sub);font-size:12px;line-height:18px}
.own .acts{display:flex;gap:8px;margin-left:auto;overflow-x:auto;scrollbar-width:none;min-width:0}
.own .acts::-webkit-scrollbar{display:none}
.own .pill .ico{width:22px;height:22px}
.desc{background:rgba(0,0,0,.05);border-radius:12px;padding:12px;margin-top:12px;font-size:14px;line-height:20px;cursor:pointer;position:relative}
@media (hover:hover){.desc:hover{background:rgba(0,0,0,.1)}}
.desc.open{cursor:default}
@media (hover:hover){.desc.open:hover{background:rgba(0,0,0,.05)}}
.desc .d1{font-weight:500;display:flex;flex-wrap:wrap;gap:0 8px}
.desc .d1 a{color:var(--blue)}
.desc .d2{margin-top:2px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.desc.open .d2{display:block}
.desc .mr{font-weight:500}
.desc .dx{display:none;margin-top:16px}
.desc.open .dx{display:block}
.desc.open .mr{display:none}
.desc .ds{margin-top:16px}
.desc .ds h3{font-size:16px;font-weight:700;margin-bottom:4px}
.desc .ds p{color:var(--sub)}
.desc .ds .pill{margin-top:10px;border:1px solid var(--line);background:#fff}
@media (hover:hover){.desc .ds .pill:hover{background:#f2f2f2}}
.desc .tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.desc .less{font-weight:500;margin-top:16px;display:inline-block}
.desc .sprow{display:flex;align-items:center;gap:12px;margin-top:8px}
.desc .sprow b{font-weight:500}
.wt-more h2{font-size:20px;font-weight:700;margin:32px 0 16px}
.wt-more .grid{padding:0;--cols:3}

/* secondary column */
.panel{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:24px;display:flex;flex-direction:column;background:#fff}
.panel .phd{display:flex;align-items:center;gap:8px;padding:12px 6px 10px 16px;border-bottom:1px solid var(--line)}
.panel .phd>div{flex:1;min-width:0}
.panel .phd h3{font-size:20px;line-height:28px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.panel .phd small{color:var(--sub);font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (hover:hover){.panel .phd small a:hover{color:var(--ink)}}
.panel .pbd{overflow-y:auto;max-height:min(440px,60vh);padding:8px 0;scrollbar-width:thin}
.panel.tr .pbd{max-height:calc(100vh - 56px - 24px - 140px);height:calc(100vh - 56px - 24px - 140px);padding:0 0 8px}
.ep{display:flex;align-items:center;gap:8px;padding:4px 8px 4px 0;min-width:0}
@media (hover:hover){.ep:hover{background:var(--hov)}}
.ep.on{background:#f0ece4}
.ep .n{width:24px;flex:none;text-align:center;font-size:12px;color:var(--sub)}
.ep .th{width:100px;flex:none;border-radius:8px}
.ep .th .dur{font-size:11px;line-height:15px;right:4px;bottom:4px;padding:0 3px}
.ep .tx{min-width:0;flex:1}
.ep .t{font-size:14px;line-height:20px;font-weight:500;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ep .m{font-size:12px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tq{display:flex;align-items:center;gap:8px;margin:12px 16px 8px;height:36px;border-radius:18px;background:#f2f2f2;padding:0 12px}
.tq .ico{width:18px;height:18px;color:var(--sub)}
.tq input{flex:1;min-width:0;border:0;background:none;outline:0;font-size:14px}
.tl{display:flex;gap:12px;padding:8px 16px;cursor:pointer;line-height:20px;border-radius:0}
@media (hover:hover){.tl:hover{background:var(--hov)}}
.tl .ts{flex:none;background:var(--chip);border-radius:4px;padding:0 4px;font-size:12px;font-weight:500;height:20px;line-height:20px;min-width:44px;text-align:center}
.tl.now{background:#f2f2f2}
.tl.now .ts{background:var(--ink);color:#fff}
.tl mark{background:#fff3b0;color:inherit;border-radius:2px}
.tnote{color:var(--sub);padding:16px}
.tsrc{font-size:12px;color:var(--sub);padding:8px 16px;border-top:1px solid var(--line)}
.nxc{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;margin-bottom:12px}
.nxc::-webkit-scrollbar{display:none}
.nx{display:flex;gap:8px;margin-bottom:8px;min-width:0;border-radius:8px;position:relative}
.nx .th{width:168px;flex:none;border-radius:8px}
.nx .tx{min-width:0;flex:1;padding-right:8px}
.nx .t{font-size:14px;line-height:20px;font-weight:500;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:40px}
.nx .m{font-size:12px;line-height:18px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nx .m:first-of-type{margin-top:4px}
@media (hover:hover){.nx:hover .t{color:#000}}
.toast{position:fixed;left:24px;bottom:24px;z-index:300;background:#0f0f0f;color:#fff;padding:14px 20px;border-radius:8px;font-size:14px;transform:translateY(120px);transition:transform .25s;box-shadow:0 4px 16px rgba(0,0,0,.2)}
.toast.on{transform:none}

/* watch: short (vertical) */
.wt.vert .plw{max-width:min(100%,calc((100vh - 140px)*9/16));margin:0 auto}
.wt.vert .pl{aspect-ratio:9/16}

/* ---------- shorts feed */
body.feeding{overflow:hidden}
.feed{position:fixed;top:var(--mh);left:var(--gw);right:0;bottom:0;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain;background:#fff}
.feed::-webkit-scrollbar{display:none}
.fs{height:calc(100vh - var(--mh));height:calc(100dvh - var(--mh));scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center;gap:16px;padding:16px 0}
.fs-v{position:relative;height:100%;aspect-ratio:9/16;max-width:calc(100vw - 32px);border-radius:12px;overflow:hidden;background:#000;color:#fff;isolation:isolate}
.fs-bg{position:absolute;inset:-20px;background-size:cover;background-position:center;filter:blur(24px) brightness(.55);z-index:0}
.fs-po{position:absolute;inset:0;z-index:1;transition:opacity .6s}
.fs-po img{width:100%;height:100%;object-fit:cover}
.fs.wide .fs-po img{object-fit:contain}
.fs-wb{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.fs.started .fs-wb{z-index:2}
.fs.wide .fs-wb{inset:auto 0;top:50%;transform:translateY(-50%);aspect-ratio:16/9}
.fs-m{position:absolute;left:0;right:0;top:-60px;bottom:-60px;pointer-events:none}
.fs.started .fs-po{opacity:0}
.fs-m iframe,.fs-m>div{width:100%;height:100%;border:0}
.fs.wide .fs-m{top:-60px;bottom:-60px}
.fs-sh{position:absolute;inset:0;z-index:3;cursor:pointer}
.fs-gr{position:absolute;left:0;right:0;bottom:0;height:45%;z-index:4;pointer-events:none;background:linear-gradient(0deg,rgba(0,0,0,.65),transparent)}
.fs-tx{position:absolute;left:12px;right:12px;bottom:20px;z-index:5;pointer-events:none}
.fs-tx .w{display:flex;align-items:center;gap:8px;font-weight:500;font-size:14px;pointer-events:auto;width:max-content;max-width:100%}
.fs-tx b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:16px;line-height:22px;font-weight:500;margin-top:10px;text-shadow:0 1px 4px rgba(0,0,0,.3)}
.fs-pg{position:absolute;left:0;right:0;bottom:0;height:3px;z-index:6;background:rgba(255,255,255,.25)}
.fs-pg i{display:block;height:100%;background:var(--red);transform-origin:left;transform:scaleX(0)}
.fs-pp{position:absolute;left:50%;top:50%;width:72px;height:72px;margin:-36px 0 0 -36px;border-radius:50%;background:rgba(0,0,0,.45);display:grid;place-items:center;z-index:5;opacity:0;pointer-events:none;transition:opacity .2s}
.fs-pp .ico{width:32px;height:32px;fill:#fff;stroke:#fff}
.fs.started:not(.playing) .fs-pp{opacity:1}
.fs-spin{position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;border:3px solid rgba(255,255,255,.25);border-top-color:#fff;animation:rot 1s linear infinite;z-index:5;display:none;pointer-events:none}
.fs.on:not(.started):not(.go) .fs-spin{display:block}
.fs.err .fs-spin{display:none}
.fs-err{position:absolute;inset:0;z-index:7;display:none;align-items:center;justify-content:center;text-align:center;background:rgba(0,0,0,.75);font-weight:500;padding:24px}
.fs.err .fs-err{display:flex}
.fs-act{display:flex;flex-direction:column;gap:16px;align-self:flex-end;padding-bottom:8px}
.fb{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;font-weight:500;color:var(--ink)}
.fb i{width:48px;height:48px;border-radius:50%;background:var(--chip);display:grid;place-items:center}
@media (hover:hover){.fb:hover i{background:var(--chip-h)}}
.fb .ico{width:24px;height:24px}
.fd-nav{position:fixed;right:24px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:16px;z-index:20}
.fd-nav button{width:56px;height:56px;border-radius:50%;background:var(--chip);display:grid;place-items:center}
@media (hover:hover){.fd-nav button:hover{background:var(--chip-h)}}
.fd-nav button:disabled{opacity:.3;cursor:default}
.unm{position:absolute;top:12px;left:12px;z-index:6;height:36px;border-radius:18px;padding:0 14px 0 10px;display:none;align-items:center;gap:6px;background:rgba(0,0,0,.55);color:#fff;font-weight:500;backdrop-filter:blur(6px)}
.unm .ico{width:20px;height:20px}
.fs.on.muted .unm{display:flex}
.fs-top{display:none}

/* ---------- 404 */
.nf{display:flex;flex-direction:column;align-items:center;text-align:center;padding:64px 24px 24px}
.nf svg.big{width:160px;height:120px;margin-bottom:24px}

/* ---------- responsive */
@media (max-width:1700px){.grid,.tgrid{--cols:4}}
@media (max-width:1312px){.grid,.tgrid{--cols:3}.row.r-sh{grid-auto-columns:calc((100% - 16px*4)/5)}}
@media (max-width:1016px){
  .wt,body.theater .wt{grid-template-columns:minmax(0,1fr);grid-template-areas:"p" "b" "s";padding:0 0 32px}
  .wt-s{padding:24px var(--pad) 0}
  .wt-b{padding:0 var(--pad)}
  .wt.vert .pl{border-radius:0}
  .plw .pl{border-radius:0}
  .wt.vert .plw{max-width:none;width:100%;margin:0}
  .wt.vert .pl{aspect-ratio:auto;height:min(78vh,177vw);height:min(72dvh,177vw);max-height:calc(100dvh - 56px)}
  .wt-more .grid{--cols:2}
  .panel.tr .pbd{height:auto;max-height:420px}
  body.theater .plw{margin:0}
  .plp{flex-direction:column}
  .plh{width:100%;position:relative;top:0;min-height:0;display:grid;grid-template-columns:320px 1fr;gap:0 24px}
  .plh .th{grid-row:1/6}
  .plh h1{margin-top:0}
  .plh .acts{max-width:360px}
}
@media (max-width:900px){.grid,.tgrid{--cols:2}.row.r-sh{grid-auto-columns:calc((100% - 16px*3)/4)}.mh-l,.mh-r{width:auto}.lr .th,.lr.ch .avw,.lr.plr .th{width:280px}}

/* phone */
@media (max-width:640px){
  :root{--mh:48px;--pad:12px}
  body{padding-bottom:calc(48px + env(safe-area-inset-bottom))}
  body.g-full,body.g-mini{--gw:0px}
  body.g-full .guide:not(.x),body.g-mini .mini{display:none}
  .mh{padding:0 4px 0 12px;gap:4px;justify-content:space-between}
  .mh-l .ib{display:none}
  .logo{padding:0;font-size:18px}
  .mh-c{display:none}.mh-r{width:auto}.mh-r a.ib{display:none}
  .sbtn{display:grid}
  body.sq .mh-c,body.srch .mh-c{display:flex;position:absolute;inset:0;background:#fff;padding:4px 8px 4px 4px;gap:4px;align-items:center;z-index:2}
  body.sq .sback,body.srch .sback{display:grid}
  body.sq .sb,body.srch .sb{max-width:none;margin:0;height:36px}
  body.sq .sb .in,body.srch .sb .in{border:0;box-shadow:none;background:#f2f2f2;border-radius:18px;padding:0 4px 0 14px;margin:0}
  body.sq .sb .in>.ico,body.srch .sb .in>.ico{display:none}
  body.sq .sb .go,body.srch .sb .go{display:none}
  body.srch .sug{position:fixed;top:48px;left:0;right:0;bottom:0;border-radius:0;box-shadow:none;max-height:none;padding:4px 0}
  body.srch .sug a{height:48px;font-size:15px}
  .pivot{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;border-top:1px solid var(--line);height:calc(48px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}
  .pivot a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:10px;line-height:12px;color:var(--ink)}
  .pivot a .ico{width:24px;height:24px}
  .pivot a.on .ico{stroke-width:2.3}
  .pivot a.on{font-weight:500}
  .chips{gap:8px;padding:8px 12px}
  .chip{height:32px;font-size:14px}
  .hero-w{padding:0}
  .hero{border-radius:0;margin-top:0;max-height:none}
  .hero .hx{left:12px;right:12px;bottom:12px;gap:12px}
  .hero .ttl{font-size:17px;line-height:23px}
  .hero .who{font-size:12px;margin-top:2px}
  .hero .acts{margin-top:10px}
  .hero .acts .pill{height:32px;padding:0 12px;font-size:13px}
  .hero .dots{display:none}
  .tonight{top:10px;left:10px;height:24px;font-size:12px}
  .grid{--cols:1;gap:24px;padding:8px 0 24px}
  .grid>.vc .th{border-radius:0}.grid>.vc::before{inset:0;border-radius:0}.ra{display:none!important}
  .grid>.vc .dt{padding:0 12px;margin-top:10px}
  .vc .tx{padding-right:4px}
  .vc .t{font-size:15px;line-height:21px;max-height:42px}
  .vc .m{font-size:12px;line-height:18px}
  .vc .m:first-of-type{margin-top:2px}
  .grid>.shelf{padding:0 12px}
  .row.r-sh{grid-auto-columns:calc((100% - 8px)/2.25);gap:8px}
  .row.r-v,.row.r-pl{grid-auto-columns:78%;gap:12px}
  .shh{margin-bottom:10px;min-height:32px}
  .shh h2{font-size:18px}
  .sc .t{font-size:14px;line-height:20px;padding-right:4px}
  .sc .m{font-size:12px}
  .ph{padding:16px 12px 4px;gap:16px}
  .ph .art{width:72px;height:72px}
  .ph .av.l{width:72px;height:72px;font-size:32px}
  .ph h1{font-size:24px;line-height:30px}
  .ph .m{font-size:13px;margin-top:2px}
  .tabs{padding:0 4px}
  .tabs a{font-size:14px;height:44px}
  .tgrid{--cols:1;gap:24px;padding:12px 12px 32px}
  .spgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 8px;padding:12px 8px 32px}
  .spc .av.l{width:88px;height:88px;font-size:36px}
  .spc b{font-size:13px;line-height:18px}
  .spc small{font-size:12px}
  .lst{padding:4px 0 32px}
  .lr{flex-direction:column;gap:10px;padding:0 0 16px}
  .lr .th,.lr.plr .th{width:100%;border-radius:0}
  .lr .tx{padding:0 12px}
  .lr .t{font-size:15px;line-height:21px}
  .lr .who{margin:6px 0 0}
  .lr .snip{margin-top:6px}
  .lr.ch{flex-direction:row;padding:8px 12px 16px}
  .lr.ch .avw{width:auto}
  .lr.ch .av.l{width:64px;height:64px;font-size:28px}
  .lr.ch .tx{padding:0}
  .rsum{padding:4px 12px 10px;font-size:13px}
  .lst .fixd{padding:4px 12px 8px}
  .plp{padding:0 0 24px;gap:8px}
  .plh{display:block;border-radius:0;padding:16px 12px}
  .plh .th{max-width:none}
  .plh h1{font-size:20px;line-height:26px;margin-top:14px}
  .plh .acts{max-width:none}
  .pll{padding:0 4px}
  .pr .th{width:120px}
  .pr .n{width:20px;font-size:12px}
  .pr .t{font-size:14px;line-height:20px}
  .wt{padding:0 0 24px}
  body.watching .mh{position:absolute}
  body.watching main{padding-top:48px}
  .plw{position:sticky;top:0;z-index:35;background:#000}
  .wt-t{font-size:18px;line-height:24px;margin-top:10px}
  .own .acts{margin-left:0;width:calc(100% + 24px);margin:0 -12px;padding:0 12px}
  .own .who{margin-right:0;flex:1}
  .wt-s{padding:0 12px}
  .nx{flex-direction:column;gap:10px;margin:0 -12px 20px}
  .nx .th{width:100%;border-radius:0}
  .nx .tx{padding:0 12px;display:flex;flex-direction:column}
  .nx .t{font-size:15px;line-height:21px;max-height:42px}
  .wt-more{display:none}
  .panel{margin:12px 0}
  .panel.tr{position:fixed;left:0;right:0;bottom:0;top:var(--trtop,calc(56.25vw));z-index:45;margin:0;border-radius:12px 12px 0 0;border:0;box-shadow:0 -4px 16px rgba(0,0,0,.12)}
  .panel.tr .pbd{flex:1;max-height:none;height:auto;padding-bottom:calc(56px + env(safe-area-inset-bottom))}
  .pl .cap span{font-size:14px}
  .ctl .vol input,.ctl [data-a=next].dsk,.ttime .ch{display:none}
  .cb{width:40px}
  .pl .cap{bottom:52px}
  .toast{left:12px;right:12px;bottom:64px;text-align:center}
  /* shorts */
  body.feeding .mh{display:none}
  body.feeding .pivot{background:#0f0f0f;border-color:#0f0f0f}
  body.feeding .pivot a{color:#fff}
  body.feeding main{padding-top:0}
  .feed{top:0;left:0;bottom:calc(48px + env(safe-area-inset-bottom));background:#000}
  .fs{height:calc(100vh - 48px - env(safe-area-inset-bottom));height:calc(100dvh - 48px - env(safe-area-inset-bottom));padding:0;gap:0;position:relative}
  .fs-v{height:100%;width:100%;max-width:none;aspect-ratio:auto;border-radius:0}
  .fs:not(.wide) .fs-m{left:50%;right:auto;width:auto;aspect-ratio:9/16;transform:translateX(-50%);min-width:100%;top:-60px;bottom:-60px}
  .fs-act{position:absolute;right:8px;bottom:84px;z-index:8;padding:0}
  .fb{color:#fff}
  .fb span{text-shadow:0 1px 3px rgba(0,0,0,.7)}
  .fb[data-a=mute]{display:none}
  .fb i{background:rgba(0,0,0,.35);backdrop-filter:blur(4px)}
  .fs-tx{right:72px;bottom:24px}
  .fd-nav{display:none}
  .fs-top{display:flex;position:fixed;top:0;left:0;right:0;z-index:20;height:52px;align-items:center;padding:0 4px;color:#fff;gap:4px;background:linear-gradient(180deg,rgba(0,0,0,.4),transparent);pointer-events:none}
  .fs-top>*{pointer-events:auto}
  .fs-top b{font-size:18px;font-weight:700;flex:1}
  @media (hover:hover){.fs-top .ib:hover{background:rgba(255,255,255,.15)}}
  .unm{top:60px}
}
@media (max-width:640px) and (orientation:landscape),(max-height:500px) and (max-width:1000px) and (orientation:landscape){
  .hero{max-height:72vh;aspect-ratio:auto;height:72vh}
}
@media (max-height:500px) and (orientation:landscape) and (hover:none){
  body.watching .plw{position:relative}
  .wt .pl{max-height:none;aspect-ratio:auto;height:calc(100dvh - 56px);width:min(100%,calc((100dvh - 56px)*16/9));margin:0 auto}
  .plw{background:#000}
}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01s!important;transition-duration:.01s!important;scroll-behavior:auto!important}}

/* player: muted-autoplay pill */
.pl .umb{position:absolute;top:12px;left:12px;z-index:6;height:36px;border-radius:18px;padding:0 14px 0 10px;display:none;align-items:center;gap:6px;background:rgba(0,0,0,.6);color:#fff;font-weight:500;backdrop-filter:blur(6px)}
.pl .umb .ico{width:20px;height:20px}
.pl.muted-auto .umb{display:flex}
/* shorts grid + teacher select chip */
.grid.sgrid{--cols:6;gap:32px 12px}
@media (max-width:1312px){.grid.sgrid{--cols:5}}
@media (max-width:1016px){.grid.sgrid{--cols:4}}
@media (max-width:640px){.grid.sgrid{--cols:2;gap:20px 8px;padding:8px 12px 24px}}
.chsel{position:relative;padding:0 8px 0 10px;cursor:pointer}
.chsel .ico{width:18px;height:18px}
.chsel select{appearance:none;-webkit-appearance:none;border:0;background:none;font:inherit;font-weight:500;color:inherit;cursor:pointer;outline:0;max-width:200px;padding-right:2px}
.chsel select option{color:#0f0f0f}
.sc .st.wd img{object-fit:cover}
.sc .st,.sc .m,.pc .m,.pc .stk,.pc .th,.tc .mos,.tc small,.lr .t,.lr .m,.nx .t,.ep .t,.pr .t,.pr .m,.ep .m,.lr .snip{display:block}
.sc .t,.pc .t{display:-webkit-box}
.lr .t,.nx .t,.ep .t,.pr .t{display:-webkit-box}
.lr .m{display:flex}
.pc .m2{display:inline-block}
.nx .m{display:block}
.pl:focus,.pl:focus-visible,.feed:focus-visible{outline:none}
.fixd{padding:0 0 12px;font-size:14px;line-height:22px;color:var(--ink2,#606060)}.fixd b{color:var(--ink);font-weight:500}.fixd a{color:var(--blue)}

/* =================== yt3 polish: touch, motion, sheets =================== */
html{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
a,button,[role=button],.chip,.pill,label{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}
.vc .t,.sc .t,.pc .t,.lr .t,.nx .t,.wt-t,.hero .ttl,.ph h1,.pt,.shh h2,.plh h1{letter-spacing:-.1px}
.hero .ttl,.ph h1,.pt,.plh h1{font-weight:700;letter-spacing:-.4px}
/* page enter */
@keyframes pin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes fin{from{opacity:0}to{opacity:1}}
main.enter>*:not(.cwrap):not(.feed):not(.fs-top){animation:pin .22s var(--ease) backwards}
main.enter>.wt{animation:fin .18s ease-out backwards}
main.enter>.wt .wt-b,main.enter>.wt .wt-s{animation:pin .26s var(--ease) backwards}
.grid.swap{animation:fin .2s ease-out both}
/* skeleton shimmer */
@keyframes shim{from{background-position:150% 0}to{background-position:-50% 0}}
.sk .th,.sk .av,.sk .t,.sk .m,.tl.sk .ts,.tl.sk .m{animation:shim 1.2s linear infinite!important;background:linear-gradient(100deg,var(--sk) 40%,#f8f7f4 50%,var(--sk) 60%)!important;background-size:200% 100%!important;opacity:1}
.th,.sc .st,.tc .mos span{background:var(--sk)}
/* pressed states (touch) */
.pill,.chip,.ib,.fb i,.cb,.ring,.pivot a .ico,.spc .av,.tc .mos{transition:transform .14s var(--ease),background-color .14s,opacity .14s}
.pill:active,.chip:active,.ib:active,.ring:active{transform:scale(.94)}
.fb:active i{transform:scale(.9)}
.cb:active{transform:scale(.88)}
.pivot a:active .ico{transform:scale(.86)}
.vc .th,.sc .st,.lr .th,.nx .th,.pr .th,.ep .th,.pc .th{transition:transform .16s var(--ease),filter .16s}
@media (hover:none){
  .vc:active .th,.sc:active .st,.lr:active .th,.nx:active .th,.pr:active .th,.pc a:active .th,.tc:active .mos{transform:scale(.975);filter:brightness(.92)}
  .vc:active .t,.lr:active .t,.nx:active .t{opacity:.7}
  .spc:active .av{transform:scale(.95)}
  .gi:active,.pr:active,.ep:active,.tl:active,.sug a:active{background:var(--hov)}
  .desc:active:not(.open){background:rgba(0,0,0,.08)}
}
/* bigger hit areas without bigger visuals */
.chip,.pill{position:relative}
.chip::after,.pill::after{content:'';position:absolute;left:0;right:0;top:-6px;bottom:-6px}
.chips{padding-top:12px;padding-bottom:12px}
/* toast */
.toast{opacity:0;transition:transform .22s var(--ease),opacity .22s}
.toast.on{opacity:1}
/* search overlay */
@keyframes sgin{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.sb.foc .sug.on{animation:sgin .16s var(--ease)}
/* player center controls (touch) */
.pl .ccen{position:absolute;inset:0;z-index:5;display:none;align-items:center;justify-content:center;gap:12%;pointer-events:none;background:rgba(0,0,0,.32);transition:opacity .2s}
.pl.touch.started .ccen{display:flex}
.pl.touch.started.idle .ccen{opacity:0}
.pl.touch.started.idle .ccen *{pointer-events:none!important}
.pl.ended .ccen,.pl.errored .ccen{display:none!important}
.ccen button{pointer-events:auto;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;color:#fff;background:rgba(0,0,0,.28)}
.ccen button.big{width:68px;height:68px;background:rgba(0,0,0,.42)}
.ccen .ico{width:26px;height:26px;stroke-width:2}
.ccen .big .ico{width:34px;height:34px;fill:#fff;stroke:#fff}
.pl.loading.started .ccen .big{opacity:0}
.pl .poster{transition:opacity .35s ease-out}
/* phone */
@media (max-width:640px){
  .ib{width:44px;height:44px}
  .mh{padding:0 2px 0 12px}
  .grid{gap:20px}
  .grid>.pc{padding:0 12px}
  .grid>.pc .th{border-radius:12px}
  .sb input{font-size:16px}
  .tq input{font-size:16px}
  .tq{height:40px;border-radius:20px}
  .nf h2{line-height:28px}
  .nf p{line-height:20px;max-width:320px}
  .empty{padding:48px 24px}
  .pivot{transition:background .2s}
  .pivot a{position:relative;min-height:48px}
  .pivot a::before{content:'';position:absolute;top:0;left:50%;width:0;height:2px;border-radius:2px;background:var(--gold);transform:translateX(-50%);transition:width .22s var(--ease)}
  .pivot a.on::before{width:24px}
  body.feeding .pivot a::before{background:#fff}
  /* transcript sheet */
  @keyframes shup{from{transform:translateY(100%)}to{transform:none}}
  .panel.tr{animation:shup .26s var(--ease)}
  .panel.tr.out{transform:translateY(100%);transition:transform .2s ease-in}
  .panel.tr .phd{position:relative;padding-top:18px}
  .panel.tr .phd::before{content:'';position:absolute;top:7px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:rgba(0,0,0,.18)}
  body.sheet{overflow:hidden}
  /* player settings as bottom sheet */
  .pmenu{position:fixed;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));top:auto;width:auto;z-index:210;background:#fff;color:var(--ink);border-radius:16px;padding:8px 0 8px;box-shadow:0 8px 32px rgba(0,0,0,.25);backdrop-filter:none;display:block;transform:translateY(calc(100% + 24px));transition:transform .24s var(--ease);visibility:hidden}
  .pmenu.open{transform:none;visibility:visible}
  .pmenu h4{color:var(--sub);opacity:1;padding:10px 20px 6px;font-size:14px}
  .pmenu button{color:var(--ink);height:48px;padding:0 20px;font-size:15px}
  .pmenu button .ico{stroke:var(--ink)}
  .pscrim{position:fixed;inset:0;z-index:205;background:rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:opacity .2s}
  body.psheet .pscrim{opacity:1;pointer-events:auto}
  body.psheet{overflow:hidden}
  .pl .cbar{left:4px;right:4px}
  /* shorts */
  .fs.wide .fs-wb{inset:0;top:0;transform:none;aspect-ratio:auto}
  .fs.wide .fs-po img{object-fit:cover}
  .fs.wide .fs-m{left:50%;right:auto;top:-60px;bottom:-60px;width:auto;aspect-ratio:16/9;transform:translateX(-50%);min-width:100%}
  .fs-act{gap:12px}
  .fb i{width:48px;height:48px}
  .unm{transition:opacity .2s}
}
html:has(body.feeding),body.feeding{overscroll-behavior:none}
@media (prefers-reduced-motion:reduce){main.enter>*,.panel.tr{animation:none!important}.pmenu{transition:none!important}}
/* paused short: hide YouTube's own title overlay under a soft dark band */
@media (max-width:767px){.fs::before{content:'';position:absolute;left:0;right:0;top:0;height:124px;z-index:3;pointer-events:none;background:linear-gradient(180deg,#000 0,#000 64px,transparent);opacity:0;transition:opacity .2s ease-out}.fs.started:not(.playing)::before{opacity:1}}
@media (max-width:767px){.wt.vert .pl{transition:height .25s var(--ease)}body.sheet .wt.vert .pl{height:44dvh}body.sheet .wt.vert .panel.tr{top:calc(48px + 44dvh)!important}}
/* posters fade in only once a real image has loaded (hides YouTube's grey stub on slow links) */
.hero .po img,.pl .poster img{opacity:0;transition:opacity .25s ease-out}.hero .po img.ld,.pl .poster img.ld{opacity:1}
.hero .po{background:linear-gradient(100deg,#1a1a1a 40%,#262626 50%,#1a1a1a 60%) 0 0/200% 100%;animation:shim 1.4s linear infinite}.hero.live .po{animation:none}
@media (prefers-reduced-motion:reduce){.hero .po{animation:none}}
.hero .po:has(img.ld){animation:none}
/* yt4: hero still state reads as intentional (slow drift) until the preview is really playing */
@keyframes kb{from{transform:scale(1.001)}to{transform:scale(1.07) translate(-1%,-1%)}}
.hero:not(.live) .po img.ld{animation:kb 16s ease-out forwards}
.hero.still .po img.ld{animation:kb 22s ease-in-out infinite alternate}
.hero.still .hprog{display:none}
@media (prefers-reduced-motion:reduce){.hero .po img.ld{animation:none!important}}
.pl .poster{transition:opacity .2s ease-out}
.hero .po{transition:opacity .35s ease-out}
.fs-po{transition:opacity .25s ease-out}
/* yt4: upright video: poster is the true upright frame; with the transcript open the player narrows to the video itself (no wide blurred frame at the sides) */
.wt.vert .pl .poster img{object-fit:contain}
@media (max-width:767px){.wt.vert .plw{background:#000}.wt.vert .pl{margin:0 auto;width:100%;transition:height .25s var(--ease),width .25s var(--ease)}body.sheet .wt.vert .pl{width:calc(44dvh*9/16)}}
/* YouTube's phone player shows its own centre pause button for ~4 s at start; ours sits on top of it */
.pl.ytc .ccen .big{background:rgba(12,12,12,.92)}
.fs-pp .ico+.ico{display:none}
.fs.ytc.playing .fs-pp{opacity:1;background:rgba(12,12,12,.92)}
.fs.ytc.playing .fs-pp .ico{display:none}.fs.ytc.playing .fs-pp .ico+.ico{display:block}
/* yt5: hero teaser clips (self-hosted, start instantly); poster on top fades once a clip shows frames */
.hero .cl{position:absolute;inset:0;z-index:1;pointer-events:none;transition:opacity .35s ease-out}
.hero .cl video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .35s ease-out;background:transparent}
.hero.cv .cl video.on{opacity:1}
.hero.cv .po{opacity:0}
.hero.live .cl{opacity:0}
.hero .fr{z-index:1}
.hero.live .fr{z-index:2}
.hero:not(.still) .po img.ld{animation:none}
/* yt5: watch page shows the card picture at once, with a thin moving bar instead of a black box */
.pl .poster img{position:absolute;inset:0}
.pl .poster img.lo{opacity:1;transition:none}
.pl .poster img.hi{opacity:0}.pl .poster img.hi.ld{opacity:1}
.pl .lbar{position:absolute;left:0;right:0;bottom:0;height:3px;z-index:6;overflow:hidden;pointer-events:none;display:none}
.pl .lbar::before{content:'';position:absolute;top:0;bottom:0;width:38%;left:-38%;background:linear-gradient(90deg,transparent,#f2a007 30%,#ff6a00 70%,transparent);animation:lbar 1.1s cubic-bezier(.4,0,.2,1) infinite}
@keyframes lbar{to{left:100%}}
.pl.loading:not(.started) .lbar,.pl:not(.shown):not(.errored):not(.blocked) .lbar{display:block}
.pl.loading:not(.started) .spin{display:none}
/* yt5: seek badge - target time and the words there, shown the moment you seek */
.pl .sbadge{position:absolute;left:50%;top:30%;transform:translate(-50%,-50%) scale(.96);z-index:7;pointer-events:none;opacity:0;transition:opacity .12s ease-out,transform .12s ease-out;display:flex;flex-direction:column;align-items:center;gap:6px;max-width:80%}
.pl .sbadge.on{opacity:1;transform:translate(-50%,-50%) scale(1)}
.pl .sbadge b{background:rgba(12,12,12,.86);color:#fff;font-size:20px;font-weight:700;padding:6px 14px;border-radius:20px;font-variant-numeric:tabular-nums}
.pl .sbadge span{background:rgba(12,12,12,.72);color:#fff;font-size:14px;line-height:19px;padding:5px 10px;border-radius:8px;text-align:center;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pl .sbadge span:empty{display:none}
/* yt5: one hidden warm player kept alive so a tapped video is already buffering */
#warm{position:fixed;left:0;top:0;width:640px;height:360px;opacity:0;pointer-events:none;z-index:-1;overflow:hidden;contain:strict}
#warm .media,#warm iframe{width:100%!important;height:100%!important;position:absolute;inset:0;border:0}
.fs-m .media{position:absolute;inset:0;width:100%;height:100%}
/* yt5: card picture morphs into the player */
::view-transition-group(vth){animation-duration:.26s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
::view-transition-old(root),::view-transition-new(root){animation-duration:.16s}
::view-transition-old(vth),::view-transition-new(vth){object-fit:cover;width:100%;height:100%;overflow:hidden}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}.pl .lbar::before{animation-duration:2.5s}.hero .cl video{transition:none}}
.hero-w.hsk{padding-top:112px}.hero-w.hsk+.grid{padding-top:16px!important}
@media (max-width:767px){.hero-w.hsk{padding-top:104px}}
