mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-21 23:05:46 +00:00
d49137475f
- set_decorations(false) on Linux at startup via #[cfg(target_os = "linux")] - New TitleBar component: drag region + minimize/maximize/close buttons - Currently playing track (▶/⏸ + artist – title) shown in the center - app-shell grid gains a 32px titlebar row when data-titlebar is set - IS_LINUX utility constant via navigator.platform - macOS and Windows are completely unaffected Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2088 lines
43 KiB
CSS
2088 lines
43 KiB
CSS
/* ─── Psysonic App Shell ─── */
|
|
|
|
*, *::before, *::after {
|
|
user-select: none;
|
|
}
|
|
|
|
/* Allow text selection only where the user needs to copy content */
|
|
.artist-bio, [data-selectable] {
|
|
user-select: text;
|
|
}
|
|
|
|
.app-shell {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: var(--sidebar-width) 1fr var(--queue-width);
|
|
grid-template-rows: 1fr var(--player-height);
|
|
grid-template-areas:
|
|
"sidebar main queue"
|
|
"player player player";
|
|
height: 100vh;
|
|
/* overflow: hidden keeps the player bar pinned at the bottom even when the
|
|
window is dragged below the OS minHeight constraint (ignored on some
|
|
Linux WMs/compositors). Without this, the 1fr row's implicit auto
|
|
min-height can push the grid taller than 100vh, scrolling the player
|
|
bar out of view. */
|
|
overflow: hidden;
|
|
background: var(--bg-app);
|
|
}
|
|
|
|
/* ─── Custom title bar (Linux only — decorations: false) ─── */
|
|
:root {
|
|
--titlebar-height: 32px;
|
|
}
|
|
|
|
.app-shell[data-titlebar] {
|
|
grid-template-rows: var(--titlebar-height) 1fr var(--player-height);
|
|
grid-template-areas:
|
|
"titlebar titlebar titlebar"
|
|
"sidebar main queue"
|
|
"player player player";
|
|
}
|
|
|
|
.titlebar {
|
|
grid-area: titlebar;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background: var(--bg-sidebar);
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
padding: 0 6px 0 12px;
|
|
height: var(--titlebar-height);
|
|
user-select: none;
|
|
}
|
|
|
|
.titlebar-title {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
letter-spacing: 0.02em;
|
|
pointer-events: none;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.titlebar-track {
|
|
position: absolute;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
max-width: 40%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.titlebar-track-state {
|
|
font-size: 9px;
|
|
color: var(--accent);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.titlebar-track-text {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
max-width: 100%;
|
|
}
|
|
|
|
.titlebar-controls {
|
|
display: flex;
|
|
gap: 2px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.titlebar-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 30px;
|
|
height: 24px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast), color var(--transition-fast);
|
|
}
|
|
|
|
.titlebar-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.titlebar-btn-close:hover {
|
|
background: var(--danger);
|
|
color: #fff;
|
|
}
|
|
|
|
/* Resizer handles must start below the titlebar */
|
|
.app-shell[data-titlebar] .resizer {
|
|
top: var(--titlebar-height);
|
|
}
|
|
|
|
/* ─── Resizer Handles ─── */
|
|
.resizer {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: var(--player-height);
|
|
width: 6px;
|
|
cursor: col-resize;
|
|
z-index: 50;
|
|
background: transparent;
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
.resizer:hover, .resizer:active {
|
|
background: var(--accent);
|
|
}
|
|
|
|
.resizer-queue { right: calc(var(--queue-width) - 3px); }
|
|
|
|
/* ─── Sidebar ─── */
|
|
.sidebar {
|
|
grid-area: sidebar;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg-sidebar);
|
|
border-right: 1px solid var(--border-subtle);
|
|
position: relative;
|
|
z-index: 2;
|
|
min-height: 0; /* allow 1fr row to shrink freely */
|
|
}
|
|
|
|
.sidebar-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
padding: 0 var(--space-5);
|
|
height: 64px;
|
|
box-sizing: border-box;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.sidebar-brand .logo-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar-brand .brand-name {
|
|
font-family: var(--font-display);
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
background: linear-gradient(135deg, var(--accent), var(--ctp-blue));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.sidebar-nav {
|
|
flex: 1;
|
|
padding: var(--space-1) var(--space-3) var(--space-4);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-1);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Library scope: Navidrome-style dropdown trigger + fixed panel (portal) */
|
|
.nav-library-scope-trigger {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: var(--space-2);
|
|
width: calc(100% - 2 * var(--space-3));
|
|
margin: var(--space-3) var(--space-3) var(--space-2);
|
|
padding: var(--space-2) var(--space-2);
|
|
border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg-tertiary, rgba(0, 0, 0, 0.2));
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
text-align: left;
|
|
transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
|
|
}
|
|
|
|
.nav-library-scope-trigger:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
border-color: var(--border-default, rgba(255, 255, 255, 0.12));
|
|
}
|
|
|
|
/* «Все библиотеки»: как секция навигации, без рамки и подложки */
|
|
.nav-library-scope-trigger--plain {
|
|
border-color: transparent;
|
|
background: transparent;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-library-scope-trigger--plain:hover {
|
|
border-color: transparent;
|
|
}
|
|
|
|
.nav-library-scope-trigger--plain .nav-library-scope-chevron {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.nav-library-scope-trigger--open:not(.nav-library-scope-trigger--plain) {
|
|
border-color: var(--accent, var(--border-default));
|
|
}
|
|
|
|
.nav-library-scope-trigger--open.nav-library-scope-trigger--plain {
|
|
border-color: var(--border-subtle, rgba(255, 255, 255, 0.08));
|
|
background: var(--bg-tertiary, rgba(0, 0, 0, 0.2));
|
|
}
|
|
|
|
.nav-library-scope-icon {
|
|
flex-shrink: 0;
|
|
margin-top: 2px;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.nav-library-scope-text {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.nav-library-scope-title {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.nav-library-scope-subtitle {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
line-height: 1.25;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.nav-library-scope-chevron {
|
|
flex-shrink: 0;
|
|
margin-top: 2px;
|
|
opacity: 0.7;
|
|
transition: transform var(--transition-fast);
|
|
}
|
|
|
|
.nav-library-scope-trigger--open .nav-library-scope-chevron {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.nav-library-dropdown-panel {
|
|
z-index: 10050;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: var(--space-1);
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--border-dropdown, rgba(255, 255, 255, 0.12));
|
|
background: var(--bg-secondary, #1e1e2e);
|
|
box-shadow: 0 8px 24px var(--shadow-dropdown, rgba(0, 0, 0, 0.45));
|
|
box-sizing: border-box;
|
|
overflow-y: visible;
|
|
}
|
|
|
|
/* >10 папок: «Все библиотеки» + до 10 строк папок, дальше — прокрутка */
|
|
.nav-library-dropdown-panel--many-libraries {
|
|
--nav-lib-dropdown-row-h: calc(2 * var(--space-2) + 1.35rem);
|
|
max-height: min(
|
|
calc(11 * var(--nav-lib-dropdown-row-h) + 2 * var(--space-1)),
|
|
70vh
|
|
);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.nav-library-dropdown-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-3);
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: var(--space-2) var(--space-3);
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
background: transparent;
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
.nav-library-dropdown-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.nav-library-dropdown-item--selected {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.nav-library-dropdown-item-label {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.nav-library-dropdown-check {
|
|
flex-shrink: 0;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.nav-library-dropdown-check-spacer {
|
|
flex-shrink: 0;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.nav-section-label {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
padding: var(--space-4) var(--space-3) var(--space-2);
|
|
}
|
|
|
|
.nav-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
padding: var(--space-3) var(--space-3);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: all var(--transition-fast);
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
position: relative;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.nav-link.active {
|
|
background: var(--accent-dim);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.nav-link.active::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 3px;
|
|
height: 60%;
|
|
background: var(--accent);
|
|
border-radius: 0 var(--radius-full) var(--radius-full) 0;
|
|
}
|
|
|
|
.nav-link svg {
|
|
flex-shrink: 0;
|
|
opacity: 0.7;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.nav-link.active svg,
|
|
.nav-link:hover svg {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Now Playing nav link — subtly accented but not permanently "active"-looking */
|
|
.nav-link-nowplaying {
|
|
color: var(--accent);
|
|
font-weight: 600;
|
|
}
|
|
.nav-link-nowplaying:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--accent);
|
|
}
|
|
.nav-link-nowplaying.active {
|
|
background: var(--accent-dim);
|
|
color: var(--accent);
|
|
}
|
|
.nav-link-nowplaying svg {
|
|
opacity: 1;
|
|
}
|
|
|
|
.nav-np-icon-wrap {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.nav-np-dot {
|
|
position: absolute;
|
|
top: -3px;
|
|
right: -4px;
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
background: var(--accent);
|
|
animation: np-dot-pulse 1.8s ease-in-out infinite;
|
|
}
|
|
@keyframes np-dot-pulse {
|
|
0%, 100% { opacity: 1; transform: scale(1); }
|
|
50% { opacity: 0.4; transform: scale(0.7); }
|
|
}
|
|
|
|
/* Collapsed Sidebar Styles */
|
|
.sidebar.collapsed .sidebar-brand {
|
|
justify-content: center;
|
|
padding: 0 var(--space-3);
|
|
}
|
|
|
|
.sidebar.collapsed .nav-link {
|
|
justify-content: center;
|
|
padding: var(--space-3) 0;
|
|
}
|
|
|
|
.collapse-btn {
|
|
position: absolute;
|
|
top: calc(50% - var(--player-height) / 2);
|
|
left: calc(var(--sidebar-width) - 11px);
|
|
transform: translateY(-50%);
|
|
z-index: 101;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
border: 1px solid var(--border-subtle);
|
|
background: var(--bg-card);
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.collapse-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.queue-toggle-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: var(--radius-md);
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--accent);
|
|
cursor: pointer;
|
|
transition: background 0.15s ease, color 0.15s ease;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.queue-toggle-btn:hover {
|
|
background: var(--accent-dim);
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* ─── Update Toast ─── */
|
|
@keyframes update-toast-in {
|
|
from { opacity: 0; transform: translateY(6px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* ── AppUpdater floating toast ── */
|
|
.app-updater-toast {
|
|
position: fixed;
|
|
bottom: calc(var(--player-height, 80px) + 12px);
|
|
left: 12px;
|
|
width: 210px;
|
|
padding: var(--space-3);
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg-sidebar);
|
|
border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
|
|
box-shadow: 0 4px 20px rgba(0,0,0,0.35);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
z-index: 9000;
|
|
animation: update-toast-in 0.35s ease both;
|
|
}
|
|
.app-updater-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
color: var(--accent);
|
|
}
|
|
.app-updater-label {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
flex: 1;
|
|
}
|
|
.app-updater-dismiss {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
padding: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
opacity: 0.6;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
.app-updater-dismiss:hover { opacity: 1; }
|
|
.app-updater-version {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
padding-left: 19px;
|
|
}
|
|
.app-updater-actions {
|
|
padding-left: 19px;
|
|
margin-top: 2px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
.app-updater-hint {
|
|
font-size: 10px;
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
margin: 0 0 2px;
|
|
}
|
|
.app-updater-error {
|
|
font-size: 10px;
|
|
color: var(--danger);
|
|
background: color-mix(in srgb, var(--danger) 12%, transparent);
|
|
border-radius: 4px;
|
|
padding: 4px 6px;
|
|
margin-bottom: 4px;
|
|
word-break: break-all;
|
|
}
|
|
.app-updater-btn-primary {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
opacity: 0.85;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
.app-updater-btn-primary:hover { opacity: 1; }
|
|
.app-updater-btn-secondary {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-size: 11px;
|
|
font-weight: 400;
|
|
color: var(--text-secondary);
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
opacity: 0.75;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
.app-updater-btn-secondary:hover { opacity: 1; color: var(--text-primary); }
|
|
.app-updater-progress-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
padding-left: 19px;
|
|
margin-top: 2px;
|
|
}
|
|
.app-updater-progress-bar {
|
|
flex: 1;
|
|
height: 3px;
|
|
background: var(--bg-glass);
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
}
|
|
.app-updater-progress-fill {
|
|
height: 100%;
|
|
background: var(--accent);
|
|
border-radius: 2px;
|
|
transition: width 0.15s ease;
|
|
}
|
|
.app-updater-pct {
|
|
font-size: 10px;
|
|
color: var(--text-muted);
|
|
min-width: 26px;
|
|
text-align: right;
|
|
}
|
|
.app-updater-status {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
padding-left: 19px;
|
|
font-style: italic;
|
|
}
|
|
|
|
.update-toast {
|
|
margin: 0 var(--space-1) var(--space-2);
|
|
padding: var(--space-3) var(--space-3);
|
|
border-radius: var(--radius-md);
|
|
background: var(--accent-dim);
|
|
border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
animation: update-toast-in 0.35s ease both;
|
|
}
|
|
|
|
.update-toast-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.update-toast-label {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.update-toast-version {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
padding-left: 22px;
|
|
}
|
|
|
|
.update-toast-link {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
padding-left: 22px;
|
|
opacity: 0.8;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.update-toast-link:hover {
|
|
opacity: 1;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.update-toast-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: var(--space-2) 0;
|
|
color: var(--accent);
|
|
animation: update-toast-in 0.35s ease both;
|
|
cursor: default;
|
|
}
|
|
|
|
/* ─── Sidebar offline download queue ─── */
|
|
.sidebar-offline-queue {
|
|
margin: 4px var(--space-1) 0;
|
|
padding: 6px 10px;
|
|
border-radius: var(--radius-md);
|
|
background: var(--accent-dim);
|
|
border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
font-size: 11px;
|
|
color: var(--accent);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sidebar-offline-queue--collapsed {
|
|
justify-content: center;
|
|
padding: 6px;
|
|
}
|
|
|
|
@keyframes spin-slow {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.spin-slow {
|
|
animation: spin-slow 2s linear infinite;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* ─── Main Content ─── */
|
|
.main-content {
|
|
grid-area: main;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
min-width: 0;
|
|
min-height: 0; /* allow 1fr row to shrink freely */
|
|
background: var(--bg-app);
|
|
z-index: 1;
|
|
}
|
|
|
|
.content-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-4);
|
|
padding: 0 var(--space-6);
|
|
height: 64px;
|
|
box-sizing: border-box;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
background: var(--bg-app);
|
|
position: relative;
|
|
z-index: 10;
|
|
}
|
|
|
|
.content-header h1 {
|
|
font-family: var(--font-display);
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.content-header .spacer { flex: 1; }
|
|
|
|
.content-body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding: var(--space-6);
|
|
contain: paint;
|
|
}
|
|
|
|
/* ─── Offline Banner ─── */
|
|
.offline-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 16px;
|
|
background: color-mix(in srgb, var(--accent) 12%, var(--bg-sidebar));
|
|
border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
|
|
color: var(--accent);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.offline-banner span {
|
|
flex: 1;
|
|
}
|
|
|
|
.offline-banner-retry {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
background: none;
|
|
border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--accent);
|
|
font-size: 11px;
|
|
padding: 2px 8px;
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
.offline-banner-retry:hover {
|
|
background: color-mix(in srgb, var(--accent) 15%, transparent);
|
|
}
|
|
|
|
.offline-banner-retry:disabled {
|
|
opacity: 0.5;
|
|
cursor: default;
|
|
}
|
|
|
|
/* ─── Offline Storage Full Banner ─── */
|
|
.offline-storage-full-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 10px 16px;
|
|
margin: 0 0 1rem 0;
|
|
background: color-mix(in srgb, var(--color-danger, #e53935) 12%, var(--bg-card));
|
|
border: 1px solid color-mix(in srgb, var(--color-danger, #e53935) 40%, transparent);
|
|
border-radius: var(--radius-md);
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.offline-storage-full-banner span {
|
|
flex: 1;
|
|
}
|
|
|
|
.offline-storage-full-dismiss {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
font-size: 18px;
|
|
line-height: 1;
|
|
padding: 0 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.offline-storage-full-dismiss:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ─── Player Bar ─── */
|
|
.player-bar {
|
|
grid-area: player;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-6);
|
|
padding: 0 var(--space-5);
|
|
background: var(--bg-player);
|
|
border-top: 1px solid var(--border-subtle);
|
|
height: var(--player-height);
|
|
position: relative;
|
|
z-index: 100;
|
|
}
|
|
|
|
.player-track-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
flex: 0 0 320px;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.player-album-art {
|
|
width: 52px;
|
|
height: 52px;
|
|
border-radius: var(--radius-md);
|
|
object-fit: cover;
|
|
background: var(--bg-card);
|
|
flex-shrink: 0;
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.player-album-art-placeholder {
|
|
width: 52px;
|
|
height: 52px;
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg-card);
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.player-album-art-wrap {
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
border-radius: var(--radius-sm);
|
|
overflow: hidden;
|
|
}
|
|
.player-album-art-wrap::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
opacity: 0;
|
|
transition: opacity var(--transition-fast);
|
|
pointer-events: none;
|
|
}
|
|
.player-album-art-wrap.clickable { cursor: pointer; }
|
|
.player-album-art-wrap:hover::after { opacity: 1; }
|
|
|
|
/* Expand icon hint that appears on cover hover */
|
|
.player-art-expand-hint {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
opacity: 0;
|
|
transition: opacity var(--transition-fast);
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
}
|
|
.player-album-art-wrap.clickable:hover .player-art-expand-hint { opacity: 1; }
|
|
|
|
.player-track-meta {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.player-track-name {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.player-track-artist {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* ── Marquee (PlayerBar track name / artist) ── */
|
|
.marquee-wrap {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
width: 100%;
|
|
}
|
|
|
|
.marquee-scroll {
|
|
display: inline-block;
|
|
animation: player-marquee 12s linear infinite;
|
|
animation-delay: 2s;
|
|
}
|
|
|
|
@keyframes player-marquee {
|
|
0%, 12% { transform: translateX(0); }
|
|
78%, 88% { transform: translateX(var(--marquee-amount)); }
|
|
88.1%, 100% { transform: translateX(0); }
|
|
}
|
|
|
|
.player-buttons {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.player-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
color: var(--text-muted);
|
|
transition: all var(--transition-fast);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.player-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
transform: scale(1.12);
|
|
}
|
|
|
|
.player-btn-sm {
|
|
width: 28px;
|
|
height: 28px;
|
|
}
|
|
|
|
/* Star + Last.fm heart — visually separated from track title */
|
|
.player-star-btn {
|
|
margin: var(--space-1);
|
|
color: var(--text-muted);
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
.player-star-btn:hover,
|
|
.player-star-btn.is-starred {
|
|
color: var(--color-star-active, var(--accent));
|
|
}
|
|
|
|
.player-btn-primary {
|
|
width: 46px;
|
|
height: 46px;
|
|
background: var(--accent);
|
|
color: var(--ctp-crust);
|
|
border-radius: 50%;
|
|
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.player-btn-primary:hover {
|
|
background: var(--accent);
|
|
color: var(--ctp-crust);
|
|
transform: scale(1.06);
|
|
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), var(--shadow-glow);
|
|
filter: brightness(1.12);
|
|
}
|
|
|
|
/* Waveform seekbar section */
|
|
.player-waveform-section {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
margin-left: 24px;
|
|
margin-right: 24px;
|
|
}
|
|
|
|
.player-waveform-wrap {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.player-time {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
font-variant-numeric: tabular-nums;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
min-width: 2.5rem;
|
|
}
|
|
|
|
.player-time:first-child {
|
|
text-align: right;
|
|
}
|
|
|
|
.player-time:last-child {
|
|
text-align: left;
|
|
}
|
|
|
|
/* Volume section */
|
|
.player-volume-section {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
flex-shrink: 0;
|
|
width: 155px;
|
|
}
|
|
|
|
.player-volume-slider-wrap {
|
|
flex: 1;
|
|
min-width: 0;
|
|
position: relative;
|
|
}
|
|
|
|
.player-volume-slider {
|
|
width: 100%;
|
|
}
|
|
|
|
.player-volume-pct {
|
|
position: absolute;
|
|
bottom: calc(100% + 6px);
|
|
transform: translateX(-50%);
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
background: var(--bg-card);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border-subtle);
|
|
padding: 2px 6px;
|
|
border-radius: var(--radius-sm);
|
|
pointer-events: none;
|
|
white-space: nowrap;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.player-eq-btn {
|
|
color: var(--text-muted);
|
|
flex-shrink: 0;
|
|
transition: color 0.15s;
|
|
}
|
|
.player-eq-btn:hover,
|
|
.player-eq-btn.active {
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* ─── EQ Popup ─── */
|
|
.eq-popup-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 200;
|
|
background: rgba(0, 0, 0, 0.35);
|
|
backdrop-filter: blur(2px);
|
|
}
|
|
|
|
.eq-popup {
|
|
position: fixed;
|
|
z-index: 201;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: min(700px, 92vw);
|
|
background: var(--bg-sidebar);
|
|
border: 1px solid var(--border);
|
|
border-radius: 14px;
|
|
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
.eq-popup .eq-wrap {
|
|
max-width: none;
|
|
}
|
|
|
|
.eq-popup-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.eq-popup-title {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.eq-popup-close {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 6px;
|
|
background: var(--bg-hover);
|
|
border: 1px solid var(--border);
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
transition: background 0.15s, color 0.15s;
|
|
}
|
|
.eq-popup-close:hover {
|
|
background: var(--accent);
|
|
color: var(--bg-app);
|
|
}
|
|
|
|
/* ─── Queue Panel ─── */
|
|
.queue-panel {
|
|
grid-area: queue;
|
|
background: var(--bg-sidebar);
|
|
border-left: 1px solid var(--border-subtle);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
min-width: 0;
|
|
min-height: 0; /* allow 1fr row to shrink freely */
|
|
}
|
|
|
|
.queue-panel.queue-drop-active {
|
|
box-shadow: inset 0 0 0 2px var(--accent);
|
|
background: linear-gradient(var(--accent-dim), var(--accent-dim)), var(--bg-sidebar);
|
|
}
|
|
|
|
.queue-header {
|
|
height: 64px;
|
|
box-sizing: border-box;
|
|
padding: 0 var(--space-4);
|
|
background: var(--bg-app);
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.queue-action-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast), color var(--transition-fast);
|
|
flex-shrink: 0;
|
|
}
|
|
.queue-action-btn:hover:not(:disabled) {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
.queue-action-btn:disabled {
|
|
opacity: 0.35;
|
|
cursor: default;
|
|
}
|
|
|
|
.queue-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
padding: 0 var(--space-3);
|
|
height: 44px;
|
|
flex-shrink: 0;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
background: var(--bg-app);
|
|
}
|
|
|
|
.crossfade-popover {
|
|
position: absolute;
|
|
top: calc(100% + 10px);
|
|
right: 0;
|
|
width: 170px;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: 10px 12px;
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.3);
|
|
z-index: 200;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.crossfade-popover-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.crossfade-popover-value {
|
|
margin-left: auto;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
font-family: monospace;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.crossfade-popover-slider {
|
|
width: 100%;
|
|
accent-color: var(--accent);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.crossfade-popover-range {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 10px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.queue-toolbar-sep {
|
|
width: 1px;
|
|
height: 18px;
|
|
background: var(--border-subtle);
|
|
margin: 0 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.queue-round-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 50%;
|
|
color: var(--text-primary);
|
|
background: var(--bg-hover);
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast), color var(--transition-fast);
|
|
flex-shrink: 0;
|
|
}
|
|
.queue-round-btn:hover:not(:disabled) {
|
|
background: var(--border);
|
|
color: var(--accent);
|
|
}
|
|
.queue-round-btn:disabled {
|
|
opacity: 0.35;
|
|
cursor: default;
|
|
}
|
|
.queue-round-btn.active {
|
|
color: var(--ctp-base);
|
|
background: var(--accent);
|
|
}
|
|
|
|
.queue-current-track {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-shrink: 0;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.queue-current-track-body {
|
|
padding: var(--space-3) var(--space-4);
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: flex-start;
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
.queue-current-cover {
|
|
width: 90px;
|
|
height: 90px;
|
|
flex-shrink: 0;
|
|
border-radius: var(--radius-md);
|
|
overflow: hidden;
|
|
background: var(--bg-surface);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
|
|
position: relative;
|
|
}
|
|
|
|
.queue-current-cover img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.queue-current-cover .fallback {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.queue-current-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.queue-current-info h3 {
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
margin: 0;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.queue-current-sub {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
.queue-current-sub.is-link {
|
|
cursor: pointer;
|
|
}
|
|
.queue-current-sub.is-link:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.queue-current-tech {
|
|
width: 100%;
|
|
font-size: 9px;
|
|
font-family: monospace;
|
|
letter-spacing: 0.05em;
|
|
background: var(--ctp-surface1);
|
|
color: var(--accent);
|
|
padding: 3px var(--space-4);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
text-align: center;
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
|
|
.queue-divider {
|
|
padding: var(--space-3) var(--space-4) 0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.queue-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: var(--space-2);
|
|
}
|
|
|
|
.queue-empty {
|
|
padding: var(--space-4);
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.queue-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--space-2) var(--space-3);
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast);
|
|
color: var(--text-secondary);
|
|
}
|
|
/* Prevent child elements from stealing dragenter/dragleave events */
|
|
.queue-item > * { pointer-events: none; }
|
|
|
|
.queue-item:hover, .queue-item.context-active {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.queue-item.active {
|
|
background: var(--accent-dim);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.queue-item-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.queue-item-title {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: inherit;
|
|
}
|
|
|
|
.queue-item-artist {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
.queue-item:hover .queue-item-artist,
|
|
.queue-item.context-active .queue-item-artist {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.queue-item-duration {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
flex-shrink: 0;
|
|
margin-left: var(--space-3);
|
|
}
|
|
|
|
.queue-item.active .queue-item-artist,
|
|
.queue-item.active .queue-item-duration {
|
|
color: inherit;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
MOBILE LAYOUT (< 800px)
|
|
Controller: data-mobile attribute set by useIsMobile hook
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
/* ─── BottomNav Component ─── */
|
|
.bottom-nav {
|
|
grid-area: bottomnav;
|
|
display: flex;
|
|
align-items: stretch;
|
|
justify-content: space-around;
|
|
background: var(--bg-sidebar);
|
|
border-top: 1px solid var(--border-subtle);
|
|
height: 56px;
|
|
z-index: 100;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.bottom-nav-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 3px;
|
|
flex: 1;
|
|
color: var(--text-muted);
|
|
text-decoration: none;
|
|
font-size: 10px;
|
|
font-weight: 500;
|
|
letter-spacing: 0.02em;
|
|
transition: color var(--transition-fast);
|
|
position: relative;
|
|
}
|
|
|
|
.bottom-nav-item:hover {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.bottom-nav-item.active {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.bottom-nav-item.active::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 32px;
|
|
height: 2px;
|
|
background: var(--accent);
|
|
border-radius: 0 0 var(--radius-full) var(--radius-full);
|
|
}
|
|
|
|
.bottom-nav-item svg {
|
|
opacity: 0.65;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.bottom-nav-item.active svg,
|
|
.bottom-nav-item:hover svg {
|
|
opacity: 1;
|
|
}
|
|
|
|
.bottom-nav-icon-wrap {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.bottom-nav-np-dot {
|
|
position: absolute;
|
|
top: -2px;
|
|
right: -5px;
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--accent);
|
|
animation: np-dot-pulse 1.8s ease-in-out infinite;
|
|
}
|
|
|
|
.bottom-nav-label {
|
|
line-height: 1;
|
|
}
|
|
|
|
/* ─── Grid Overrides ─── */
|
|
.app-shell[data-mobile] {
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: 1fr auto auto;
|
|
grid-template-areas:
|
|
"main"
|
|
"bottomnav"
|
|
"player";
|
|
width: 100vw;
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* Hide the sidebar collapse button on mobile */
|
|
.app-shell[data-mobile] .collapse-btn {
|
|
display: none;
|
|
}
|
|
|
|
/* ─── Content Header — Mobile ─── */
|
|
.app-shell[data-mobile] .content-header {
|
|
padding: 0 var(--space-4);
|
|
height: 52px;
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
/* Hide queue toggle on mobile */
|
|
.app-shell[data-mobile] .queue-toggle-btn {
|
|
display: none;
|
|
}
|
|
|
|
/* ─── Player Bar — Mobile ─── */
|
|
.app-shell[data-mobile] .player-bar {
|
|
gap: var(--space-3);
|
|
padding: 0 var(--space-3);
|
|
height: 64px;
|
|
}
|
|
|
|
.app-shell[data-mobile] .player-track-info {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
.app-shell[data-mobile] .player-waveform-section,
|
|
.app-shell[data-mobile] .player-volume-section,
|
|
.app-shell[data-mobile] .player-eq-btn,
|
|
.app-shell[data-mobile] .player-bar > .player-btn.player-btn-sm:not(.player-star-btn):not(.player-love-btn) {
|
|
display: none;
|
|
}
|
|
|
|
.app-shell[data-mobile] .player-buttons {
|
|
gap: var(--space-1);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.app-shell[data-mobile] .player-btn-primary {
|
|
width: 40px;
|
|
height: 40px;
|
|
}
|
|
|
|
.app-shell[data-mobile] .player-album-art,
|
|
.app-shell[data-mobile] .player-album-art-placeholder {
|
|
width: 44px;
|
|
height: 44px;
|
|
}
|
|
|
|
/* Hide star + last.fm love buttons in mobile player to save space */
|
|
.app-shell[data-mobile] .player-star-btn,
|
|
.app-shell[data-mobile] .player-love-btn {
|
|
display: none;
|
|
}
|
|
|
|
/* ─── App Updater Toast — Mobile ─── */
|
|
.app-shell[data-mobile] .app-updater-toast {
|
|
bottom: calc(64px + 56px + 12px);
|
|
}
|
|
|
|
/* ─── Mobile Player Takeover ─── */
|
|
/* When the mobile player is active, the app-shell becomes a single full-screen
|
|
area with no BottomNav or PlayerBar — just the main content. */
|
|
.app-shell[data-mobile-player] {
|
|
grid-template-rows: 1fr;
|
|
grid-template-areas: "main";
|
|
}
|
|
|
|
.app-shell[data-mobile-player] .content-header {
|
|
display: none;
|
|
}
|
|
|
|
.app-shell[data-mobile-player] .content-body {
|
|
padding: 0 !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
MOBILE PLAYER VIEW (MobilePlayerView.tsx)
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
.mp-view {
|
|
position: fixed;
|
|
inset: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-evenly;
|
|
background: var(--bg-app); /* fallback; overridden by dynamic gradient via inline style */
|
|
overflow: hidden !important;
|
|
scrollbar-width: none; /* Firefox */
|
|
-ms-overflow-style: none; /* IE/Edge */
|
|
padding: 0 20px env(safe-area-inset-bottom, 0);
|
|
box-sizing: border-box;
|
|
transition: background 0.8s ease;
|
|
z-index: 10;
|
|
}
|
|
|
|
.mp-view::-webkit-scrollbar {
|
|
display: none; /* Chrome, Safari, Tauri/WebKitGTK */
|
|
}
|
|
|
|
/* ─── Header ─── */
|
|
.mp-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: 52px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.mp-header-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.mp-back {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 50%;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: color var(--transition-fast), background var(--transition-fast);
|
|
}
|
|
|
|
.mp-back:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ─── Cover Art ─── */
|
|
.mp-cover-wrap {
|
|
flex: 0 1 auto;
|
|
min-height: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.mp-cover {
|
|
width: min(calc(100vw - 28px), 55vh);
|
|
max-width: 440px;
|
|
aspect-ratio: 1;
|
|
object-fit: cover;
|
|
border-radius: 14px;
|
|
box-shadow: 0 16px 52px rgba(0, 0, 0, 0.7), 0 4px 16px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.mp-cover-fallback {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--bg-card);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* ─── Track Metadata ─── */
|
|
.mp-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
padding: 8px 0 4px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.mp-meta-text {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.mp-title {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.mp-artist {
|
|
font-size: 15px;
|
|
color: var(--accent);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.mp-track-info {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
margin-top: 4px;
|
|
letter-spacing: 0.01em;
|
|
}
|
|
|
|
.mp-heart {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 50%;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
transition: color var(--transition-fast), transform var(--transition-fast);
|
|
}
|
|
|
|
.mp-heart:hover {
|
|
transform: scale(1.12);
|
|
}
|
|
|
|
.mp-heart.active {
|
|
color: var(--color-star-active, var(--accent));
|
|
}
|
|
|
|
/* ─── Scrubber ─── */
|
|
.mp-scrubber-wrap {
|
|
padding: 12px 0 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.mp-scrubber {
|
|
position: relative;
|
|
height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
touch-action: none;
|
|
}
|
|
|
|
.mp-scrubber-bg {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
height: 4px;
|
|
border-radius: 2px;
|
|
background: var(--ctp-surface2, rgba(255,255,255,0.12));
|
|
}
|
|
|
|
.mp-scrubber-fill {
|
|
position: absolute;
|
|
left: 0;
|
|
height: 4px;
|
|
border-radius: 2px;
|
|
background: var(--accent);
|
|
transition: width 0.08s linear;
|
|
}
|
|
|
|
.mp-scrubber-thumb {
|
|
position: absolute;
|
|
top: 50%;
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 50%;
|
|
background: var(--accent);
|
|
transform: translate(-50%, -50%);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
|
|
transition: transform 0.1s ease;
|
|
}
|
|
|
|
.mp-scrubber:active .mp-scrubber-thumb {
|
|
transform: translate(-50%, -50%) scale(1.3);
|
|
}
|
|
|
|
.mp-scrubber-times {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding-top: 4px;
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/* ─── Transport Controls ─── */
|
|
.mp-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-4);
|
|
padding: 8px 0 4px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.mp-ctrl-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 52px;
|
|
height: 52px;
|
|
border-radius: 50%;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: color var(--transition-fast), transform var(--transition-fast);
|
|
}
|
|
|
|
.mp-ctrl-btn:hover {
|
|
color: var(--text-primary);
|
|
transform: scale(1.08);
|
|
}
|
|
|
|
.mp-ctrl-sm {
|
|
width: 44px;
|
|
height: 44px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.mp-ctrl-play {
|
|
width: 64px;
|
|
height: 64px;
|
|
background: var(--accent);
|
|
color: var(--ctp-crust);
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.mp-ctrl-play:hover {
|
|
color: var(--ctp-crust);
|
|
filter: brightness(1.1);
|
|
transform: scale(1.06);
|
|
box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4), var(--shadow-glow);
|
|
}
|
|
|
|
/* ─── Empty state ─── */
|
|
.mp-empty {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-4);
|
|
color: var(--text-muted);
|
|
font-size: 15px;
|
|
}
|
|
|
|
/* ─── Utility Footer ─── */
|
|
.mp-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-evenly;
|
|
padding: 8px 0 max(12px, env(safe-area-inset-bottom, 12px));
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.mp-footer-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
padding: 10px 18px;
|
|
border-radius: var(--radius-full);
|
|
transition: color var(--transition-fast), background var(--transition-fast);
|
|
min-height: 44px;
|
|
}
|
|
|
|
.mp-footer-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
MOBILE QUEUE / LYRICS DRAWER
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
@keyframes mq-slide-up {
|
|
from { transform: translateY(100%); }
|
|
to { transform: translateY(0); }
|
|
}
|
|
|
|
@keyframes mq-fade-in {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
.mq-drawer-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 500;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
backdrop-filter: blur(4px);
|
|
animation: mq-fade-in 0.2s ease both;
|
|
}
|
|
|
|
.mq-drawer {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 90vh;
|
|
z-index: 501;
|
|
background: var(--bg-sidebar);
|
|
border-radius: 18px 18px 0 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
animation: mq-slide-up 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.mq-drawer-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
padding: 16px 20px 12px;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.mq-drawer-header h3 {
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
|
|
.mq-drawer-count {
|
|
font-size: 13px;
|
|
color: var(--accent);
|
|
flex: 1;
|
|
}
|
|
|
|
.mq-drawer-close {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: var(--bg-hover);
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
transition: background var(--transition-fast), color var(--transition-fast);
|
|
}
|
|
|
|
.mq-drawer-close:hover {
|
|
background: var(--border);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.mq-drawer-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: var(--space-2);
|
|
}
|
|
|
|
.mq-drawer-empty {
|
|
padding: var(--space-6);
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Lyrics drawer — fill entire drawer */
|
|
.mq-drawer-lyrics .mq-drawer-list {
|
|
padding: 0;
|
|
}
|
|
|
|
/* ── Queue Item ── */
|
|
.mq-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 10px 14px;
|
|
border-radius: var(--radius-md);
|
|
cursor: pointer;
|
|
color: var(--text-secondary);
|
|
transition: background var(--transition-fast);
|
|
min-height: 44px;
|
|
}
|
|
|
|
.mq-item:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.mq-item.active {
|
|
background: var(--accent-dim);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.mq-item-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.mq-item-title {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: inherit;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.mq-item-artist {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.mq-item.active .mq-item-artist {
|
|
color: inherit;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.mq-item-dur {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
flex-shrink: 0;
|
|
margin-left: var(--space-3);
|
|
}
|
|
|
|
.mq-item.active .mq-item-dur {
|
|
color: inherit;
|
|
opacity: 0.7;
|
|
}
|