Web player served by stemserve
Plex browsing, stem mixer with presets, shuffle, repeat all/one, playback speed, queue, waveform seek. stemserve serves web/ at / without the token. stemserve image now builds from the repo root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
605b88f1eb
commit
9299fee9a0
8 files changed
+1113
-20
No files matched your search
+150
@@ -0,0 +1,150 @@
|
||||
:root {
|
||||
--bg: #0d0e12;
|
||||
--panel: #15171d;
|
||||
--raised: #1d2028;
|
||||
--line: #262a33;
|
||||
--text: #eceef3;
|
||||
--muted: #8a8f9c;
|
||||
--accent: #f2b544;
|
||||
--accent-ink: #1a1306;
|
||||
--radius: 12px;
|
||||
--player-h: 96px;
|
||||
color-scheme: dark;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
|
||||
font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; }
|
||||
button, input, select { font: inherit; color: inherit; }
|
||||
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: 210px 1fr auto; height: calc(100% - var(--player-h)); }
|
||||
#nav { background: var(--panel); border-right: 1px solid var(--line); padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; }
|
||||
.brand { white-space: nowrap; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; padding: 0 10px 18px; }
|
||||
.brand::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 3px; }
|
||||
#nav a { padding: 8px 10px; border-radius: 8px; color: var(--muted); font-weight: 500; }
|
||||
#nav a:hover { color: var(--text); }
|
||||
#nav a.on { background: var(--raised); color: var(--text); }
|
||||
#search input { width: 100%; margin: 12px 0; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; outline: none; }
|
||||
#search input:focus { border-color: var(--accent); }
|
||||
.settings-link { margin-top: auto; }
|
||||
|
||||
#view { overflow-y: auto; padding: 28px 32px 48px; }
|
||||
h1 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 4px; }
|
||||
h2 { font-size: 17px; margin: 28px 0 12px; }
|
||||
.sub { color: var(--muted); }
|
||||
.bar { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; flex-wrap: wrap; }
|
||||
.bar h1 { margin-right: auto; }
|
||||
select, input[type=text], input[type=url], input[type=password] { background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; outline: none; }
|
||||
|
||||
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px 18px; }
|
||||
.card { display: block; min-width: 0; }
|
||||
.card img, .card .ph { width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; background: var(--raised); display: block; transition: transform .15s; }
|
||||
.card:hover img { transform: translateY(-2px); }
|
||||
.card.round img, .card.round .ph { border-radius: 50%; }
|
||||
.card .t { margin-top: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.card .s { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
|
||||
.hero { display: flex; gap: 28px; align-items: flex-end; margin-bottom: 26px; }
|
||||
.hero img { width: 210px; height: 210px; border-radius: var(--radius); object-fit: cover; background: var(--raised); box-shadow: 0 20px 50px #0008; }
|
||||
.hero .meta { min-width: 0; }
|
||||
.hero .kind { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
|
||||
.actions { display: flex; gap: 10px; margin-top: 16px; }
|
||||
.btn { background: var(--raised); border-radius: 999px; padding: 9px 18px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
|
||||
.btn.primary { background: var(--accent); color: var(--accent-ink); }
|
||||
.btn:hover { filter: brightness(1.12); }
|
||||
|
||||
.tracks { width: 100%; border-collapse: collapse; }
|
||||
.tracks tr { border-radius: 8px; }
|
||||
.tracks td { padding: 8px 10px; border-bottom: 1px solid #ffffff08; white-space: nowrap; }
|
||||
.tracks tr:hover td { background: var(--panel); }
|
||||
.tracks tr.playing td { color: var(--accent); }
|
||||
.tracks .n { width: 36px; color: var(--muted); text-align: right; }
|
||||
.tracks .ti { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
||||
.tracks .ti small { color: var(--muted); margin-left: 8px; }
|
||||
.tracks .d { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
|
||||
.tracks .add { opacity: 0; color: var(--muted); font-size: 18px; }
|
||||
.tracks tr:hover .add { opacity: 1; }
|
||||
.tracks .add:hover { color: var(--text); }
|
||||
.stem-dot { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .05em; color: var(--accent); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; margin-left: 8px; vertical-align: 1px; }
|
||||
.more { display: block; margin: 24px auto; }
|
||||
.empty-msg { color: var(--muted); padding: 40px 0; }
|
||||
|
||||
.form { max-width: 520px; display: grid; gap: 14px; }
|
||||
.form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
|
||||
.form label input, .form label select { color: var(--text); font-size: 14px; }
|
||||
.form .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
|
||||
.note { color: var(--muted); font-size: 13px; }
|
||||
|
||||
#drawer { width: 340px; background: var(--panel); border-left: 1px solid var(--line); overflow-y: auto; padding: 22px 20px; }
|
||||
#drawer h2 { margin: 0 0 14px; }
|
||||
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
|
||||
.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 { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 6px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
|
||||
.stem .name { text-transform: capitalize; font-weight: 600; }
|
||||
.stem.silent .name { color: var(--muted); }
|
||||
.stem input { grid-column: 1 / -1; width: 100%; }
|
||||
.ms { width: 30px; height: 26px; border-radius: 6px; background: var(--raised); font-size: 12px; font-weight: 700; color: var(--muted); }
|
||||
.ms.on { background: var(--text); color: var(--bg); }
|
||||
.ms.solo.on { background: var(--accent); color: var(--accent-ink); }
|
||||
.q-item { display: flex; gap: 10px; align-items: center; padding: 7px 6px; border-radius: 8px; cursor: pointer; }
|
||||
.q-item:hover { background: var(--raised); }
|
||||
.q-item img { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; background: var(--raised); flex: none; }
|
||||
.q-item .tx { min-width: 0; flex: 1; }
|
||||
.q-item .tx div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.q-item .tx div + div { color: var(--muted); font-size: 12px; }
|
||||
.q-item.cur { background: var(--raised); }
|
||||
.q-item.cur .tx div:first-child { color: var(--accent); }
|
||||
.q-item.past { opacity: .45; }
|
||||
.q-item .x { color: var(--muted); font-size: 18px; padding: 0 4px; opacity: 0; }
|
||||
.q-item:hover .x { opacity: 1; }
|
||||
|
||||
#player { position: fixed; left: 0; right: 0; bottom: 0; height: var(--player-h); background: #101116ee; backdrop-filter: blur(20px);
|
||||
border-top: 1px solid var(--line); 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 { opacity: .35; pointer-events: none; }
|
||||
.np { display: flex; gap: 12px; align-items: center; min-width: 0; }
|
||||
#np-art { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; background: var(--raised); flex: none; }
|
||||
#np-art:not([src]) { display: none; }
|
||||
.np-text { min-width: 0; }
|
||||
#np-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
#np-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.center { display: grid; gap: 4px; }
|
||||
.transport { display: flex; justify-content: center; align-items: center; gap: 18px; font-size: 20px; }
|
||||
.transport button { color: var(--text); }
|
||||
.transport .side { color: var(--muted); font-size: 17px; position: relative; }
|
||||
.transport .side.on { color: var(--accent); }
|
||||
.transport .side.on::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
|
||||
.transport .play { width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font-size: 18px; }
|
||||
.transport .play.busy svg { animation: spin 1s linear infinite; }
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
.seek { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
|
||||
.seek span:last-child { text-align: right; }
|
||||
#wave { width: 100%; height: 32px; cursor: pointer; display: block; }
|
||||
.right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
|
||||
.pill { color: var(--muted); font-size: 18px; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; }
|
||||
.pill.on { background: var(--raised); color: var(--accent); }
|
||||
#speed { padding: 5px 6px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
|
||||
#speed.on { color: var(--accent); border-color: var(--accent); }
|
||||
#volume { width: 96px; }
|
||||
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; }
|
||||
#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; }
|
||||
#search input { margin: 0; width: 120px; }
|
||||
.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; }
|
||||
#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; }
|
||||
.hero { flex-direction: column; align-items: flex-start; }
|
||||
.hero img { width: 160px; height: 160px; }
|
||||
.grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px 12px; }
|
||||
}
|
||||
Reference in new issue
Block a user