Build Resonant v0.1 as a polished single-user Tauri/OpenSubsonic music player with demo playback, responsive library browsing, search, favorites, queue, server setup, tests, and docs

Hop-State: A_06FNDQKBYQT60ENR92VY6KG
Hop-Proposal: R_06FNDQJ64YSD232PJ7AT47R
Hop-Task: T_06FNDK6YRGJ4TEATJEC6EQR
Hop-Attempt: AT_06FNDK6YRMRZ1VHNB189B48
This commit is contained in:
2026-07-12 08:07:25 -07:00
committed by Hop
parent 45656d74f1
commit 38b140905f
33 changed files with 13341 additions and 0 deletions
+278
View File
@@ -0,0 +1,278 @@
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");
:root {
font-family: "DM Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: oklch(0.91 0.012 55);
background: oklch(0.145 0.012 38);
font-synthesis: none;
text-rendering: optimizeLegibility;
--ink: oklch(0.91 0.012 55);
--muted: oklch(0.67 0.018 45);
--faint: oklch(0.49 0.015 45);
--canvas: oklch(0.145 0.012 38);
--surface: oklch(0.18 0.014 38);
--surface-raised: oklch(0.225 0.017 39);
--line: oklch(0.31 0.018 42 / 0.66);
--accent: oklch(0.69 0.135 39);
--accent-bright: oklch(0.76 0.13 45);
--success: oklch(0.72 0.12 145);
--danger: oklch(0.68 0.16 24);
--focus: oklch(0.82 0.115 78);
--player-height: 94px;
color-scheme: dark;
}
* { box-sizing: border-box; }
html, body, #root { min-height: 100%; margin: 0; }
body { min-width: 320px; min-height: 100vh; overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
button, input[type="range"] { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: 0.65; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; border-radius: 8px; color: var(--canvas); background: var(--focus); transform: translateY(-150%); transition: transform 160ms cubic-bezier(.22, 1, .36, 1); }
.skip-link:focus { transform: translateY(0); }
.app-shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); height: 100vh; background: var(--canvas); }
.sidebar { position: relative; z-index: 30; display: flex; flex-direction: column; min-width: 0; padding: 25px 16px 16px; border-right: 1px solid var(--line); background: oklch(0.16 0.014 38); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 33px; font-size: 1.06rem; font-weight: 700; letter-spacing: -0.03em; }
.brand-mark { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; color: oklch(0.2 0.05 37); background: var(--accent-bright); box-shadow: 0 8px 30px oklch(0.59 0.13 37 / 0.18); }
.sidebar nav { display: grid; gap: 4px; }
.nav-label { margin: 0 10px 8px; color: var(--faint); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.nav-label--second { margin-top: 25px; }
.sidebar nav button { display: flex; width: 100%; align-items: center; gap: 11px; padding: 9px 10px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 0.86rem; font-weight: 500; text-align: left; transition: color 160ms ease, background 160ms ease; }
.sidebar nav button:hover { color: var(--ink); background: oklch(0.24 0.015 40 / 0.58); }
.sidebar nav button.active { color: var(--ink); background: oklch(0.28 0.029 39 / 0.72); }
.sidebar nav button.active svg { color: var(--accent-bright); }
.sidebar nav em { margin-left: auto; padding: 2px 6px; border: 1px solid var(--line); border-radius: 99px; color: var(--faint); font-size: 0.58rem; font-style: normal; letter-spacing: 0.05em; text-transform: uppercase; }
.server-pill { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; margin-top: auto; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: oklch(0.205 0.016 39); text-align: left; }
.server-pill:hover { border-color: oklch(0.42 0.03 43); background: oklch(0.225 0.018 39); }
.server-pill strong, .server-pill small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-pill strong { font-size: 0.72rem; font-weight: 600; }
.server-pill small { margin-top: 2px; color: var(--faint); font-size: 0.61rem; }
.server-pill > svg { color: var(--faint); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); box-shadow: 0 0 0 4px oklch(0.55 0.01 40 / 0.12); }
.status-dot--connected { background: var(--success); box-shadow: 0 0 0 4px oklch(0.72 0.12 145 / 0.12); }
.status-dot--connecting { background: var(--focus); animation: pulse 1.3s ease-in-out infinite; }
.status-dot--error { background: var(--danger); box-shadow: 0 0 0 4px oklch(0.68 0.16 24 / 0.12); }
main { min-width: 0; height: calc(100vh - var(--player-height)); overflow-y: auto; scrollbar-color: oklch(0.34 0.018 42) transparent; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; gap: 18px; height: 68px; padding: 0 34px; background: oklch(0.145 0.012 38 / 0.94); border-bottom: 1px solid oklch(0.28 0.015 40 / 0.5); }
.search-field { display: flex; width: min(380px, 48vw); align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid transparent; border-radius: 9px; color: var(--faint); background: oklch(0.2 0.013 39); transition: border-color 160ms ease, background 160ms ease; }
.search-field:focus-within { border-color: oklch(0.49 0.06 41); background: var(--surface-raised); }
.search-field input { width: 100%; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 0.82rem; }
.search-field input::placeholder { color: var(--faint); }
.search-field button { display: grid; padding: 2px; border: 0; background: transparent; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.avatar { display: grid; width: 31px; height: 31px; margin-left: 4px; place-items: center; border: 0; border-radius: 50%; color: oklch(0.21 0.03 40); background: oklch(0.77 0.075 61); font-size: 0.73rem; font-weight: 700; }
.menu-button { display: none !important; }
.icon-button { display: inline-grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 8px; color: var(--muted); background: transparent; transition: color 150ms ease, background 150ms ease, transform 150ms ease; }
.icon-button:hover { color: var(--ink); background: oklch(0.3 0.015 40 / 0.58); }
.icon-button:active { transform: scale(0.94); }
.icon-button.is-active { color: var(--accent-bright); background: oklch(0.69 0.135 39 / 0.12); }
.library-view { padding: 26px 34px 70px; }
.hero { position: relative; display: grid; min-height: 318px; grid-template-columns: minmax(0, 1fr) minmax(280px, 40%); align-items: center; overflow: hidden; margin-bottom: 45px; padding: 42px 58px; border-radius: 20px; background: oklch(0.26 0.045 36); box-shadow: 0 24px 80px oklch(0.06 0.02 35 / 0.26); isolation: isolate; }
.hero::before { position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 86% 20%, oklch(0.67 0.11 37 / 0.32), transparent 34%), linear-gradient(118deg, oklch(0.275 0.055 35), oklch(0.205 0.026 42)); content: ""; }
.hero-copy { position: relative; z-index: 2; max-width: 540px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-bright); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.hero h1 { max-width: 500px; margin: 12px 0 13px; color: oklch(0.95 0.014 59); font-size: clamp(2.4rem, 4.4vw, 4.2rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.98; }
.hero p { max-width: 51ch; margin: 0; color: oklch(0.76 0.018 51); font-size: 0.96rem; line-height: 1.62; }
.hero-actions { display: flex; gap: 10px; margin-top: 27px; }
.button-primary, .button-secondary, .button-quiet { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border-radius: 9px; font-size: 0.78rem; font-weight: 700; transition: transform 150ms ease, background 150ms ease, border-color 150ms ease; }
.button-primary { border: 1px solid var(--accent); color: oklch(0.18 0.02 37); background: var(--accent-bright); }
.button-primary--light { border-color: oklch(0.95 0.01 60); color: oklch(0.18 0.02 37); background: oklch(0.95 0.01 60); }
.button-primary:hover { transform: translateY(-1px); background: oklch(0.81 0.12 48); }
.button-secondary { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.button-secondary:hover { border-color: oklch(0.48 0.025 42); background: var(--surface-raised); }
.button-quiet { border: 1px solid oklch(0.79 0.03 50 / 0.22); color: oklch(0.88 0.012 56); background: oklch(0.15 0.02 37 / 0.25); }
.button-quiet:hover { background: oklch(0.74 0.03 50 / 0.13); }
.hero-art { position: relative; display: grid; min-height: 236px; place-items: center; }
.hero-art .cover { position: relative; z-index: 2; transform: rotate(3deg); box-shadow: -20px 28px 70px oklch(0.08 0.02 38 / 0.48); }
.orbit { position: absolute; width: 290px; height: 290px; border: 1px solid oklch(0.82 0.08 48 / 0.13); border-radius: 50%; }
.orbit-one { transform: translate(38px, -13px); }
.orbit-two { width: 210px; height: 210px; transform: translate(-65px, 18px); }
.content-section { margin-bottom: 45px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading h2 { margin: 5px 0 0; color: var(--ink); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.035em; }
.section-heading > button { display: flex; align-items: center; gap: 3px; padding: 5px 0; border: 0; color: var(--muted); background: transparent; font-size: 0.73rem; }
.section-heading > button:hover { color: var(--ink); }
.section-heading > span { color: var(--faint); font-size: 0.72rem; }
.album-grid { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); gap: clamp(14px, 2vw, 25px); }
.album-tile { position: relative; min-width: 0; }
.album-tile > div:not(.cover) { min-width: 0; padding-top: 11px; }
.album-tile h3, .album-tile p { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.album-tile h3 { color: var(--ink); font-size: 0.83rem; font-weight: 600; }
.album-tile p { margin-top: 4px; color: var(--faint); font-size: 0.68rem; }
.album-tile > .icon-button { position: absolute; right: -5px; bottom: 12px; opacity: 0; }
.album-tile:hover > .icon-button, .album-tile:focus-within > .icon-button { opacity: 1; }
.cover-button { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; background: transparent; }
.cover-button:hover .cover { transform: translateY(-4px); box-shadow: 0 18px 38px oklch(0.06 0.02 38 / 0.36); }
.cover-play { position: absolute; right: 10px; bottom: 10px; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: oklch(0.16 0.02 38); background: oklch(0.93 0.01 60); box-shadow: 0 8px 24px oklch(0.08 0.02 35 / 0.45); opacity: 0; transform: translateY(7px); transition: opacity 180ms ease, transform 180ms cubic-bezier(.22, 1, .36, 1); }
.cover-button:hover .cover-play, .cover-button:focus-visible .cover-play { opacity: 1; transform: translateY(0); }
.cover { position: relative; display: grid; aspect-ratio: 1; overflow: hidden; place-items: center; border-radius: 9px; isolation: isolate; transition: transform 180ms cubic-bezier(.22, 1, .36, 1), box-shadow 180ms ease; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover span { position: relative; z-index: 2; color: oklch(0.94 0.018 60 / 0.77); font-size: 1.55rem; font-weight: 700; letter-spacing: -0.1em; text-transform: uppercase; }
.cover i { position: absolute; width: 56%; height: 56%; border: 1px solid oklch(0.92 0.04 60 / 0.3); border-radius: 50%; box-shadow: 0 0 0 18px oklch(0.9 0.04 60 / 0.06), 0 0 0 38px oklch(0.9 0.04 60 / 0.04); }
.cover--medium { width: 100%; }
.cover--small { width: 42px; min-width: 42px; border-radius: 7px; }
.cover--small span { font-size: 0.68rem; }
.cover--large { width: min(250px, 27vw); }
.cover--large span { font-size: 2.4rem; }
.cover--ember { background: radial-gradient(circle at 68% 28%, oklch(0.78 0.12 53), transparent 23%), linear-gradient(145deg, oklch(0.56 0.16 25), oklch(0.25 0.055 15)); }
.cover--moss { background: radial-gradient(circle at 30% 65%, oklch(0.76 0.08 113), transparent 21%), linear-gradient(135deg, oklch(0.43 0.09 145), oklch(0.21 0.035 128)); }
.cover--dusk { background: radial-gradient(circle at 72% 32%, oklch(0.72 0.1 305), transparent 18%), linear-gradient(145deg, oklch(0.44 0.1 281), oklch(0.21 0.04 300)); }
.cover--clay { background: radial-gradient(circle at 65% 75%, oklch(0.79 0.09 65), transparent 19%), linear-gradient(150deg, oklch(0.58 0.12 42), oklch(0.24 0.05 31)); }
.cover--indigo { background: radial-gradient(circle at 34% 28%, oklch(0.69 0.12 247), transparent 18%), linear-gradient(140deg, oklch(0.4 0.13 261), oklch(0.18 0.04 270)); }
.cover--sand { background: radial-gradient(circle at 68% 30%, oklch(0.86 0.065 84), transparent 22%), linear-gradient(145deg, oklch(0.67 0.08 74), oklch(0.29 0.045 53)); }
.track-list { overflow: hidden; border-top: 1px solid var(--line); }
.track-row { display: grid; grid-template-columns: minmax(245px, 1.5fr) minmax(130px, 1fr) 34px 48px 34px; min-height: 57px; align-items: center; border-bottom: 1px solid oklch(0.28 0.015 40 / 0.55); color: var(--muted); transition: background 140ms ease; }
.track-row:hover, .track-row:focus-within { background: oklch(0.21 0.015 39 / 0.72); }
.track-row.is-current { color: var(--accent-bright); background: oklch(0.23 0.025 39 / 0.62); }
.track-main { display: grid; min-width: 0; height: 100%; grid-template-columns: 31px 42px minmax(0, 1fr); align-items: center; gap: 11px; padding: 7px 12px 7px 0; border: 0; color: inherit; background: transparent; text-align: left; }
.track-main span:last-child { min-width: 0; }
.track-main strong, .track-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-main strong { color: var(--ink); font-size: 0.78rem; font-weight: 600; }
.is-current .track-main strong { color: var(--accent-bright); }
.track-main small { margin-top: 3px; color: var(--faint); font-size: 0.66rem; }
.track-number { display: grid; place-items: center; color: var(--faint); font-size: 0.65rem; font-variant-numeric: tabular-nums; }
.track-album { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.7rem; }
.track-time { color: var(--faint); font-size: 0.68rem; font-variant-numeric: tabular-nums; }
.track-row .icon-button { width: 29px; height: 29px; }
.track-row .icon-button.is-active { background: transparent; }
.empty-state { display: grid; min-height: 220px; place-items: center; align-content: center; border-top: 1px solid var(--line); color: var(--faint); text-align: center; }
.empty-state h3 { margin: 12px 0 3px; color: var(--ink); font-size: 0.9rem; }
.empty-state p { margin: 0; font-size: 0.75rem; }
.settings-view { width: min(760px, calc(100% - 64px)); margin: 70px auto 120px; }
.settings-view h1 { margin: 10px 0 9px; font-size: 2.35rem; font-weight: 600; letter-spacing: -0.055em; }
.settings-view > p { max-width: 58ch; margin: 0 0 32px; color: var(--muted); line-height: 1.6; }
.connection-form { display: grid; gap: 20px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.connection-form label { display: grid; gap: 8px; color: var(--muted); font-size: 0.71rem; font-weight: 600; }
.connection-form input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: oklch(0.145 0.012 38); font-size: 0.82rem; }
.connection-form input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px oklch(0.82 0.115 78 / 0.09); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; }
.connection-feedback { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--muted); background: oklch(0.21 0.015 39); font-size: 0.73rem; }
.connection-feedback--error { color: oklch(0.81 0.09 25); background: oklch(0.28 0.055 24); }
.connection-feedback--connected { color: oklch(0.81 0.08 145); background: oklch(0.26 0.05 145); }
.privacy-note { display: flex; gap: 14px; margin-top: 20px; padding: 7px 14px; color: var(--muted); }
.privacy-note svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent-bright); }
.privacy-note strong { color: var(--ink); font-size: 0.78rem; }
.privacy-note p { max-width: 64ch; margin: 5px 0 0; font-size: 0.72rem; line-height: 1.55; }
.player-bar { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; display: grid; height: var(--player-height); grid-template-columns: minmax(210px, 1fr) minmax(320px, 1.5fr) minmax(210px, 1fr); align-items: center; gap: 18px; padding: 10px 21px; border-top: 1px solid oklch(0.37 0.025 42 / 0.75); background: oklch(0.175 0.016 38); box-shadow: 0 -16px 45px oklch(0.06 0.018 35 / 0.22); }
.now-playing { display: flex; min-width: 0; align-items: center; gap: 11px; padding: 0; border: 0; background: transparent; text-align: left; }
.now-playing > span { min-width: 0; }
.now-playing strong, .now-playing small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-playing strong { color: var(--ink); font-size: 0.75rem; }
.now-playing small { margin-top: 3px; color: var(--faint); font-size: 0.65rem; }
.now-playing > svg { flex: 0 0 auto; margin-left: 6px; color: var(--muted); }
.now-playing > svg.filled-heart { color: var(--accent-bright); }
.transport { display: grid; justify-items: center; gap: 7px; }
.transport-buttons { display: flex; align-items: center; gap: 8px; }
.play-button { display: grid; width: 37px; height: 37px; margin: 0 3px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: oklch(0.18 0.02 38); background: oklch(0.93 0.01 58); transition: transform 150ms ease, background 150ms ease; }
.play-button:hover { transform: scale(1.05); background: oklch(0.98 0.008 58); }
.scrubber { display: grid; width: min(520px, 100%); grid-template-columns: 35px minmax(80px, 1fr) 35px; align-items: center; gap: 8px; color: var(--faint); font-size: 0.59rem; font-variant-numeric: tabular-nums; }
.scrubber span:last-child { text-align: right; }
input[type="range"] { width: 100%; height: 3px; margin: 0; appearance: none; border-radius: 99px; background: linear-gradient(to right, var(--ink) var(--range-progress, 0%), oklch(0.37 0.02 42) var(--range-progress, 0%)); }
input[type="range"]::-webkit-slider-thumb { width: 10px; height: 10px; appearance: none; border: 0; border-radius: 50%; background: var(--ink); opacity: 0; transition: opacity 140ms ease; }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:focus-visible::-webkit-slider-thumb { opacity: 1; }
.player-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--muted); }
.player-tools input { max-width: 90px; }
.queue-panel { position: fixed; z-index: 45; top: 0; right: 0; bottom: var(--player-height); width: min(370px, 92vw); padding: 25px; border-left: 1px solid var(--line); background: oklch(0.185 0.016 39); box-shadow: -24px 0 70px oklch(0.06 0.018 36 / 0.36); transform: translateX(105%); transition: transform 240ms cubic-bezier(.22, 1, .36, 1); }
.queue-panel.is-open { transform: translateX(0); }
.queue-header { display: flex; align-items: flex-start; justify-content: space-between; }
.queue-header h2 { margin: 5px 0 0; font-size: 1.35rem; letter-spacing: -0.04em; }
.queue-now { display: grid; margin: 28px 0 25px; }
.queue-now .cover { box-shadow: 0 22px 45px oklch(0.06 0.02 38 / 0.34); }
.queue-now > span { margin-top: 15px; color: var(--accent-bright); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.queue-now > strong { margin-top: 5px; font-size: 0.93rem; }
.queue-now > small { margin-top: 3px; color: var(--faint); font-size: 0.72rem; }
.queue-list { border-top: 1px solid var(--line); }
.queue-item { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.queue-item > button:first-child { display: grid; min-width: 0; flex: 1; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 8px; padding: 12px 0; border: 0; background: transparent; text-align: left; }
.queue-item > button:first-child > span { color: var(--faint); font-size: 0.62rem; }
.queue-item strong, .queue-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-item strong { font-size: 0.72rem; }
.queue-item small { margin-top: 3px; color: var(--faint); font-size: 0.63rem; }
.nav-scrim { display: none; }
@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.82); } }
@media (max-width: 1080px) {
.album-grid { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
.album-tile:nth-child(n + 5) { display: none; }
.hero { padding: 38px 42px; }
.player-bar { grid-template-columns: minmax(180px, 0.9fr) minmax(320px, 1.4fr) minmax(150px, 0.7fr); }
}
@media (max-width: 820px) {
:root { --player-height: 86px; }
.app-shell { grid-template-columns: minmax(0, 1fr); }
.sidebar { position: fixed; top: 0; bottom: var(--player-height); left: 0; width: 230px; transform: translateX(-105%); transition: transform 220ms cubic-bezier(.22, 1, .36, 1); }
.sidebar.is-open { transform: translateX(0); }
.nav-scrim { position: fixed; z-index: 25; inset: 0 0 var(--player-height); display: block; border: 0; background: oklch(0.06 0.01 38 / 0.7); }
.menu-button { display: inline-grid !important; }
.topbar { padding: 0 20px; }
.library-view { padding: 22px 20px 60px; }
.hero { min-height: 280px; grid-template-columns: 1fr 34%; padding: 34px; }
.hero h1 { font-size: 2.65rem; }
.hero-art .cover { width: min(190px, 24vw); }
.album-grid { grid-template-columns: repeat(3, minmax(100px, 1fr)); }
.album-tile:nth-child(n + 4) { display: none; }
.track-row { grid-template-columns: minmax(230px, 1fr) 34px 45px 34px; }
.track-album { display: none; }
.player-bar { grid-template-columns: minmax(170px, 1fr) auto; padding: 9px 16px; }
.transport { display: flex; flex-direction: row-reverse; align-items: center; gap: 11px; }
.transport-buttons .icon-button:first-child, .transport-buttons .icon-button:last-child, .scrubber, .player-tools > svg, .player-tools > input { display: none; }
.player-tools { position: absolute; right: 179px; }
}
@media (max-width: 560px) {
.topbar { gap: 8px; height: 61px; padding: 0 12px; }
.search-field { width: 100%; }
.topbar-actions .icon-button { display: none; }
.avatar { width: 29px; height: 29px; }
.library-view { padding: 14px 14px 50px; }
.hero { display: block; min-height: 330px; padding: 31px 25px; }
.hero h1 { max-width: 330px; font-size: 2.55rem; }
.hero p { max-width: 34ch; }
.hero-art { position: absolute; right: -22px; bottom: -35px; min-height: 160px; opacity: 0.6; }
.hero-art .cover { width: 165px; }
.hero-actions { position: relative; z-index: 4; }
.album-grid { grid-template-columns: repeat(2, minmax(100px, 1fr)); gap: 19px 13px; }
.album-tile:nth-child(n + 5) { display: block; }
.section-heading { align-items: flex-end; }
.section-heading h2 { font-size: 1.25rem; }
.track-row { grid-template-columns: minmax(0, 1fr) 32px 32px; }
.track-time, .track-row > .icon-button:last-child { display: none; }
.track-main { grid-template-columns: 25px 38px minmax(0, 1fr); gap: 8px; }
.cover--small { width: 38px; min-width: 38px; }
.settings-view { width: calc(100% - 28px); margin-top: 36px; }
.settings-view h1 { font-size: 1.9rem; }
.connection-form { padding: 20px; }
.form-row { grid-template-columns: 1fr; }
.form-actions { flex-direction: column-reverse; }
.form-actions button { width: 100%; }
.player-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 8px 10px; }
.now-playing .cover { width: 46px; min-width: 46px; }
.now-playing > svg { display: none; }
.transport-buttons { gap: 0; }
.transport-buttons .icon-button:nth-child(2), .transport-buttons .icon-button:nth-child(4) { display: none; }
.player-tools { right: 63px; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}