/* YouTube-style frame: left sidebar on desktop + home layout. Stage 2, 2026-11-08. Phones unchanged. */
.ytside,.yt-burger{display:none}
@media (min-width:1100px){
  :root{--ytside-w:232px}
  .ytside-mini{--ytside-w:76px}
  .has-ytside .yt-burger{display:grid;place-items:center;width:40px;height:40px;margin-right:6px;border:0;border-radius:50%;background:transparent;color:#f1f1f1;cursor:pointer;flex:none}
  .has-ytside .yt-burger:hover{background:#272727}
  .has-ytside .yt-burger .ico{width:22px;height:22px}
  .has-ytside .ytside{display:block;position:fixed;z-index:40;left:0;top:var(--ps-head,64px);bottom:0;width:var(--ytside-w);overflow-y:auto;padding:8px 10px 24px;background:#0f0f0f;scrollbar-width:thin;scrollbar-color:#3f3f3f transparent}
  .has-ytside main,.has-ytside .ft{margin-left:var(--ytside-w)}
  .has-ytside .vr-nav{display:none}
  .has-ytside .hd{background:#0f0f0f}
  /* the ☰ button sits exactly above the sidebar icons (2026-11-09) */
  .has-ytside .hd .wrap{max-width:none;padding-left:13px;padding-right:24px}
  .ytside-mini .has-ytside .hd .wrap{padding-left:18px}
  .yts-sec{padding:6px 0 10px;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:6px}
  .yts-sec:last-child{border-bottom:0}
  .yts-sec h4{margin:6px 12px 6px;font-size:15px;font-weight:700;color:#f1f1f1}
  .yts-i{display:flex;align-items:center;gap:22px;height:40px;padding:0 12px;border-radius:10px;color:#f1f1f1;text-decoration:none;font-size:14px;white-space:nowrap;overflow:hidden}
  .yts-i:hover{background:#272727}
  .yts-i.on{background:#272727;font-weight:600}
  .yts-i .ico{width:22px;height:22px;flex:none}
  .yts-i span{overflow:hidden;text-overflow:ellipsis}
  .yts-cr img{width:24px;height:24px;border-radius:50%;object-fit:cover;flex:none}
  /* collapsed: icon rail like YouTube's mini guide */
  .ytside-mini .yts-full{display:none}
  .ytside-mini .yts-sec{border-bottom:0;padding:0}
  .ytside-mini .yts-i{flex-direction:column;justify-content:center;gap:4px;height:72px;padding:0;font-size:10px}
  .ytside-mini .yts-i span{max-width:64px}
}
/* home */
.ythome.page-top{padding-top:calc(var(--ps-head,64px) + 4px)}
.ythome-chipbar{position:sticky;top:var(--ps-head,64px);z-index:5;margin:0 0 6px;background:#0f0f0f}
.ythome-chips{margin:0;padding:12px 0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;scroll-behavior:smooth}
.ychip-nav{position:absolute;top:0;bottom:0;z-index:2;display:flex;align-items:center;width:84px;border:0;padding:0;color:#f1f1f1;cursor:pointer}
.ychip-nav[hidden]{display:none}
.ychip-nav.prev{left:0;justify-content:flex-start;background:linear-gradient(90deg,#0f0f0f 45%,rgba(15,15,15,0))}
.ychip-nav.next{right:0;justify-content:flex-end;background:linear-gradient(270deg,#0f0f0f 45%,rgba(15,15,15,0))}
.ychip-nav .ico{width:36px;height:36px;padding:8px;border-radius:50%;box-sizing:border-box}
.ychip-nav:hover .ico{background:#272727}
.ythome-chips::-webkit-scrollbar{display:none}
.ythome-chips a{flex:none}
.ythome-grid{padding-top:10px}
/* Bigger header search, YouTube proportions (2026-11-09). header-bar.js still moves it back into the row
   (.hb-search-flow) if the menu on the left would touch it. */
@media (min-width:1200px){
  html body .hd.vr-header .hb-search:not(.hb-search-flow){width:min(440px,30vw);max-width:440px}
  html body.has-ytside .hd.vr-header .hb-search:not(.hb-search-flow){width:min(640px,44vw);max-width:640px}
  html body .hd.vr-header .hb-search.hb-search-flow{flex:1 1 460px;max-width:460px;margin-left:24px}
}
@media (min-width:961px){
  .hd.vr-header .hb-search{height:42px;border-radius:21px;padding:0 18px;gap:10px}
  .hd.vr-header .hb-search input{font-size:15px}
  .hd.vr-header .hb-search .ico{width:19px;height:19px}
}
@media (min-width:1100px) and (max-width:1199px){
  .has-ytside .hd.vr-header .hb-search{flex-basis:420px;max-width:420px}
}
/* "Popular creators" on the home page: same spacing as the other rows (it used the old 64px section gap), 2026-11-09 */
.ythome>.sec{margin-top:0;padding:22px 0 18px;border-bottom:1px solid rgba(255,255,255,.14)}
.ythome>.sec .sec-h{margin-bottom:14px}
