Web: sidebar playlists fixed for 1080p, side album art, vertical stem faders with live meters

- Nav scrolls, playlists section always gets room, boot race fixed (waits on connect)
- Album art expands into the left sidebar (Feishin style), collapses on hover button
- Mixer: tall vertical channel strips with per-stem peak meters (AnalyserNode, rAF, transform-only)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-11-19 21:57:24 -08:00
1 parent 115eb28bdf
commit f624a9866a
5 files changed
+165 -100

No files matched your search

+58 -40
View File
@@ -9,6 +9,7 @@
--accent-ink: #ffffff;
--radius: 6px;
--player-h: 90px;
--nav-w: 240px;
--glass: #101010ee;
--hover: #e7e7e70d;
--shadow: #0009;
@@ -30,20 +31,36 @@ button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; fill: currentColor; display: block; }
#app { display: grid; grid-template-columns: 200px 1fr auto; height: calc(100% - var(--player-h)); }
#nav { background: var(--panel); padding: 16px 10px 10px; display: flex; flex-direction: column; gap: 1px; min-height: 0; }
#app { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); height: calc(100% - var(--player-h)); }
#nav { background: var(--panel); padding: 16px 10px 0; display: flex; flex-direction: column; gap: 1px; min-height: 0; overflow-y: auto; overflow-x: hidden; }
#nav > * { flex: none; }
.brand { white-space: nowrap; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; padding: 0 10px 6px; }
.brand::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 3px; }
#nav a { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 4px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nav a { display: flex; align-items: center; gap: 12px; min-height: 34px; padding: 0 10px; border-radius: 4px; color: var(--muted); font-weight: 500; white-space: nowrap; transition: color .12s, background-color .12s; }
#nav a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#nav a svg { width: 18px; height: 18px; flex: none; }
#nav a:hover { color: var(--text); }
#nav a:hover { color: var(--text); background: var(--hover); }
#nav a.on { background: var(--raised); color: var(--text); }
#search input { width: 100%; margin: 10px 0; padding: 7px 10px; background: var(--raised); border: 1px solid transparent; border-radius: 4px; outline: none; }
#search input:focus { border-color: var(--accent); }
.nav-h { margin: 16px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); opacity: .7; }
#nav-pl { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; margin: 0 -4px; padding: 0 4px; }
#nav-pl a { display: block; padding: 5px 10px; font-weight: 400; }
.settings-link { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 !important; padding-top: 10px !important; }
.nav-sec { flex: 1 1 0 !important; min-height: 150px; display: flex; flex-direction: column; margin: 10px -10px 0; padding: 6px 10px 8px; border-top: 1px solid var(--line); }
#nav .nav-h { flex: none; min-height: 30px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: none; }
#nav .nav-h:hover { background: none; }
#nav-pl { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 1px; margin: 0 -6px; padding: 0 6px; }
#nav-pl a { flex: none; min-height: 32px; font-weight: 400; gap: 8px; justify-content: space-between; }
#nav-pl a svg { width: 13px; height: 13px; opacity: .55; }
.nav-empty { margin: 4px 10px; color: var(--muted); opacity: .7; font-size: 12px; }
.settings-link { margin-top: 2px; }
#sideart { display: none; position: relative; margin: 0 -10px; aspect-ratio: 1; background: var(--raised); overflow: hidden; }
#app.sideart #sideart { display: block; animation: sain .26s cubic-bezier(.2, .8, .2, 1); }
@keyframes sain { from { opacity: 0; transform: translateY(24px); } }
#sideart .sa-img { display: block; width: 100%; height: 100%; padding: 0; cursor: pointer; }
#sideart img { display: block; width: 100%; height: 100%; object-fit: cover; }
#sideart img:not([src]) { visibility: hidden; }
#sideart .sa-col { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
background: rgba(0, 0, 0, .62); color: #fff; font-size: 18px; opacity: 0; transform: scale(.9); transition: opacity .15s, transform .15s; }
#sideart:hover .sa-col, #sideart .sa-col:focus-visible { opacity: 1; transform: none; }
#sideart .sa-col:hover { background: rgba(0, 0, 0, .85); }
#view { overflow-y: auto; padding: 24px 32px 48px; background: var(--bg); }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
@@ -189,6 +206,7 @@ input[type=color] { width: 40px; height: 28px; padding: 0; border: 1px solid var
#drawer h2 { margin: 0 0 14px; }
#drawer { display: flex; flex-direction: column; padding-top: 12px; }
#drawer[hidden] { display: none; }
#drawer.mixing { width: 340px; }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; position: sticky; top: -12px; background: var(--panel); padding: 6px 0; z-index: 1; }
.tabs button { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.tabs button.on { background: var(--raised); color: var(--text); }
@@ -210,20 +228,26 @@ input[type=color] { width: 40px; height: 28px; padding: 0; border: 1px solid var
.chip { background: var(--raised); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 500; }
.chip.on { background: var(--accent); color: var(--accent-ink); }
.chip:disabled { opacity: .35; cursor: default; }
.stem { --c: #8e8e93; display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: stretch; margin-bottom: 8px; }
.fader { position: relative; height: 54px; border-radius: 10px; overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
background: color-mix(in srgb, var(--c) 12%, var(--raised)); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; outline: none; }
.fader::before { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--v)); will-change: transform;
background: linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, transparent), color-mix(in srgb, var(--c) 75%, transparent)); pointer-events: none; }
.fader::after { content: ""; position: absolute; top: 8px; bottom: 8px; left: clamp(2px, calc(var(--v) - 3px), calc(100% - 5px)); width: 3px; border-radius: 2px; background: var(--c); box-shadow: 0 0 8px var(--c); pointer-events: none; }
.fader:focus-visible { box-shadow: 0 0 0 2px var(--c); }
.fader.drag::after { width: 4px; }
.fader .name, .fader .pct { position: relative; z-index: 1; pointer-events: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.fader .name { text-transform: capitalize; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fader .pct { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stem.silent .fader { filter: saturate(.15); opacity: .55; }
.ms { width: 44px; height: auto; border-radius: 8px; background: var(--raised); font-size: 12px; font-weight: 800; color: var(--muted);
.strips { display: flex; gap: 8px; justify-content: center; margin: 4px 0 6px; --fh: clamp(170px, calc(100vh - var(--player-h) - 470px), 320px); }
.stem { --c: #8e8e93; flex: 1 1 0; min-width: 0; max-width: 58px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.stem .pct { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.stem .name { text-align: center; text-transform: capitalize; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fader { position: relative; height: var(--fh); border-radius: 12px; overflow: hidden; cursor: ns-resize; touch-action: none; user-select: none; -webkit-user-select: none; outline: none;
background: color-mix(in srgb, var(--c) 9%, var(--raised)); contain: strict; }
.fader i { position: absolute; display: block; pointer-events: none; }
.fader .lvl, .fader .mtr { inset: 0; transform-origin: bottom; will-change: transform; }
.fader .lvl { transform: scaleY(var(--v)); background: linear-gradient(to top, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 46%, transparent)); }
.fader .mtr { transform: scaleY(0); background: linear-gradient(to top, color-mix(in srgb, var(--c) 82%, #000), var(--c)); }
.fader .cap { left: 0; right: 0; top: 4px; bottom: 4px; transform: translateY(calc((1 - var(--v)) * 100%)); will-change: transform; }
.fader .cap b { position: absolute; left: 6px; right: 6px; top: -3px; height: 6px; border-radius: 3px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); transition: transform .1s; }
.fader:hover .cap b, .fader.drag .cap b { transform: scaleY(1.35); }
.fader:focus-visible { box-shadow: inset 0 0 0 2px var(--c); }
.stem.silent .fader, .stem.silent .name { opacity: .4; }
.stem.silent .mtr { visibility: hidden; }
.msrow { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.ms { height: 26px; min-width: 0; border-radius: 6px; background: var(--raised); font-size: 11px; font-weight: 800; color: var(--muted);
transition: transform .08s, background-color .12s, color .12s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ms:hover { color: var(--text); }
.ms:active { transform: scale(.88); }
.ms.mute.on { background: #ff453a; color: #fff; }
.ms.solo.on { background: #ffcc00; color: #1a1400; }
@@ -245,22 +269,13 @@ input[type=color] { width: 40px; height: 28px; padding: 0; border: 1px solid var
border-top: 1px solid rgba(50, 50, 50, .7); display: grid; grid-template-columns: minmax(180px, 1fr) minmax(320px, 1.6fr) minmax(180px, 1fr); align-items: center; gap: 20px; padding: 0 20px; }
#player.empty .center, #player.empty .right, #player.empty #b-art { opacity: .35; pointer-events: none; }
.left { display: flex; align-items: center; gap: 10px; min-width: 0; }
#b-art { position: relative; flex: none; width: 60px; height: 60px; padding: 0; border-radius: 4px; overflow: hidden; cursor: zoom-in; }
#b-art { position: relative; flex: none; width: 60px; height: 60px; padding: 0; border-radius: 4px; overflow: hidden; }
#b-art[hidden] { display: none; }
#b-art .exp { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .15s; }
#b-art .exp svg { width: 22px; height: 22px; fill: #fff; }
#b-art:hover .exp, #b-art:focus-visible .exp { opacity: 1; }
#bigart { position: fixed; inset: 0 0 var(--player-h) 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
padding: 32px 16px; background: #000; overflow: hidden; cursor: zoom-out; animation: bigin .18s ease-out; }
#bigart[hidden] { display: none; }
#bigart .bg { position: absolute; inset: -80px; background-size: cover; background-position: center; filter: blur(70px) brightness(.4) saturate(1.3); transform: translateZ(0); }
#bigart img { position: relative; width: min(68vh, 88vw, 760px); aspect-ratio: 1; object-fit: cover; border-radius: 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, .65); }
#bigart .cap { position: relative; text-align: center; max-width: 88vw; }
#bigart .t { font-size: clamp(20px, 3vw, 30px); font-weight: 800; }
#bigart .s { color: rgba(255, 255, 255, .7); margin-top: 4px; }
#bigart .x { position: absolute; top: 14px; right: 18px; font-size: 28px; color: #fff; opacity: .7; }
#bigart .x:hover { opacity: 1; }
@keyframes bigin { from { opacity: 0; } }
#b-art .exp { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .7);
opacity: 0; transform: scale(.85); transition: opacity .15s, transform .15s; }
#b-art .exp svg { width: 15px; height: 15px; fill: #fff; }
#b-art:hover .exp, #b-art:focus-visible .exp { opacity: 1; transform: none; }
#player.sideart #b-art { display: none; }
.np { display: flex; gap: 12px; align-items: center; min-width: 0; }
#np-art { width: 60px; height: 60px; border-radius: 4px; object-fit: cover; background: var(--raised); flex: none; }
#np-art:not([src]) { display: none; }
@@ -295,12 +310,13 @@ input[type=range] { accent-color: var(--accent); }
@media (max-width: 860px) {
:root { --player-h: 150px; }
#app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
#app { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
#nav { flex-direction: row; overflow-x: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); align-items: center; }
.brand { padding: 0 8px 0 4px; }
#nav a { white-space: nowrap; overflow: visible; }
#nav a svg, .nav-h, #nav-pl { display: none; }
.settings-link { border-top: 0; padding-top: 7px !important; border-radius: 4px !important; }
#nav a svg, .nav-sec, #sideart, #b-art .exp { display: none !important; }
#nav { overflow-y: hidden; }
#nav a { min-height: 32px; }
#search input { margin: 0; width: 120px; }
#live { margin: 0; white-space: nowrap; }
.settings { grid-template-columns: 1fr; }
@@ -311,7 +327,7 @@ input[type=range] { accent-color: var(--accent); }
.tracks th { top: -20px; }
.settings-link { margin-top: 0; }
#view { padding: 20px 16px 40px; }
#drawer { position: fixed; inset: auto 0 var(--player-h) 0; width: auto; max-height: 60vh; border-left: 0; border-top: 1px solid var(--line); z-index: 5; }
#drawer, #drawer.mixing { position: fixed; inset: auto 0 var(--player-h) 0; width: auto; max-height: 60vh; border-left: 0; border-top: 1px solid var(--line); z-index: 5; }
#player { grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 8px 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.center { grid-column: 1 / -1; grid-row: 2; }
.right #volume { display: none; }
@@ -321,6 +337,8 @@ input[type=range] { accent-color: var(--accent); }
.cplay { opacity: 1; transform: none; width: 36px; height: 36px; font-size: 14px; }
.grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.card { padding: 6px; }
.strips { --fh: clamp(140px, 24vh, 220px); }
.stem { max-width: 64px; }
}
/* presets */