Files
Resonant/src/styles.css
T
cyph3rasi ea4c17fa96 Remove the nonfunctional audio-settings and profile controls from the listening header, clean up their styling, and add regression coverage.
Hop-State: A_06FNQBGTH3EZP9YTHQFSN70
Hop-Proposal: R_06FNQBG6HFCYVTT9N9GZVV8
Hop-Task: T_06FNQAVP16933S9299CM51G
Hop-Attempt: AT_06FNQAVP171XNBCKRTEEES0
2026-07-13 06:32:44 -07:00

354 lines
32 KiB
CSS

@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.92 0.008 275);
background: oklch(0.13 0.008 275);
font-synthesis: none;
text-rendering: optimizeLegibility;
--ink: oklch(0.92 0.008 275);
--muted: oklch(0.68 0.012 275);
--faint: oklch(0.5 0.012 275);
--canvas: oklch(0.13 0.008 275);
--surface: oklch(0.17 0.009 275);
--surface-raised: oklch(0.22 0.012 275);
--line: oklch(0.31 0.014 275 / 0.7);
--accent: oklch(0.68 0.17 28);
--accent-bright: oklch(0.75 0.15 28);
--success: oklch(0.72 0.12 145);
--danger: oklch(0.68 0.16 24);
--focus: oklch(0.78 0.12 255);
--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); }
.app-bootstrap { position: relative; display: grid; width: 100vw; height: 100vh; place-items: center; align-content: center; gap: 7px; color: var(--muted); background: var(--canvas); }
.app-bootstrap .brand { position: absolute; top: 25px; left: 16px; padding: 0 8px; color: var(--ink); }
.app-bootstrap .library-status-icon { margin: 0 0 13px; }
.app-bootstrap > strong { color: var(--ink); font-size: 0.92rem; font-weight: 600; }
.app-bootstrap > span { color: var(--faint); font-size: 0.7rem; }
.sidebar { position: relative; z-index: 30; display: flex; height: calc(100vh - var(--player-height)); flex-direction: column; min-width: 0; padding: 25px 16px 16px; border-right: 1px solid var(--line); background: oklch(0.15 0.009 275); }
.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.16 0.015 275); background: var(--accent-bright); box-shadow: 0 8px 30px oklch(0.55 0.16 28 / 0.16); }
.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; }
.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.23 0.012 275 / 0.62); }
.sidebar nav button.active { color: var(--ink); background: oklch(0.25 0.018 275 / 0.82); }
.sidebar nav button.active svg { color: var(--accent-bright); }
.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.19 0.01 275); text-align: left; }
.server-pill:hover { border-color: oklch(0.43 0.02 275); background: oklch(0.22 0.012 275); }
.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 275 / 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.016 275) transparent; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; gap: 18px; height: 68px; padding: 0 34px; background: oklch(0.13 0.008 275 / 0.94); border-bottom: 1px solid oklch(0.28 0.012 275 / 0.52); backdrop-filter: blur(18px); }
.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.19 0.01 275); transition: border-color 160ms ease, background 160ms ease; }
.search-field:focus-within { border-color: oklch(0.5 0.055 255); 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); }
.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.014 275 / 0.58); }
.icon-button:active { transform: scale(0.94); }
.icon-button.is-active { color: var(--accent-bright); background: oklch(0.68 0.17 28 / 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: 1px solid oklch(0.32 0.018 275 / 0.7); border-radius: 20px; background: oklch(0.21 0.014 275); box-shadow: 0 24px 80px oklch(0.06 0.018 275 / 0.32); isolation: isolate; }
.hero::before { position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 86% 20%, oklch(0.46 0.055 268 / 0.25), transparent 34%), linear-gradient(118deg, oklch(0.235 0.02 275), oklch(0.17 0.012 275)); 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.008 275); 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.75 0.012 275); 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.16 0.012 275); background: var(--accent-bright); }
.button-primary--light { border-color: oklch(0.94 0.008 275); color: oklch(0.17 0.012 275); background: oklch(0.94 0.008 275); }
.button-primary:hover { transform: translateY(-1px); background: oklch(0.79 0.14 28); }
.button-secondary { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.button-secondary:hover { border-color: oklch(0.48 0.022 275); background: var(--surface-raised); }
.button-quiet { border: 1px solid oklch(0.79 0.018 275 / 0.22); color: oklch(0.88 0.01 275); background: oklch(0.15 0.012 275 / 0.3); }
.button-quiet:hover { background: oklch(0.74 0.02 275 / 0.13); }
.button-quiet.is-active { border-color: oklch(0.75 0.15 28 / 0.5); color: var(--accent-bright); background: oklch(0.68 0.17 28 / 0.12); }
.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.06 0.018 275 / 0.52); }
.orbit { position: absolute; width: 290px; height: 290px; border: 1px solid oklch(0.82 0.04 268 / 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; }
.section-heading-actions { display: flex; align-items: center; gap: 12px; }
.section-heading-actions > span { color: var(--faint); font-size: 0.72rem; white-space: nowrap; }
.sort-control { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--surface); transition: border-color 150ms ease, color 150ms ease, background 150ms ease; }
.sort-control:hover { border-color: oklch(0.44 0.02 275); color: var(--ink); background: var(--surface-raised); }
.sort-control:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px oklch(0.78 0.12 255 / 0.1); }
.sort-control select { max-width: 145px; padding: 0; border: 0; outline: 0; color: inherit; background: transparent; font-size: 0.71rem; font-weight: 600; cursor: pointer; }
.sort-control option { color: var(--ink); background: var(--surface); }
.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.05 0.018 275 / 0.42); }
.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.012 275); background: oklch(0.93 0.008 275); box-shadow: 0 8px 24px oklch(0.06 0.018 275 / 0.5); 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)); }
.artist-section { max-width: 1040px; }
.artist-list { display: grid; grid-template-columns: repeat(2, minmax(250px, 1fr)); column-gap: 34px; border-top: 1px solid var(--line); }
.artist-row { display: grid; width: 100%; min-width: 0; grid-template-columns: 58px minmax(0, 1fr) 32px; align-items: center; gap: 13px; padding: 12px 8px; border: 0; border-bottom: 1px solid oklch(0.28 0.012 275 / 0.58); border-radius: 9px; background: transparent; text-align: left; transition: color 160ms ease, background 160ms ease; }
.artist-row:hover, .artist-row:focus-visible { background: oklch(0.2 0.012 275 / 0.78); }
.artist-portrait { display: grid; width: 54px; height: 54px; overflow: hidden; place-items: center; border-radius: 50%; box-shadow: 0 7px 20px oklch(0.05 0.018 275 / 0.28); }
.artist-portrait img { width: 100%; height: 100%; object-fit: cover; }
.artist-portrait b { color: oklch(0.94 0.018 60 / 0.8); font-size: 0.78rem; letter-spacing: -0.03em; text-transform: uppercase; }
.artist-meta { min-width: 0; }
.artist-meta strong, .artist-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artist-meta strong { color: var(--ink); font-size: 0.82rem; font-weight: 600; }
.artist-meta small { margin-top: 4px; color: var(--faint); font-size: 0.67rem; }
.artist-play { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: var(--muted); background: var(--surface-raised); transition: color 160ms ease, background 160ms ease, transform 160ms cubic-bezier(.22, 1, .36, 1); }
.artist-row:hover .artist-play, .artist-row:focus-visible .artist-play { color: oklch(0.17 0.012 275); background: var(--accent-bright); transform: scale(1.05); }
.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.012 275 / 0.58); color: var(--muted); transition: background 140ms ease; }
.track-row:hover, .track-row:focus-within { background: oklch(0.2 0.012 275 / 0.78); }
.track-row.is-current { color: var(--accent-bright); background: oklch(0.22 0.022 275 / 0.7); }
.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; }
.track-row .queue-add-button.is-confirmed { color: var(--success); background: oklch(0.72 0.12 145 / 0.1); }
.queue-add-button.is-confirmed svg { animation: queue-confirm 180ms cubic-bezier(.22, 1, .36, 1); }
.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; }
.library-status { display: grid; min-height: min(610px, calc(100vh - var(--player-height) - 120px)); max-width: 620px; place-items: center; align-content: center; margin: 0 auto; text-align: center; }
.library-status-icon { display: grid; width: 58px; height: 58px; margin-bottom: 22px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--surface); }
.library-status-icon.is-scanning { color: var(--accent-bright); animation: scan-turn 3s linear infinite; }
.library-status h1 { margin: 11px 0 10px; color: var(--ink); font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 600; letter-spacing: -0.055em; }
.library-status p { max-width: 58ch; margin: 0; color: var(--muted); font-size: 0.87rem; line-height: 1.65; }
.library-status > .button-secondary { margin-top: 25px; }
.scan-progress { display: flex; align-items: center; gap: 6px; margin-top: 26px; color: var(--faint); }
.scan-progress > span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-bright); animation: scan-pulse 1.2s ease-in-out infinite; }
.scan-progress > span:nth-child(2) { animation-delay: 150ms; }
.scan-progress > span:nth-child(3) { animation-delay: 300ms; }
.scan-progress small { margin-left: 6px; font-size: 0.68rem; }
.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; }
.source-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.source-switch > button { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: oklch(0.16 0.009 275); text-align: left; transition: border-color 150ms ease, background 150ms ease, color 150ms ease; }
.source-switch > button:hover { color: var(--ink); background: oklch(0.19 0.012 275); }
.source-switch > button[aria-pressed="true"] { border-color: oklch(0.53 0.065 28); color: var(--ink); background: oklch(0.22 0.022 275); box-shadow: inset 0 0 0 1px oklch(0.68 0.17 28 / 0.12); }
.source-switch > button[aria-pressed="true"] > svg { color: var(--accent-bright); }
.source-switch span { min-width: 0; }
.source-switch strong, .source-switch small { display: block; }
.source-switch strong { font-size: 0.79rem; }
.source-switch small { margin-top: 3px; color: var(--faint); font-size: 0.65rem; }
.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.13 0.008 275); font-size: 0.82rem; }
.connection-form input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px oklch(0.78 0.12 255 / 0.1); }
.managed-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.managed-icon { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid oklch(0.42 0.04 28); border-radius: 11px; color: var(--accent-bright); background: oklch(0.68 0.17 28 / 0.09); }
.managed-heading strong { font-size: 0.84rem; }
.managed-heading p { margin: 4px 0 0; color: var(--faint); font-size: 0.7rem; }
.managed-heading > span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--faint); font-size: 0.59rem; font-variant-numeric: tabular-nums; }
.folder-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.folder-field input { overflow: hidden; text-overflow: ellipsis; }
.folder-field .button-secondary { white-space: nowrap; }
.field-hint { color: var(--faint); font-size: 0.65rem; font-weight: 400; line-height: 1.5; }
.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.012 275); 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); }
.device-addresses { display: grid; gap: 6px; padding: 14px; border: 1px solid oklch(0.39 0.035 145); border-radius: 10px; background: oklch(0.21 0.025 145); }
.device-addresses strong { font-size: 0.75rem; }
.device-addresses p { margin: 0 0 3px; color: var(--muted); font-size: 0.68rem; line-height: 1.5; }
.device-addresses code { width: fit-content; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: oklch(0.84 0.08 145); background: oklch(0.14 0.012 275); font-size: 0.7rem; user-select: all; }
.button-danger { margin-right: auto; color: oklch(0.78 0.1 25); }
.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.36 0.018 275 / 0.78); background: oklch(0.16 0.01 275); box-shadow: 0 -16px 45px oklch(0.05 0.016 275 / 0.28); }
.now-playing { display: flex; min-width: 0; align-items: center; gap: 5px; }
.now-playing-main { display: flex; min-width: 0; flex: 1; align-items: center; gap: 11px; padding: 0; border: 0; background: transparent; text-align: left; }
.now-playing-main > 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-favorite { margin-left: 3px; }
.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.17 0.012 275); background: oklch(0.93 0.008 275); transition: transform 150ms ease, background 150ms ease; }
.play-button:hover { transform: scale(1.05); background: oklch(0.98 0.006 275); }
.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.016 275) 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; }
.player-bar--library-status { grid-template-columns: minmax(0, 1fr) auto; }
.player-library-status { display: flex; min-width: 0; align-items: center; gap: 12px; }
.player-library-status strong, .player-library-status small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-library-status strong { color: var(--ink); font-size: 0.76rem; }
.player-library-status small { max-width: 70vw; margin-top: 3px; color: var(--faint); font-size: 0.65rem; }
.queue-panel { position: fixed; z-index: 45; top: 0; right: 0; bottom: var(--player-height); width: min(370px, 92vw); overflow-y: auto; padding: 25px; border-left: 1px solid var(--line); background: oklch(0.17 0.01 275); box-shadow: -24px 0 70px oklch(0.05 0.016 275 / 0.4); 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.05 0.018 275 / 0.4); }
.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; }
.queue-remainder { margin: 0; padding: 15px 0; color: var(--faint); font-size: 0.68rem; text-align: center; }
.action-toast { position: fixed; z-index: 60; right: 20px; bottom: calc(var(--player-height) + 16px); display: flex; max-width: min(390px, calc(100vw - 32px)); align-items: center; gap: 9px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface-raised); box-shadow: 0 14px 38px oklch(0.05 0.016 275 / 0.42); font-size: 0.72rem; animation: toast-in 180ms cubic-bezier(.22, 1, .36, 1); }
.action-toast--error { border-color: oklch(0.53 0.09 24 / 0.7); color: oklch(0.84 0.07 25); }
.action-toast svg { flex: 0 0 auto; }
.nav-scrim { display: none; }
@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.82); } }
@keyframes scan-turn { to { transform: rotate(360deg); } }
@keyframes scan-pulse { 50% { opacity: 0.3; transform: translateY(-2px); } }
@keyframes queue-confirm { from { opacity: 0.45; transform: scale(0.62); } to { opacity: 1; transform: scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@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.05 0.01 275 / 0.74); }
.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%; }
.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; }
.artist-list { grid-template-columns: 1fr; }
.album-tile:nth-child(n + 5) { display: block; }
.section-heading { align-items: flex-end; }
.section-heading h2 { font-size: 1.25rem; }
.section-heading-actions { align-items: flex-end; flex-direction: column-reverse; gap: 5px; }
.sort-control select { max-width: 126px; }
.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; }
.source-switch { grid-template-columns: 1fr; }
.folder-field { grid-template-columns: 1fr; }
.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; }
.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; }
}