clove/musicPlayer
web/client/src/styles.css
/* Comic Code — the shared face across every site, served from the same CDN the
personal + info sites use. Four cuts (regular / italic / medium / bold). */
@font-face {
font-family: "Comic Code";
src: url("https://fonts.doughmination.co.uk/ComicCode-Regular_2022-05-24-151938_hsmz.woff2") format("woff2"),
url("https://fonts.doughmination.co.uk/ComicCode-Regular_2022-05-24-151938_hsmz.woff") format("woff");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Comic Code";
src: url("https://fonts.doughmination.co.uk/ComicCode-Italic_2022-05-24-151939_rdtu.woff2") format("woff2"),
url("https://fonts.doughmination.co.uk/ComicCode-Italic_2022-05-24-151939_rdtu.woff") format("woff");
font-weight: 400;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: "Comic Code";
src: url("https://fonts.doughmination.co.uk/ComicCode-Medium_2022-05-24-151941_ugqm.woff2") format("woff2"),
url("https://fonts.doughmination.co.uk/ComicCode-Medium_2022-05-24-151941_ugqm.woff") format("woff");
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Comic Code";
src: url("https://fonts.doughmination.co.uk/ComicCode-Bold_2022-05-24-152309_zqkm.woff2") format("woff2"),
url("https://fonts.doughmination.co.uk/ComicCode-Bold_2022-05-24-152309_zqkm.woff") format("woff");
font-weight: 700;
font-style: normal;
font-display: swap;
}
:root {
/* Unified dark palette — derived from the info site's colours so every app
matches. bg #0a0b10, surface #12141c, surfaceHover #1b1e2a, text #f4f6fb,
muted #9aa3c2, border #232838, accent #f5a9b8. */
--bg: #0a0b10;
--panel: #12141c;
--panel-2: #1b1e2a;
--text: #f4f6fb;
--muted: #9aa3c2;
--accent: #f5a9b8;
--danger: #d15f8c;
--border: #232838;
--radius: 10px;
}
* {
box-sizing: border-box;
scrollbar-width: thin;
scrollbar-color: var(--panel-2) transparent;
}
body {
margin: 0;
font-family: "Comic Code", ui-monospace, monospace;
background: var(--bg);
color: var(--text);
overflow-x: hidden;
}
/* --- scrollbars + selection: match the dark palette instead of the OS default
(the pale native scrollbar and blue highlight look broken on this bg,
especially in the Electron shell). `scrollbar-*` for Firefox lives on the
`*` rule above. --- */
::-webkit-scrollbar {
width: 12px;
height: 12px;
}
::-webkit-scrollbar-track {
background: var(--bg);
}
::-webkit-scrollbar-thumb {
background: var(--panel-2);
border: 3px solid var(--bg);
border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
background: #2b3040;
}
::-webkit-scrollbar-corner {
background: var(--bg);
}
::selection {
background: var(--accent);
color: var(--bg);
}
button {
font: inherit;
cursor: pointer;
}
/* --- login --- */
.login {
max-width: 360px;
margin: 20vh auto;
text-align: center;
}
.login h1 {
font-size: 2.5rem;
margin-bottom: 0.25rem;
}
.login p {
color: var(--muted);
margin-bottom: 1.5rem;
}
/* --- buttons --- */
.btn {
padding: 0.5rem 1rem;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--panel-2);
color: var(--text);
text-decoration: none;
display: inline-block;
}
.btn-primary {
background: var(--accent);
border-color: var(--accent);
color: var(--bg);
font-weight: 600;
}
.icon-btn {
width: 2rem;
height: 2rem;
border: none;
border-radius: 50%;
background: transparent;
color: var(--muted);
font-size: 1rem;
display: inline-flex;
align-items: center;
justify-content: center;
}
.icon-btn:hover {
background: var(--panel-2);
color: var(--text);
}
.icon-btn.play {
background: var(--accent);
color: var(--bg);
}
.link {
background: none;
border: none;
color: var(--accent);
padding: 0;
}
/* --- layout --- */
.layout {
display: grid;
grid-template-columns: 240px 1fr;
height: calc(100vh - 88px);
}
.sidebar {
background: var(--panel);
border-right: 1px solid var(--border);
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
overflow-y: auto;
}
.brand {
font-size: 1.4rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
.nav-link {
text-align: left;
background: none;
border: none;
color: var(--text);
padding: 0.5rem;
border-radius: var(--radius);
}
.nav-link.active,
.playlists li.active button {
background: var(--panel-2);
color: var(--accent);
}
.section-head {
display: flex;
justify-content: space-between;
align-items: center;
color: var(--muted);
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-top: 1rem;
}
.playlists {
list-style: none;
margin: 0;
padding: 0;
}
.playlists button {
width: 100%;
text-align: left;
background: none;
border: none;
color: var(--text);
padding: 0.4rem 0.5rem;
border-radius: var(--radius);
}
.playlists button:hover {
background: var(--panel-2);
}
.sidebar-foot {
margin-top: auto;
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.6rem;
font-size: 0.85rem;
color: var(--muted);
padding-top: 1rem;
border-top: 1px solid var(--border);
}
.main {
padding: 1.5rem 2rem;
overflow-y: auto;
}
/* header back/forward arrows — sticky so they stay put while a view scrolls */
.nav-arrows {
position: sticky;
top: 0;
z-index: 5;
display: flex;
align-items: center;
gap: 0.25rem;
margin: -1.5rem -2rem 0.5rem;
padding: 0.5rem 2rem;
background: var(--bg);
}
.nav-arrows .icon-btn {
border: 1px solid var(--border);
background: var(--panel);
}
/* sits at the far end of the history bar */
.nav-get-app {
margin-left: auto;
}
.nav-arrows .icon-btn:disabled {
opacity: 0.3;
pointer-events: none;
}
.main-head {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.main-head-title {
display: flex;
align-items: center;
gap: 0.75rem;
}
.search {
padding: 0.5rem 0.75rem;
border-radius: var(--radius);
border: 1px solid var(--border);
background: var(--panel);
color: var(--text);
width: 260px;
}
/* --- upload --- */
.upload {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-items: center;
background: var(--panel);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1rem;
margin-bottom: 1.5rem;
}
.upload input[type="text"],
.upload input[name="title"],
.upload input[name="artist"],
.upload input[name="album"] {
padding: 0.45rem 0.6rem;
border-radius: var(--radius);
border: 1px solid var(--border);
background: var(--panel-2);
color: var(--text);
}
.cover-label {
font-size: 0.85rem;
color: var(--muted);
display: flex;
gap: 0.4rem;
align-items: center;
}
.hint {
flex-basis: 100%;
color: var(--muted);
font-size: 0.8rem;
}
/* --- song list --- */
.songs {
display: flex;
flex-direction: column;
}
.song {
display: grid;
grid-template-columns: 44px 1fr auto auto;
align-items: center;
gap: 0.75rem;
padding: 0.4rem 0.5rem;
border-radius: var(--radius);
cursor: pointer;
}
.song:hover {
background: var(--panel);
}
.cover {
width: 44px;
height: 44px;
border-radius: 6px;
object-fit: cover;
background: var(--panel-2);
}
/* Spotify-style: cover art becomes the play button on hover */
.song-cover {
position: relative;
width: 44px;
height: 44px;
flex-shrink: 0;
}
.cover-play {
position: absolute;
inset: 0;
z-index: 2; /* above the now-playing bars, so hover-to-toggle still works */
display: flex;
align-items: center;
justify-content: center;
border: none;
border-radius: 6px;
background: rgba(0, 0, 0, 0.55);
color: var(--text);
font-size: 1.15rem;
opacity: 0;
transition: opacity 0.15s ease;
cursor: pointer;
}
/* Animated "now playing" equalizer bars, shown on the active row's cover. */
.np-bars {
position: absolute;
inset: 0;
z-index: 1;
display: none;
align-items: flex-end;
justify-content: center;
gap: 2px;
padding: 9px 8px;
border-radius: 6px;
background: rgba(0, 0, 0, 0.5);
}
.song.playing .np-bars {
display: flex;
}
.np-bars span {
width: 3px;
height: 30%;
border-radius: 1px;
background: rgb(120, 200, 140); /* matches the player-bar visualizer */
animation: np-bounce 0.9s ease-in-out infinite;
}
.np-bars span:nth-child(1) { animation-delay: -0.2s; }
.np-bars span:nth-child(2) { animation-delay: -0.6s; }
.np-bars span:nth-child(3) { animation-delay: -0.1s; }
.np-bars span:nth-child(4) { animation-delay: -0.45s; }
/* Freeze the bars when the current track is paused. */
.song.paused .np-bars span {
animation-play-state: paused;
}
@keyframes np-bounce {
0%, 100% { height: 25%; }
50% { height: 90%; }
}
.song:hover .cover-play,
.cover-play:focus-visible {
opacity: 1;
}
/* Touch devices have no hover — keep the play affordance visible + tappable */
@media (hover: none) {
.cover-play {
opacity: 1;
background: rgba(0, 0, 0, 0.35);
}
}
.cover-empty {
display: flex;
align-items: center;
justify-content: center;
color: var(--muted);
}
.song-meta {
display: flex;
flex-direction: column;
min-width: 0;
}
.song-title {
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.song-artist {
color: var(--muted);
font-size: 0.85rem;
max-width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.artist-link {
background: none;
border: none;
padding: 0;
margin: 0;
font: inherit;
text-align: left;
cursor: pointer;
/* inline-block so the click target hugs the text, but max-width + ellipsis
keep a long (or multi-) artist name from overflowing the row. */
display: inline-block;
max-width: 100%;
vertical-align: bottom;
}
.artist-link:hover,
.artist-link:focus-visible {
color: var(--accent);
text-decoration: underline;
}
.song-dur {
color: var(--muted);
font-variant-numeric: tabular-nums;
}
.song-actions {
display: flex;
gap: 0.25rem;
}
.empty {
color: var(--muted);
}
/* --- player bar --- */
.playerbar {
height: 88px;
background: var(--panel);
border-top: 1px solid var(--border);
display: flex;
align-items: center;
padding: 0 1.5rem;
gap: 1.5rem;
}
.pb-empty {
color: var(--muted);
margin: auto;
}
/* Now-playing album cover in the player bar */
.pb-cover {
position: relative;
width: 44px;
height: 44px;
flex-shrink: 0;
}
.pb-song {
display: flex;
align-items: center;
gap: 0.75rem;
width: 220px;
flex-shrink: 0;
}
.pb-controls {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.4rem;
}
.pb-buttons .icon-btn i {
font-size: 1.1rem;
}
.pb-buttons .play i {
font-size: 1.15rem;
}
.pb-buttons {
display: flex;
gap: 0.5rem;
align-items: center;
}
.pb-seek {
display: flex;
align-items: center;
gap: 0.6rem;
width: 100%;
max-width: 560px;
color: var(--muted);
font-size: 0.8rem;
font-variant-numeric: tabular-nums;
}
.pb-seek input[type="range"] {
flex: 1;
appearance: none;
height: 4px;
border-radius: 2px;
background: linear-gradient(
to right,
var(--accent) var(--pct, 0%),
var(--panel-2) var(--pct, 0%)
);
}
.pb-seek input[type="range"]::-webkit-slider-thumb {
appearance: none;
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--text);
}
/* --- avatars --- */
.avatar {
width: 28px;
height: 28px;
border-radius: 50%;
object-fit: cover;
background: var(--panel-2);
flex-shrink: 0;
}
.avatar-empty {
display: flex;
align-items: center;
justify-content: center;
color: var(--accent);
font-weight: 700;
font-size: 0.8rem;
}
.avatar.sm {
width: 24px;
height: 24px;
}
.avatar.lg {
width: 72px;
height: 72px;
font-size: 1.75rem;
}
.avatar-upload {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0 0 1rem;
}
.btn-sm {
padding: 0.3rem 0.7rem;
font-size: 0.85rem;
}
/* --- playlist cover --- */
.playlist-head-cover {
display: flex;
align-items: center;
gap: 0.75rem;
}
.playlist-cover {
width: 56px;
height: 56px;
border-radius: var(--radius);
object-fit: cover;
background: var(--panel-2);
flex-shrink: 0;
}
.playlist-cover-empty {
display: flex;
align-items: center;
justify-content: center;
color: var(--muted);
font-size: 1.4rem;
}
/* --- playlist picker modal --- */
.playlist-picker {
list-style: none;
margin: 0.75rem 0 0;
padding: 0;
max-height: 280px;
overflow-y: auto;
}
.playlist-picker li + li {
margin-top: 0.25rem;
}
.playlist-picker .playlist-pick {
width: 100%;
text-align: left;
padding: 0.5rem 0.75rem;
border: 1px solid transparent;
border-radius: var(--radius);
background: var(--panel-2);
color: var(--text);
cursor: pointer;
}
.playlist-picker .playlist-pick:hover {
border-color: var(--border);
}
.playlist-picker .empty {
color: var(--muted);
padding: 0.5rem 0.25rem;
}
.me-name {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* --- shared badge + toggle --- */
.pl-badge {
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 0.05em;
background: var(--panel-2);
color: var(--accent);
padding: 0.1rem 0.35rem;
border-radius: 6px;
vertical-align: middle;
}
.playlists button {
display: flex;
align-items: center;
gap: 0.4rem;
justify-content: space-between;
}
.pl-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.head-actions {
display: flex;
align-items: center;
gap: 0.75rem;
}
.share-toggle {
display: flex;
align-items: center;
gap: 0.4rem;
color: var(--muted);
font-size: 0.9rem;
}
.owner-tag {
display: flex;
align-items: center;
gap: 0.4rem;
color: var(--muted);
font-size: 0.9rem;
}
/* --- upload card --- */
.upload-card {
display: flex;
flex-direction: column;
gap: 0.9rem;
max-width: 460px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.5rem;
}
.field {
display: flex;
flex-direction: column;
gap: 0.3rem;
font-size: 0.9rem;
color: var(--muted);
}
.field em {
font-style: normal;
opacity: 0.7;
}
.field input[type="text"],
.field input[name="title"],
.field input[name="artist"],
.field input[name="album"] {
padding: 0.5rem 0.65rem;
border-radius: var(--radius);
border: 1px solid var(--border);
background: var(--panel-2);
color: var(--text);
}
.upload-status {
color: var(--muted);
font-size: 0.85rem;
}
/* --- dropzone + file chip --- */
.dropzone {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.4rem;
text-align: center;
padding: 1.5rem 1rem;
border: 2px dashed var(--border);
border-radius: 12px;
background: var(--panel-2);
color: var(--muted);
cursor: pointer;
transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover,
.dropzone:focus-visible {
border-color: var(--accent);
outline: none;
}
.dropzone.drag {
border-color: var(--accent);
background: rgba(108, 140, 255, 0.08);
}
.dz-icon {
font-size: 1.6rem;
color: var(--accent);
}
.dz-text {
font-size: 0.9rem;
}
.dz-link {
color: var(--accent);
text-decoration: underline;
}
.dz-file {
font-size: 0.85rem;
color: var(--text);
word-break: break-all;
}
.dropzone.has-file .dz-icon {
color: var(--text);
}
.dz-hint {
font-size: 0.78rem;
color: var(--muted);
opacity: 0.8;
}
#upload-body {
margin-top: 1rem;
}
/* --- bulk upload list --- */
.batch {
list-style: none;
margin: 0.5rem 0 1rem;
padding: 0;
max-height: 320px;
overflow-y: auto;
border: 1px solid var(--border);
border-radius: var(--radius);
}
.b-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
padding: 0.4rem 0.65rem;
border-bottom: 1px solid var(--border);
font-size: 0.85rem;
}
.b-row:last-child {
border-bottom: none;
}
.b-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.b-stat {
flex-shrink: 0;
color: var(--muted);
font-variant-numeric: tabular-nums;
}
.b-stat.ok {
color: var(--accent);
}
.b-stat.err {
color: var(--danger);
}
.file-chip {
display: inline-flex;
align-items: center;
gap: 0.5rem;
align-self: flex-start;
padding: 0.45rem 0.8rem;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--panel-2);
color: var(--text);
cursor: pointer;
font-size: 0.9rem;
}
.file-chip:hover {
border-color: var(--accent);
}
.check-row {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--text);
font-size: 0.9rem;
cursor: pointer;
}
.check-inline {
display: inline-flex;
align-items: center;
gap: 0.4rem;
color: var(--muted);
font-size: 0.85rem;
white-space: nowrap;
}
/* Explicit "E" badge next to a track title */
.tag-e {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 1.05rem;
height: 1.05rem;
margin-left: 0.4rem;
padding: 0 0.2rem;
border-radius: 3px;
background: var(--muted);
color: var(--bg);
font-size: 0.62rem;
font-weight: 800;
vertical-align: middle;
line-height: 1;
}
/* --- browse grid --- */
.pl-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 0.75rem;
}
.pl-card {
display: flex;
align-items: center;
gap: 0.6rem;
text-align: left;
background: var(--panel);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 0.75rem;
color: var(--text);
}
.pl-card:hover {
background: var(--panel-2);
}
.pl-card-meta {
display: flex;
flex-direction: column;
min-width: 0;
}
.pl-card-name {
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.pl-card-sub {
color: var(--muted);
font-size: 0.8rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* --- player: shuffle/repeat active + volume --- */
.icon-btn.on {
color: var(--accent);
}
.pb-volume {
display: flex;
align-items: center;
gap: 0.4rem;
width: 130px;
flex-shrink: 0;
justify-content: flex-end;
}
.pb-volume .icon-btn {
flex-shrink: 0;
}
.pb-volume input[type="range"] {
flex: 1;
appearance: none;
height: 4px;
border-radius: 2px;
background: linear-gradient(
to right,
var(--accent) var(--pct, 100%),
var(--panel-2) var(--pct, 100%)
);
}
.pb-volume input[type="range"]::-webkit-slider-thumb {
appearance: none;
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--text);
}
.pb-right {
display: flex;
align-items: center;
gap: 0.5rem;
flex-shrink: 0;
}
/* --- modal --- */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
display: flex;
align-items: center;
justify-content: center;
z-index: 50;
padding: 1rem;
}
.modal {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 14px;
width: 100%;
max-width: 440px;
padding: 1.25rem 1.5rem 1.5rem;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1rem;
}
.modal-head h2 {
margin: 0;
}
.modal .upload-card {
background: transparent;
border: none;
padding: 0;
max-width: none;
}
/* segmented Files / YouTube switch in the upload modal */
.seg {
display: flex;
gap: 0.25rem;
padding: 0.25rem;
margin-bottom: 1rem;
background: var(--panel-2);
border: 1px solid var(--border);
border-radius: 10px;
}
.seg-btn {
flex: 1;
padding: 0.4rem 0.5rem;
border: none;
border-radius: 7px;
background: transparent;
color: var(--muted);
font: inherit;
cursor: pointer;
}
.seg-btn.active {
background: var(--panel);
color: var(--text);
}
/* --- toast --- */
.toast {
position: fixed;
bottom: 104px;
left: 50%;
transform: translateX(-50%);
background: var(--panel-2);
border: 1px solid var(--border);
color: var(--text);
padding: 0.6rem 1rem;
border-radius: var(--radius);
z-index: 60;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
/* --- lyrics overlay --- */
.lyrics-overlay {
position: fixed;
inset: 0 0 88px 0;
background: rgba(14, 15, 19, 0.97);
z-index: 40;
display: flex;
flex-direction: column;
padding: 1.5rem 2rem;
}
.ly-head {
display: flex;
align-items: center;
justify-content: space-between;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border);
}
.ly-song {
display: flex;
flex-direction: column;
}
.ly-title {
font-size: 1.3rem;
font-weight: 700;
}
.ly-artist {
color: var(--muted);
}
.ly-actions {
display: flex;
align-items: center;
gap: 0.25rem;
}
.ly-body {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
padding: 2rem 0;
text-align: center;
scroll-behavior: smooth;
}
.ly-line {
font-size: 1.5rem;
line-height: 1.5;
margin: 0.4rem auto;
max-width: 40rem;
color: var(--muted);
overflow-wrap: break-word;
word-break: break-word;
transform-origin: center;
transition: color 0.2s, transform 0.2s;
}
.ly-body.is-synced .ly-line {
opacity: 0.55;
}
.ly-body.is-synced .ly-line.is-active {
color: var(--text);
opacity: 1;
transform: scale(1.04);
font-weight: 700;
}
.ly-static {
font-size: 1.1rem;
color: var(--text);
}
.ly-note {
color: var(--muted);
text-align: center;
margin-top: 2rem;
}
/* --- mobile drawer chrome (hidden on desktop) --- */
.hamburger {
display: none;
position: fixed;
top: 0.6rem;
left: 0.75rem;
z-index: 46;
width: 2.4rem;
height: 2.4rem;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--panel);
color: var(--text);
font-size: 1.2rem;
align-items: center;
justify-content: center;
}
.scrim {
display: none;
}
/* --- artist pages --- */
.artist-bio {
color: var(--muted);
margin: -0.25rem 0 1rem;
max-width: 60ch;
}
/* --- settings --- */
.settings-section {
max-width: 480px;
padding: 1rem;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--panel);
}
.settings-section h3 {
margin: 0 0 0.5rem;
}
.settings-section p {
color: var(--muted);
margin: 0 0 0.75rem;
}
/* --- duplicate review + artist link requests --- */
.dupe-row {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 0.85rem 1rem;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--panel);
margin-bottom: 0.75rem;
}
.dupe-score {
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--accent);
}
.dupe-compare {
display: flex;
align-items: center;
gap: 1rem;
}
.dupe-compare > i {
color: var(--muted);
flex-shrink: 0;
}
.dupe-side {
display: flex;
flex-direction: column;
flex: 1;
min-width: 0;
}
.dupe-side .song-artist,
.dupe-side .song-dur {
color: var(--muted);
font-size: 0.8rem;
}
.dupe-reasons {
margin: 0;
padding-left: 1.1rem;
color: var(--muted);
font-size: 0.8rem;
}
.dupe-actions {
display: flex;
gap: 0.5rem;
justify-content: flex-end;
flex-shrink: 0;
}
.req-row {
align-items: center;
}
.req-by {
display: block;
color: var(--muted);
font-size: 0.75rem;
}
/* --- downloads ("Get the app") --- */
.downloads-sub {
color: var(--muted);
max-width: 60ch;
margin: -0.25rem 0 1.25rem;
}
.downloads-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 0.75rem;
max-width: 720px;
}
.download-card {
display: grid;
grid-template-columns: auto 1fr;
grid-template-areas:
"icon label"
"icon file"
"go go";
column-gap: 0.75rem;
row-gap: 0.15rem;
padding: 1rem;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--panel);
color: var(--text);
text-decoration: none;
}
.download-card:hover {
border-color: var(--accent);
background: var(--panel-2);
}
.download-card > .bi:first-child {
grid-area: icon;
font-size: 1.6rem;
align-self: center;
color: var(--accent);
}
.download-card .dl-label {
grid-area: label;
font-weight: 600;
}
.download-card .dl-file {
grid-area: file;
color: var(--muted);
font-size: 0.75rem;
word-break: break-all;
}
.download-card .dl-go {
grid-area: go;
margin-top: 0.6rem;
color: var(--accent);
font-size: 0.9rem;
}
.downloads-foot {
margin-top: 1.5rem;
color: var(--muted);
font-size: 0.85rem;
}
/* --- responsive --- */
@media (max-width: 768px) {
.hamburger {
display: inline-flex;
}
.layout {
grid-template-columns: 1fr;
height: calc(100vh - 76px);
}
.sidebar {
position: fixed;
top: 0;
bottom: 0;
left: 0;
width: 78%;
max-width: 300px;
z-index: 45;
transform: translateX(-100%);
transition: transform 0.22s ease;
}
.sidebar.open {
transform: none;
box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}
.scrim.show {
display: block;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 44;
}
.main {
padding: 3.5rem 1rem 1rem;
}
/* static on mobile: sticky would collide with the fixed hamburger */
.nav-arrows {
position: static;
margin: 0 0 0.5rem;
padding: 0;
background: none;
}
.main-head {
flex-wrap: wrap;
gap: 0.75rem;
}
.search {
width: 100%;
}
/* Player bar: drop the volume slider (iOS ignores it anyway), tighten up */
.playerbar {
height: 76px;
padding: 0 0.75rem;
gap: 0.75rem;
}
/* Mobile player bar: album cover + transport controls only. */
.pb-song {
flex: 0 0 auto;
width: auto;
}
.pb-song .song-meta {
display: none;
}
#lyrics-btn {
display: none;
}
.pb-volume {
display: none;
}
.pb-seek {
gap: 0.4rem;
}
.pb-controls {
flex: 0 0 auto;
}
/* On very narrow screens the seek bar can hide; keep transport usable */
.pb-seek {
max-width: 200px;
}
.ly-line {
font-size: 1.15rem;
}
.lyrics-overlay {
inset: 0 0 76px 0;
padding: 1rem 1.25rem;
}
.modal {
max-width: 100%;
}
.dupe-compare {
flex-direction: column;
align-items: flex-start;
}
.dupe-compare > i {
align-self: center;
transform: rotate(90deg);
}
.req-row {
flex-wrap: wrap;
}
.req-row .dupe-actions {
width: 100%;
justify-content: flex-start;
}
}
@media (max-width: 480px) {
/* Stack the transport over a full-width seek bar */
.pb-controls {
flex: 1;
}
.pb-seek {
max-width: none;
}
.pb-song .song-meta {
max-width: 40vw;
}
}
/* --- app icon / brand --- */
/* Both brand marks are <button>s that navigate home — strip the native
chrome. The sidebar `.brand` rule above still sets the type scale (font
size / weight / margin), so don't reset `font` here. */
.brand {
display: flex;
align-items: center;
gap: 0.5rem;
width: 100%;
background: none;
border: none;
padding: 0;
color: inherit;
text-align: left;
}
.brand:hover {
color: var(--accent);
}
.brand-logo {
width: 26px;
height: 26px;
border-radius: 7px;
flex-shrink: 0;
}
/* Persistent corner mark on mobile, where there's no always-visible sidebar
brand. Hidden on desktop — the sidebar brand carries it there. */
.app-logo-corner {
display: none;
position: fixed;
top: 0.6rem;
right: 0.9rem;
width: 2rem;
height: 2rem;
padding: 0;
border: none;
background: none;
z-index: 46;
}
.app-logo-corner img {
width: 100%;
height: 100%;
border-radius: 8px;
display: block;
}
@media (max-width: 768px) {
.app-logo-corner {
display: block;
}
}
/* --- heart / like --- */
.icon-btn.like.liked,
.icon-btn.like.liked:hover {
color: var(--accent);
}
.accent {
color: var(--accent);
}
.tag-pending {
font-size: 0.6rem;
text-transform: uppercase;
letter-spacing: 0.05em;
background: var(--panel-2);
color: var(--muted);
padding: 0.05rem 0.3rem;
border-radius: 5px;
margin-left: 0.4rem;
vertical-align: middle;
}
/* --- context (⋯) menu --- */
.ctx-menu {
position: fixed;
z-index: 60;
min-width: 190px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 0.3rem;
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
display: flex;
flex-direction: column;
}
.ctx-item {
display: flex;
align-items: center;
gap: 0.6rem;
width: 100%;
text-align: left;
background: none;
border: none;
color: var(--text);
padding: 0.5rem 0.6rem;
border-radius: 7px;
font-size: 0.9rem;
}
.ctx-item:hover {
background: var(--panel-2);
}
.ctx-item i {
color: var(--muted);
width: 1rem;
text-align: center;
}
.ctx-item.danger {
color: var(--danger);
}
.ctx-item.danger i {
color: var(--danger);
}
/* --- single song page (/song/:id) --- */
.song-page {
display: flex;
gap: 1.5rem;
align-items: flex-end;
flex-wrap: wrap;
}
.song-page-cover {
width: 200px;
height: 200px;
border-radius: var(--radius);
object-fit: cover;
flex-shrink: 0;
}
.song-page-cover.cover-empty {
display: grid;
place-items: center;
font-size: 2.5rem;
color: var(--muted);
background: var(--panel-2);
}
.song-page-meta {
display: flex;
flex-direction: column;
gap: 0.4rem;
min-width: 0;
}
.song-page-meta .song-title {
font-size: 1.8rem;
font-weight: 700;
}
.song-page-actions {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
margin-top: 0.75rem;
}
/* --- player bar: heart + ⋯ --- */
.pb-song-actions {
display: flex;
align-items: center;
gap: 0.1rem;
flex-shrink: 0;
}
/* --- admin: edit requests --- */
.er-fields {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.3rem;
font-size: 0.85rem;
}
.er-fields li {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--muted);
}
.er-fields li.changed {
color: var(--text);
}
.er-label {
width: 4.5rem;
flex-shrink: 0;
color: var(--muted);
text-transform: uppercase;
font-size: 0.7rem;
letter-spacing: 0.05em;
}
.er-next {
color: var(--accent);
}