/* Music Finder — minimal monochrome glass */
#wmf{position:fixed;inset:0;z-index:120;display:flex;flex-direction:column;background:radial-gradient(90% 50% at 50% -8%,#2a2a33 0%,#000000 62%);color:#fff;
 transform:translateY(100%);visibility:hidden;transition:transform .42s cubic-bezier(.2,.85,.25,1),visibility .42s;font-family:'Inter',system-ui,sans-serif}
#wmf.open{transform:none;visibility:visible}
body.wf-lock{overflow:hidden}
.wf-top{display:flex;align-items:center;justify-content:space-between;padding:calc(12px + env(safe-area-inset-top)) 14px 8px;min-height:60px}
.wf-top b{font-family:'Outfit','Inter',sans-serif;font-size:17px;font-weight:600;letter-spacing:-.01em}
.wf-ib{width:40px;height:40px;border-radius:50%;border:0;background:#ffffff14;color:#fff;display:grid;place-items:center;cursor:pointer;transition:transform .2s}
.wf-ib[hidden]{display:block;visibility:hidden}
.wf-ib:active{transform:scale(.88)}
.wf-ib .i,#wmf .i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.wf-b{flex:1;overflow-y:auto;padding:4px 18px calc(28px + env(safe-area-inset-bottom));max-width:560px;width:100%;margin:0 auto;-webkit-overflow-scrolling:touch}
.wf-sub{margin:6px 2px 16px;color:#9a9aa6;font-size:13.5px}

/* home */
.wf-hero{width:100%;display:flex;align-items:center;gap:16px;padding:18px;border-radius:28px;border:1px solid #ffffff1c;background:linear-gradient(135deg,#ffffff1c,#ffffff08);color:#fff;text-align:left;cursor:pointer;margin-bottom:12px;transition:transform .25s cubic-bezier(.3,1.4,.5,1)}
.wf-hero:active,.wf-tile:active{transform:scale(.96)}
.wf-hero b{display:block;font-family:'Outfit','Inter',sans-serif;font-size:22px;font-weight:600;letter-spacing:-.02em}
.wf-hero small{color:#a8a8b4;font-size:13px}
.wf-orb{flex:none;width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#000;box-shadow:0 0 0 8px #ffffff12,0 0 40px #ffffff30;animation:wf-breathe 3.2s ease-in-out infinite}
.wf-orb .i{width:26px;height:26px;stroke-width:1.9}
.wf-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.wf-tile{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:16px;border-radius:24px;border:1px solid #ffffff14;background:#ffffff0a;color:#fff;text-align:left;cursor:pointer;min-height:132px;transition:transform .25s cubic-bezier(.3,1.4,.5,1),background .2s}
@media(hover:hover){.wf-tile:hover,.wf-hero:hover{background:#ffffff16}}
.wf-ch{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#ffffff14;margin-bottom:auto}
.wf-tile b{font-size:15px;font-weight:650;letter-spacing:-.01em;margin-top:12px}
.wf-tile small{font-size:12px;color:#8f8f9c;line-height:1.35}
.wf-tile:last-child:nth-child(odd){grid-column:1/-1}

/* shared screens */
.wf-live,.wf-busy,.wf-err,.wf-rv,.wf-url{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:5vh;gap:6px}
#wmf h2{margin:14px 0 2px;font-family:'Outfit','Inter',sans-serif;font-size:23px;font-weight:600;letter-spacing:-.02em;line-height:1.25;max-width:20em}
.wf-err h2,.wf-busy h2{font-size:18px;font-weight:500;color:#e6e6ee}
.wf-tip{margin:0;color:#9a9aa6;font-size:13.5px}
.wf-time{margin:10px 0 4px;font-variant-numeric:tabular-nums;font-size:15px;color:#cfcfd8;letter-spacing:.06em}
.wf-btn{margin-top:14px;min-width:170px;padding:14px 26px;border-radius:99px;border:0;background:#fff;color:#000;font:600 15px 'Inter',sans-serif;cursor:pointer;transition:transform .2s}
.wf-btn:active{transform:scale(.94)}
.wf-btn.ghost{background:#ffffff14;color:#fff;margin-top:8px}

/* listening stage */
.wf-stage{position:relative;width:200px;height:200px;display:grid;place-items:center;margin:10px 0 6px}
.wf-stage i{position:absolute;inset:0;border-radius:50%;border:1.5px solid #ffffff55;opacity:0;animation:wf-ring 2.8s ease-out infinite}
.wf-stage i:nth-child(2){animation-delay:.9s}.wf-stage i:nth-child(3){animation-delay:1.8s}
.wf-core{--lv:0;position:relative;z-index:1;width:92px;height:92px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#000;transform:scale(calc(1 + var(--lv)*.32));transition:transform .08s linear;box-shadow:0 0 calc(30px + var(--lv)*60px) #ffffff55}
.wf-core .i{width:34px;height:34px;stroke-width:1.9}
.wf-core.big{width:84px;height:84px;margin-bottom:6px;transform:none;box-shadow:0 0 40px #ffffff2e}
.wf-core.off{background:#ffffff18;color:#fff;box-shadow:none}

/* sing extras */
.wf-lang{display:flex;gap:6px;overflow-x:auto;max-width:100%;padding:6px 2px;scrollbar-width:none}
.wf-lang::-webkit-scrollbar{display:none}
.wf-lang button{flex:none;padding:7px 13px;border-radius:99px;border:1px solid #ffffff1c;background:transparent;color:#bdbdc8;font:500 12.5px 'Inter',sans-serif;cursor:pointer}
.wf-lang button.on{background:#fff;color:#000;border-color:#fff}
.wf-lyr{margin:6px 0 0;min-height:44px;max-width:21em;color:#dcdce4;font-size:15px;line-height:1.45;font-style:italic}

/* review / url */
.wf-rv audio{width:100%;max-width:340px;margin:10px 0 4px;filter:invert(.92) hue-rotate(180deg)}
.wf-url input{width:100%;max-width:380px;margin-top:16px;padding:15px 18px;border-radius:18px;border:1px solid #ffffff22;background:#ffffff0c;color:#fff;font:15px 'Inter',sans-serif;outline:0}
.wf-url input:focus{border-color:#ffffffaa;box-shadow:0 0 0 4px #ffffff1c}

/* busy */
.wf-eq{display:flex;gap:6px;align-items:center;height:70px;margin-top:6vh}
.wf-eq i{width:6px;height:20px;border-radius:6px;background:#fff;animation:wf-eq 1s ease-in-out infinite}
.wf-eq i:nth-child(2){animation-delay:.12s}.wf-eq i:nth-child(3){animation-delay:.24s}.wf-eq i:nth-child(4){animation-delay:.36s}.wf-eq i:nth-child(5){animation-delay:.48s}

/* results */
.wf-list{display:flex;flex-direction:column;gap:8px}
.wf-r{display:flex;align-items:center;gap:13px;padding:10px 12px 10px 10px;border-radius:22px;border:1px solid #ffffff12;background:#ffffff09;color:#fff;text-align:left;cursor:pointer;animation:wf-in .45s cubic-bezier(.2,.9,.3,1) both;transition:transform .2s,background .2s}
.wf-r:nth-child(2){animation-delay:.05s}.wf-r:nth-child(3){animation-delay:.1s}.wf-r:nth-child(n+4){animation-delay:.15s}
.wf-r:active{transform:scale(.97)}
.wf-r.top{background:linear-gradient(135deg,#ffffff24,#ffffff0b);border-color:#ffffff2a;padding:14px}
.wf-art{position:relative;flex:none;width:56px;height:56px;border-radius:16px;overflow:hidden;background:linear-gradient(135deg,#3a3a46,#0a0a0a);display:grid;place-items:center}
.wf-r.top .wf-art{width:72px;height:72px;border-radius:20px}
.wf-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.wf-art em{font:600 22px 'Outfit',sans-serif;font-style:normal;color:#ffffffb0}
.wf-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.wf-tx b{font-size:15px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wf-r.top .wf-tx b{font-size:17px}
.wf-tx small{font-size:12.5px;color:#9a9aa6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wf-sc{font-size:11.5px;color:#bdbdc8;font-variant-numeric:tabular-nums}
.wf-pl{flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#000}
.wf-pl .i{width:15px;height:15px;margin-left:2px}
.wf-ft{display:flex;gap:10px;justify-content:center;margin-top:14px}.wf-ft .wf-btn{min-width:0;flex:1}

@keyframes wf-ring{0%{transform:scale(.5);opacity:.7}100%{transform:scale(1.15);opacity:0}}
@keyframes wf-breathe{50%{transform:scale(1.06)}}
@keyframes wf-eq{0%,100%{height:16px;opacity:.5}50%{height:64px;opacity:1}}
@keyframes wf-in{from{opacity:0;transform:translateY(14px)}}
@media(prefers-reduced-motion:reduce){#wmf *{animation:none!important}}
/* header: fourth button fits small phones */
header.wm-h .hr{gap:5px!important}
@media(max-width:380px){header.wm-h .ib{width:36px!important;height:36px!important}header.wm-h .wm-logo{font-size:21px!important}}
.wf-now{display:flex;justify-content:center;margin:2px 0 14px}
.wf-ok{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border-radius:99px;background:#ffffff14;color:#fff;font-size:13px;font-weight:600}
.wf-ok .i{width:16px;height:16px}
.wf-ft .wf-btn{min-width:0}

/* background-listening pill */
#wfpill{position:fixed;left:50%;bottom:calc(86px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:119;display:flex;align-items:center;border-radius:99px;background:#000000f2;border:1px solid #ffffff22;box-shadow:0 8px 28px #0009;color:#fff;font:600 13.5px 'Inter',sans-serif;backdrop-filter:blur(14px)}
#wfpill[hidden]{display:none}
#wfpill button{border:0;background:none;color:inherit;font:inherit;cursor:pointer}
.wfp-m{display:flex;align-items:center;gap:9px;padding:11px 6px 11px 16px}
.wfp-m i{width:9px;height:9px;border-radius:50%;background:#3b82f6;animation:wfp 1.2s ease-in-out infinite}
.wfp-x{width:38px;height:38px;display:grid;place-items:center;margin-right:3px;border-radius:50%}
.wfp-x .i{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
@keyframes wfp{50%{transform:scale(1.6);opacity:.4}}

/* history + unified listen */
#wmf [hidden]{display:none!important}
.wf-hh{display:flex;align-items:center;justify-content:space-between;margin:24px 4px 10px}
.wf-hh b{font-size:13.5px;font-weight:650;letter-spacing:-.01em;color:#c9c9d2}
.wf-hh button{border:0;background:none;color:#8f8f9c;font-size:12.5px;cursor:pointer;padding:4px 6px}
