mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-22 15:25:46 +00:00
feat: v1.34.0 — Mobile UI Early Preview, Russian 2, macOS network fix
Co-authored-by: kilyabin <kilyabin@users.noreply.github.com> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -178,6 +178,34 @@
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
.section-title-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-family: var(--font-display);
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: color var(--transition-fast);
|
||||
}
|
||||
|
||||
.section-title-link:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.section-title-chevron {
|
||||
opacity: 0.45;
|
||||
transition: opacity var(--transition-fast), transform var(--transition-fast);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.section-title-link:hover .section-title-chevron {
|
||||
opacity: 1;
|
||||
transform: translateX(2px);
|
||||
}
|
||||
|
||||
/* ─ Album Card ─ */
|
||||
.album-card {
|
||||
cursor: pointer;
|
||||
@@ -5650,3 +5678,533 @@
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════════════════════
|
||||
MOBILE COMPONENT OVERRIDES (< 800px)
|
||||
═══════════════════════════════════════════════════════════════════════════ */
|
||||
|
||||
/* ─── Album / Artist Grid — fewer columns ─── */
|
||||
.app-shell[data-mobile] .album-grid-wrap {
|
||||
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
/* Horizontal scroll rows — smaller cards */
|
||||
.app-shell[data-mobile] .album-grid .album-card,
|
||||
.app-shell[data-mobile] .album-grid .artist-card {
|
||||
flex: 0 0 130px;
|
||||
}
|
||||
|
||||
.app-shell[data-mobile] .album-card-more {
|
||||
flex: 0 0 130px;
|
||||
}
|
||||
|
||||
/* ─── Hero — mobile ─── */
|
||||
.app-shell[data-mobile] .hero,
|
||||
.app-shell[data-mobile] .hero-placeholder {
|
||||
height: 290px;
|
||||
}
|
||||
|
||||
/* Stronger bottom gradient so white text stays readable without a cover */
|
||||
.app-shell[data-mobile] .hero-overlay {
|
||||
background:
|
||||
linear-gradient(to top,
|
||||
rgba(0, 0, 0, 0.90) 0%,
|
||||
rgba(0, 0, 0, 0.55) 45%,
|
||||
rgba(0, 0, 0, 0.22) 100%);
|
||||
}
|
||||
|
||||
.app-shell[data-mobile] .hero-content {
|
||||
padding: var(--space-4);
|
||||
padding-bottom: 44px; /* keep buttons clear of the pagination dots */
|
||||
gap: 0;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.app-shell[data-mobile] .hero-title {
|
||||
font-size: clamp(17px, 5vw, 22px);
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* Circular action buttons on mobile hero */
|
||||
.hero-actions-mobile {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
/* ─── Live Search — full width ─── */
|
||||
.app-shell[data-mobile] .live-search {
|
||||
max-width: none;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* ─── Section / Page titles ─── */
|
||||
.app-shell[data-mobile] .section-title,
|
||||
.app-shell[data-mobile] .page-title,
|
||||
.app-shell[data-mobile] .section-title-link {
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
/* ─── Album Detail Header — stack vertically on mobile ─── */
|
||||
.app-shell[data-mobile] .album-detail-header-inner {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.app-shell[data-mobile] .album-detail-cover {
|
||||
width: 160px;
|
||||
height: 160px;
|
||||
}
|
||||
|
||||
/* ─── Page padding ─── */
|
||||
.app-shell[data-mobile] .content-body {
|
||||
padding: var(--space-4) !important;
|
||||
}
|
||||
|
||||
/* ─── Hide desktop search on mobile ─── */
|
||||
.app-shell[data-mobile] .live-search {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════════════════════
|
||||
MOBILE SEARCH OVERLAY
|
||||
═══════════════════════════════════════════════════════════════════════════ */
|
||||
|
||||
@keyframes mobile-search-in {
|
||||
from { opacity: 0; transform: translateY(16px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.mobile-search-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 200;
|
||||
background: var(--bg-app);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
animation: mobile-search-in 0.2s ease both;
|
||||
}
|
||||
|
||||
/* ─── Search bar ─── */
|
||||
.mobile-search-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 10px 16px 10px 12px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.mobile-search-field {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex: 1;
|
||||
background: var(--bg-card);
|
||||
border-radius: 20px;
|
||||
padding: 0 12px;
|
||||
height: 40px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.mobile-search-icon {
|
||||
color: var(--text-muted);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.mobile-search-spinner {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border: 2px solid var(--border);
|
||||
border-top-color: var(--accent);
|
||||
border-radius: 50%;
|
||||
animation: spin 0.7s linear infinite;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.mobile-search-input {
|
||||
flex: 1;
|
||||
background: none;
|
||||
border: none;
|
||||
outline: none;
|
||||
font-size: 17px;
|
||||
color: var(--text-primary);
|
||||
caret-color: var(--accent);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.mobile-search-input::placeholder {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.mobile-search-input::-webkit-search-cancel-button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mobile-search-clear {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: var(--text-muted);
|
||||
border: none;
|
||||
color: var(--bg-app);
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.mobile-search-cancel {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--accent);
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
padding: 4px 0;
|
||||
flex-shrink: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* ─── Results area ─── */
|
||||
.mobile-search-results {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
}
|
||||
|
||||
.mobile-search-noresults {
|
||||
padding: 48px 20px;
|
||||
text-align: center;
|
||||
color: var(--text-muted);
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
/* ─── Empty state ─── */
|
||||
.mobile-search-empty-state {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.mobile-search-hint {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 48px 20px 32px;
|
||||
}
|
||||
|
||||
.mobile-search-hint-icon {
|
||||
color: var(--text-muted);
|
||||
opacity: 0.25;
|
||||
}
|
||||
|
||||
.mobile-search-hint-text {
|
||||
font-size: 16px;
|
||||
color: var(--text-muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* ─── Category chips ─── */
|
||||
.mobile-search-chips {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
padding: 6px 16px 16px;
|
||||
}
|
||||
|
||||
.mobile-search-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 20px;
|
||||
padding: 7px 14px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
transition: background var(--transition-fast), border-color var(--transition-fast);
|
||||
}
|
||||
|
||||
.mobile-search-chip:active,
|
||||
.mobile-search-chip:hover {
|
||||
background: var(--bg-hover);
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* ─── Recent searches ─── */
|
||||
.mobile-search-recent-remove {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-muted);
|
||||
padding: 6px;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.mobile-search-recent-remove:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* ─── Section headers ─── */
|
||||
.mobile-search-section {
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.mobile-search-section-label {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
color: var(--text-muted);
|
||||
padding: 16px 16px 6px;
|
||||
}
|
||||
|
||||
/* ─── Result items ─── */
|
||||
.mobile-search-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
width: 100%;
|
||||
padding: 10px 16px;
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
transition: background var(--transition-fast);
|
||||
}
|
||||
|
||||
.mobile-search-item:active {
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
|
||||
.mobile-search-thumb {
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
border-radius: 6px;
|
||||
object-fit: cover;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.mobile-search-avatar {
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
border-radius: 8px;
|
||||
background: var(--bg-card);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--text-muted);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.mobile-search-avatar--circle {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.mobile-search-item-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.mobile-search-item-title {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.mobile-search-item-sub {
|
||||
font-size: 13px;
|
||||
color: var(--text-muted);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.mobile-search-item-chevron {
|
||||
color: var(--text-muted);
|
||||
opacity: 0.4;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* ─── Album Header — Mobile Actions ─── */
|
||||
.album-detail-actions-mobile {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
margin-top: 10px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.album-actions-row {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.album-actions-row--secondary {
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
/* Base icon button */
|
||||
.album-icon-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 5px;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
transition: background var(--transition-fast), color var(--transition-fast), filter var(--transition-fast);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.album-icon-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.14);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
/* Play — largest, accent fill */
|
||||
.album-icon-btn--play {
|
||||
width: 54px;
|
||||
height: 54px;
|
||||
background: var(--accent);
|
||||
border-color: transparent;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.album-icon-btn--play:hover {
|
||||
background: var(--accent);
|
||||
filter: brightness(1.12);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Queue — medium, slightly more prominent than secondary */
|
||||
.album-icon-btn--queue {
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
background: rgba(255, 255, 255, 0.13);
|
||||
border-color: rgba(255, 255, 255, 0.18);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
/* Secondary (smaller) icon buttons */
|
||||
.album-icon-btn--sm {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.album-icon-btn.is-starred {
|
||||
color: var(--color-star-active, var(--accent));
|
||||
}
|
||||
|
||||
.album-icon-btn.album-icon-btn--active {
|
||||
color: var(--accent);
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
/* Download progress inline */
|
||||
.album-icon-btn.album-icon-btn--progress {
|
||||
width: auto;
|
||||
border-radius: 21px;
|
||||
padding: 0 12px;
|
||||
gap: 6px;
|
||||
color: var(--text-muted);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.album-icon-btn-pct {
|
||||
font-size: 12px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
/* ─── Album Tracklist — Mobile ─── */
|
||||
.tracklist-mobile {
|
||||
padding: 0 var(--space-4) var(--space-6);
|
||||
}
|
||||
|
||||
.tracklist-mobile-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-3);
|
||||
padding: 12px 0;
|
||||
border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
|
||||
cursor: pointer;
|
||||
transition: background var(--transition-fast);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.tracklist-mobile-row:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.tracklist-mobile-row.active .tracklist-mobile-title {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.tracklist-mobile-row.context-active {
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
|
||||
.tracklist-mobile-main {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.tracklist-mobile-num {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
min-width: 18px;
|
||||
text-align: right;
|
||||
flex-shrink: 0;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.tracklist-mobile-eq {
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-width: 18px;
|
||||
}
|
||||
|
||||
.tracklist-mobile-title {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.tracklist-mobile-duration {
|
||||
font-size: 13px;
|
||||
color: var(--text-muted);
|
||||
font-variant-numeric: tabular-nums;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@@ -1203,3 +1203,634 @@
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user