/* =========================================
   RESET & ROOT
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: hsl(264, 80%, 65%);
  --accent2: hsl(320, 70%, 60%);
  --accent-glow: hsla(264, 80%, 65%, 0.35);
  --orange: hsl(22, 90%, 60%);
  /* SoundCloud-ish warm orange for accents */

  --bg-deep: hsl(228, 28%, 7%);
  --bg-card: hsla(230, 22%, 13%, 0.75);
  --bg-glass: hsla(250, 22%, 18%, 0.45);
  --bg-glass2: hsla(250, 22%, 22%, 0.55);
  --border: hsla(255, 30%, 70%, 0.10);
  --border-hi: hsla(255, 30%, 70%, 0.22);

  --text-1: hsl(228, 18%, 95%);
  --text-2: hsl(228, 12%, 62%);
  --text-3: hsl(228, 12%, 42%);

  --sidebar-w: 320px;
  --artist-w: 340px;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 11px;
  --radius-sm: 8px;
  --t: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient: linear-gradient(135deg, var(--accent), var(--accent2));
  --progress: linear-gradient(90deg, var(--accent), var(--accent2));
}

html,
body {
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text-1);
  overflow: hidden;
}

button {
  cursor: pointer;
  font-family: inherit;
}

img {
  display: block;
}

/* =========================================
   LAYOUT
   ========================================= */
.app {
  display: flex;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Ambient bg */
.bg-art {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 70% at 15% 25%, hsla(264, 80%, 55%, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 85% 75%, hsla(320, 70%, 55%, 0.15) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 50% 50%, hsla(200, 60%, 40%, 0.07) 0%, transparent 70%);
  transition: background 1.6s ease;
  animation: bgPulse 9s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0.75;
    transform: scale(1.04);
  }
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at center bottom, transparent 40%, var(--bg-deep) 90%);
}

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar {
  position: relative;
  z-index: 20;
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: var(--bg-glass);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.sidebar-header {
  padding: 26px 22px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-icon {
  font-size: 1.4rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoSpin 4s linear infinite;
}

@keyframes logoSpin {
  from {
    filter: hue-rotate(0deg);
  }

  to {
    filter: hue-rotate(360deg);
  }
}

/* ── Search ── */
.search-wrap {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-glass2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 12px;
  transition: border-color var(--t), box-shadow var(--t);
}

.search-box:focus-within {
  border-color: var(--border-hi);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-3);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: 0.88rem;
  font-weight: 400;
  padding: 11px 0;
}

.search-input::placeholder {
  color: var(--text-3);
}

.search-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
  flex-shrink: 0;
}

.search-spinner.active {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.search-clear {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 0.8rem;
  padding: 4px 2px;
  line-height: 1;
  opacity: 0;
  transition: opacity var(--t), color var(--t);
  pointer-events: none;
}

.search-clear.visible {
  opacity: 1;
  pointer-events: all;
}

.search-clear:hover {
  color: var(--text-1);
}

.search-tabs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 0;
  transition: background var(--t), color var(--t), border-color var(--t);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tab-btn.active {
  background: hsla(264, 80%, 65%, 0.14);
  border-color: var(--accent);
  color: var(--accent);
}

.tab-btn:hover:not(.active) {
  background: var(--bg-glass2);
  color: var(--text-2);
}

/* ── Results ── */
.results-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.results-scroll::-webkit-scrollbar {
  width: 4px;
}

.results-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.results-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.results-list {
  padding: 10px 10px 20px;
}

.empty-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  gap: 12px;
  color: var(--text-3);
  text-align: center;
}

.empty-hint-icon {
  font-size: 2.4rem;
  opacity: 0.5;
}

.empty-hint p {
  font-size: 0.82rem;
  line-height: 1.6;
}

/* Track card */
.track-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--t);
  border: 1px solid transparent;
  position: relative;
}

.track-card:hover {
  background: var(--bg-glass2);
  border-color: var(--border);
}

.track-card.active {
  background: hsla(264, 80%, 65%, 0.10);
  border-color: hsla(264, 80%, 65%, 0.25);
}

.track-thumb {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-glass2);
  flex-shrink: 0;
  overflow: hidden;
}

.track-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.track-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0.4;
  border-radius: var(--radius-sm);
}

.track-card-info {
  flex: 1;
  min-width: 0;
}

.track-card-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-card.active .track-card-title {
  color: var(--accent);
}

.track-card-artist {
  font-size: 0.74rem;
  color: var(--text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-card-artist-btn {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 0.74rem;
  padding: 0;
  text-align: left;
  font-family: inherit;
  transition: color var(--t);
  cursor: pointer;
  text-decoration: none;
}

.track-card-artist-btn:hover {
  color: var(--accent);
  text-decoration: underline;
}

.track-card-dur {
  font-size: 0.7rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Playing indicator on card */
.track-play-icon {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}

.track-card.active .track-play-icon {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 14px;
}

.track-play-icon .b {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: barAnim 0.85s ease-in-out infinite;
}

.track-play-icon .b:nth-child(1) {
  height: 8px;
  animation-delay: 0s;
}

.track-play-icon .b:nth-child(2) {
  height: 12px;
  animation-delay: 0.12s;
}

.track-play-icon .b:nth-child(3) {
  height: 9px;
  animation-delay: 0.24s;
}

@keyframes barAnim {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.3);
  }
}

/* Artist card */
.artist-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--t);
  border: 1px solid transparent;
}

.artist-card:hover {
  background: var(--bg-glass2);
  border-color: var(--border);
}

.artist-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-glass2);
  flex-shrink: 0;
  overflow: hidden;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artist-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.artist-card-info {
  flex: 1;
  min-width: 0;
}

.artist-card-name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-card-followers {
  font-size: 0.74rem;
  color: var(--text-3);
  margin-top: 2px;
}

.artist-card-arrow {
  color: var(--text-3);
  font-size: 0.9rem;
  transition: transform var(--t), color var(--t);
}

.artist-card:hover .artist-card-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* =========================================
   PLAYER
   ========================================= */
.player {
  flex: 1;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  gap: 28px;
  min-width: 0;
}

/* Art */
.art-area {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.disc-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--gradient) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0.5;
  animation: discRingSpin 7s linear infinite;
}

@keyframes discRingSpin {
  to {
    transform: rotate(360deg);
  }
}

.album-art {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--bg-glass2);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 3px hsla(255, 30%, 70%, 0.07),
    0 24px 70px -10px hsla(264, 80%, 30%, 0.45),
    0 8px 24px -4px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.5s ease;
}

.album-art.playing {
  animation: artSpin 14s linear infinite;
  box-shadow: 0 0 0 3px hsla(264, 80%, 65%, 0.22),
    0 24px 90px -10px hsla(264, 80%, 40%, 0.65),
    0 8px 28px -4px rgba(0, 0, 0, 0.55);
}

@keyframes artSpin {
  to {
    transform: rotate(360deg);
  }
}

.art-placeholder {
  width: 80px;
  height: 80px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

#artImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* Visualizer */
.visualizer {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.vis-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}

.vis-bar {
  width: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--gradient);
  min-height: 2px;
  opacity: 0.55;
  transition: height 0.08s ease;
}

/* Song info */
.song-info {
  text-align: center;
  width: 100%;
  max-width: 440px;
  margin-top: 8px;
}

.song-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  margin-top: 6px;
}

.artist-link {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 400;
  font-family: inherit;
  padding: 0;
  transition: color var(--t);
}

.artist-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Progress */
.progress-section {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 490px;
}

.time {
  font-size: 0.73rem;
  color: var(--text-3);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  min-width: 34px;
}

.progress-wrap {
  flex: 1;
  height: 4px;
  position: relative;
  cursor: pointer;
  border-radius: 4px;
  padding: 12px 0;
  margin: -12px 0;
}

.progress-bg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 4px;
  background: hsla(255, 20%, 60%, 0.13);
  transition: height var(--t);
}

.progress-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 0%;
  height: 4px;
  border-radius: 4px;
  background: var(--progress);
  pointer-events: none;
  transition: height var(--t);
}

.progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px var(--accent-glow), 0 2px 4px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity var(--t), left 0.08s linear;
  cursor: grab;
  pointer-events: none;
}

.progress-wrap:hover .progress-thumb {
  opacity: 1;
}

.progress-wrap:hover .progress-bg,
.progress-wrap:hover .progress-fill {
  height: 5px;
}

/* Controls */
.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--text-1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), transform var(--t), color var(--t);
}

.ctrl-btn svg {
  width: 22px;
  height: 22px;
}

.ctrl-btn.secondary {
  color: var(--text-3);
}

.ctrl-btn.secondary.active {
  color: var(--accent);
}

.ctrl-btn:hover {
  background: hsla(255, 30%, 60%, 0.12);
  transform: scale(1.08);
}

.ctrl-btn:active {
  transform: scale(0.94);
}

.play-btn {
  width: 64px;
  height: 64px;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 28px -4px hsla(264, 80%, 60%, 0.5), 0 0 0 0 hsla(264, 80%, 60%, 0.3);
  transition: transform var(--t), box-shadow var(--t), background var(--t);
}

.play-btn svg {
  width: 28px;
  height: 28px;
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 36px -4px hsla(264, 80%, 60%, 0.65), 0 0 0 7px hsla(264, 80%, 60%, 0.13);
}

.play-btn.pulsing {
  animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {

  0%,
  100% {
    box-shadow: 0 8px 28px -4px hsla(264, 80%, 60%, 0.5), 0 0 0 0 hsla(264, 80%, 60%, 0.3);
  }

  50% {
    box-shadow: 0 8px 28px -4px hsla(264, 80%, 60%, 0.5), 0 0 0 10px hsla(264, 80%, 60%, 0);
  }
}

/* Volume */
.volume-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 240px;
}

.vol-mute {
  background: none;
  border: none;
  color: var(--text-3);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t);
  flex-shrink: 0;
}

.vol-mute svg {
  width: 20px;
  height: 20px;
}

.vol-mute:hover {
  color: var(--text-1);
}

.vol-wrap {
  flex: 1;
  height: 4px;
  position: relative;
  cursor: pointer;
  border-radius: 4px;
  padding: 10px 0;
  margin: -10px 0;
}

.vol-bg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 4px;
  background: hsla(255, 20%, 60%, 0.13);
}

.vol-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  height: 4px;
  border-radius: 4px;
  background: var(--progress);
  pointer-events: none;
}

.vol-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px var(--accent-glow), 0 1px 3px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}

.vol-wrap:hover .vol-thumb {
  opacity: 1;
}

/* =========================================
   ARTIST PANEL
   ========================================= */
.artist-panel {
  position: relative;
  z-index: 20;
  width: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-glass);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border-left: 1px solid transparent;
  transition: width var(--t-slow), min-width var(--t-slow), border-color var(--t-slow);
  display: flex;
  flex-direction: column;
}

.artist-panel.open {
  width: var(--artist-w);
  min-width: var(--artist-w);
  border-left-color: var(--border);
}

.artist-panel-inner {
  width: var(--artist-w);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 0 0;
  overflow: hidden;
}

.artist-panel-close {
  position: absolute;
  top: 18px;
  right: 16px;
  background: var(--bg-glass2);
  border: 1px solid var(--border);
  color: var(--text-2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), color var(--t), transform var(--t);
  z-index: 5;
}

.artist-panel-close svg {
  width: 16px;
  height: 16px;
}

.artist-panel-close:hover {
  background: hsla(0, 60%, 50%, 0.15);
  color: hsl(0, 70%, 65%);
  transform: scale(1.08);
}

.artist-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.artist-avatar-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-glass2);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.artist-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: none;
}

.artist-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.artist-meta {
  flex: 1;
  min-width: 0;
}

.artist-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-stats {
  font-size: 0.74rem;
  color: var(--text-3);
  margin-top: 4px;
}

.discography-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px;
  flex-shrink: 0;
}

.discography-header h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.disc-count {
  font-size: 0.73rem;
  color: var(--text-3);
}

.discography-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.discography-scroll::-webkit-scrollbar {
  width: 4px;
}

.discography-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.discography-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.discography-list {
  padding: 0 10px 20px;
}

/* Disc track cards — compact row */
.disc-track {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t);
  border: 1px solid transparent;
}

.disc-track:hover {
  background: var(--bg-glass2);
  border-color: var(--border);
}

.disc-track.active {
  background: hsla(264, 80%, 65%, 0.10);
  border-color: hsla(264, 80%, 65%, 0.22);
}

.disc-track-art {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass2);
  overflow: hidden;
  flex-shrink: 0;
}

.disc-track-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.disc-track-art-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0.4;
}

.disc-track-info {
  flex: 1;
  min-width: 0;
}

.disc-track-title {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.disc-track.active .disc-track-title {
  color: var(--accent);
}

.disc-track-dur {
  font-size: 0.7rem;
  color: var(--text-3);
  margin-top: 2px;
}

.disc-loader {
  display: flex;
  justify-content: center;
  padding: 24px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* =========================================
   TOAST
   ========================================= */
#toastRoot {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-glass2);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--text-1);
  animation: toastIn 0.3s ease forwards;
  max-width: 260px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .artist-panel.open {
    width: 280px;
    min-width: 280px;
  }

  :root {
    --artist-w: 280px;
  }
}

@media (max-width: 700px) {
  .sidebar {
    width: 260px;
    min-width: 260px;
    position: absolute;
    inset-block: 0;
    left: 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform var(--t-slow);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  :root {
    --sidebar-w: 260px;
  }

  .player {
    padding: 28px 22px;
  }

  .song-title {
    font-size: 1.4rem;
  }
}