/* WesterMoosiq Pro: top-bar tweaks, screen lock, float button, audio features */
#musheet{padding-top:calc(2px + env(safe-area-inset-top))!important}
#musheet .top{min-height:40px!important;margin-top:-8px}
.wp-tools{position:absolute;right:30px;top:0;display:flex;align-items:center}
.wp-tools button{width:38px;height:40px;padding:0;display:grid;place-items:center;background:transparent!important;border:0;color:#fff;box-shadow:none!important;-webkit-tap-highlight-color:transparent}
.wp-tools .i{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.wp-tools button.on{color:var(--mu-ac,#fff)}
.wp-tools button:active{opacity:.6}

/* lock screen */
#wplock{position:fixed;inset:0;z-index:2147483647;background:#000;display:none;align-items:center;justify-content:center;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
body.wp-locked #wplock{display:flex}
body.wp-locked>*:not(#wplock){visibility:hidden!important}
body.wp-locked{overflow:hidden!important;background:#000!important}
body.wp-locked *:not(#wplock):not(#wplock *){animation:none!important;transition:none!important}
#wplock .wpl-c{display:flex;flex-direction:column;align-items:center;gap:12px;color:#8a8a92;opacity:0;transition:opacity .25s}
#wplock.show .wpl-c{opacity:1}
#wplock svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#wplock p{margin:0;font:600 14px/1.3 Inter,system-ui,sans-serif;letter-spacing:.01em}

/* audio features (inside the 3-dot menu) */
.wp-sec{display:flex;flex-direction:column}
.wp-row{display:flex;align-items:center;justify-content:space-between;width:100%;padding:13px 0;border-bottom:1px solid var(--line,#ffffff1a);font-size:14.5px;font-weight:600;color:inherit;text-align:left;background:none}
.wp-row small{color:var(--mut,#999);font-weight:500;font-size:12.5px}
.wp-lb{margin:12px 0 7px;font-size:13px;font-weight:600;color:inherit}
.wp-note{margin:10px 0 0;font-size:12px;color:var(--mut,#999);line-height:1.4}
.wp-note.ok{color:#58d68d}
.wp-sec select{background:#ffffff14;color:inherit;border:0;border-radius:10px;padding:7px 10px;font:inherit;font-size:13px}
.wp-eq{display:flex;justify-content:space-between;gap:2px;margin:14px 0 4px}
.wp-eq label{display:flex;flex-direction:column;align-items:center;gap:6px;flex:1;font-size:10px;color:var(--mut,#999)}
.wp-eq input{writing-mode:vertical-lr;direction:rtl;width:26px;height:150px;margin:0;accent-color:var(--mu-ac,#fff)}
.wp-eq output{font-size:10px;color:inherit;font-weight:600}

/* visualizer */
#wpviz{display:none;width:100%;max-width:460px;height:38px;margin:0 0 4px;pointer-events:none}
body.wp-viz #wpviz{display:block}

/* old "Swipe up for lyrics" pill: gone (also covers a stale cached music-pro.js) */
.wp-hint{display:none!important}

/* ---------- lyrics: one live line under the artist + a 4-line card under the buttons ---------- */
/* the extra line takes ~36px, so the vinyl gives that back */
#musheet{--H:clamp(240px,calc(100dvh - 428px),540px)}

.mu-l1{display:flex;align-items:center;gap:10px;width:100%;max-width:460px;height:28px;margin:8px 0 0;padding:0;border:0;background:none;
 color:var(--npa,#fff);text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:opacity .2s}
.mu-l1:active{opacity:.7}
/* three tiny bars: they dance while the song plays */
.l1g{flex:none;display:flex;align-items:flex-end;gap:2px;width:14px;height:12px}
.l1g i{flex:1;height:100%;border-radius:2px;background:currentColor;transform-origin:bottom;transform:scaleY(.3);transition:transform .35s}
body.mu-playing .l1g i{animation:l1eq 1.05s ease-in-out infinite}
body.mu-playing .l1g i:nth-child(2){animation-delay:-.35s}
body.mu-playing .l1g i:nth-child(3){animation-delay:-.7s}
@keyframes l1eq{0%,100%{transform:scaleY(.25)}50%{transform:scaleY(1)}}
.l1w{position:relative;flex:1;min-width:0;height:100%;overflow:hidden;
 -webkit-mask-image:linear-gradient(90deg,#000 90%,transparent);mask-image:linear-gradient(90deg,#000 90%,transparent)}
.l1t{position:absolute;left:0;right:0;top:0;font:600 15.5px/28px Inter,system-ui,sans-serif;letter-spacing:-.005em;white-space:nowrap;
 color:color-mix(in srgb,var(--npa,#fff) 45%,#fff);animation:l1in .6s cubic-bezier(.2,.8,.2,1) both}
.l1t.out{animation:l1out .42s cubic-bezier(.5,0,.8,.4) both}
@keyframes l1in{from{opacity:0;transform:translateY(70%);filter:blur(5px)}to{opacity:1;transform:none;filter:blur(0)}}
@keyframes l1out{from{opacity:1;transform:none;filter:blur(0)}to{opacity:0;transform:translateY(-70%);filter:blur(5px)}}
.mu-l1[data-s=wait] .l1t,.mu-l1[data-s=none] .l1t,.mu-l1[data-s=plain] .l1t{opacity:.62}
.mu-l1[data-s=none] .l1g i,.mu-l1[data-s=load] .l1g i{animation:none!important;transform:scaleY(.3)}
.mu-l1[data-s=load] .l1t{animation:l1in .6s cubic-bezier(.2,.8,.2,1) both,l1pulse 1.4s ease-in-out .6s infinite}
@keyframes l1pulse{0%,100%{opacity:.45}50%{opacity:.85}}

.mu-l4{position:relative;display:block;width:100%;max-width:460px;margin:18px 0 0;padding:20px 20px 14px;border:0;border-radius:24px;overflow:hidden;
 text-align:left;color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;isolation:isolate;
 background:
  radial-gradient(120% 95% at 0% 0%,var(--npg,rgba(160,120,100,.4)),transparent 68%),
  linear-gradient(155deg,color-mix(in srgb,var(--npb,#6f5a4c) 90%,#000),color-mix(in srgb,var(--np1,#050505) 65%,var(--npb,#6f5a4c)));
 box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 16px 36px rgba(0,0,0,.3);
 transition:transform .25s cubic-bezier(.3,1.3,.5,1)}
.mu-l4[hidden]{display:none}
.mu-l4:not([hidden]){animation:l4pop .5s ease both}
.mu-l4:active{transform:scale(.985)}
@keyframes l4pop{from{opacity:0}to{opacity:1}}
.l4x{position:absolute;right:14px;top:14px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.14);color:#fff}
.l4x .i{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2}
.l4l{display:flex;flex-direction:column;gap:7px}
.l4p{display:block;opacity:0;animation:l4in .9s cubic-bezier(.4,0,.2,1) both;animation-delay:calc(var(--k,0)*110ms)}
.l4t{display:block;font:700 17px/1.3 Inter,system-ui,sans-serif;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.l4p.k0{--o:1;display:flex;align-items:flex-end;min-height:2.44em;margin-bottom:6px;padding-right:30px}
.l4p.k0 .l4t{font-size:clamp(20px,5.8vw,24px);font-weight:800;line-height:1.22;letter-spacing:-.02em;white-space:normal;
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;text-shadow:0 0 28px var(--npg,transparent)}
.l4p.k1{--o:.62}.l4p.k2{--o:.4}.l4p.k3{--o:.26}
/* soft left-to-right reveal (the 1-line lyric keeps its slide-up) */
@keyframes l4in{from{opacity:0;clip-path:inset(0 100% 0 0)}to{opacity:var(--o,1);clip-path:inset(0 0 0 0)}}

@media(prefers-reduced-motion:reduce){
 .l1t,.l1t.out,.mu-l4:not([hidden]),.l4p{animation-duration:.01s!important;animation-delay:0s!important}
 body.mu-playing .l1g i{animation:none}
}

.wp-q{font-size:13px;color:var(--mut,#999);padding:2px 0 6px}
