/* FunityHits web player. Brand tokens mirror FunityFitMusic/Theme/Brand.swift (dark-first). */
:root {
  --primary: #F58A0B;
  --primary-pressed: #DA6202;
  --accent: #F8B90A;
  --pink: #F546AF;
  --cyan: #27D2EA;
  --blue: #0A8FEA;
  --lime: #8CC80A;
  --bg: #070A0F;
  --surface: #111721;
  --elevated: #18202C;
  --border: #232C3A;
  --text: #F2F6FA;
  --muted: #A8B4C4;
  --danger: #E5484D;
  --brand-gradient: linear-gradient(135deg, var(--accent), var(--primary), var(--primary-pressed));
  --ring-gradient: linear-gradient(135deg, var(--blue), var(--cyan), var(--lime), var(--accent), var(--primary));
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px;
  --sidebar: 232px;
  --mini: 72px;
  --tabbar: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .fill { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

/* Layout */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; height: 100dvh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 20px 14px; display: flex; flex-direction: column; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.3px; padding: 0 6px; }
.brand img { border-radius: 50%; }
.brand b { color: var(--pink); }
.tabs { display: flex; flex-direction: column; gap: 4px; }
.tabs a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--muted); font-weight: 600; }
.tabs a:hover { background: var(--elevated); color: var(--text); }
.tabs a.active { background: var(--elevated); color: var(--primary); }
.view { overflow-y: auto; padding: 28px 32px calc(var(--mini) + 32px); outline: none; }
.view > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

/* Headers & toolbars */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 32px; letter-spacing: -.5px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 700; background: var(--elevated); color: var(--primary); }
.btn.primary { background: var(--brand-gradient); color: #0A0A0A; }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn.danger { color: var(--danger); }
.link { color: var(--primary); font-weight: 600; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 0 12px; }
.search svg { color: var(--muted); width: 18px; height: 18px; }
.search input { flex: 1; background: none; border: 0; padding: 10px 0; outline: none; }
.select { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 9px 12px; color: var(--text); }
.chips { display: flex; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-weight: 600; font-size: 14px; }
.chip.on { background: var(--elevated); color: var(--text); border-color: var(--primary); }

/* Song list */
.list { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 28px 48px 1fr minmax(0, .7fr) 64px 40px; align-items: center; gap: 12px; padding: 6px 8px; border-radius: var(--r-sm); cursor: pointer; }
.row:hover { background: var(--surface); }
.row.current .title { color: var(--primary); }
.row .num { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.row .meta { min-width: 0; }
.title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.row .album { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .dur { color: var(--muted); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.row .more { color: var(--muted); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.row .more:hover { background: var(--elevated); color: var(--text); }
.row .heart { color: var(--pink); width: 14px; height: 14px; vertical-align: -2px; margin-left: 6px; }
.row .heart path { fill: currentColor; stroke: none; }
.list-head { display: grid; grid-template-columns: 28px 48px 1fr minmax(0, .7fr) 64px 40px; gap: 12px; padding: 0 8px 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.list-head span:nth-child(5) { text-align: right; }
.eq { display: inline-flex; gap: 2px; height: 14px; align-items: flex-end; }
.eq i { width: 3px; background: var(--primary); animation: eq 1s infinite ease-in-out; }
.eq i:nth-child(2) { animation-delay: -.4s; } .eq i:nth-child(3) { animation-delay: -.7s; }
.eq.paused i { animation-play-state: paused; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }

/* Artwork tiles */
.art { width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--elevated) center/cover no-repeat; display: grid; place-items: center; overflow: hidden; flex: none; }
.art svg { width: 45%; height: 45%; color: rgba(255,255,255,.85); }

/* Playlist grid */
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 26px 0 12px; display: flex; justify-content: space-between; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); border-color: var(--primary); }
.card .art { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-sm); }
.card .badge { font-size: 11px; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: .6px; }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; border: 1px dashed var(--border); border-radius: var(--r-md); }
.empty h3 { color: var(--text); margin: 0 0 6px; }

/* Playlist detail header */
.hero { display: flex; gap: 24px; align-items: flex-end; margin-bottom: 22px; flex-wrap: wrap; }
.hero .art { width: 180px; height: 180px; border-radius: var(--r-md); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.hero .info { flex: 1; min-width: 240px; }
.hero .kind { color: var(--cyan); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.hero h1 { margin: 6px 0; font-size: 34px; letter-spacing: -.5px; overflow-wrap: anywhere; }
.hero p { margin: 0 0 14px; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.back:hover { color: var(--text); }
.reorder { display: inline-flex; gap: 2px; }
.reorder button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); border-radius: 6px; }
.reorder button:hover { background: var(--elevated); color: var(--text); }
.reorder svg { width: 16px; height: 16px; }

/* Settings */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 20px; margin-bottom: 18px; }
.panel h2 { margin: 0 0 4px; font-size: 18px; }
.panel p { color: var(--muted); margin: 4px 0 12px; }
.field { display: flex; gap: 10px; flex-wrap: wrap; }
.field input { flex: 1 1 320px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--lime); }
.status-dot.bad { background: var(--danger); }
.status-dot.busy { background: var(--accent); }
.about { display: flex; gap: 16px; align-items: center; }
.about img { width: 72px; height: 72px; border-radius: 50%; }

/* Mini player */
.mini { position: fixed; left: var(--sidebar); right: 0; bottom: var(--tabbar); height: var(--mini); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; background: rgba(17, 23, 33, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--border); z-index: 20; }
.mini-info { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; text-align: left; }
.mini-info .meta { min-width: 0; }
.mini-controls { display: flex; gap: 6px; align-items: center; }
.mini-progress { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: transparent; }
.mini-progress div { height: 100%; width: 0; background: var(--brand-gradient); }
.icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--text); position: relative; }
.icon:hover { background: rgba(255,255,255,.06); }
.icon.play { background: var(--brand-gradient); color: #0A0A0A; }
.icon.play:hover { filter: brightness(1.1); }
.icon.on { color: var(--primary); }
.icon i { position: absolute; font-style: normal; font-size: 9px; font-weight: 800; top: 9px; right: 7px; color: var(--primary); display: none; }
.icon.one i { display: block; }
.icon.big svg { width: 30px; height: 30px; }
.icon.huge { width: 68px; height: 68px; }
.icon.huge svg { width: 32px; height: 32px; }
.fav.on { color: var(--pink); }
.fav.on path { fill: currentColor; }

/* Now Playing */
.now { position: fixed; inset: 0; z-index: 40; background: radial-gradient(1200px 700px at 30% 0%, rgba(245, 138, 11, .22), transparent 60%), radial-gradient(900px 600px at 90% 100%, rgba(245, 70, 175, .18), transparent 60%), var(--bg); overflow-y: auto; animation: rise .25s ease-out; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.now-inner { max-width: 1100px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 24px calc(24px + var(--safe-b)); min-height: 100%; display: flex; flex-direction: column; }
.now-head { display: flex; align-items: center; justify-content: space-between; }
.now-context { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; text-align: center; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 12px; }
.now-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 24px 0; }
.now-art { width: 100%; max-width: 460px; aspect-ratio: 1; justify-self: center; border-radius: var(--r-lg); background: var(--elevated) center/cover no-repeat; box-shadow: 0 30px 80px rgba(0,0,0,.6); display: grid; place-items: center; transition: transform .3s; }
.now-art.paused { transform: scale(.94); }
.now-art svg { width: 30%; height: 30%; color: rgba(255,255,255,.85); }
.now-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.now-meta { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.now-meta > div { min-width: 0; }
.now-meta h2 { margin: 0; font-size: 28px; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-meta p { margin: 4px 0 0; color: var(--muted); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scrub input, .volume input { width: 100%; }
.times { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.transport { display: flex; align-items: center; justify-content: space-between; max-width: 420px; width: 100%; align-self: center; }
.volume { display: flex; align-items: center; gap: 10px; color: var(--muted); max-width: 420px; width: 100%; align-self: center; }
.volume svg { width: 18px; height: 18px; }
.queue { background: rgba(17, 23, 33, .7); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; max-height: 320px; overflow-y: auto; }
.queue-head { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 6px; }
.queue h3 { margin: 0; font-size: 15px; }
.queue ol { list-style: none; margin: 0; padding: 0; }
.queue li { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--r-sm); cursor: pointer; }
.queue li:hover { background: var(--elevated); }
.queue li .art { width: 36px; height: 36px; }
.queue li .meta { flex: 1; min-width: 0; }
.queue li.current .title { color: var(--primary); }
.queue li button { color: var(--muted); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.queue li button:hover { color: var(--text); background: var(--surface); }
.queue li button svg { width: 16px; height: 16px; }

/* Range inputs */
input[type=range] { -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer; --pct: 0%; }
input[type=range]::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--primary) var(--pct), rgba(255,255,255,.18) var(--pct)); }
input[type=range]::-moz-range-track { height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); }
input[type=range]::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--primary); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #fff; margin-top: -5px; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
input[type=range]::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #fff; }

/* Menus, sheets, toast */
.menu { position: fixed; z-index: 60; min-width: 220px; background: var(--elevated); border: 1px solid var(--border); border-radius: var(--r-md); padding: 6px; box-shadow: 0 16px 50px rgba(0,0,0,.55); }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border-radius: var(--r-sm); }
.menu button:hover, .menu button:focus-visible { background: var(--surface); outline: none; }
.menu button.danger { color: var(--danger); }
.menu svg { width: 18px; height: 18px; color: var(--muted); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 6px; }
.sheet { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 20px; }
.sheet-card { width: min(440px, 100%); max-height: 80dvh; overflow-y: auto; background: var(--elevated); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.sheet-card h2 { margin: 0 0 12px; font-size: 20px; }
.sheet-card input[type=text] { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 11px 12px; margin-bottom: 16px; }
.sheet-card .choices { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.sheet-card .choices button { text-align: left; padding: 11px 12px; border-radius: var(--r-sm); background: var(--surface); }
.sheet-card .choices button:hover { background: var(--bg); }
.sheet-card .row-btns { display: flex; gap: 10px; justify-content: flex-end; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar) + var(--mini) + 16px); z-index: 80; background: var(--elevated); border: 1px solid var(--border); padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.5); font-weight: 600; max-width: calc(100% - 32px); text-align: center; }


/* Song states: badges, songs that can't play right now */
.row.dim, .queue li.dim { opacity: .4; }
.badge { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; font-style: normal; }
.badge svg { width: 15px; height: 15px; }
.badge.cloud { color: var(--cyan); }
.badge.done { color: var(--lime); }
.badge.device { color: var(--muted); }
.badge.device svg { stroke-width: 2.2; }
.badge.busy b { width: 13px; height: 13px; border-radius: 50%; background: conic-gradient(var(--cyan) var(--p, 0%), rgba(255,255,255,.18) 0); -webkit-mask: radial-gradient(circle, transparent 3.5px, #000 4px); mask: radial-gradient(circle, transparent 3.5px, #000 4px); }
.badge-text { font-size: 11px; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: .6px; }

/* Offline banner */
.banner { display: flex; gap: 12px; align-items: center; background: rgba(248, 185, 10, .12); border: 1px solid rgba(248, 185, 10, .35); color: var(--text); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 18px; }
.banner svg { color: var(--accent); }

.chips { margin: 0 0 14px; flex-wrap: wrap; }
.actions.center { justify-content: center; margin-top: 16px; }

/* Smart lists (Favourites, Recently Played) */
.smart-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.smart { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; }
.smart:hover { border-color: var(--primary); }
.smart .meta { flex: 1; min-width: 0; }
.smart-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.smart-icon svg { width: 20px; height: 20px; }
.smart-icon svg path { fill: none; }
.smart .chev { color: var(--muted); font-size: 22px; }

/* Song picker */
.sheet-card { width: min(520px, 100%); }
.picker .search { margin-bottom: 10px; }
.picker-bar { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; padding: 2px 4px 8px; }
.picker-list { list-style: none; margin: 0 0 14px; padding: 0; max-height: min(46dvh, 420px); overflow-y: auto; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.picker-list li { padding: 0; }
.picker-list label { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: var(--r-sm); cursor: pointer; }
.picker-list label:hover { background: var(--surface); }
.picker-list .art { width: 40px; height: 40px; }
.picker-list .meta { min-width: 0; flex: 1; }
.picker-list input, .toggle input { width: 20px; height: 20px; accent-color: var(--primary); flex: none; }
.sheet-card .choices button { display: flex; align-items: center; gap: 10px; }
.sheet-card .choices svg { width: 18px; height: 18px; color: var(--primary); }
.btn:disabled { opacity: .45; cursor: default; filter: none; }

/* Now Playing extras */
.now-meta-btns { display: flex; gap: 2px; flex: none; }
.extras { display: flex; align-items: center; justify-content: space-between; max-width: 420px; width: 100%; align-self: center; color: var(--muted); }
.extras .icon { color: var(--muted); }
.extras .icon:hover { color: var(--text); }
.extras .icon svg { width: 26px; height: 26px; stroke-width: 1.8; }
.extras text { font-family: inherit; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--muted); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.pill svg { width: 16px; height: 16px; }
.pill:hover { color: var(--text); }
.pill.on { color: var(--primary); background: rgba(245, 138, 11, .15); }
.volume-hint { margin: 0; text-align: center; color: var(--muted); font-size: 13px; }
.queue li button:disabled { opacity: .25; cursor: default; }

/* Settings */
.settings-hero { text-align: center; padding: 6px 0 22px; }
.settings-hero img { width: 120px; height: 120px; border-radius: 50%; }
.settings-hero .name { font-size: 24px; font-weight: 800; margin-top: 8px; letter-spacing: -.3px; }
.settings-hero .name b { color: var(--pink); }
.settings-hero .tagline { font-size: 13px; font-weight: 800; background: var(--ring-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: 2px; }
.toggle { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; cursor: pointer; }
.toggle input { margin-top: 2px; }
.help p { margin: 6px 0; color: var(--muted); }
.help p b { color: var(--text); }
.about-links { display: flex; flex-direction: column; margin-top: 10px; border-top: 1px solid var(--border); }
.about-links a { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--border); color: var(--primary); font-weight: 600; }
.about-links a:last-child { border-bottom: 0; }
.about-links svg { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Drag and drop */
.drop-hint { display: none; }
body.dropping .drop-hint { display: grid; place-items: center; position: fixed; inset: 12px; z-index: 90; border: 3px dashed var(--primary); border-radius: var(--r-lg); background: rgba(7, 10, 15, .85); font-size: 22px; font-weight: 800; color: var(--primary); pointer-events: none; }

/* Phones and small windows: bottom tab bar, single-column layouts */
@media (max-width: 820px) {
  :root { --sidebar: 0px; --tabbar: calc(58px + var(--safe-b)); --mini: 64px; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--tabbar); padding: 0 0 var(--safe-b); flex-direction: row; border-right: 0; border-top: 1px solid var(--border); z-index: 30; }
  .brand { display: none; }
  .tabs { flex-direction: row; flex: 1; gap: 0; }
  .tabs a { flex: 1; flex-direction: column; gap: 2px; font-size: 11px; padding: 8px 0 6px; border-radius: 0; background: none !important; }
  .view { padding: max(16px, env(safe-area-inset-top)) 16px calc(var(--tabbar) + var(--mini) + 24px); }
  .page-head h1 { font-size: 28px; }
  .row, .list-head { grid-template-columns: 48px 1fr 36px; gap: 12px; }
  .row .num, .row .album, .row .dur, .list-head { display: none; }
  .mini { padding: 0 6px 0 12px; }
  .mini-controls { gap: 0; }
  .mini-controls .icon { width: 40px; }
  .only-wide { display: none; }
  .now-body { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .now-art { max-width: min(360px, 100%); }
  .now-meta h2 { font-size: 22px; }
  .hero .art { width: 120px; height: 120px; }
  .hero h1 { font-size: 26px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .toolbar .select { flex: 1; }
  .extras .pill { padding: 6px 11px; }
  .panel.keys { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
