/* r43 YouTube Music + song lock */
.ytmpane .ytmh{display:flex;align-items:center;gap:8px;margin-top:14px}
.ytmlogo{display:inline-flex;width:20px;height:20px;border-radius:50%;background:#ff0033;color:#fff;font-size:9px;align-items:center;justify-content:center}
.ytms .srsp{position:relative;overflow:hidden;border-radius:8px}
.ytms .ytmpl{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:16px;text-shadow:0 1px 6px rgba(0,0,0,.8);pointer-events:none}
.ytmnoart{display:flex;width:56px;height:56px;align-items:center;justify-content:center;background:#1b2238;color:#9fb4ff;font-size:22px}
.ytms .sglock{display:none;align-self:center;margin-inline-start:auto;font-size:15px;opacity:.9;padding:0 8px}
.ytms[data-sg="blocked"] .sglock{display:block}
.ytms[data-sg="blocked"] .srstx b{opacity:.7}
.ytms[data-sg="wait"] .ytmpl{opacity:.5}
#tplayer .ytmcover{position:absolute;inset:0;z-index:5;pointer-events:none;display:flex;align-items:center;gap:14px;padding:14px 18px;background:radial-gradient(120% 90% at 20% 0%,#1d2a52,#07090f 70%)}
#tplayer .ytmcover img{width:auto;height:78%;aspect-ratio:1/1;object-fit:cover;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.6)}
#tplayer .ytmcover .ytmci{display:flex;flex-direction:column;gap:4px;min-width:0;color:#eef2ff;font-family:-apple-system,system-ui,sans-serif}
#tplayer .ytmcover b{font-size:16px;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#tplayer .ytmcover small{font-size:13px;opacity:.75}
#tplayer .ytmcover i{font-size:11px;font-style:normal;opacity:.55;margin-top:4px}
.sgsheet{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.6);display:flex;align-items:flex-end;justify-content:center;animation:vgIn .25s ease both}
.sgbox{position:relative;width:min(100%,520px);padding:18px 16px calc(18px + env(safe-area-inset-bottom));background:#0b0f1d;border-radius:20px 20px 0 0;border-top:1px solid rgba(122,167,255,.25);color:#eef2ff;font-family:-apple-system,system-ui,sans-serif}
.sgbox .sgx{position:absolute;top:8px;right:10px;width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:#eef2ff;font-size:22px;line-height:1;cursor:pointer}
.sgbox .sgt{margin:0 44px 12px 2px;display:flex;flex-direction:column;gap:2px}
.sgbox .sgt b{font-size:15px}.sgbox .sgt small{font-size:12px;opacity:.7}
.sgbox .vgcard{border-radius:16px}
.sgchk{display:flex;align-items:center;gap:10px;padding:18px 6px;font-size:14px;color:rgba(238,242,255,.85)}
.sgspin{width:18px;height:18px;border-radius:50%;border:2.5px solid rgba(122,167,255,.25);border-top-color:#7aa7ff;animation:sgsp 0.8s linear infinite}
@keyframes sgsp{to{transform:rotate(360deg)}}
#srp-s.ytmhas > p.srst:only-child{display:none}

/* r47 · YouTube-Music-style Songs view: albums shelf, songs list, album page, mini-player */
.ytx{background:#030303;border-radius:18px;padding:14px 0 10px;margin:8px 0 14px;color:#fff;font-family:"AE Sans",-apple-system,system-ui,sans-serif}
.ytx .yxhead{display:flex;align-items:center;gap:8px;padding:0 16px 6px}
.ytx .yxlogo{width:24px;height:24px;border-radius:50%;background:#f03;display:grid;place-items:center;flex:none}
.ytx .yxlogo svg{width:13px;height:13px;color:#fff;margin-left:1px}
.ytx .yxhead b{font-size:17px;font-weight:700;letter-spacing:-.01em}.ytx .yxhead small{margin-left:auto;color:#909090;font-size:11.5px}
.ytx .yxh{margin:14px 16px 10px;font-size:20px;font-weight:700;letter-spacing:-.01em;color:#fff}
.yxshelf{display:flex;gap:14px;overflow-x:auto;padding:0 16px 6px;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.yxshelf::-webkit-scrollbar{display:none}
.yxa{flex:0 0 148px;scroll-snap-align:start;display:flex;flex-direction:column;gap:3px;text-align:left;background:none;border:0;padding:0;color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .18s cubic-bezier(.2,.7,.2,1)}
.yxa:active{transform:scale(.95)}
.yxac{position:relative;display:block;width:148px;height:148px;border-radius:6px;overflow:hidden;background:#212121;margin-bottom:6px}
.yxac img{width:100%;height:100%;object-fit:cover;display:block}.yxac i,.yxart i{display:grid;place-items:center;width:100%;height:100%;font-style:normal;font-size:34px;color:#555}
.yxa b{font-size:14px;font-weight:600;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.yxa small{font-size:12.5px;color:#aaa;line-height:1.3;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.yxlist,.yalist{display:flex;flex-direction:column}
.yxs{position:relative;display:flex;align-items:center;gap:14px;padding:8px 16px;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .15s}
.yxs:active{background:rgba(255,255,255,.08)}
@media (hover:hover){.yxs:hover{background:rgba(255,255,255,.06)}}
.yxart{position:relative;flex:none;width:52px;height:52px;border-radius:4px;overflow:hidden;background:#212121}
.yxart img{width:100%;height:100%;object-fit:cover;display:block}
.yxpl{position:absolute;inset:0;display:none;place-items:center;background:rgba(0,0,0,.5);font-style:normal}.yxpl svg{width:22px;height:22px;color:#fff}
.yxs.now .yxpl{display:grid}.yxs.now .yxt b{color:#ff4e45}
.yxn{flex:none;width:22px;text-align:center;color:#aaa;font-size:15px;font-variant-numeric:tabular-nums}
.yxs.now .yxn{color:#ff4e45}
.yxt{display:flex;flex-direction:column;min-width:0;flex:1}
.yxt b{font-size:15px;font-weight:500;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.yxt small{font-size:12.5px;color:#aaa;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.yxlk,.yxwait{display:none;flex:none}
.yxs[data-sg="blocked"] .yxlk{display:grid;place-items:center;width:26px;height:26px;color:#7aa7ff}.yxlk svg{width:18px;height:18px}
.yxs[data-sg="blocked"] .yxt b,.yxs[data-sg="blocked"] .yxt small{opacity:.45}
.yxs[data-sg="wait"] .yxwait{display:block;width:6px;height:6px;border-radius:50%;background:#555;animation:yxp 1.2s ease-in-out infinite}
@keyframes yxp{50%{opacity:.25}}
/* album page */
html.ytalopen,html.ytalopen body{overflow:hidden}
.ytal{position:fixed;inset:0;z-index:2147482000;background:#030303;color:#fff;font-family:"AE Sans",-apple-system,system-ui,sans-serif;transform:translateX(100%);transition:transform .26s cubic-bezier(.2,.7,.2,1);display:flex;flex-direction:column}
.ytal.in{transform:none}
.yabar{position:absolute;top:0;left:0;right:0;z-index:2;padding:calc(env(safe-area-inset-top) + 8px) 8px 8px;background:linear-gradient(#030303cc,#03030300)}
.yaback{width:42px;height:42px;border-radius:50%;border:0;background:rgba(0,0,0,.35);color:#fff;display:grid;place-items:center;cursor:pointer}.yaback svg{width:24px;height:24px}
.yascroll{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:calc(env(safe-area-inset-bottom) + 96px)}
.yatop{display:flex;flex-direction:column;align-items:center;text-align:center;padding:calc(env(safe-area-inset-top) + 58px) 24px 10px;background:radial-gradient(90% 60% at 50% 0%,#2a2f45 0%,#030303 75%)}
.yacov{width:min(66vw,272px);height:min(66vw,272px);object-fit:cover;border-radius:8px;box-shadow:0 18px 44px rgba(0,0,0,.6);background:#212121}
.yanoart{display:grid;place-items:center;font-size:64px;color:#555}
.yatop h2{margin:18px 0 4px;font-size:24px;font-weight:700;line-height:1.2}
.yaart{margin:0;font-size:15px;font-weight:600;color:#fff}.yasub,.yainfo{margin:3px 0 0;font-size:13px;color:#aaa}
.yabtns{display:flex;gap:10px;margin:16px 0 6px}
.yaplay{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 26px 0 20px;border-radius:999px;border:0;background:#fff;color:#030303;font:600 15px/1 inherit;cursor:pointer;transition:transform .15s}
.yaplay:active{transform:scale(.95)}.yaplay:disabled{opacity:.4}.yaplay svg{width:22px;height:22px}
.yaload{display:grid;place-items:center;padding:30px}.yaempty{color:#aaa;text-align:center;padding:24px}
/* mini-player bar */
.yxbar{position:fixed;left:8px;right:8px;bottom:calc(env(safe-area-inset-bottom) + 8px);z-index:2147482500;display:flex;align-items:center;gap:4px;height:60px;padding:0 6px 0 8px;border-radius:12px;background:rgba(33,33,33,.96);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:0 8px 30px rgba(0,0,0,.55);color:#fff;font-family:"AE Sans",-apple-system,system-ui,sans-serif;overflow:hidden;animation:yxup .25s cubic-bezier(.2,.7,.2,1) both}
@keyframes yxup{from{transform:translateY(120%)}}
html.ytxbar body:has(.tabbar:not([hidden])) .yxbar{bottom:calc(env(safe-area-inset-bottom) + 66px)}
.yxbi{flex:1;min-width:0;display:flex;align-items:center;gap:10px;background:none;border:0;color:inherit;padding:0;text-align:left;cursor:pointer}
.yxbc{flex:none;width:44px;height:44px;border-radius:4px;overflow:hidden;background:#3a3a3a}.yxbc img{width:100%;height:100%;object-fit:cover;display:block}.yxbc i{display:grid;place-items:center;height:100%;font-style:normal}
.yxbt{display:flex;flex-direction:column;min-width:0}.yxbt b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yxbt small{font-size:12.5px;color:#aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.yxbp,.yxbn{flex:none;width:44px;height:44px;border:0;border-radius:50%;background:none;color:#fff;display:grid;place-items:center;cursor:pointer;transition:transform .12s}
.yxbp:active,.yxbn:active{transform:scale(.88)}.yxbp svg{width:30px;height:30px}.yxbn svg{width:24px;height:24px}
.yxbprog{position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,#f03,#f03) 0 0/0 100% no-repeat}
html.ytxbar main{padding-bottom:76px}
@media (prefers-reduced-motion:reduce){.ytal{transition:none}.yxbar{animation:none}}

/* r50 · Music tab home */
#ytmhome.ytx{margin:8px auto 18px!important;max-width:1100px;width:calc(100% - 24px);padding:14px 0 10px!important}
#ytmhome .yhchips{display:flex;gap:8px;overflow-x:auto;padding:6px 16px 4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
#ytmhome .yhchips::-webkit-scrollbar{display:none}
#ytmhome .yhchip{flex:none;appearance:none;border:0;border-radius:8px;background:rgba(255,255,255,.1);color:#fff;font:500 13.5px/1 "AE Sans",-apple-system,system-ui,sans-serif;height:32px;padding:0 12px;cursor:pointer;white-space:nowrap}
#ytmhome .yhchip.on{background:#fff;color:#030303}
#ytmhome .yaload{display:flex;justify-content:center;padding:34px 0}
#ytmhome .yxs[data-sg="blocked"],#ytmhome .yxs:has(img.vgbad),#ytmhome .yxa:has(img.vgbad){display:none!important}
