:root{
  color-scheme:dark;
  --bg:#09090b;--surface:#151519;--surface-2:#202026;--surface-3:#2a2a31;
  --text:#f8f8fa;--muted:#9b9ba5;--accent:#f56a23;--accent-2:#ff955f;
  --line:rgba(255,255,255,.10);--shadow:rgba(0,0,0,.35);
  --hero-a:#5c2615;--hero-b:#1c1717;--hero-c:#101014;
  --nav-h:76px;--mini-h:64px;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;
}
:root[data-theme="light"]{
  color-scheme:light;
  --bg:#f5f5f7;--surface:#fff;--surface-2:#ededf2;--surface-3:#e2e2e8;
  --text:#111116;--muted:#666671;--line:rgba(0,0,0,.10);--shadow:rgba(0,0,0,.13);
  --hero-a:#7a321a;--hero-b:#2b1d1a;--hero-c:#17171b;
}
@media (prefers-color-scheme:light){
  :root[data-theme="system"]{
    color-scheme:light;
    --bg:#f5f5f7;--surface:#fff;--surface-2:#ededf2;--surface-3:#e2e2e8;
    --text:#111116;--muted:#666671;--line:rgba(0,0,0,.10);--shadow:rgba(0,0,0,.13);
    --hero-a:#7a321a;--hero-b:#2b1d1a;--hero-c:#17171b;
  }
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;width:100%;max-width:100%;overflow-x:hidden;background:var(--bg);color:var(--text)}
body{min-height:100dvh;touch-action:manipulation}
button,input,select{font:inherit;color:inherit}input,select{font-size:16px}button{border:0;background:none}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}[hidden]{display:none!important}
.shell{min-height:100dvh;padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px);background:var(--bg)}
body.has-mini .shell{padding-bottom:calc(var(--nav-h) + var(--mini-h) + env(safe-area-inset-bottom) + 42px)}
.top{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;min-height:calc(58px + env(safe-area-inset-top));padding:max(10px,env(safe-area-inset-top)) 16px 10px;background:var(--bg);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.14em;font-size:17px}.mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--accent);color:#fff}.round{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--surface-2);font-size:20px}
main{padding:14px 16px 28px;max-width:100%}.view{display:none;min-width:0}.view.active{display:block}
.hero{margin:4px 0 24px;padding:28px 22px;border-radius:26px;background:linear-gradient(145deg,var(--hero-a),var(--hero-b) 55%,var(--hero-c));min-height:225px;color:#fff;box-shadow:0 14px 34px var(--shadow)}
.hero h1,.heading h1{font-size:32px;line-height:1.05;margin:6px 0 10px;letter-spacing:-.035em}.hero p:not(.eyebrow){line-height:1.5;color:#efeff1;max-width:34ch}.eyebrow{margin:0;color:var(--accent-2);font-size:11px;font-weight:900;letter-spacing:.18em}.primary{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 17px;border-radius:14px;background:var(--accent);color:#fff;font-weight:800}.primary.full{width:100%}
.section,.heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:20px 0 12px}.section h2{margin:3px 0 0;font-size:22px}.heading>div{min-width:0}.text-btn{color:var(--accent-2);font-weight:800;padding:8px 0}
.strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(148px,42vw);gap:12px;overflow-x:auto;max-width:100%;padding:2px 1px 8px;scrollbar-width:none}.strip::-webkit-scrollbar,.tabs::-webkit-scrollbar,.chips::-webkit-scrollbar{display:none}
.stack{display:grid;gap:8px;min-width:0;max-width:100%}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;min-width:0}.grid.list{grid-template-columns:1fr;gap:8px}
.album{text-align:left;min-width:0;max-width:100%}.album img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:18px;background:var(--surface-2);box-shadow:0 8px 20px var(--shadow)}.album strong,.album small{display:block;margin-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.album small{color:var(--muted);margin-top:3px}.grid.list .album{display:grid;grid-template-columns:64px minmax(0,1fr);column-gap:12px;align-items:center;padding:7px;border-radius:15px;background:var(--surface)}.grid.list .album img{width:64px;height:64px;grid-row:1/3;border-radius:13px}.grid.list .album strong,.grid.list .album small{margin:0;min-width:0}
.row{width:100%;min-width:0;max-width:100%;display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:12px;align-items:center;padding:8px;border-radius:16px;background:var(--surface);text-align:left;overflow:hidden}.row img{width:52px;height:52px;border-radius:12px;object-fit:cover;background:var(--surface-2)}.row>span{min-width:0}.row strong,.row small{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row small{color:var(--muted);margin-top:4px}.row.current{outline:1px solid var(--accent)}
.tabs,.chips{display:flex;gap:7px;overflow-x:auto;max-width:100%;margin-bottom:12px;scrollbar-width:none}.tabs button,.chips button{flex:0 0 auto;min-height:36px;padding:0 12px;border-radius:999px;background:var(--surface);color:var(--muted);border:1px solid var(--line)}.tabs button.selected{background:var(--accent);border-color:var(--accent);color:#fff}
.segmented{display:flex;padding:3px;border-radius:12px;background:var(--surface-2)}.segmented button{min-height:34px;padding:0 11px;border-radius:9px;color:var(--muted);font-size:12px;font-weight:800}.segmented button.selected{background:var(--surface);color:var(--text);box-shadow:0 2px 8px var(--shadow)}
.search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;min-width:0}.search-form input,.sheet input,.sheet select,.search-box input{width:100%;min-width:0;min-height:46px;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:0 13px;outline:none}
.search-panel{position:fixed;z-index:80;left:0;right:0;top:calc(58px + env(safe-area-inset-top));padding:10px 16px 18px;background:var(--bg);border-bottom:1px solid var(--line);box-shadow:0 18px 30px var(--shadow);max-height:70dvh;overflow:auto}.search-box{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:8px}.search-box input{border:0;background:var(--surface)}.search-box button{width:34px;height:34px;border-radius:999px;background:var(--surface-2);color:var(--muted)}.search-results{display:grid;gap:8px;margin-top:10px}
.device-card,.settings{padding:14px;border-radius:18px;background:var(--surface);border:1px solid var(--line);margin-bottom:12px}.device-card p,.setting small,.settings-static small{color:var(--muted);line-height:1.4}.file-label{position:relative}.file-label input{position:absolute;inset:0;width:100%;height:100%;opacity:0}
.setting,.settings-static{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 2px;text-align:left;border-bottom:1px solid var(--line)}.setting:last-child,.settings-static:last-child{border-bottom:0}.setting span,.settings-static span{min-width:0}.setting small,.settings-static small{display:block;margin-top:4px}.settings-static{align-items:flex-start}.settings-static>span:first-child{flex:1}
.youtube-shell{margin-top:12px;border-radius:16px;overflow:hidden;background:#000}.youtube-shell iframe{display:block;width:100%;max-width:100%;aspect-ratio:16/9;border:0}
.mini{position:fixed;z-index:45;left:10px;right:10px;bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) - 2px);height:var(--mini-h);display:grid;grid-template-columns:48px minmax(0,1fr) 42px;align-items:center;gap:10px;padding:8px;border-radius:17px;background:var(--surface);border:1px solid var(--line);box-shadow:0 10px 28px var(--shadow);text-align:left}.mini img{width:48px;height:48px;border-radius:11px;object-fit:cover}.mini>span{min-width:0}.mini strong,.mini small{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini small{color:var(--muted);margin-top:3px}
.nav{position:fixed;z-index:46;left:0;right:0;bottom:0;height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding:7px 8px env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(4,1fr);background:var(--bg);border-top:1px solid var(--line)}.nav button{display:grid;place-items:center;align-content:center;gap:2px;color:var(--muted)}.nav button.selected{color:var(--accent-2)}.nav button span{font-size:19px}.nav small{font-size:10px;font-weight:800}
.player,.sheet{display:none}.player.open,.sheet.open{display:block;position:fixed;z-index:120;inset:0;background:var(--bg);overflow:auto;padding:max(12px,env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom))}.sheet.open{top:auto;max-height:82dvh;border-radius:24px 24px 0 0;padding-top:14px;box-shadow:0 -18px 60px var(--shadow)}.sheet h2{margin:8px 0 14px}.sheet label{display:block;margin:12px 0;color:var(--muted)}.sheet label input,.sheet label select{margin-top:7px;color:var(--text)}
.cover{width:min(82vw,420px);aspect-ratio:1;object-fit:cover;border-radius:24px;margin:18px auto;box-shadow:0 20px 50px var(--shadow)}.topline{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;text-align:center}.copy{text-align:center}.copy h2{margin:0;font-size:26px}.copy p{margin:7px 0;color:var(--muted)}.player-actions{display:flex;justify-content:center;gap:10px;margin:12px 0}.pill{min-height:38px;padding:0 14px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-weight:800}.pill.active{color:#ff5d76;border-color:#ff5d76}.seek{width:100%;accent-color:var(--accent)}.times{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.controls{display:grid;grid-template-columns:repeat(5,1fr);align-items:center;margin:10px 0}.controls button{height:52px;font-size:21px}.controls button.active{color:var(--accent-2)}.controls .big{width:58px;height:58px;justify-self:center;border-radius:50%;background:var(--text);color:var(--bg)}.player-tabs{display:grid;grid-template-columns:1fr 1fr;padding:3px;border-radius:13px;background:var(--surface);margin-top:10px}.player-tabs button{min-height:38px;border-radius:10px;color:var(--muted);font-weight:800}.player-tabs button.selected{background:var(--surface-2);color:var(--text)}.lyrics,.queue{min-height:220px;margin-top:10px;padding:14px;border-radius:16px;background:var(--surface);line-height:1.65}.lyrics p{margin:0 0 13px;color:var(--muted);font-size:19px;font-weight:750}.lyrics p.active{color:var(--text)}
.action{width:100%;min-height:56px;padding:0 12px;border-bottom:1px solid var(--line);background:var(--surface);display:flex;justify-content:space-between;align-items:center}.action:first-of-type{border-radius:14px 14px 0 0}.action:last-child{border-radius:0 0 14px 14px}.theme-check{font-weight:900;color:var(--accent)}
.modal{position:fixed;z-index:200;inset:0;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.78)}.card{width:min(100%,360px);padding:24px;border-radius:22px;background:var(--surface);text-align:center}.progress-track{height:7px;background:var(--surface-3);border-radius:99px;overflow:hidden}.progress-track div{height:100%;background:var(--accent)}
.toast{position:fixed;z-index:250;left:50%;bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 85px);transform:translateX(-50%);padding:10px 14px;border-radius:999px;background:var(--text);color:var(--bg);font-weight:800;max-width:86%;text-align:center}.status{padding:8px 16px;color:var(--muted);font-size:12px}.error{position:fixed;z-index:500;left:12px;right:12px;top:84px;padding:12px;border-radius:14px;background:#8b1e1e;color:#fff;white-space:pre-wrap;max-height:45dvh;overflow:auto}
@media(min-width:700px){main{max-width:760px;margin:0 auto}.player.open{left:50%;right:auto;width:min(640px,100%);transform:translateX(-50%)}.sheet.open{left:50%;right:auto;width:min(520px,100%);transform:translateX(-50%)}}
