/* Musify Pro layer (v1.9): loaded last. Nav pill, home order, queue fit, premium player, thin seekbar. */
@property --pc{syntax:'<color>';inherits:true;initial-value:#1e5fb4}
@property --pc2{syntax:'<color>';inherits:true;initial-value:#10306e}
@property --ac{syntax:'<color>';inherits:true;initial-value:#38bdf8}
@property --ac2{syntax:'<color>';inherits:true;initial-value:#2563eb}
:root{transition:--pc 1.2s ease,--pc2 1.2s ease,--ac .8s ease,--ac2 .8s ease;--lq-s:cubic-bezier(.34,1.56,.64,1)}

/* ---------- nav: ONE liquid pill (the .nv.on glass fill is removed) ---------- */
html body .nv.on{background:none!important;box-shadow:none!important;border-color:transparent!important}
html body .nv{position:relative;z-index:1}
html body .pill{transition:opacity .3s!important;border-radius:999px;z-index:0;
 background:radial-gradient(140% 160% at 28% -10%,rgba(255,255,255,.55),rgba(255,255,255,.16) 42%,rgba(255,255,255,.07)),linear-gradient(135deg,color-mix(in srgb,var(--ac) 38%,transparent),transparent 70%)!important;
 border:1px solid rgba(255,255,255,.4)!important;
 box-shadow:inset 0 1.5px 1px rgba(255,255,255,.85),inset 0 -9px 14px -8px rgba(0,0,0,.4),0 10px 26px -8px var(--ac)!important}
.nv.on svg{animation:nvb .6s var(--lq-s)}@keyframes nvb{0%{transform:scale(.7) translateY(3px)}100%{transform:none}}

/* ---------- home order ---------- */
html body #pz,html body #mfy{display:contents}
#view.hm{display:flex;flex-direction:column}
.hm>*{max-width:100%;min-width:0}
.hm>.seg,.hm>.ins{align-self:flex-start}
.hm .shw,.hm .pzw,.hm .pzm,.hm #pzmood>*{order:20}
.hm .hpls{order:2}.hm .pzg{order:3}.hm .pzq{order:4}.hm .hmf{order:5}.hm .hrp{order:6}.hm .pzm{order:7}.hm #more{order:99}
html body .srow{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
html body .srow>.seg{margin:0}
html body .srow>.btn{margin:0;padding:10px 14px;font-size:13px;white-space:nowrap}
/* imported playlists: Spotify-style 2-column tiles */
html body #view .hpls .sh{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible;margin:0;padding:10px 0 0}
@media(min-width:900px){html body #view .hpls .sh{grid-template-columns:repeat(4,minmax(0,1fr))}}
html body #view .hpls .card{display:flex!important;align-items:center;gap:9px;width:auto!important;height:56px;padding:0 8px 0 0!important;border-radius:10px!important;overflow:hidden;animation:none;contain:none}
html body #view .hpls .card .cv{width:56px!important;height:56px!important;flex:none;margin:0;border-radius:0!important}
html body #view .hpls .card b{margin:0!important;padding:0!important;font-size:12.5px;line-height:1.25;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hpls .card small,.hpls .card .qa,.hpls .card::before,.hpls .card::after,.hpls .cv::after,.hpls .shh .ar{display:none!important}
.pzg h1{font-size:30px}

/* ---------- queue / rows fit the phone ---------- */

html body #view .row{grid-template-columns:48px minmax(0,1fr) auto;gap:10px;padding:8px 6px}
html body #view .row>div:last-child{display:flex;align-items:center}
html body #view .row .ib{width:38px;height:38px;min-width:38px}
@media(min-width:800px){html body #view .row{grid-template-columns:30px 48px minmax(0,1fr) auto;gap:14px;padding:8px 12px}}
@media(max-width:700px){
  html body #view .row .ib{width:34px;height:34px;min-width:34px}
 html body #view .btn.o[data-px^=q],html body #view [data-hx=saveq]{font-size:12px;padding:8px 12px;margin:6px 6px 0 0!important}
 html body #view .shh{flex-wrap:wrap;gap:8px}html body #view .shh .btn{font-size:12px;padding:8px 12px}
 html body #view .hero{flex-wrap:wrap}}

/* queue rows: .qt was colliding with the home quick-tile glass style */
html body .qr .qt{display:block!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important;min-width:0;transform:none!important}
html body .qr .qt b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;-webkit-line-clamp:unset}
html body .qr .qt small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .qr{grid-template-columns:30px 46px minmax(0,1fr) auto auto;gap:8px;padding-right:4px}
html body .qr .cv{width:46px;height:46px}
html body .qr .gr{min-width:30px;width:30px}
html body .qr .ib:not(.gr){width:38px;height:38px;min-width:38px}
html body #fs .xt{flex-wrap:wrap!important;justify-content:center;overflow:visible!important;-webkit-mask:none!important;mask:none!important;gap:6px}html body #fs .xt button{flex:0 0 auto;min-height:34px;padding:6px 12px}

/* ---------- old player: thin seekbar, off-white play, big looping title/artist ---------- */
html body input.seekr,html body #fs .sk input.seekr{-webkit-appearance:none;appearance:none;height:20px!important;background:transparent!important;border:0!important;box-shadow:none!important;outline:0;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:0;margin:0;border-radius:0;cursor:pointer;touch-action:none}
html body input.seekr::-webkit-slider-runnable-track{height:3px;border:0;border-radius:3px;box-shadow:none;background:linear-gradient(90deg,#f4f1ea var(--v,0%),rgba(255,255,255,.22) var(--v,0%))}
html body input.seekr::-webkit-slider-thumb{-webkit-appearance:none;width:11px!important;height:11px!important;margin-top:-4px;border:0;border-radius:50%;background:#f4f1ea;box-shadow:none!important}
input.seekr::-moz-range-track{height:3px;border:0;border-radius:3px;background:rgba(255,255,255,.22)}
input.seekr::-moz-range-progress{height:3px;border-radius:3px;background:#f4f1ea}
input.seekr::-moz-range-thumb{width:11px;height:11px;border:0;border-radius:50%;background:#f4f1ea}
html body #fs .cb.m>.pp{background:#f4f1ea!important;color:#111!important}
html body #fs .fpn>.ti{min-width:0}
html body #fs .fpn>.ti>div{flex:1;min-width:0}
html body #fs .fpn>.ti .t{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
html body #fs .fpn>.ti small.t{font-size:19px;font-weight:700;line-height:1.4}
html body #fs .fpn>.ti .t.mq{text-overflow:clip;-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}

/* mic button + misc */
html body .sb .mic{position:absolute;right:6px;top:6px}
@media(prefers-reduced-motion:reduce){.nv.on svg{animation:none}}

/* ---------- full width, no cut edges ---------- */
html body main .top{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}
@media(min-width:900px){html body main .top{margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;border-radius:30px 30px 0 0}}
@media(max-width:899px){html body #app{padding-left:0;padding-right:0}html body main{border:0!important;border-radius:0!important;box-shadow:none!important;background:none!important}}


/* rows run to the screen edge (no clipping on #view) */
html body #view{overflow:visible;overscroll-behavior:auto}
html body main{overflow-x:hidden}
html body .srow>.seg{flex:none}html body .srow>.seg button{white-space:nowrap}
html body #view .hpls,html body #view .hpls .sh{width:100%!important;max-width:none!important;box-sizing:border-box;justify-self:stretch;align-self:stretch}html body #view .hpls .sh{justify-content:stretch}
@media(max-width:899px){html body #view .qtl{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px;max-width:none}}
html body #view.hm>.hpls,html body #view .hpls{width:auto!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}

/* import at the right, source colours, guest lock */
html body .srow{width:100%}html body .srow>.btn{margin-left:auto}
html body .srow .seg button[data-s].on{transition:background .3s,box-shadow .3s}
html body .srow .seg button[data-s=sp].on{background:linear-gradient(135deg,#1ed760,#12883e)!important;box-shadow:0 0 22px -2px #1ed760!important;color:#fff!important}
html body .srow .seg button[data-s=yt].on{background:linear-gradient(135deg,#ff2d2d,#a80012)!important;box-shadow:0 0 22px -2px #ff2d2d!important;color:#fff!important}
.lgm{display:none;width:100%;margin:14px 0;padding:18px;border-radius:18px;font:700 14px Manrope,sans-serif;color:#fff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);cursor:pointer}
html body.guest .lgm{display:block}
html body.guest :is(#pz,#mfy,#pzsm,#view .gr,[data-px=stats],[data-go=stats],.qtl [data-px*=mix]){display:none!important}

html body #view :is(.pzm,#pzmood){display:none!important}
.impw{margin:8px 0 0;padding:16px;border-radius:14px;font:600 13px Manrope,sans-serif;color:rgba(255,255,255,.7);background:rgba(255,255,255,.07);animation:impw 1.4s ease-in-out infinite alternate}@keyframes impw{to{opacity:.55}}
.hm>.shw{max-width:none}

/* shelves: full width to the right edge, never clipped */
html body #view .shw{max-width:none!important;content-visibility:visible}
html body #view .shw .sh::after{content:'';flex:0 0 16px}
html body #view.hm .shw{align-self:stretch}

/* lyrics dock = same look as the main player (seekbar + controls) */
html body #lyr .ldk{max-width:520px;padding:16px 18px 14px;gap:12px;border-radius:36px}
html body #lyr .ldk .sk{max-width:none;width:100%;color:#cfcfcf;font-size:12px;font-weight:600;gap:12px}
html body #lyr .ldk .sk input{flex:1;min-width:0}
html body #lyr .ldk .cb.m{width:100%;justify-content:space-between;gap:8px;margin:0}
html body #lyr .ldk .cb.m>.ib{width:46px;height:46px;background:#ffffff12;border:1px solid #ffffff22;border-radius:50%}
html body #lyr .ldk .cb.m>.pp{width:70px;height:70px;border:0;background:#f4f1ea!important;color:#111!important;box-shadow:inset 0 2px 0 #fffa,0 10px 30px -4px #c4c4c4cc}
html body #lyr .ldk .cb.m>.pp svg{width:28px;height:28px}
@media(max-height:700px){html body #lyr .ldk .cb.m>.pp{width:60px;height:60px}html body #lyr .ldk .cb.m>.ib{width:42px;height:42px}}
