Mini player, direct file links, backups and polish

- Mini player with optional cover art, blurred backdrop, reorderable queue and always-on-top
- Direct .mp3/.wav/.flac/.mp4 links are verified and read for real bitrate, tags and cover
- Lyrics soften with distance from the sung line; hovering brings a line into focus
- Browser sign-in check with clear guidance, plus cookies.txt file support
- Backup and restore of settings, stats, liked songs and artist photos
- Uninstaller keeps data by default and offers a backup before deleting it
- Stalled partial downloads clear automatically when downloads finish
- Window border follows the app theme; images can no longer be dragged out
- Fix search results rendering as [object Object]
This commit is contained in:
Christian
2026-11-18 20:17:39 -05:00
parent 1fcd3a85f7
commit 7329bd673b
24 changed files with 1105 additions and 32 deletions
+67
View File
@@ -882,3 +882,70 @@ input[type="checkbox"].box:checked::after { content: ""; width: 8px; height: 4px
.share-side h3 { font-size: 12px; color: var(--text-2); margin-top: var(--s2); }
.share-side .row { margin-top: var(--s3); flex-wrap: wrap; }
@media (max-width: 1100px) { .stat-cards { grid-template-columns: 1fr 1fr; } .stat-split { grid-template-columns: 1fr; } .share { grid-template-columns: 1fr; } }
/* lyric depth of field */
.lyr.depth .lyr-line { filter: blur(calc(var(--dist, 2) * 0.7px)); transition: color 180ms var(--ease), opacity 180ms var(--ease), filter 320ms var(--ease); }
.lyr.depth .lyr-line.on { filter: none; }
.lyr.depth .lyr-line:hover, .lyr.depth .lyr-line:focus-visible { filter: none; opacity: 0.95; transition-duration: 120ms; }
.lyr.big.depth .lyr-line { filter: blur(calc(var(--dist, 2) * 1.4px)); }
.lyr.big.depth .lyr-line.on, .lyr.big.depth .lyr-line:hover, .lyr.big.depth .lyr-line:focus-visible { filter: none; }
@media (prefers-reduced-motion: reduce) { .lyr.depth .lyr-line { transition: none !important; } }
/* nothing visual drags out of the app */
img, svg, canvas, picture, a { -webkit-user-drag: none; user-drag: none; }
img { user-select: none; }
[draggable="true"] { -webkit-user-drag: element; }
/* browser sign-in */
.signin-ctl { display: flex; gap: var(--s2); align-items: center; flex-shrink: 0; }
.signin-status { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-2); max-width: 60ch; }
.signin-status[data-kind="ok"] { color: var(--ok); }
.signin-status[data-kind="err"] { color: var(--err); }
#cookiesFilePath { overflow-wrap: anywhere; }
/* mini player */
body.mini-mode > *:not(#mini):not(.toasts):not(.modal-wrap):not(script) { display: none !important; }
.mini { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--text); overflow: hidden; }
.mini[hidden] { display: none; }
.mini-bg { position: absolute; inset: -60px; background: var(--mini-art) center / cover no-repeat; filter: blur(46px) saturate(1.35) brightness(0.5); opacity: 0; transition: opacity 320ms var(--ease); pointer-events: none; z-index: 0; }
.mini.with-blur .mini-bg { opacity: 1; }
.mini > :not(.mini-bg) { position: relative; z-index: 1; }
.mini.with-blur { color: #f4f5f8; --text-2: rgba(244, 245, 248, 0.74); --text-3: rgba(244, 245, 248, 0.52); --hover: rgba(255, 255, 255, 0.09); --hairline: rgba(255, 255, 255, 0.1); }
.mini-top { flex: none; display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 6px 0 14px; }
.mini-brand { font-size: 11px; font-weight: 650; letter-spacing: 0.04em; text-transform: lowercase; color: var(--text-3); }
.mini-opts { display: flex; gap: 2px; }
.mini-opt[aria-pressed="true"] { color: var(--accent); }
.mini.with-blur .mini-opt[aria-pressed="true"] { color: #fff; background: rgba(255, 255, 255, 0.12); }
.mini-art { flex: none; display: grid; place-items: center; padding: 2px 20px 14px; }
.mini-art img, .mini-art-empty { width: 100%; max-width: 268px; aspect-ratio: 1; border-radius: 12px; object-fit: cover; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.6); }
.mini-art-empty { display: grid; place-items: center; background: var(--surface); color: var(--text-3); }
.mini-art-empty .i svg { width: 48px; height: 48px; }
.mini-meta { flex: none; display: grid; gap: 2px; padding: 0 20px; text-align: center; min-width: 0; }
.mini-title { font: 650 15px/1.3 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-artist { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-seek { flex: none; display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 8px; align-items: center; padding: 10px 14px 0; }
.mini-t { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: center; }
.mini-ctl { flex: none; display: flex; justify-content: center; align-items: center; gap: 22px; padding: 6px 0 12px; }
.mini-ctl .icon-btn { width: 36px; height: 36px; color: var(--text-2); }
.mini-ctl .icon-btn:hover { color: var(--text); }
.mini-play { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); transition: transform 120ms var(--ease); }
.mini.with-blur .mini-play { background: #fff; color: #111318; }
.mini-play:hover { transform: scale(1.05); }
.mini-play:active { transform: scale(0.96); }
.mini-play .i svg { width: 20px; height: 20px; }
.mini-queue { flex: 1; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.mq-head { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 4px 16px; font-size: 12px; font-weight: 600; color: var(--text-2); min-height: 34px; }
.mq-list { flex: 1; overflow-y: auto; padding: 0 6px 8px; }
.mq-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) 28px; gap: 6px; align-items: center; padding: 4px 4px 4px 4px; border-radius: 8px; cursor: grab; }
.mq-row:hover { background: var(--hover); }
.mq-row .icon-btn { opacity: 0; }
.mq-row:hover .icon-btn, .mq-row:focus-within .icon-btn { opacity: 1; }
.mq-grip { color: var(--text-3); display: grid; place-items: center; }
.mq-grip .i svg { width: 14px; height: 14px; }
.mq-row.dragging { opacity: 0.4; }
.mq-row.drop-above { box-shadow: inset 0 2px 0 var(--accent); }
.mq-row.drop-below { box-shadow: inset 0 -2px 0 var(--accent); }
.mq-empty { margin: 0; padding: 6px 16px 12px; color: var(--text-3); font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .mini-bg, .mini-play { transition: none; } }
.mini.mac .mini-top { padding-left: 78px; }
.mini.mac .mini-brand { display: none; }