Files
furumusic/templates/player/styles.html
T
ab 34e25fac2c
Build and Publish / Build and Publish Docker Image (push) Successful in 2m56s
CORE: added 'connected devices' like in spotify
2026-05-28 13:15:42 +03:00

3387 lines
68 KiB
HTML

<style>
:root {
--bg-primary: #121212;
--bg-secondary: #181818;
--bg-elevated: #232323;
--bg-hover: #2a2a2a;
--bg-active: #333;
--text-primary: #fff;
--text-secondary: #b3b3b3;
--text-subdued: #6a6a6a;
--accent: #1db954;
--accent-hover: #1ed760;
--player-height: 80px;
--sidebar-width: 240px;
--queue-width: 300px;
--border-color: #282828;
--safe-bottom: env(safe-area-inset-bottom, 0px);
--player-bar-space: calc(var(--player-height) + var(--safe-bottom));
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[x-cloak] { display: none !important; }
html, body {
height: 100%;
overflow: hidden;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
}
/* Layout */
.app-layout {
display: flex;
flex-direction: column;
height: 100vh;
height: 100dvh;
min-height: 0;
}
.main-content {
display: flex;
flex: 1;
min-height: 0;
overflow: hidden;
}
/* Left Sidebar */
.sidebar-left {
width: var(--sidebar-width);
min-width: var(--sidebar-width);
background: var(--bg-secondary);
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
overflow: hidden;
}
.user-widget {
padding: 14px 12px 12px;
border-bottom: 1px solid var(--border-color);
}
.user-widget-main {
display: grid;
grid-template-columns: 36px minmax(0, 1fr) 32px;
align-items: center;
gap: 10px;
}
.user-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
background: var(--accent);
color: #000;
display: flex;
align-items: center;
justify-content: center;
font-weight: 800;
font-size: 15px;
text-transform: uppercase;
}
.user-name {
font-size: 14px;
font-weight: 700;
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.user-role {
margin-top: 2px;
font-size: 11px;
color: var(--text-subdued);
text-transform: uppercase;
}
.user-logout-btn {
width: 32px;
height: 32px;
border: none;
border-radius: 6px;
background: transparent;
color: var(--text-subdued);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.15s, color 0.15s;
}
.user-logout-btn:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.user-logout-btn svg { width: 17px; height: 17px; }
.user-stats {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 6px;
margin-top: 12px;
}
.user-stat {
min-width: 0;
padding: 7px 6px;
border-radius: 6px;
background: var(--bg-primary);
}
button.user-stat {
border: 0;
color: inherit;
cursor: pointer;
text-align: left;
}
button.user-stat:hover {
background: var(--bg-hover);
}
.user-stat-value {
display: block;
font-size: 13px;
font-weight: 700;
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.user-stat-label {
display: block;
margin-top: 2px;
font-size: 10px;
color: var(--text-subdued);
}
.lastfm-profile-action {
width: 100%;
min-height: 34px;
margin-top: 8px;
padding: 7px 9px;
border: 1px solid var(--border-color);
border-radius: 6px;
background: var(--bg-primary);
color: var(--text-secondary);
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
text-align: left;
transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lastfm-profile-action:not(:disabled):hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.lastfm-profile-action:disabled {
cursor: default;
opacity: 0.72;
}
.lastfm-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--text-subdued);
flex-shrink: 0;
}
.lastfm-profile-action.connected {
border-color: rgba(29, 185, 84, 0.32);
color: var(--text-primary);
}
.lastfm-profile-action.connected .lastfm-dot {
background: #1db954;
}
.lastfm-profile-action.available .lastfm-dot,
.lastfm-profile-action.needs-auth .lastfm-dot {
background: var(--accent);
}
.lastfm-profile-action.needs-auth {
border-color: rgba(255, 184, 77, 0.4);
}
.lastfm-profile-text {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 11px;
font-weight: 650;
}
.sidebar-header {
padding: 16px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--border-color);
}
.sidebar-header h2 {
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-secondary);
}
.sidebar-nav {
padding: 8px;
}
.sidebar-nav-item {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 12px;
border-radius: 6px;
cursor: pointer;
color: var(--text-secondary);
font-size: 14px;
font-weight: 500;
transition: background 0.15s, color 0.15s;
}
.sidebar-nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar-nav-item.active { background: var(--bg-active); color: var(--text-primary); }
.sidebar-nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar-section {
padding: 8px;
border-top: 1px solid var(--border-color);
}
.sidebar-section-title {
padding: 6px 12px;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-subdued);
}
.following-list {
display: flex;
flex-direction: column;
gap: 2px;
max-height: 220px;
overflow-y: auto;
}
.following-artist {
display: flex;
align-items: center;
gap: 10px;
padding: 7px 12px;
border-radius: 6px;
cursor: pointer;
color: var(--text-secondary);
transition: background 0.15s, color 0.15s;
}
.following-artist:hover,
.following-artist.active {
background: var(--bg-hover);
color: var(--text-primary);
}
.following-avatar {
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--bg-elevated);
overflow: hidden;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
.following-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.following-avatar svg {
width: 16px;
height: 16px;
color: var(--text-subdued);
}
.following-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 13px;
font-weight: 500;
}
.following-empty {
padding: 8px 12px;
color: var(--text-subdued);
font-size: 12px;
}
.playlist-list {
flex: 1;
overflow-y: auto;
padding: 8px;
border-top: 1px solid var(--border-color);
}
.playlist-item {
padding: 8px 12px;
border-radius: 6px;
cursor: pointer;
font-size: 13px;
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
transition: background 0.15s, color 0.15s;
}
.playlist-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.playlist-count {
font-size: 11px;
color: var(--text-subdued);
}
.playlist-public-section {
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid var(--border-color);
}
.playlist-subtitle {
padding-top: 2px;
padding-bottom: 8px;
}
.playlist-title-line,
.playlist-meta-line {
min-width: 0;
display: flex;
align-items: center;
gap: 6px;
}
.playlist-title-text {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.playlist-item-public {
white-space: normal;
}
.playlist-meta-line {
margin-top: 2px;
font-size: 11px;
color: var(--text-subdued);
white-space: nowrap;
}
.playlist-owner {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.playlist-public-badge {
flex-shrink: 0;
padding: 1px 5px;
border-radius: 999px;
background: rgba(52, 211, 153, 0.12);
color: #6ee7b7;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.sidebar-bottom {
padding: 12px 16px;
border-top: 1px solid var(--border-color);
}
.sidebar-bottom a {
color: var(--text-subdued);
text-decoration: none;
font-size: 12px;
display: flex;
align-items: center;
gap: 6px;
}
.sidebar-bottom a:hover { color: var(--text-secondary); }
/* Center Content */
.center-content {
flex: 1;
min-width: 0;
overflow-y: auto;
padding: 24px;
background: var(--bg-primary);
-webkit-overflow-scrolling: touch;
}
.center-content::-webkit-scrollbar { width: 8px; }
.center-content::-webkit-scrollbar-track { background: transparent; }
.center-content::-webkit-scrollbar-thumb { background: var(--bg-active); border-radius: 4px; }
.section-title {
font-size: 24px;
font-weight: 700;
margin-bottom: 20px;
}
.playlist-detail-meta {
display: flex;
align-items: center;
gap: 8px;
margin: -12px 0 18px;
color: var(--text-subdued);
font-size: 13px;
}
.breadcrumb {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 16px;
font-size: 13px;
color: var(--text-subdued);
}
.breadcrumb a {
color: var(--text-secondary);
text-decoration: none;
cursor: pointer;
}
.breadcrumb a:hover { color: var(--text-primary); text-decoration: underline; }
/* Artist / Release Grid */
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
gap: 20px;
}
.card {
background: var(--bg-secondary);
border-radius: 8px;
padding: 14px;
cursor: pointer;
transition: background 0.2s;
}
.card:hover { background: var(--bg-elevated); }
.card-img {
width: 100%;
aspect-ratio: 1;
border-radius: 6px;
background: var(--bg-elevated);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
margin-bottom: 12px;
position: relative;
}
.card-img img {
width: 100%;
height: 100%;
object-fit: cover;
}
.card-img .placeholder-icon {
color: var(--text-subdued);
}
.card-img .placeholder-icon svg { width: 48px; height: 48px; }
.card-play-btn {
position: absolute;
bottom: 8px;
right: 8px;
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--accent);
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transform: translateY(8px);
transition: opacity 0.2s, transform 0.2s;
box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.card:hover .card-play-btn { opacity: 1; transform: translateY(0); }
.card-play-btn:hover { background: var(--accent-hover); transform: scale(1.05); }
.card-play-btn svg { width: 18px; height: 18px; fill: #000; }
.card-title {
font-size: 14px;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 4px;
}
.card-subtitle {
font-size: 12px;
color: var(--text-subdued);
line-height: 1.35;
}
/* Artist detail header */
.artist-header {
display: flex;
align-items: flex-end;
gap: 24px;
margin-bottom: 32px;
}
.artist-header .artist-img {
width: 200px;
height: 200px;
border-radius: 50%;
background: var(--bg-elevated);
overflow: hidden;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
.artist-header .artist-img img { width: 100%; height: 100%; object-fit: cover; }
.artist-header .artist-img svg { width: 80px; height: 80px; color: var(--text-subdued); }
.artist-header .artist-name { font-size: 48px; font-weight: 900; line-height: 1.1; }
.artist-stats {
color: var(--text-subdued);
margin-top: 8px;
display: flex;
flex-wrap: wrap;
gap: 8px;
font-size: 14px;
}
.artist-release-group { margin-top: 28px; }
.artist-release-group:first-of-type { margin-top: 0; }
.artist-release-group-title {
font-size: 20px;
font-weight: 700;
margin-bottom: 14px;
text-transform: capitalize;
}
/* Release detail header */
.release-header {
display: flex;
align-items: flex-end;
gap: 24px;
margin-bottom: 24px;
}
.release-header .release-cover {
width: 200px;
height: 200px;
border-radius: 8px;
background: var(--bg-elevated);
overflow: hidden;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.release-header .release-cover img { width: 100%; height: 100%; object-fit: cover; }
.release-header .release-cover svg { width: 80px; height: 80px; color: var(--text-subdued); }
.release-meta .release-type { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); }
.release-meta .release-title { font-size: 36px; font-weight: 900; line-height: 1.2; margin: 4px 0; }
.release-title-row {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.release-title-row .release-title {
min-width: 0;
}
.release-title-like {
flex: 0 0 auto;
margin-top: 4px;
}
.release-meta .release-artists { font-size: 14px; color: var(--text-secondary); }
.artist-link {
color: inherit;
cursor: pointer;
text-decoration: none;
}
.artist-link:hover {
color: var(--text-primary);
text-decoration: underline;
}
.release-meta .release-year { font-size: 14px; color: var(--text-subdued); margin-top: 4px; }
/* Track list table */
.track-list { width: 100%; border-collapse: collapse; }
.track-list-header {
display: grid;
grid-template-columns: 40px 1fr 1fr 120px 60px;
padding: 8px 16px;
border-bottom: 1px solid var(--border-color);
color: var(--text-subdued);
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 4px;
}
.track-row {
display: grid;
grid-template-columns: 40px 1fr 1fr 120px 60px;
padding: 8px 16px;
border-radius: 4px;
cursor: default;
align-items: center;
transition: background 0.15s;
}
.track-row:hover { background: var(--bg-hover); }
.track-row.playing { color: var(--accent); }
.track-row.playing .track-num { color: var(--accent); }
.track-num {
font-size: 14px;
color: var(--text-subdued);
text-align: center;
}
.track-info .track-title { font-size: 14px; font-weight: 500; }
.track-info {
min-width: 0;
overflow: hidden;
}
.track-info .track-title,
.track-info .track-artists-inline,
.track-album {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.track-info .track-artists-inline {
font-size: 12px;
color: var(--text-subdued);
margin-top: 2px;
}
.track-album { font-size: 13px; color: var(--text-subdued); }
.track-duration { font-size: 13px; color: var(--text-subdued); text-align: right; }
/* Track action buttons */
.track-actions {
display: flex;
align-items: center;
gap: 2px;
opacity: 1;
transition: opacity 0.15s;
}
.track-actions > :not(.popularity-info-btn) {
opacity: 0;
pointer-events: none;
transition: opacity 0.15s;
}
.track-row:hover .track-actions > * {
opacity: 1;
pointer-events: auto;
}
.track-action-btn {
background: none;
border: none;
color: var(--text-subdued);
cursor: pointer;
padding: 4px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.15s, background 0.15s;
}
.track-action-btn:hover { color: var(--text-primary); background: var(--bg-active); }
.track-action-btn.play-btn:hover { color: var(--accent); }
.track-action-btn svg { width: 16px; height: 16px; }
.info-btn {
color: var(--text-subdued);
}
.info-btn:hover {
color: var(--text-primary);
}
.popularity-info-btn {
min-width: 26px;
height: 20px;
padding: 0 3px;
border: 0;
border-radius: 0;
background: transparent;
font-size: 11px;
font-weight: 800;
line-height: 1;
letter-spacing: 0;
font-variant-numeric: tabular-nums;
}
.popularity-info-btn.has-popularity {
color: var(--popularity-fg, var(--text-primary));
background: transparent;
}
.popularity-info-btn.has-popularity:hover {
color: var(--popularity-fg, var(--text-primary));
background: transparent;
}
.popularity-info-btn.no-popularity {
min-width: 18px;
width: 18px;
padding: 0;
}
.popularity-info-btn .info-letter {
font-size: 12px;
font-weight: 800;
font-style: normal;
line-height: 1;
}
.card-info-btn {
position: absolute;
top: 8px;
right: 8px;
width: 28px;
height: 28px;
border-radius: 50%;
border: 1px solid var(--border-color);
background: rgba(18,18,18,0.78);
color: var(--text-primary);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.2s, background 0.15s;
box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.card:hover .card-info-btn,
.search-release-card:hover .card-info-btn {
opacity: 1;
}
.card-info-btn:hover {
background: var(--bg-hover);
}
.card-info-btn svg {
width: 15px;
height: 15px;
}
/* Card enqueue button (next to play button on release cards) */
.card-enqueue-btn {
position: absolute;
bottom: 8px;
right: 56px;
width: 32px;
height: 32px;
border-radius: 50%;
background: var(--bg-elevated);
border: 1px solid var(--border-color);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transform: translateY(8px);
transition: opacity 0.2s, transform 0.2s;
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.card:hover .card-enqueue-btn { opacity: 1; transform: translateY(0); }
.card-enqueue-btn:hover { background: var(--bg-hover); border-color: var(--text-subdued); }
.card-enqueue-btn svg { width: 14px; height: 14px; color: var(--text-primary); }
/* Release header action buttons */
.release-actions {
display: flex;
gap: 8px;
margin-top: 12px;
}
.release-action-btn {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
border-radius: 20px;
border: none;
cursor: pointer;
font-size: 13px;
font-weight: 600;
transition: transform 0.1s, filter 0.15s;
}
.release-action-btn:hover { filter: brightness(1.1); }
.release-action-btn:active { transform: scale(0.97); }
.release-action-btn svg { width: 16px; height: 16px; }
.release-action-btn.primary {
background: var(--accent);
color: #000;
}
.release-action-btn.secondary {
background: var(--bg-active);
color: var(--text-primary);
}
.release-action-btn.followed {
background: var(--accent);
color: #000;
}
.artist-follow-card-btn {
position: absolute;
bottom: 8px;
right: 8px;
width: 36px;
height: 36px;
border-radius: 50%;
background: var(--bg-elevated);
border: 0;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transform: translateY(8px);
transition: opacity 0.2s, transform 0.2s, background 0.15s, color 0.15s;
box-shadow: none;
color: var(--text-primary);
}
.card:hover .artist-follow-card-btn,
.search-artist-card:hover .artist-follow-card-btn,
.artist-follow-card-btn.followed {
opacity: 1;
transform: translateY(0);
}
.artist-follow-card-btn.followed {
background: var(--accent);
color: #000;
}
.artist-follow-card-btn svg {
width: 17px;
height: 17px;
}
/* Queue Panel */
.queue-panel {
width: var(--queue-width);
min-width: var(--queue-width);
background: var(--bg-secondary);
border-left: 1px solid var(--border-color);
display: flex;
flex-direction: column;
overflow: hidden;
}
.queue-panel.hidden { display: none; }
.queue-backdrop {
display: none;
}
.queue-header {
padding: 16px;
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
}
.queue-header h3 { font-size: 14px; font-weight: 600; }
.queue-clear-btn {
background: rgba(229, 96, 96, 0.13);
border: 1px solid rgba(229, 96, 96, 0.18);
color: #ffb9b9;
font-size: 12px;
font-weight: 700;
cursor: pointer;
padding: 5px 10px;
border-radius: 4px;
}
.queue-clear-btn:hover {
color: #ffd7d7;
background: rgba(229, 96, 96, 0.22);
border-color: rgba(229, 96, 96, 0.32);
}
.queue-tracks {
flex: 1;
overflow-y: auto;
padding: 8px;
}
.queue-track {
display: flex;
align-items: center;
gap: 10px;
padding: 8px;
border-radius: 6px;
cursor: pointer;
transition: background 0.15s;
}
.queue-track:hover { background: var(--bg-hover); }
.queue-track.active { background: var(--bg-active); }
.queue-track-cover {
width: 40px;
height: 40px;
border-radius: 4px;
background: var(--bg-elevated);
overflow: hidden;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
.queue-track-cover img { width: 100%; height: 100%; object-fit: cover; }
.queue-track-cover svg { width: 20px; height: 20px; color: var(--text-subdued); }
.queue-track-info { overflow: hidden; flex: 1; }
.queue-track-title {
font-size: 13px;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.queue-track.active .queue-track-title { color: var(--accent); }
.queue-track-artist {
font-size: 11px;
color: var(--text-subdued);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.queue-track-actions {
display: flex;
align-items: center;
gap: 2px;
opacity: 1;
transition: opacity 0.15s;
flex-shrink: 0;
}
.queue-track-actions > :not(.popularity-info-btn) {
opacity: 0;
pointer-events: none;
transition: opacity 0.15s;
}
.queue-track:hover .queue-track-actions > * {
opacity: 1;
pointer-events: auto;
}
.queue-track-remove {
background: none;
border: none;
color: var(--text-subdued);
cursor: pointer;
padding: 4px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.15s, background 0.15s;
}
.queue-track-remove:hover { color: var(--text-primary); background: var(--bg-hover); }
.queue-track-remove.popularity-info-btn {
min-width: 26px;
width: auto;
height: 20px;
padding: 0 3px;
border-radius: 0;
}
.queue-track-remove.popularity-info-btn.no-popularity {
min-width: 18px;
width: 18px;
padding: 0;
}
/* Drag handle */
.queue-drag-handle {
cursor: grab;
color: var(--text-subdued);
padding: 4px 2px;
display: flex;
align-items: center;
flex-shrink: 0;
opacity: 0;
transition: opacity 0.15s;
}
.queue-track:hover .queue-drag-handle { opacity: 1; }
.queue-drag-handle:active { cursor: grabbing; }
.queue-drag-handle svg { width: 14px; height: 14px; }
/* Drag states */
.queue-track.dragging { opacity: 0.4; }
.queue-track.drag-over { border-top: 2px solid var(--accent); margin-top: -2px; }
/* Player Bar */
.player-bar {
height: var(--player-bar-space);
background: var(--bg-secondary);
border-top: 1px solid var(--border-color);
display: grid;
grid-template-columns: 1fr 2fr 1fr;
align-items: center;
padding: 0 16px var(--safe-bottom);
z-index: 10;
flex-shrink: 0;
}
.player-now-playing {
display: flex;
align-items: center;
gap: 12px;
overflow: hidden;
min-width: 0;
}
.player-now-playing > div { min-width: 0; }
.player-cover {
width: 56px;
height: 56px;
border-radius: 4px;
background: var(--bg-elevated);
overflow: hidden;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.player-cover svg { width: 24px; height: 24px; color: var(--text-subdued); }
.player-track-info {
overflow: hidden;
min-width: 0;
}
.player-track-title-row {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
}
.player-track-title {
font-size: 13px;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
}
.player-current-like {
width: 24px;
height: 24px;
padding: 4px;
flex: 0 0 auto;
}
.player-track-artist {
font-size: 11px;
color: var(--text-subdued);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.player-controls {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
min-width: 0;
}
.player-buttons {
display: flex;
align-items: center;
gap: 16px;
}
.player-btn {
background: none;
border: none;
color: var(--text-secondary);
cursor: pointer;
padding: 4px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.15s, transform 0.1s;
}
.player-btn:hover { color: var(--text-primary); }
.player-btn:active { transform: scale(0.95); }
.player-btn svg { width: 18px; height: 18px; }
.player-btn.active { color: var(--accent); }
.player-btn-play {
width: 32px;
height: 32px;
background: var(--text-primary);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.player-btn-play svg { width: 16px; height: 16px; fill: #000; color: #000; }
.player-btn-play:hover { transform: scale(1.06); background: #fff; }
.player-timeline {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
max-width: 600px;
}
.player-time { font-size: 11px; color: var(--text-subdued); min-width: 40px; text-align: center; }
.progress-bar {
flex: 1;
height: 4px;
background: var(--bg-active);
border-radius: 2px;
cursor: pointer;
position: relative;
}
.progress-bar:hover { height: 6px; }
.progress-bar-fill {
height: 100%;
background: var(--text-primary);
border-radius: 2px;
position: relative;
transition: width 0.1s linear;
}
.progress-bar:hover .progress-bar-fill { background: var(--accent); }
.progress-bar-thumb {
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--text-primary);
position: absolute;
right: -6px;
top: 50%;
transform: translateY(-50%);
opacity: 0;
transition: opacity 0.15s;
}
.progress-bar:hover .progress-bar-thumb { opacity: 1; }
.player-right {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
min-width: 0;
}
.volume-control {
display: flex;
align-items: center;
gap: 6px;
}
.volume-btn {
background: none;
border: none;
color: var(--text-secondary);
cursor: pointer;
padding: 4px;
display: flex;
align-items: center;
}
.volume-btn:hover { color: var(--text-primary); }
.volume-btn svg { width: 18px; height: 18px; }
.volume-slider {
width: 80px;
height: 4px;
background: var(--bg-active);
border-radius: 2px;
cursor: pointer;
position: relative;
touch-action: none;
}
.volume-slider-fill {
height: 100%;
background: var(--text-primary);
border-radius: 2px;
position: relative;
}
.volume-slider:hover .volume-slider-fill { background: var(--accent); }
.volume-slider-thumb {
position: absolute;
right: -6px;
top: 50%;
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--text-primary);
transform: translateY(-50%);
opacity: 0;
transition: opacity 0.15s;
}
.volume-slider:hover .volume-slider-thumb,
.volume-slider:active .volume-slider-thumb {
opacity: 1;
}
.queue-toggle-btn {
background: none;
border: none;
color: var(--text-subdued);
cursor: pointer;
padding: 4px 8px;
border-radius: 4px;
}
.queue-toggle-btn:hover { color: var(--text-primary); }
.queue-toggle-btn.active { color: var(--accent); }
.queue-toggle-btn svg { width: 18px; height: 18px; }
.device-picker {
position: relative;
display: flex;
align-items: center;
}
.device-toggle-btn {
display: flex;
align-items: center;
justify-content: center;
}
.device-popover {
position: absolute;
right: 0;
bottom: 38px;
width: 260px;
max-width: calc(100vw - 24px);
max-height: min(320px, calc(100dvh - var(--player-bar-space) - 24px));
overflow-y: auto;
padding: 6px;
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--bg-elevated);
box-shadow: 0 16px 46px rgba(0,0,0,0.48);
z-index: 45;
}
.device-row {
width: 100%;
min-height: 44px;
border: 0;
border-radius: 6px;
background: transparent;
color: var(--text-secondary);
display: grid;
grid-template-columns: 28px minmax(0, 1fr) 22px;
align-items: center;
gap: 9px;
padding: 7px 8px;
cursor: pointer;
text-align: left;
}
.device-row:hover,
.device-row.active {
background: var(--bg-hover);
color: var(--text-primary);
}
.device-row.active {
color: var(--accent);
}
.device-row-icon,
.device-row-check {
display: flex;
align-items: center;
justify-content: center;
}
.device-row-icon svg {
width: 18px;
height: 18px;
}
.device-row-check svg {
width: 16px;
height: 16px;
}
.device-row-main {
min-width: 0;
}
.device-row-name {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.device-row-name {
color: inherit;
font-size: 13px;
font-weight: 650;
}
.device-row-current {
display: block;
width: 18px;
height: 3px;
margin-top: 5px;
border-radius: 999px;
background: currentColor;
opacity: 0.55;
}
/* Loading */
.loading-spinner {
display: flex;
justify-content: center;
padding: 40px;
}
.spinner {
width: 32px;
height: 32px;
border: 3px solid var(--bg-active);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Empty state */
.empty-state {
text-align: center;
padding: 60px 20px;
color: var(--text-subdued);
}
.empty-state svg { width: 64px; height: 64px; margin-bottom: 16px; }
.empty-state p { font-size: 14px; }
.content-topbar {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
}
.connection-alert {
flex: 0 0 auto;
min-width: 42px;
height: 42px;
padding: 0 12px;
border: 1px solid rgba(248, 113, 113, 0.34);
border-radius: 8px;
background: rgba(127, 29, 29, 0.2);
color: #f87171;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.connection-alert svg {
width: 18px;
height: 18px;
flex: 0 0 auto;
}
.connection-alert-text {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #fecaca;
font-size: 12px;
font-weight: 700;
}
/* Search bar */
.search-bar {
position: relative;
flex: 1 1 auto;
min-width: 0;
}
.version-chip {
flex: 0 0 auto;
color: var(--text-subdued);
font-size: 11px;
font-weight: 700;
line-height: 1;
letter-spacing: 0;
white-space: nowrap;
}
.player-version-chip {
width: 100%;
max-width: 600px;
margin-top: -2px;
padding-left: 0;
color: var(--text-subdued);
opacity: 0.55;
font-size: 9px;
line-height: 1;
font-weight: 500;
text-align: center;
pointer-events: none;
}
.mobile-account-chip {
display: none;
align-items: center;
gap: 8px;
min-width: 0;
max-width: 148px;
height: 42px;
padding: 0 10px 0 6px;
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--bg-elevated);
color: var(--text-primary);
cursor: pointer;
}
.mobile-library-btn {
display: none;
align-items: center;
justify-content: center;
width: 42px;
height: 42px;
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--bg-elevated);
color: var(--text-secondary);
cursor: pointer;
flex: 0 0 auto;
transition: background 0.15s, color 0.15s;
}
.mobile-library-btn:hover,
.mobile-account-chip:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.mobile-library-btn svg {
width: 19px;
height: 19px;
}
.mobile-account-popover {
position: absolute;
right: 16px;
top: 66px;
z-index: 80;
width: min(286px, calc(100vw - 32px));
padding: 12px;
border: 1px solid var(--border-color);
border-radius: 10px;
background: var(--bg-elevated);
box-shadow: 0 16px 36px rgba(0,0,0,0.42);
}
.mobile-account-popover .user-widget-main {
grid-template-columns: 36px minmax(0, 1fr);
}
.mobile-account-logout {
width: 100%;
margin-top: 12px;
justify-content: center;
}
.torrent-import-btn {
display: flex;
align-items: center;
justify-content: center;
width: 42px;
height: 42px;
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--bg-elevated);
color: var(--text-secondary);
cursor: pointer;
flex: 0 0 auto;
transition: background 0.15s, color 0.15s;
}
.torrent-import-btn:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.torrent-import-btn svg {
width: 19px;
height: 19px;
}
.mobile-account-chip .user-avatar {
width: 30px;
height: 30px;
font-size: 13px;
flex-shrink: 0;
}
.mobile-account-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
font-weight: 700;
text-align: left;
}
.mobile-library-backdrop {
position: fixed;
inset: 0;
z-index: 70;
display: none;
background: rgba(0,0,0,0.58);
}
.mobile-library-drawer {
width: min(360px, calc(100vw - 28px));
height: calc(100dvh - var(--player-bar-space) - 20px);
margin: 10px 0 0 10px;
border: 1px solid var(--border-color);
border-radius: 12px;
background: var(--bg-secondary);
box-shadow: 0 18px 60px rgba(0,0,0,0.55);
display: flex;
flex-direction: column;
overflow: hidden;
}
.mobile-drawer-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 14px 14px 12px;
border-bottom: 1px solid var(--border-color);
}
.mobile-drawer-title {
font-size: 15px;
font-weight: 800;
}
.mobile-drawer-body {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 8px;
}
.mobile-drawer-section {
padding: 6px 0 10px;
border-top: 1px solid var(--border-color);
}
.mobile-drawer-section:first-child {
border-top: 0;
}
.mobile-list-row {
display: flex;
align-items: center;
gap: 6px;
}
.mobile-list-row .following-artist,
.mobile-list-row .playlist-item {
flex: 1;
min-width: 0;
}
.mobile-list-action {
flex: 0 0 auto;
width: 30px;
height: 30px;
border-radius: 6px;
border: 0;
background: transparent;
box-shadow: none;
color: var(--text-subdued);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
padding: 0;
appearance: none;
}
.mobile-list-action:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.mobile-list-action svg {
width: 15px;
height: 15px;
}
.search-bar input {
width: 100%;
padding: 10px 40px 10px 40px;
background: var(--bg-elevated);
border: 1px solid var(--border-color);
border-radius: 8px;
color: var(--text-primary);
font-size: 14px;
outline: none;
transition: border-color 0.15s, background 0.15s;
}
.search-bar input::placeholder { color: var(--text-subdued); }
.search-bar input:focus { border-color: var(--text-secondary); background: var(--bg-hover); }
.search-bar .search-icon {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
color: var(--text-subdued);
pointer-events: none;
}
.search-bar .search-icon svg { width: 18px; height: 18px; }
.search-bar .search-clear {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
color: var(--text-subdued);
cursor: pointer;
padding: 4px;
border-radius: 4px;
display: flex;
align-items: center;
}
.search-bar .search-clear:hover { color: var(--text-primary); background: var(--bg-hover); }
.search-bar .search-clear svg { width: 16px; height: 16px; }
.search-bar .search-shortcut {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
color: var(--text-subdued);
font-size: 11px;
pointer-events: none;
background: var(--bg-active);
padding: 2px 6px;
border-radius: 4px;
}
/* Search results */
.search-section { margin-bottom: 24px; }
.search-section-title {
font-size: 18px;
font-weight: 700;
margin-bottom: 12px;
}
.search-artists-row {
display: flex;
gap: 16px;
overflow-x: auto;
padding-bottom: 8px;
}
.search-artists-row::-webkit-scrollbar { height: 6px; }
.search-artists-row::-webkit-scrollbar-track { background: transparent; }
.search-artists-row::-webkit-scrollbar-thumb { background: var(--bg-active); border-radius: 3px; }
.search-artist-card {
flex-shrink: 0;
width: 140px;
background: var(--bg-secondary);
border-radius: 8px;
padding: 12px;
cursor: pointer;
transition: background 0.2s;
text-align: center;
}
.search-artist-card:hover { background: var(--bg-elevated); }
.search-artist-img {
width: 80px;
height: 80px;
border-radius: 50%;
background: var(--bg-elevated);
margin: 0 auto 8px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.search-artist-img img { width: 100%; height: 100%; object-fit: cover; }
.search-artist-img svg { width: 32px; height: 32px; color: var(--text-subdued); }
.search-artist-name {
font-size: 13px;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.search-releases-row {
display: flex;
gap: 16px;
overflow-x: auto;
padding-bottom: 8px;
}
.search-releases-row::-webkit-scrollbar { height: 6px; }
.search-releases-row::-webkit-scrollbar-track { background: transparent; }
.search-releases-row::-webkit-scrollbar-thumb { background: var(--bg-active); border-radius: 3px; }
.search-release-card {
flex-shrink: 0;
width: 150px;
background: var(--bg-secondary);
border-radius: 8px;
padding: 12px;
cursor: pointer;
transition: background 0.2s;
}
.search-release-card:hover { background: var(--bg-elevated); }
.search-release-cover {
width: 100%;
aspect-ratio: 1;
border-radius: 6px;
background: var(--bg-elevated);
margin-bottom: 8px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
.search-release-cover img { width: 100%; height: 100%; object-fit: cover; }
.search-release-cover svg { width: 40px; height: 40px; color: var(--text-subdued); }
/* Like button */
.like-btn {
background: none;
border: none;
cursor: pointer;
padding: 4px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.15s, transform 0.1s;
color: var(--text-subdued);
}
.like-btn:hover { color: var(--text-primary); }
.like-btn:active { transform: scale(0.9); }
.like-btn.liked { color: var(--accent); }
.like-btn svg { width: 16px; height: 16px; }
.like-btn-lg svg { width: 22px; height: 22px; }
/* Playlist modal overlay */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.6);
z-index: 100;
display: flex;
align-items: center;
justify-content: center;
}
.modal-box {
background: var(--bg-elevated);
border-radius: 12px;
padding: 24px;
min-width: 320px;
max-width: 400px;
max-height: 70vh;
display: flex;
flex-direction: column;
box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.modal-box h3 {
font-size: 18px;
font-weight: 700;
margin-bottom: 16px;
}
.modal-box input[type="text"] {
width: 100%;
padding: 10px 12px;
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: 6px;
color: var(--text-primary);
font-size: 14px;
outline: none;
margin-bottom: 12px;
}
.modal-box input[type="text"]:focus { border-color: var(--accent); }
.modal-playlist-list {
overflow-y: auto;
max-height: 40vh;
margin-bottom: 12px;
}
.modal-playlist-item {
padding: 10px 12px;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
color: var(--text-secondary);
transition: background 0.15s, color 0.15s;
display: flex;
align-items: center;
gap: 8px;
}
.modal-playlist-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.modal-playlist-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.info-modal {
max-width: min(620px, calc(100vw - 24px));
}
.info-modal-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 12px;
}
.info-modal-head h3 {
margin: 0;
}
.info-modal-body {
margin: 0;
padding: 14px;
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--bg-primary);
color: var(--text-secondary);
font-size: 13px;
line-height: 1.55;
overflow: auto;
max-height: min(58dvh, 520px);
}
.info-modal-plain {
margin: 0;
font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
white-space: pre-wrap;
}
.info-table {
width: 100%;
border-collapse: collapse;
}
.info-table th,
.info-table td {
padding: 9px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
vertical-align: top;
}
.info-table tr:last-child th,
.info-table tr:last-child td {
border-bottom: 0;
}
.info-table th {
width: 34%;
padding-right: 18px;
color: var(--text-subdued);
font-size: 11px;
font-weight: 700;
text-align: left;
text-transform: uppercase;
}
.info-table td {
color: var(--text-primary);
}
.info-link-list {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.info-link {
border: 1px solid rgba(29, 185, 84, 0.36);
border-radius: 999px;
background: rgba(29, 185, 84, 0.1);
color: var(--text-primary);
cursor: pointer;
padding: 3px 8px;
font: inherit;
line-height: 1.3;
}
.info-link:hover {
border-color: rgba(29, 185, 84, 0.7);
background: rgba(29, 185, 84, 0.18);
color: var(--accent);
}
.modal-btn {
padding: 8px 16px;
border-radius: 20px;
border: none;
cursor: pointer;
font-size: 13px;
font-weight: 600;
transition: filter 0.15s;
}
.modal-btn:hover { filter: brightness(1.1); }
.modal-btn-primary { background: var(--accent); color: #000; }
.modal-btn-pause {
background: #f0b84d;
color: #111;
}
.modal-btn-ghost { background: transparent; color: var(--text-secondary); }
.modal-btn-danger {
background: rgba(229,96,96,0.16);
color: #ffb9b9;
border: 1px solid rgba(229,96,96,0.32);
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 8px;
}
.torrent-modal {
width: min(1180px, calc(100vw - 48px));
max-width: 1180px;
height: min(820px, calc(100dvh - 64px));
max-height: calc(100dvh - 64px);
overflow: hidden;
}
.torrent-modal-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 14px;
margin-bottom: 12px;
flex: 0 0 auto;
position: relative;
}
.torrent-modal-head h3 {
margin: 0;
}
.torrent-client-status {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-end;
gap: 6px;
min-width: 0;
color: var(--text-subdued);
font-size: 12px;
}
.torrent-status-pill {
display: inline-flex;
align-items: center;
gap: 5px;
min-height: 24px;
padding: 3px 8px;
border-radius: 999px;
background: var(--bg-primary);
border: 1px solid var(--border-color);
color: var(--text-secondary);
font-size: 12px;
white-space: nowrap;
}
.torrent-modal-close {
display: none;
align-items: center;
justify-content: center;
flex: 0 0 auto;
width: 34px;
height: 34px;
border: 1px solid var(--border-color);
border-radius: 999px;
background: var(--bg-primary);
color: var(--text-secondary);
cursor: pointer;
}
.torrent-modal-close svg {
width: 18px;
height: 18px;
}
.torrent-status-pill.active {
border-color: rgba(29,185,84,0.42);
color: #9ff0b9;
}
.torrent-agent-pill.active {
border-color: rgba(240,184,77,0.45);
color: #ffd78a;
}
.torrent-agent-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--text-subdued);
}
.torrent-agent-pill.active .torrent-agent-dot {
background: #f0b84d;
box-shadow: 0 0 0 3px rgba(240,184,77,0.14);
}
.torrent-manager-layout {
display: grid;
grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
gap: 14px;
min-height: 0;
flex: 1 1 auto;
}
.torrent-manager-sidebar,
.torrent-workspace {
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
}
.torrent-manager-sidebar {
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--bg-primary);
overflow: hidden;
}
.torrent-manager-title {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 10px 12px;
border-bottom: 1px solid var(--border-color);
color: var(--text-secondary);
font-size: 12px;
font-weight: 800;
text-transform: uppercase;
}
.torrent-session-list {
overflow-y: auto;
min-height: 0;
max-height: none;
flex: 1 1 auto;
}
.torrent-session-row {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 8px;
padding: 10px 12px;
border-bottom: 1px solid var(--border-color);
cursor: pointer;
}
.torrent-session-add {
width: 100%;
grid-template-columns: auto minmax(0, 1fr);
align-items: center;
border: 0;
border-bottom: 1px solid var(--border-color);
background: transparent;
color: var(--text-secondary);
text-align: left;
font: inherit;
font-size: 13px;
font-weight: 800;
}
.torrent-session-add:disabled {
cursor: default;
opacity: 0.6;
}
.torrent-session-add-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border-radius: 999px;
border: 1px solid rgba(29,185,84,0.38);
color: #9ff0b9;
font-size: 16px;
line-height: 1;
}
.torrent-session-row:last-child { border-bottom: 0; }
.torrent-session-row:hover,
.torrent-session-row.active { background: var(--bg-hover); }
.torrent-session-main {
min-width: 0;
}
.torrent-session-topline {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 8px;
align-items: center;
}
.torrent-session-name {
min-width: 0;
color: var(--text-primary);
font-size: 13px;
font-weight: 800;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.torrent-status-badge {
display: inline-flex;
align-items: center;
min-height: 20px;
padding: 2px 7px;
border-radius: 999px;
font-size: 10px;
font-weight: 900;
line-height: 1;
text-transform: uppercase;
white-space: nowrap;
}
.torrent-status-badge.status-preview {
background: rgba(122,162,255,0.16);
color: #adc3ff;
}
.torrent-status-badge.status-resolving {
background: rgba(182,141,255,0.16);
color: #d0b6ff;
}
.torrent-status-badge.status-downloading {
background: rgba(29,185,84,0.16);
color: #9ff0b9;
}
.torrent-status-badge.status-moving {
background: rgba(75,198,240,0.16);
color: #a8e8ff;
}
.torrent-status-badge.status-completed {
background: rgba(110,211,123,0.16);
color: #b8f7be;
}
.torrent-status-badge.status-paused {
background: rgba(240,184,77,0.18);
color: #ffd78a;
}
.torrent-status-badge.status-failed {
background: rgba(229,96,96,0.18);
color: #ffb9b9;
}
.torrent-session-meta {
margin-top: 4px;
color: var(--text-subdued);
font-size: 11px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.torrent-session-progress {
height: 5px;
margin-top: 7px;
overflow: hidden;
border-radius: 999px;
background: var(--bg-secondary);
}
.torrent-session-progress-bar {
height: 100%;
width: 0%;
border-radius: inherit;
background: linear-gradient(90deg, var(--accent), #7ee4a2);
transition: width 0.25s ease;
}
.torrent-progress-card {
margin-top: 10px;
padding: 10px 12px;
border-radius: 8px;
border: 1px solid var(--border-color);
background: var(--bg-primary);
}
.torrent-progress-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
color: var(--text-secondary);
font-size: 12px;
font-weight: 700;
}
.torrent-progress-track {
height: 8px;
margin-top: 8px;
overflow: hidden;
border-radius: 999px;
background: var(--bg-secondary);
}
.torrent-progress-bar {
height: 100%;
width: 0%;
border-radius: inherit;
background: linear-gradient(90deg, var(--accent), #7ee4a2);
transition: width 0.25s ease;
}
.torrent-progress-details {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
margin-top: 8px;
color: var(--text-subdued);
min-height: 38px;
}
.torrent-progress-details.completed {
grid-template-columns: minmax(0, 1fr);
}
.torrent-progress-metric {
min-width: 0;
min-height: 38px;
padding: 5px 7px;
border-radius: 6px;
background: var(--bg-secondary);
display: flex;
flex-direction: column;
justify-content: center;
gap: 2px;
}
.torrent-progress-label {
color: var(--text-muted);
font-size: 10px;
line-height: 12px;
text-transform: uppercase;
font-weight: 800;
}
.torrent-progress-value {
color: var(--text-secondary);
font-size: 12px;
line-height: 14px;
font-weight: 700;
overflow-wrap: anywhere;
}
.history-modal {
width: min(620px, calc(100vw - 32px));
max-width: 620px;
}
.history-list {
margin-top: 12px;
overflow-y: auto;
max-height: min(54vh, 460px);
border: 1px solid var(--border-color);
border-radius: 8px;
}
.history-row {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 8px 12px;
padding: 10px 12px;
border-bottom: 1px solid var(--border-color);
}
.history-row:last-child { border-bottom: 0; }
.history-title {
min-width: 0;
color: var(--text-primary);
font-size: 13px;
font-weight: 700;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.history-release,
.history-date,
.history-duration {
color: var(--text-subdued);
font-size: 12px;
}
.history-date,
.history-duration {
text-align: right;
white-space: nowrap;
}
.history-pager {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-top: 12px;
}
.torrent-modal-grid {
display: grid;
grid-template-columns: minmax(0, 360px);
gap: 10px;
max-width: 360px;
}
.torrent-import-panel,
.torrent-workspace-empty {
min-height: 150px;
}
.torrent-upload-summary {
min-height: 16px;
margin-top: 5px;
color: var(--text-subdued);
font-size: 11px;
}
.torrent-upload-progress {
margin-top: 10px;
padding: 10px 12px;
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--bg-primary);
}
.torrent-modal label {
display: block;
margin-bottom: 6px;
color: var(--text-secondary);
font-size: 12px;
font-weight: 700;
}
.torrent-modal input[type="file"],
.torrent-modal input[type="text"],
.torrent-modal textarea {
width: 100%;
padding: 10px 12px;
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: 6px;
color: var(--text-primary);
font: inherit;
outline: none;
}
.torrent-modal input[type="file"]:focus,
.torrent-modal input[type="text"]:focus,
.torrent-modal textarea:focus {
border-color: var(--text-secondary);
}
.torrent-message {
margin: 10px 0 0;
min-height: 18px;
color: var(--text-subdued);
font-size: 12px;
}
.torrent-message.error { color: #ff8b8b; }
.torrent-preview-head {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: center;
margin-top: 16px;
}
.torrent-preview-actions {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 8px;
}
.torrent-preview-title {
min-width: 0;
font-size: 14px;
font-weight: 800;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.torrent-preview-meta {
margin-top: 3px;
color: var(--text-subdued);
font-size: 12px;
}
.torrent-preview-panel {
display: flex;
flex: 1 1 auto;
flex-direction: column;
min-height: 0;
}
.torrent-actions {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
gap: 8px;
margin-top: 12px;
}
.torrent-tree-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-top: 12px;
padding: 10px 12px;
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: 8px;
}
.torrent-selected-summary {
min-width: 0;
color: var(--text-secondary);
font-size: 12px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.torrent-file-tree {
flex: 1 1 auto;
margin-top: 10px;
overflow-y: auto;
min-height: 140px;
max-height: none;
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--bg-primary);
}
.torrent-tree-row {
display: grid;
grid-template-columns: 28px 24px minmax(0, 1fr) 92px;
gap: 8px;
align-items: center;
min-height: 38px;
padding: 7px 10px 7px var(--indent, 10px);
border-bottom: 1px solid var(--border-color);
}
.torrent-tree-row:last-child { border-bottom: 0; }
.torrent-tree-row:hover { background: var(--bg-hover); }
.torrent-tree-toggle,
.torrent-tree-check {
width: 24px;
height: 24px;
border: 0;
background: transparent;
color: var(--text-subdued);
display: flex;
align-items: center;
justify-content: center;
padding: 0;
cursor: pointer;
}
.torrent-tree-toggle svg {
width: 16px;
height: 16px;
transition: transform 0.15s;
}
.torrent-tree-toggle.expanded svg {
transform: rotate(90deg);
}
.torrent-tree-check {
border: 1px solid var(--border-color);
border-radius: 5px;
background: var(--bg-secondary);
}
.torrent-tree-check.checked {
background: var(--accent);
border-color: var(--accent);
color: #000;
}
.torrent-tree-check.partial {
border-color: var(--text-secondary);
color: var(--text-primary);
}
.torrent-tree-check svg {
width: 15px;
height: 15px;
}
.torrent-tree-label {
min-width: 0;
display: flex;
align-items: center;
gap: 8px;
}
.torrent-tree-label svg {
flex: 0 0 auto;
width: 17px;
height: 17px;
color: var(--text-subdued);
}
.torrent-file-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 13px;
}
.torrent-file-size {
color: var(--text-subdued);
font-size: 12px;
text-align: right;
font-variant-numeric: tabular-nums;
}
/* Sidebar playlist actions */
.playlist-item-row {
display: flex;
align-items: center;
gap: 4px;
}
.playlist-item-row .playlist-item { flex: 1; min-width: 0; }
.playlist-item-actions {
display: flex;
gap: 2px;
opacity: 0;
transition: opacity 0.15s;
flex-shrink: 0;
}
.playlist-item-row:hover .playlist-item-actions { opacity: 1; }
.playlist-action-btn {
background: none;
border: none;
color: var(--text-subdued);
cursor: pointer;
padding: 3px;
border-radius: 4px;
display: flex;
align-items: center;
}
.playlist-action-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.playlist-action-btn svg { width: 14px; height: 14px; }
.sidebar-create-btn {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 8px 12px;
background: none;
border: none;
border-radius: 6px;
cursor: pointer;
color: var(--text-subdued);
font-size: 13px;
transition: background 0.15s, color 0.15s;
}
.sidebar-create-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar-create-btn svg { width: 16px; height: 16px; }
/* Responsive */
@media (max-width: 1200px) {
:root {
--sidebar-width: 220px;
--queue-width: 280px;
}
.center-content { padding: 20px; }
.card-grid {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 16px;
}
.artist-header .artist-img,
.release-header .release-cover {
width: 168px;
height: 168px;
}
.release-meta .release-title { font-size: 32px; }
}
@media (max-width: 900px) {
:root {
--player-height: 118px;
--player-bar-space: calc(var(--player-height) + var(--safe-bottom));
}
.sidebar-left { display: none; }
.center-content {
padding: 16px;
}
.content-topbar {
margin-bottom: 16px;
}
.content-topbar .search-bar {
flex: 1 1 auto;
}
.connection-alert {
width: 42px;
padding: 0;
}
.connection-alert-text {
display: none;
}
.mobile-library-btn {
display: flex;
}
.mobile-account-chip {
display: flex;
flex: 0 0 auto;
}
.mobile-library-backdrop {
display: block;
}
.torrent-modal {
width: min(1180px, calc(100vw - 32px));
}
.card-grid {
grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
gap: 14px;
}
.card {
padding: 10px;
border-radius: 7px;
}
.card-title { font-size: 13px; }
.card-subtitle { font-size: 11px; }
.card-play-btn,
.card-enqueue-btn,
.card-info-btn,
.artist-follow-card-btn,
.track-actions,
.playlist-item-actions,
.queue-track-actions,
.queue-drag-handle {
opacity: 1;
transform: none;
}
.artist-header,
.release-header {
align-items: center;
gap: 16px;
}
.artist-header .artist-img,
.release-header .release-cover {
width: 128px;
height: 128px;
}
.artist-header .artist-name,
.artist-header .artist-name[style] {
font-size: 34px !important;
}
.release-meta .release-title { font-size: 28px; }
.track-list-header,
.track-row {
grid-template-columns: 32px minmax(0, 1fr) auto 54px;
padding: 8px 10px;
}
.track-list-header span:nth-child(3),
.track-row > span:nth-child(3) {
display: none;
}
.track-actions {
justify-content: flex-end;
}
.queue-panel {
position: fixed;
left: 12px;
right: 12px;
top: 24dvh;
bottom: calc(var(--player-bar-space) + 12px);
width: auto;
min-width: 0;
border: 1px solid var(--border-color);
border-radius: 10px;
box-shadow: 0 18px 60px rgba(0,0,0,0.55);
z-index: 30;
display: flex;
}
.queue-backdrop {
position: fixed;
inset: 0;
display: block;
background: rgba(0,0,0,0.52);
z-index: 29;
}
.queue-panel.hidden {
display: none;
}
.queue-track {
padding: 10px 8px;
}
.player-bar {
grid-template-columns: minmax(0, 1fr) auto;
grid-template-rows: auto auto;
gap: 8px 12px;
align-items: center;
padding: 10px 12px calc(10px + var(--safe-bottom));
}
.player-now-playing {
grid-column: 1;
grid-row: 1;
}
.player-cover {
width: 44px;
height: 44px;
}
.player-controls {
grid-column: 1 / -1;
grid-row: 2;
gap: 6px;
width: 100%;
}
.player-buttons {
gap: 18px;
}
.player-btn {
min-width: 32px;
min-height: 32px;
}
.player-btn-play {
width: 38px;
height: 38px;
}
.player-timeline {
max-width: none;
gap: 6px;
}
.player-version-chip {
max-width: none;
padding-left: 0;
opacity: 0.62;
font-size: 9px;
}
.player-time {
min-width: 34px;
font-size: 10px;
}
.player-right {
grid-column: 2;
grid-row: 1;
}
.volume-control {
display: flex;
}
.volume-slider {
width: 74px;
height: 6px;
border-radius: 999px;
}
.volume-slider-fill {
border-radius: 999px;
}
.volume-slider-thumb {
opacity: 1;
}
.queue-toggle-btn {
min-width: 36px;
min-height: 36px;
}
}
@media (max-width: 560px) {
:root {
--player-height: 132px;
--player-bar-space: calc(var(--player-height) + var(--safe-bottom));
}
.center-content {
padding: 12px;
}
.section-title {
font-size: 22px;
margin-bottom: 14px;
}
.content-topbar {
margin-bottom: 14px;
}
.search-bar input {
padding-top: 11px;
padding-bottom: 11px;
font-size: 16px;
}
.search-bar .search-shortcut {
display: none;
}
.mobile-account-chip {
max-width: 42px;
width: 42px;
padding: 0;
justify-content: center;
}
.mobile-account-name {
display: none;
}
.mobile-library-drawer {
width: calc(100vw - 16px);
margin-left: 8px;
height: calc(100dvh - var(--player-bar-space) - 16px);
}
.mobile-account-popover {
right: 8px;
top: 64px;
}
.card-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.search-artists-row,
.search-releases-row {
gap: 12px;
margin-left: -12px;
margin-right: -12px;
padding-left: 12px;
padding-right: 12px;
scroll-padding-left: 12px;
}
.search-artist-card,
.search-release-card {
width: 132px;
}
.artist-header,
.release-header {
display: grid;
grid-template-columns: 96px minmax(0, 1fr);
align-items: center;
gap: 14px;
margin-bottom: 20px;
}
.artist-header .artist-img,
.release-header .release-cover {
width: 96px;
height: 96px;
}
.artist-header .artist-img svg,
.release-header .release-cover svg {
width: 44px;
height: 44px;
}
.artist-header .artist-name,
.artist-header .artist-name[style] {
font-size: 26px !important;
line-height: 1.12 !important;
}
.artist-stats {
font-size: 12px;
gap: 5px;
}
.release-meta {
min-width: 0;
}
.release-meta .release-title {
font-size: 22px;
line-height: 1.15;
overflow-wrap: anywhere;
}
.release-actions {
flex-wrap: wrap;
}
.release-action-btn {
padding: 8px 12px;
}
.track-list-header {
display: none;
}
.track-row {
grid-template-columns: 26px minmax(0, 1fr) auto;
gap: 6px;
padding: 10px 6px;
}
.track-row > span:nth-child(3),
.track-duration {
display: none;
}
.track-actions {
gap: 0;
}
.track-action-btn,
.like-btn {
padding: 6px;
}
.popularity-info-btn {
min-width: 28px;
height: 22px;
padding: 0 3px;
}
.popularity-info-btn.no-popularity {
min-width: 20px;
width: 20px;
padding: 0;
}
.track-actions > *,
.queue-track-actions > * {
opacity: 1;
pointer-events: auto;
}
.track-action-btn svg,
.like-btn svg {
width: 17px;
height: 17px;
}
.modal-overlay {
align-items: center;
justify-content: center;
padding: 12px;
}
.modal-box {
width: min(400px, calc(100vw - 24px));
min-width: 0;
max-width: 400px;
max-height: min(82dvh, 640px);
border-radius: 12px;
overflow-y: auto;
}
.info-modal,
.history-modal {
width: min(400px, calc(100vw - 24px));
max-width: 400px;
}
.info-table th,
.info-table td {
display: block;
width: 100%;
padding-right: 0;
}
.info-table th {
padding-bottom: 2px;
border-bottom: 0;
}
.info-table td {
padding-top: 0;
}
.torrent-modal {
width: 100vw;
max-width: none;
height: 100dvh;
max-height: none;
border-radius: 0;
padding: calc(14px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom));
overflow: hidden;
}
.torrent-modal-head {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 8px;
align-items: start;
}
.torrent-client-status {
grid-column: 1 / -1;
justify-content: flex-start;
}
.torrent-modal-close {
display: inline-flex;
}
.torrent-manager-layout {
grid-template-columns: 1fr;
gap: 10px;
}
.torrent-session-list {
max-height: none;
min-height: 0;
}
.torrent-manager-sidebar {
flex: 0 0 178px;
}
.torrent-progress-head {
align-items: flex-start;
flex-direction: column;
gap: 4px;
}
.torrent-progress-details {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.torrent-progress-details.completed {
grid-template-columns: minmax(0, 1fr);
}
.torrent-modal h3 {
margin-bottom: 12px;
}
.torrent-modal-head h3 {
margin: 0;
}
.torrent-modal-grid {
grid-template-columns: 1fr;
gap: 10px;
}
.torrent-message {
margin-top: 8px;
}
.torrent-actions {
margin-top: 8px;
}
.torrent-preview-head {
align-items: flex-start;
flex-direction: column;
gap: 8px;
margin-top: 10px;
}
.torrent-tree-toolbar {
align-items: flex-start;
flex-direction: column;
gap: 8px;
margin-top: 8px;
padding: 8px 10px;
}
.torrent-file-tree {
min-height: 0;
max-height: none;
}
.torrent-tree-row {
grid-template-columns: 24px 22px minmax(0, 1fr) 74px;
gap: 6px;
}
.torrent-file-size {
grid-column: 4;
text-align: right;
white-space: nowrap;
}
.queue-panel {
left: 8px;
right: 8px;
top: 18dvh;
bottom: calc(var(--player-bar-space) + 8px);
}
.device-popover {
position: fixed;
right: 8px;
bottom: calc(var(--player-bar-space) + 8px);
width: min(280px, calc(100vw - 16px));
max-height: 42dvh;
}
.player-bar {
gap: 8px;
padding-left: 10px;
padding-right: 10px;
}
.player-track-title { font-size: 12px; }
.player-track-artist { font-size: 10px; }
.player-buttons { gap: 10px; }
.player-version-chip {
padding-left: 0;
font-size: 8px;
opacity: 0.58;
}
.volume-control {
gap: 4px;
}
.volume-btn {
padding: 5px;
}
.volume-slider {
width: 58px;
}
.player-btn {
min-width: 30px;
min-height: 30px;
}
.player-btn svg {
width: 17px;
height: 17px;
}
.player-btn-play {
width: 36px;
height: 36px;
}
}
/* Scrollbar for queue and sidebar */
.queue-tracks::-webkit-scrollbar,
.playlist-list::-webkit-scrollbar { width: 6px; }
.queue-tracks::-webkit-scrollbar-track,
.playlist-list::-webkit-scrollbar-track { background: transparent; }
.queue-tracks::-webkit-scrollbar-thumb,
.playlist-list::-webkit-scrollbar-thumb { background: var(--bg-active); border-radius: 3px; }
</style>