:root{
  --bg:#111111; --bg2:#171717; --card:#1d1d1d; --text:#f7f4f1; --muted:#777; --line:#2d2d2d; --accent:#ff4055; --soft:#bcbcbc;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
*{box-sizing:border-box} html,body{margin:0;min-height:100%;background:#0d0d0d;color:var(--text);font-family:"Space Grotesk",system-ui,-apple-system,"Segoe UI",Arial,sans-serif}body{display:flex;justify-content:center}button,input{font:inherit}button{color:inherit}.app-shell{width:min(100%,520px);min-height:100dvh;background:var(--bg);position:relative;overflow:hidden;box-shadow:0 0 70px rgba(0,0,0,.45)}
.topbar{position:fixed;z-index:50;top:0;width:min(100%,520px);height:64px;padding:12px 18px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;background:linear-gradient(180deg,rgba(17,17,17,.98),rgba(17,17,17,.86),transparent)}.brand{text-align:center;font-weight:800;font-size:13px;letter-spacing:.09em}.icon-btn{border:0;background:none;padding:9px;display:grid;place-items:center}.icon-btn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
main{padding-top:54px;padding-bottom:93px}.screen{display:none;min-height:calc(100dvh - 147px)}.screen.active{display:block}.player-stage{min-height:calc(100dvh - 145px);padding:38px 24px 22px;display:flex;flex-direction:column;align-items:center;position:relative}.heart-btn{position:absolute;right:24px;top:14px;border:0;background:none;padding:10px;z-index:2}.heart-btn svg{width:31px;height:31px;fill:transparent;stroke:var(--accent);stroke-width:2.1}.heart-btn.active svg{fill:var(--accent)}
.disc-wrap{width:min(64vw,290px);aspect-ratio:1;position:relative;margin:8px auto 18px}.progress-ring{position:absolute;inset:0;transform:rotate(-90deg)}.ring-base,.ring-progress{fill:none;stroke-width:4}.ring-base{stroke:#383838}.ring-progress{stroke:var(--accent);stroke-linecap:round;stroke-dasharray:753.98;stroke-dashoffset:753.98}.disc{position:absolute;inset:28px;border:16px solid #252525;border-radius:50%;overflow:hidden;background:#252525;box-shadow:0 0 0 10px #343434,0 15px 45px rgba(0,0,0,.35)}.disc img{width:100%;height:100%;object-fit:cover;filter:grayscale(1) contrast(1.05)}.time-main{font-weight:750;margin:4px 0 25px;font-size:17px}.artist{font-size:18px;color:#ddd;margin-bottom:6px}.song-title{font-family:"Space Grotesk",system-ui,sans-serif;font-size:clamp(30px,8vw,42px);line-height:1.06;text-align:center;margin:0;font-weight:700;letter-spacing:-.04em}.album-label{color:#777;text-transform:uppercase;letter-spacing:.12em;font-size:10px;margin-top:9px}
.wave-wrap{width:100%;height:118px;margin:20px 0 4px;display:flex;align-items:center;cursor:pointer}.wave{height:100%;width:100%;display:flex;gap:4px;align-items:center;justify-content:center}.bar{width:4px;border-radius:5px;background:#3a3a3a;transition:background .15s}.bar.played{background:#ececec}.progress-line-row{width:100%;display:grid;grid-template-columns:42px 1fr 42px;gap:8px;align-items:center;color:#888;font-size:11px}.progress-line-row span:last-child{text-align:right}#seek{width:100%;accent-color:var(--accent)}
.controls{width:100%;display:flex;justify-content:space-between;align-items:center;margin-top:20px;padding:0 7px}.control-btn,.play-btn{border:0;background:none;display:grid;place-items:center;padding:9px}.control-btn svg{width:27px;height:27px;fill:none;stroke:var(--accent);stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.control-btn.active{background:#27171a;border-radius:50%}.play-btn{width:64px;height:64px;background:var(--accent);border-radius:50%;box-shadow:0 8px 22px rgba(255,64,85,.2)}.play-btn svg{width:33px;height:33px;fill:white;stroke:white;stroke-width:1.5}.play-btn svg.pause path{display:none}.play-btn svg.pause:before{content:""}
.library-hero{height:285px;position:relative;background:url('artwork/flashbacks.jpg') center/cover no-repeat;margin-top:-54px;padding-top:54px}.library-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.17),rgba(17,17,17,.18) 45%,#111 100%)}.library-content{position:absolute;left:22px;right:80px;bottom:20px}.eyebrow{font-size:10px;letter-spacing:.16em;color:#aaa;font-weight:800}.library-content h2,.simple-heading h2{font-family:"Space Grotesk",system-ui,sans-serif;font-size:34px;margin:4px 0 6px;font-weight:700;letter-spacing:-.035em}.library-meta{display:flex;gap:8px;color:#aaa;font-size:11px}.shuffle-fab{position:absolute;right:22px;bottom:14px;width:54px;height:54px;border:0;border-radius:50%;background:var(--accent);display:grid;place-items:center}.shuffle-fab svg{width:25px;height:25px;fill:none;stroke:white;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.search-panel{padding:0 18px 10px;display:none}.search-panel.open{display:block}.search-panel input{width:100%;background:#1d1d1d;border:1px solid #2c2c2c;border-radius:12px;color:white;padding:12px 14px;outline:none}.filters{display:flex;gap:8px;padding:7px 18px 14px;overflow:auto;scrollbar-width:none}.filter{white-space:nowrap;border:1px solid #343434;background:#171717;color:#aaa;border-radius:99px;padding:8px 12px;font-size:11px}.filter.active{border-color:var(--accent);color:white;background:#221416}.track-list{padding:0 14px}.track-row{min-height:70px;display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;border-bottom:1px solid #202020;padding:8px 4px;cursor:pointer}.track-row.current{background:#161616}.track-art{width:48px;height:48px;border-radius:50%;object-fit:cover;filter:grayscale(1);border:2px solid #2c2c2c}.track-copy{min-width:0}.track-title{font-family:"Space Grotesk",system-ui,sans-serif;font-weight:800;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.track-sub{color:#777;font-size:11px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.track-end{display:flex;align-items:center;gap:9px;color:#777;font-size:11px}.track-heart{border:0;background:none;padding:5px}.track-heart svg{width:21px;height:21px;fill:#555;stroke:#555}.track-heart.active svg{fill:var(--accent);stroke:var(--accent)}.simple-heading{padding:30px 20px 20px}.empty{padding:30px 20px;color:#777;text-align:center}
.mini-player{position:fixed;z-index:45;bottom:calc(72px + var(--safe-bottom));width:min(100%,520px);height:62px;background:#1b1b1b;border-top:1px solid #2a2a2a;display:grid;grid-template-columns:48px 1fr 44px;align-items:center;gap:11px;padding:7px 14px}.mini-player[hidden]{display:none}.mini-player img{width:46px;height:46px;border-radius:50%;object-fit:cover;filter:grayscale(1)}.mini-copy{min-width:0;display:flex;flex-direction:column}.mini-copy strong{font-family:"Space Grotesk",system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini-copy span{font-size:10px;color:#777;margin-top:2px}.mini-play{border:0;background:none;padding:8px}.mini-play svg{width:27px;height:27px;fill:var(--accent);stroke:var(--accent)}
.bottom-nav{position:fixed;z-index:40;bottom:0;width:min(100%,520px);height:calc(72px + var(--safe-bottom));padding:7px 18px var(--safe-bottom);display:grid;grid-template-columns:repeat(3,1fr);background:rgba(17,17,17,.98);border-top:1px solid #232323}.nav-btn{border:0;background:none;color:#666;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:9px}.nav-btn svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.nav-btn.active{color:var(--accent)}
@media(min-width:520px){.app-shell{border-left:1px solid #242424;border-right:1px solid #242424}}
