/* DREAMWAVE FM — Player Styles (Minimal Mode & Vinyl) */

/* ===== MINIMAL UI ===== */
#minimal-ui {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

body.mode-minimal #minimal-ui {
  display: flex;
}

/* Vinyl Player */
.vinyl-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.vinyl-container {
  position: relative;
  width: 220px;
  height: 220px;
}

.vinyl-bg {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: spin 3s linear infinite;
  transition: box-shadow 0.3s ease;
}

.vinyl-bg::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
}

.vinyl-bg::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2a2a2a;
  border: 2px solid #444;
}

body:not(.playing) .vinyl-bg {
  animation-play-state: paused;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.vinyl-album-art {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.vinyl-visualizer {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 18px;
  z-index: 2;
}

.vinyl-bar {
  width: 5px;
  background: var(--neon-pink);
  border-radius: 3px;
  transition: height 0.06s ease;
  box-shadow: 0 0 8px rgba(255, 113, 206, 0.7);
  opacity: 0.9;
}

/* Minimal Track Info */
.minimal-track-info {
  text-align: center;
  max-width: 320px;
}

.minimal-track-name {
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.minimal-track-artist {
  font-size: 14px;
  color: #777;
  letter-spacing: 0.5px;
}

.minimal-mood {
  font-size: 11px;
  color: var(--neon-pink);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
  opacity: 0.8;
}

/* Minimal Progress */
.minimal-progress-container {
  width: 100%;
  max-width: 340px;
}

.minimal-progress {
  width: 100%;
  height: 4px;
  background: #222;
  border-radius: 2px;
  overflow: visible;
  cursor: pointer;
  position: relative;
  transition: height 0.15s;
}

.minimal-progress:hover {
  height: 6px;
}

.minimal-progress-fill {
  height: 100%;
  background: var(--neon-pink);
  width: 0%;
  position: relative;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 113, 206, 0.5);
}

.minimal-progress-fill.scrubbing {
  transition: none;
}

.minimal-progress-tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  font-family: 'VT323', monospace;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.minimal-progress:hover .minimal-progress-tooltip {
  opacity: 1;
}

.minimal-time {
  font-size: 12px;
  color: #555;
  width: 100%;
  max-width: 340px;
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* Minimal Controls */
.minimal-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.minimal-btn {
  background: none;
  border: none;
  color: #c0c0c0;
  cursor: pointer;
  padding: 14px;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-size: 22px;
}

.minimal-btn:hover {
  background: #1a1a1a;
  color: #fff;
  transform: scale(1.05);
}

.minimal-btn.play {
  width: 60px;
  height: 60px;
  background: var(--neon-pink);
  color: #000;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(255, 113, 206, 0.4);
  transition: all 0.2s ease;
}

.minimal-btn.play:hover {
  background: #ff8ee0;
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(255, 113, 206, 0.6);
}

.minimal-btn.active {
  color: var(--neon-pink);
  text-shadow: 0 0 8px var(--neon-pink);
}

.btn.active {
  color: var(--neon-pink);
  text-shadow: 0 0 8px var(--neon-pink), 0 0 16px var(--neon-pink);
}

.like-btn.liked {
  color: var(--neon-pink);
  text-shadow: 0 0 8px var(--neon-pink);
  animation: heartPulse 0.3s ease;
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ===== PLAYLIST DRAWER ===== */
.playlist-drawer-toggle {
  font-size: 11px;
  color: #555;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 20px;
  border: 1px solid #222;
  transition: all 0.2s;
  margin-top: 4px;
  letter-spacing: 1px;
}

.playlist-drawer-toggle:hover {
  color: #999;
  border-color: #333;
  background: #111;
}

.playlist-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0d0d0d;
  border-top: 1px solid #1a1a1a;
  max-height: 45vh;
  overflow-y: auto;
  display: none;
  padding: 20px;
  z-index: 150;
}

.playlist-drawer.open {
  display: block;
}

.playlist-drawer h3 {
  font-size: 10px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-family: 'VT323', monospace;
}

.drawer-track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #151515;
  cursor: pointer;
  transition: background 0.15s;
}

.drawer-track-row:hover {
  background: #111;
  padding-left: 6px;
}

.drawer-track-row.active {
  color: var(--neon-pink);
}

.drawer-track-row .num {
  font-size: 11px;
  color: #333;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.drawer-track-row .info {
  flex: 1;
}

.drawer-track-row .name {
  font-size: 14px;
  color: #888;
}

.drawer-track-row .artist {
  font-size: 12px;
  color: #444;
  margin-top: 2px;
}

.drawer-track-row .mood {
  font-size: 10px;
  color: #333;
  margin-top: 1px;
}

/* ===== UP NEXT STRIP ===== */
.up-next-strip {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to right, #0a0a0a, #111, #0a0a0a);
  border-top: 1px solid #1a1a1a;
  padding: 8px 16px;
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 140;
}

body.mode-minimal:not(.playlist-open) .up-next-strip {
  display: flex;
}

.up-next-label {
  font-size: 10px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.up-next-name {
  font-size: 12px;
  color: #666;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.up-next-artist {
  font-size: 11px;
  color: #444;
}

.up-next-divider {
  font-size: 14px;
  color: #222;
  flex-shrink: 0;
}

.up-next-track {
  flex: 1;
  min-width: 0;
}

/* ===== MINIMAL VOLUME ===== */
.minimal-volume {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
}

.minimal-volume-btn {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: color 0.2s;
}

.minimal-volume-btn:hover {
  color: #fff;
}

.volume-knob-container {
  position: relative;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.volume-knob-track {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
}

.volume-knob-track svg {
  width: 100%;
  height: 100%;
}

.volume-knob-thumb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--neon-pink);
  border-radius: 50%;
  transform-origin: center center;
  box-shadow: 0 0 6px var(--neon-pink);
  pointer-events: none;
}

.volume-knob-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #333;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #555;
  pointer-events: none;
}

/* ===== QUEUE PANEL ===== */
#queuePanel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1000;
  max-width: 320px;
  margin: 12px auto;
  background: rgba(13, 2, 33, 0.95);
  border: 1px solid rgba(185, 103, 255, 0.3);
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
}

#queuePanel.open {
  display: block;
}

#queuePanel::-webkit-scrollbar {
  width: 4px;
}

#queuePanel::-webkit-scrollbar-track {
  background: transparent;
}

#queuePanel::-webkit-scrollbar-thumb {
  background: var(--neon-purple);
  border-radius: 2px;
}

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 8px;
  border-bottom: 1px solid rgba(185, 103, 255, 0.2);
  margin-bottom: 0;
}

.queue-header-title {
  color: var(--neon-purple);
  font-size: 13px;
  letter-spacing: 1px;
}

.queue-clear-btn {
  background: none;
  border: 1px solid rgba(185, 103, 255, 0.4);
  color: var(--neon-purple);
  font-family: 'VT323', monospace;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.queue-clear-btn:hover {
  background: rgba(185, 103, 255, 0.2);
}

.queue-now-playing {
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(185, 103, 255, 0.1);
  margin-bottom: 4px;
}

.queue-now-label {
  font-size: 10px;
  color: var(--neon-pink);
  text-shadow: 0 0 8px var(--neon-pink);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.queue-now-item {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.9;
}

.queue-now-item .q-cover {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid rgba(255, 113, 206, 0.3);
}

.queue-now-item .q-name {
  color: var(--neon-yellow);
  font-size: 14px;
}

.queue-now-item .q-artist {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.queue-list {
  padding: 0;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}

.queue-item:hover {
  background: rgba(185, 103, 255, 0.08);
}

.queue-item.dragging {
  opacity: 0.5;
  background: rgba(185, 103, 255, 0.15);
}

.queue-item.drag-over {
  border-top: 2px solid var(--neon-pink);
}

.queue-item.drag-over::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 2px;
  background: var(--neon-pink);
}

.q-drag-handle {
  color: #444;
  font-size: 12px;
  cursor: grab;
  flex-shrink: 0;
  padding: 0 2px;
}

.q-drag-handle:active {
  cursor: grabbing;
}

.queue-item:hover .q-drag-handle {
  color: var(--neon-purple);
}

.q-num {
  font-size: 11px;
  color: #444;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.q-cover {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.q-info {
  flex: 1;
  min-width: 0;
}

.q-name {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.q-artist {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.q-album {
  font-size: 10px;
  color: rgba(185, 103, 255, 0.5);
  margin-top: 1px;
}

.q-remove {
  background: none;
  border: none;
  color: #333;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 3px;
  transition: all 0.15s;
  flex-shrink: 0;
}

.q-remove:hover {
  color: var(--neon-pink);
  background: rgba(255, 113, 206, 0.1);
}

/* Full UI — Spotify-style layout */
#full-ui {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* TOP AREA: sidebar + scrollable content side by side */
#top-area {
  display: flex;
  flex-direction: row;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* LEFT SIDEBAR — collapsible */
#sidebar {
  width: 160px;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 160px;
  background: rgba(0, 0, 0, 0.75);
  border-right: 1px solid rgba(255,255,255,0.04);
  /* Explicit flex column (camofox misreads flex shorthand) */
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  overflow: hidden;
  transition: width 0.25s ease;
  position: relative;
}

/* Expanded state: 160px */
body.sidebar-expanded #sidebar {
  width: 160px;
  flex-basis: 160px;
}
/* Collapsed state: 48px icon rail */
body.sidebar-collapsed #sidebar {
  width: 48px;
  flex-basis: 48px;
}

/* Sidebar top row: toggle + logo text (only shown when expanded) */
.sidebar-top-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 10px 12px;
  flex-shrink: 0;
}

/* Toggle button */
.sidebar-toggle {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: rgba(255,255,255,0.25);
  font-size: 9px;
  cursor: pointer;
  padding: 2px 5px;
  transition: all 0.15s;
  line-height: 1;
  flex-shrink: 0;
}
.sidebar-toggle:hover { color: var(--neon-pink); background: rgba(185,103,255,0.1); }

/* Logo text */
.sidebar-logo-text {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--neon-pink);
  letter-spacing: 3px;
  text-shadow: 0 0 12px rgba(185,103,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Expanded panel */
#sidebarExpanded {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  flex-shrink: 1;
  flex: 1;
}
body.sidebar-collapsed #sidebarExpanded { display: none; }

/* Collapsed icon rail */
#sidebarCollapsed {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 4px;
  flex: 1;
}
body.sidebar-collapsed #sidebarCollapsed { display: flex; }
.sidebar-toggle-collapsed {
  margin-bottom: 8px;
  font-size: 8px;
  padding: 2px 4px;
}

/* Ensure direct flex children of sidebar don't blow it out */
#sidebar > .sidebar-expanded,
#sidebar > .sidebar-collapsed,
#sidebar > .sidebar-account {
  flex-shrink: 1;
  min-width: 0;
}

.sidebar-logo {
  padding: 0 12px 10px;
  flex-shrink: 0;
  min-width: 0;
  overflow: hidden;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
}
.sidebar-section-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.2);
  padding: 8px 12px 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  border-left: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.sidebar-item:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.04);
}
.sidebar-item.active {
  color: #fff;
  border-left-color: var(--neon-pink);
  background: rgba(185,103,255,0.07);
}

/* Sidebar — Discover section */
.sidebar-item.sidebar-discover { color: rgba(1,205,254,0.5); }
.sidebar-item.sidebar-discover:hover { color: rgba(1,205,254,0.8); background: rgba(1,205,254,0.06); }

/* Sidebar — Genres section */
.sidebar-genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 12px 8px;
}
.sidebar-genre-tag {
  font-size: 9px;
  padding: 2px 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.sidebar-genre-tag:hover {
  background: rgba(185,103,255,0.1);
  border-color: rgba(185,103,255,0.3);
  color: rgba(185,103,255,0.8);
}
.sidebar-genre-tag.active {
  background: rgba(185,103,255,0.15);
  border-color: rgba(185,103,255,0.5);
  color: var(--neon-purple);
}
.sidebar-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-new-playlist {
  color: rgba(255,255,255,0.25);
  font-size: 11px;
}
.sidebar-new-playlist:hover { color: rgba(255,255,255,0.6); }

#sidebarPlaylistsList {
  max-height: 120px;
  overflow-y: auto;
}
.playlist-sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.playlist-sidebar-item:hover { color: rgba(255,255,255,0.8); }

.sidebar-section-liked {
  margin-top: auto;
  padding-top: 4px;
  padding-bottom: 8px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.liked-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  border-left: 2px solid transparent;
  transition: all 0.15s;
  width: 100%;
}
.liked-item:hover { background: rgba(255,255,255,0.04); }
.liked-item.active { border-left-color: var(--neon-pink); background: rgba(185,103,255,0.07); }
.liked-art {
  width: 38px;
  height: 38px;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #1a1a2e;
}
.liked-art img { width: 100%; height: 100%; object-fit: cover; }
.liked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(185,103,255,0.5);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.liked-info { flex: 1; min-width: 0; }
.liked-name {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.liked-count {
  color: rgba(255,255,255,0.3);
  font-size: 10px;
}

.sidebar-account {
  padding: 8px 12px;
  flex-shrink: 0;
}
.sidebar-signin-btn {
  width: 100%;
  padding: 6px;
  background: rgba(185,103,255,0.12);
  border: 1px solid rgba(185,103,255,0.3);
  border-radius: 16px;
  color: var(--neon-pink);
  font-size: 11px;
  font-family: inherit;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.sidebar-signin-btn:hover { background: rgba(185,103,255,0.2); }
.user-avatar { position: relative; }
.user-avatar img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(185,103,255,0.4); }

/* RIGHT CONTENT AREA */
#content-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  padding: 12px 20px 8px;
  -webkit-overflow-scrolling: touch;
}
#content-area::-webkit-scrollbar { width: 6px; }
#content-area::-webkit-scrollbar-track { background: transparent; }
#content-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* Filter chips + search at top of content */
#filterChips {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding: 0 0 8px;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}
#filterChips::-webkit-scrollbar { display: none; }

.search-container {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 0 0 4px;
}
.search-container input[type="text"] {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 7px 14px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.search-container input[type="text"]:focus {
  border-color: rgba(185,103,255,0.5);
  background: rgba(255,255,255,0.08);
}
.search-container select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  padding: 6px 8px;
  cursor: pointer;
  outline: none;
}

/* BOTTOM PLAYER BAR */
#player-bar {
  display: flex;
  align-items: center;
  height: 88px;
  background: rgba(0,0,0,0.95);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0 16px;
  gap: 16px;
  flex-shrink: 0;
}

/* LEFT: track info */
.player-track-info {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 280px;
  flex-shrink: 0;
  min-width: 0;
}
.player-album-art {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.player-album-art .album-art {
  width: 56px;
  height: 56px;
}
.player-track-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.player-track-text .track-title {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255,255,255,0.9);
}
.player-track-text .track-artist {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-track-info .like-btn {
  font-size: 18px;
  flex-shrink: 0;
}
.player-track-info .mood-badge {
  font-size: 9px;
  flex-shrink: 0;
  padding: 2px 6px;
}

/* CENTER: controls + progress */
.player-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.player-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50%;
  transition: all 0.15s;
  line-height: 1;
}
.player-btn:hover { color: rgba(255,255,255,0.9); }
.player-btn.active { color: var(--neon-pink); }
.player-btn-play {
  font-size: 22px;
  background: rgba(255,255,255,0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255,255,255,0.9);
}
.player-btn-play:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}
.player-btn-sm {
  font-size: 13px;
  padding: 4px;
}
.player-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 500px;
}
.time-display { font-size: 10px; color: rgba(255,255,255,0.35); }
.time-left { min-width: 32px; text-align: right; }
.time-right { min-width: 32px; text-align: left; }

/* RIGHT: extras */
.player-extras {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 260px;
  flex-shrink: 0;
  justify-content: flex-end;
}
.player-extras .crossfade-control {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}
.player-extras .crossfade-control input[type=range] {
  width: 60px;
  -webkit-appearance: none;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
}
.player-extras .crossfade-control input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon-pink);
  cursor: pointer;
}
.player-extras .volume-control {
  display: flex;
  align-items: center;
  gap: 4px;
}
.player-extras .volume-control input[type=range] {
  width: 70px;
  -webkit-appearance: none;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
}
.player-extras .volume-control input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon-cyan);
  cursor: pointer;
}

body.mode-minimal #full-ui {
  display: none;
}

/* ============================================================
   FULL WIDTH DESKTOP — screens wider than 768px
   ============================================================ */
@media (min-width: 768px) {
  /* === OUTER WRAPPER — stretch to fill === */
  #full-ui > div {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* === HEADER — full width, horizontal === */
  header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    padding: 0 32px !important;
    height: 60px;
    box-sizing: border-box;
  }
  header h1 {
    font-size: 24px !important;
  }
  header .subtitle {
    font-size: 13px !important;
  }
  .header-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
  }

  /* === PLAYER SECTION — horizontal layout === */
  #player-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 32px;
    width: 100% !important;
    padding: 16px 48px !important;
    box-sizing: border-box;
  }
  #player-section .now-playing-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
  }
  #player-section .album-art-clip {
    width: 72px !important;
    height: 72px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
  }
  #player-section .now-playing-text {
    padding-top: 0 !important;
    min-width: 0;
  }
  #player-section .now-playing-title {
    font-size: 20px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #player-section .now-playing-artist {
    font-size: 14px !important;
  }

  /* Controls: horizontal row, centered */
  #player-section .controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 1;
  }
  #player-section .controls button {
    font-size: 13px !important;
    padding: 8px 14px !important;
    letter-spacing: 0.5px !important;
  }

  /* Extra controls (xfade, volume): right side */
  #player-section .extra-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: flex-end;
  }

  /* Progress bar: stretch to full width of section */
  #player-section .progress-container {
    width: 100%;
  }
  .progress-bar {
    height: 10px !important;
    border-radius: 5px !important;
    cursor: pointer;
  }
  .progress-fill {
    border-radius: 5px !important;
    height: 100% !important;
  }
  .progress-thumb {
    width: 16px !important;
    height: 16px !important;
    top: -3px !important;
  }
  .time-display {
    font-size: 14px !important;
  }

  /* Home feed and playlist track list — grid of compact rows.
     Keep display non-important so JS inline display:none still hides these views. */
  #homeFeed,
  #playlistContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  #homeFeed .track-row,
  #playlistContainer .track-row {
    padding: 10px 12px;
    font-size: 14px;
  }

  /* Filter chips — centered row */
  #filterChips {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 48px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    gap: 8px;
  }

  /* Search — centered, wider */
  #search-container {
    padding: 0 48px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  #search-container input {
    max-width: 560px;
    margin: 0 auto;
    display: block;
    width: 100% !important;
    font-size: 15px !important;
    padding: 10px 14px !important;
  }

  /* Nav bar — full width horizontal bar */
  nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 24px;
    width: 100% !important;
    padding: 10px 48px !important;
    box-sizing: border-box;
    border-top: 1px solid rgba(185, 103, 255, 0.15);
  }
  nav button {
    font-size: 13px !important;
    padding: 8px 16px !important;
  }

  /* Queue panel: wider */
  #queuePanel {
    max-width: 640px !important;
    width: 90% !important;
  }
}

/* ============================================================
   LARGE DESKTOP — even bigger on ≥1440px
   ============================================================ */
@media (min-width: 1440px) {
  header {
    padding: 0 64px !important;
    height: 68px;
  }
  header h1 {
    font-size: 28px !important;
  }
  #player-section {
    padding: 20px 80px !important;
    gap: 48px;
  }
  #player-section .album-art-clip {
    width: 88px !important;
    height: 88px !important;
  }
  #player-section .now-playing-title {
    font-size: 24px !important;
  }
  #player-section .now-playing-artist {
    font-size: 16px !important;
  }
  #player-section .controls button {
    font-size: 14px !important;
    padding: 10px 18px !important;
  }
  #homeFeed,
  #playlistContainer {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    padding: 20px 80px 64px !important;
    gap: 16px;
  }
  #homeFeed .track-row {
    font-size: 16px !important;
    padding: 14px 16px !important;
  }
  #filterChips,
  #search-container,
  nav {
    padding-left: 80px !important;
    padding-right: 80px !important;
  }
  .progress-bar {
    height: 12px !important;
  }
  .progress-thumb {
    width: 20px !important;
    height: 20px !important;
    top: -4px !important;
  }
}

/* ===== VAPOR BOOST 2026 ===== */
#player-section,
.up-next-strip {
  box-shadow:
    0 -10px 40px rgba(0, 0, 0, 0.35),
    0 0 50px rgba(185, 103, 255, 0.08);
}

.album-art-clip,
.album-art {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 28px rgba(255, 113, 206, 0.22),
    0 0 52px rgba(1, 205, 254, 0.14),
    0 18px 34px rgba(0, 0, 0, 0.4);
}

.now-playing-title,
#trackTitle {
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.16),
    0 0 22px rgba(255, 113, 206, 0.18);
}

.now-playing-artist,
#trackArtist {
  text-shadow: 0 0 14px rgba(1, 205, 254, 0.12);
}

.controls {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(185, 103, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.progress-bar {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(1, 205, 254, 0.08));
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.25),
    0 0 16px rgba(1, 205, 254, 0.08);
}

.progress-fill {
  background: linear-gradient(90deg, rgba(255, 113, 206, 0.95), rgba(1, 205, 254, 0.95));
  box-shadow:
    0 0 16px rgba(255, 113, 206, 0.22),
    0 0 24px rgba(1, 205, 254, 0.18);
}

#queuePanel {
  background: linear-gradient(180deg, rgba(20, 6, 40, 0.98), rgba(10, 3, 26, 0.97));
  border-color: rgba(255, 113, 206, 0.3);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(185, 103, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.queue-header,
.queue-now-playing {
  background: linear-gradient(90deg, rgba(255, 113, 206, 0.06), rgba(1, 205, 254, 0.04));
}

/* ===== DESKTOP: hide mobile topbar ===== */
@media (min-width: 769px) {
  #mobile-topbar { display: none !important; }
  #mobile-tab-bar { display: none !important; }
}

/* ===== DESKTOP CONTENT HEADER ===== */
#content-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 16px 6px;
  flex-shrink: 0;
}
.desktop-signin-btn {
  padding: 5px 14px;
  background: rgba(185,103,255,0.12);
  border: 1px solid rgba(185,103,255,0.3);
  border-radius: 16px;
  color: var(--neon-pink);
  font-size: 11px;
  font-family: inherit;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.desktop-signin-btn:hover { background: rgba(185,103,255,0.2); }
.desktop-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(185,103,255,0.4);
  background: none;
  padding: 0;
  cursor: pointer;
}
.desktop-user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Hide desktop content header on mobile (mobile topbar has its own sign-in) */
@media (max-width: 768px) {
  #content-header { display: none; }
}

/* Mobile tab bar — shown on small screens only */
#mobile-tab-bar {
  display: none;
}

#mobile-topbar {
  display: none;
}

@media (max-width: 768px) {
  #mobile-tab-bar {
    display: flex !important;
  }

  #mobile-topbar {
    display: flex !important;
  }
}

