Refine player layout and station data

This commit is contained in:
2026-04-26 15:18:41 +02:00
parent 972164bba7
commit 0864a28593
9 changed files with 44675 additions and 9944 deletions

View File

@@ -147,20 +147,20 @@ input:focus-visible,
.player-layout {
position: relative;
isolation: isolate;
width: min(1420px, 100%);
height: clamp(680px, calc(100vh - 72px), 880px);
width: min(1340px, 100%);
height: clamp(600px, calc(100vh - 84px), 760px);
display: flex;
flex-direction: row;
align-items: stretch;
min-height: 0;
overflow: hidden;
overflow: visible;
}
.sidebar-wrap {
flex-shrink: 0;
width: 320px;
width: 360px;
margin-right: 18px;
overflow: hidden;
overflow: visible;
will-change: width, margin-right;
transition:
width 0.46s cubic-bezier(0.22, 1, 0.36, 1),
@@ -252,35 +252,151 @@ input:focus-visible,
.library-filter-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) 148px;
grid-template-columns: 1fr;
gap: 10px;
}
.library-select {
min-width: 0;
position: relative;
}
.library-select-trigger {
width: 100%;
min-width: 0;
height: 44px;
display: flex;
align-items: center;
gap: 10px;
padding: 0 12px 0 14px;
border: 1px solid rgba(var(--accent-rgb), 0.26);
border-radius: 16px;
background:
linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04)),
linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-3-rgb), 0.08));
color: var(--text-main);
font: inherit;
text-align: left;
box-shadow: 0 12px 28px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.1);
cursor: pointer;
transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.library-select-flag,
.library-select-option-flag {
flex: 0 0 auto;
width: 1.4rem;
height: 1rem;
text-align: center;
font-size: 1rem;
line-height: 1;
}
.library-select-flag,
.library-select-option-flag-img {
display: block;
width: 1.4rem;
height: 1rem;
object-fit: cover;
border-radius: 2px;
}
.library-select-trigger:hover,
.library-select.open .library-select-trigger {
transform: translateY(-1px);
border-color: rgba(var(--accent-rgb), 0.5);
box-shadow: 0 16px 32px rgba(0,0,0,0.2), 0 0 0 1px rgba(var(--accent-rgb), 0.08);
}
.library-select-prefix {
flex: 0 0 auto;
color: var(--text-soft);
font-size: 0.7rem;
font-weight: 850;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.library-select-value {
flex: 1 1 auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 0.92rem;
font-weight: 850;
}
.library-select-caret {
flex: 0 0 auto;
opacity: 0.8;
}
.library-select-menu {
position: absolute;
top: calc(100% + 10px);
left: 0;
z-index: 12;
width: 100%;
max-height: 280px;
padding: 8px;
border: 1px solid rgba(var(--accent-rgb), 0.18);
border-radius: 18px;
background:
linear-gradient(180deg, rgba(16, 20, 27, 0.96), rgba(16, 20, 27, 0.9)),
rgba(255,255,255,0.04);
box-shadow: 0 24px 48px rgba(0,0,0,0.34);
backdrop-filter: blur(20px) saturate(130%);
overflow: auto;
display: none;
}
.library-select-menu.open {
display: grid;
gap: 6px;
}
.library-select-label {
color: var(--text-soft);
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.library-select select {
.library-select-option {
width: 100%;
min-width: 0;
height: 44px;
min-height: 38px;
display: flex;
align-items: center;
gap: 10px;
padding: 0 12px;
border: 1px solid rgba(255,255,255,0.12);
border-radius: 14px;
background: rgba(255,255,255,0.065);
color: var(--text-main);
border: 1px solid transparent;
border-radius: 12px;
background: transparent;
color: var(--text-muted);
text-align: left;
font: inherit;
appearance: none;
font-size: 0.9rem;
cursor: pointer;
transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.library-select-option-text {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.library-select-option:hover {
border-color: rgba(var(--accent-rgb), 0.24);
background: rgba(var(--accent-rgb), 0.12);
color: var(--text-main);
transform: translateX(1px);
}
.library-select-option.active {
border-color: rgba(var(--accent-rgb), 0.42);
background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-3-rgb), 0.12));
color: var(--text-main);
}
.library-select-option:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.library-search input {
@@ -299,23 +415,40 @@ input:focus-visible,
.library-tabs {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
}
.library-tab {
min-width: 0;
min-height: 36px;
padding: 8px 10px;
min-height: 40px;
padding: 0;
border: 1px solid rgba(255,255,255,0.1);
border-radius: 12px;
background: rgba(255,255,255,0.055);
color: var(--text-muted);
font-size: 0.82rem;
font-weight: 800;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.library-tab-icon {
width: 18px;
height: 18px;
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
opacity: 0.9;
}
.library-tab-icon svg {
width: 100%;
height: 100%;
}
.library-tab:hover {
transform: translateY(-1px);
border-color: var(--border-strong);
@@ -365,6 +498,56 @@ input:focus-visible,
font-weight: 700;
}
.library-pagination {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.library-pagination-info {
flex: 1 1 auto;
min-width: 0;
color: var(--text-soft);
font-size: 0.78rem;
font-weight: 800;
text-align: center;
white-space: nowrap;
}
.library-page-btn {
min-width: 88px;
min-height: 34px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 0 10px;
border: 1px solid rgba(255,255,255,0.1);
border-radius: 11px;
background: rgba(255,255,255,0.055);
color: var(--text-main);
font: inherit;
font-size: 0.78rem;
font-weight: 800;
transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}
.library-page-btn:hover:not(:disabled) {
transform: translateY(-1px);
border-color: var(--border-strong);
background: rgba(255,255,255,0.085);
}
.library-page-btn:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.library-page-btn svg {
flex: 0 0 auto;
}
.library-list {
min-height: 0;
margin: 0;
@@ -433,6 +616,7 @@ input:focus-visible,
color: var(--text-main);
text-align: left;
cursor: pointer;
overflow: hidden;
transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
@@ -475,9 +659,11 @@ input:focus-visible,
min-width: 0;
display: grid;
gap: 6px;
overflow: hidden;
}
.library-station-title {
min-width: 0;
overflow: hidden;
color: var(--text-main);
font-size: 0.94rem;
@@ -489,18 +675,20 @@ input:focus-visible,
.library-station-meta {
display: flex;
flex-wrap: wrap;
flex-wrap: nowrap;
min-width: 0;
align-items: center;
gap: 7px;
color: var(--text-muted);
font-size: 0.76rem;
font-weight: 700;
overflow: hidden;
}
.library-station-country,
.library-station-tech {
flex: 0 0 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -669,9 +857,10 @@ input:focus-visible,
"artwork info"
"artwork progress"
"artwork controls"
"artwork volume";
"artwork volume"
"quickpick quickpick";
gap: 18px 28px;
align-items: center;
align-items: start;
padding: clamp(18px, 3vw, 34px);
border: 1px solid var(--border);
border-radius: 28px;
@@ -820,6 +1009,14 @@ header {
gap: 18px;
}
.quickpick-section {
grid-area: quickpick;
min-width: 0;
display: flex;
align-items: center;
justify-content: center;
}
.artwork-container {
width: min(100%, 360px);
aspect-ratio: 1;
@@ -909,7 +1106,8 @@ header {
.artwork-coverflow {
position: relative;
width: min(100%, 430px);
width: 100%;
max-width: none;
height: 128px;
overflow: hidden;
-webkit-app-region: no-drag;
@@ -994,10 +1192,10 @@ header {
.track-info {
grid-area: info;
min-width: 0;
min-height: 232px;
min-height: 0;
display: flex;
flex-direction: column;
justify-content: end;
justify-content: flex-start;
align-items: flex-start;
text-align: left;
}
@@ -1005,7 +1203,7 @@ header {
.track-info h2 {
width: 100%;
margin: 0;
font-size: clamp(2.1rem, 5vw, 4.6rem);
font-size: clamp(2.1rem, 4.5vw, 3.1rem);
font-weight: 850;
line-height: 0.96;
letter-spacing: 0;
@@ -1166,7 +1364,7 @@ header {
grid-area: controls;
display: grid;
grid-template-columns: 64px 96px 64px;
justify-content: start;
justify-content: center;
align-items: center;
gap: 18px;
}
@@ -1232,8 +1430,9 @@ header {
.volume-section {
grid-area: volume;
width: 100%;
display: grid;
grid-template-columns: 40px minmax(120px, 320px) 44px;
grid-template-columns: 40px minmax(0, 1fr) 44px;
align-items: center;
gap: 12px;
}
@@ -1591,6 +1790,10 @@ input[type=range]::-webkit-slider-thumb {
.library-close {
display: inline-flex;
}
.library-tabs {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
@media (max-width: 760px) {
@@ -1615,12 +1818,28 @@ input[type=range]::-webkit-slider-thumb {
"info"
"progress"
"controls"
"volume";
"volume"
"quickpick";
gap: 13px;
padding: 16px;
border-radius: 22px;
}
.library-tabs {
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 6px;
}
.library-tab {
min-height: 36px;
border-radius: 11px;
}
.library-tab-icon {
width: 17px;
height: 17px;
}
.station-library {
left: 8px;
right: 8px;
@@ -1638,18 +1857,19 @@ input[type=range]::-webkit-slider-thumb {
.library-tabs {
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 6px;
overflow-x: auto;
}
.library-filter-grid {
grid-template-columns: 1fr;
}
.library-select-menu {
max-height: 240px;
}
.library-tab {
min-width: 82px;
min-width: 0;
min-height: 34px;
padding-inline: 8px;
font-size: 0.76rem;
}
.library-station {