Files

286 lines
19 KiB
CSS

:root {
--bg: #0d0e12;
--panel: #15171d;
--raised: #1d2028;
--line: #262a33;
--text: #eceef3;
--muted: #8a8f9c;
--accent: #f2b544;
--accent-ink: #1a1306;
--radius: 12px;
--player-h: 96px;
--glass: #15171dee;
--hover: #eceef30d;
--shadow: #0009;
--wave: #eceef344;
--wave-ghost: #eceef314;
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, textarea { font: inherit; color: inherit; }
button:disabled { opacity: .4; cursor: default; }
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, textarea, 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 var(--shadow); }
.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 var(--hover); 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 tr { cursor: default; }
.tracks .off { color: var(--accent); width: 20px; padding: 0 2px; font-size: 13px; }
.tracks .acts { width: 1px; padding: 0 4px; }
.tracks .acts button { opacity: 0; color: var(--muted); font-size: 18px; width: 26px; height: 26px; border-radius: 6px; display: inline-grid; place-items: center; vertical-align: middle; }
.tracks tr:hover .acts button { opacity: 1; }
.tracks .acts button:hover { color: var(--text); background: var(--raised); }
.tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .05em; color: var(--muted); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; margin-left: 8px; vertical-align: 1px; }
.tag.stems { color: var(--accent); }
.tag.queued { color: var(--muted); }
.tag.stemming { color: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.tag.failed { color: #e5534b; }
@keyframes pulse { 50% { opacity: .35; } }
.badge:empty { display: none; }
.more { min-height: 1px; margin: 24px auto; color: var(--muted); }
.sub#count { margin-right: auto; }
.bar h1 + .sub { margin-left: -2px; }
.bar.sm { margin: 28px 0 12px; }
.bar.sm h2 { margin: 0; }
.grow { flex: 1; }
.sort { display: flex; gap: 6px; align-items: center; }
.sort select { padding: 5px 8px; font-size: 13px; }
.sort .chip svg { display: inline-block; vertical-align: -2px; }
.chip { display: inline-flex; gap: 6px; align-items: center; }
.link { color: var(--accent); cursor: pointer; }
.btn.small { padding: 5px 12px; font-size: 13px; }
.btn.icon { padding: 9px 12px; }
.hero .ph { width: 210px; height: 210px; border-radius: var(--radius); background: var(--raised); flex: none; }
.hero .round { border-radius: 50%; }
/* Stems-only filter hides rows and cards without stems. */
body.stems-only .tracks tr.nostem, body.stems-only .card.nostem { display: none; }
.only-stems { display: none; }
body.stems-only .tracks:not(:has(tr:not(.nostem))) + .only-stems { display: block; }
.only-nostems { display: none; }
body.no-stems .tracks tr:not(.nostem) { display: none; }
body.no-stems .tracks:not(:has(tr.nostem)) ~ .only-nostems { display: block; }
.seg.stemfilter { display: inline-flex; }
.seg.stemfilter button { padding: 5px 10px; white-space: nowrap; }
.genres { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.genre { display: flex; align-items: flex-end; aspect-ratio: 16 / 9; padding: 14px; border-radius: 10px; font-weight: 700; font-size: 16px; color: #fff;
background: linear-gradient(135deg, hsl(var(--h) 55% 42%), hsl(calc(var(--h) + 40) 60% 24%)); text-shadow: 0 1px 6px #0006; }
.genre:hover { filter: brightness(1.12); }
#live { margin-top: 14px; padding: 8px 10px; border-radius: 8px; background: var(--raised); font-size: 12px; color: var(--muted); line-height: 1.35; }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; animation: pulse 1.4s ease-in-out infinite; }
#menu { position: fixed; z-index: 50; min-width: 200px; padding: 5px; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 34px var(--shadow); }
#menu button { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 6px; }
#menu button:not(:disabled):hover { background: var(--accent); color: var(--accent-ink); }
#menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
#toast { position: fixed; left: 50%; bottom: calc(var(--player-h) + 18px); transform: translate(-50%, 10px); z-index: 60; max-width: min(520px, calc(100% - 32px));
background: var(--text); color: var(--bg); padding: 9px 16px; border-radius: 999px; font-weight: 500; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.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; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.check { display: flex !important; gap: 8px; align-items: center; color: var(--text) !important; font-size: 14px !important; }
textarea { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; resize: vertical; color: var(--text); }
.settings { display: grid; grid-template-columns: 150px 1fr; gap: 32px; align-items: start; }
.toc { position: sticky; top: 0; display: grid; gap: 2px; }
.toc a { padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.toc a:hover { color: var(--text); background: var(--hover); }
.panes section { max-width: 640px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); scroll-margin-top: 10px; }
.panes section h2 { margin-top: 0; }
.srv { padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.srv .row { margin: 0; }
.secs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
details summary { cursor: pointer; margin: 12px 0; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.swatch { border: 1px solid; border-radius: 10px; padding: 10px; text-align: left; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.swatch i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.swatch.on { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=color] { width: 40px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; }
.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; }
#drawer { display: flex; flex-direction: column; padding-top: 12px; }
#drawer[hidden] { display: none; }
.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); }
.tabs .x { margin-left: auto; font-size: 20px; }
.kara { display: grid; gap: 10px; margin-bottom: 16px; }
.kara .chip { justify-self: start; }
.seg { display: flex; background: var(--raised); border-radius: 8px; padding: 3px; }
.seg button { flex: 1; padding: 5px 4px; border-radius: 6px; font-size: 12px; color: var(--muted); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.kara label { display: grid; gap: 4px; }
.mixrow { margin-top: 16px; }
#lyr.synced p { margin: 0; padding: 7px 4px; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--muted); opacity: .55; cursor: pointer; transition: opacity .2s, color .2s; }
#lyr.synced p:hover { opacity: .85; }
#lyr.synced p.on { color: var(--text); opacity: 1; }
#lyr.plain { font-size: 15px; line-height: 1.6; color: var(--text); }
.q-item .ph { width: 38px; height: 38px; border-radius: 6px; background: var(--raised); flex: none; }
.q-item[draggable] { cursor: grab; }
.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: var(--glass); 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); }
.pill { position: relative; }
.pill.dot::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.np { cursor: pointer; }
#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; }
#live { margin: 0; white-space: nowrap; }
.settings { grid-template-columns: 1fr; }
.toc { position: static; display: flex; flex-wrap: wrap; }
.tracks .acts button { opacity: 1; }
.tracks .ti small { display: block; margin-left: 0; }
.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; }
}
/* presets */
.presets .chip { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.chip.locked { box-shadow: inset 0 0 0 1.5px var(--accent); }
.chip.on.locked { box-shadow: inset 0 0 0 1.5px var(--accent-ink); }
.chip svg, .prow svg { width: 13px; height: 13px; fill: currentColor; }
.plist { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.prow { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--raised); border-radius: 8px; }
.prow .pn { display: inline-flex; align-items: center; gap: 6px; }
.prow .btn.on { background: var(--accent); color: var(--accent-ink); }
/* home */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 16px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px; }
.shelf.two { grid-template-rows: auto auto; }
.stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.station { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 16px; border-radius: 12px; background: var(--raised); }
.station:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.station span { color: var(--muted); font-size: 13px; }
/* downloads */
.dlgroup { margin-bottom: 24px; }
/* web radio */
#player.radio .seek, #player.radio #b-prev, #player.radio #b-next, #player.radio #b-shuffle { visibility: hidden; }
.stationlist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.stn { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--raised); }
.stn.on { box-shadow: inset 0 0 0 1.5px var(--accent); }
.stn .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stn .tx .note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
input[type=number]#precachen { width: 64px; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
#precache { flex: 1; }
/* about */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 12px 0; }
.person { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; background: var(--raised); }