/* ==========================================================================
   Local Files — design tokens
   Palette: graphite base, brass/amber primary accent, muted violet secondary
   Type: Fraunces (display) / Manrope (UI) / IBM Plex Mono (metadata & specs)
   ========================================================================== */

:root {
  --bg: #0b0b0e;
  --bg-elevated: #121216;
  --surface: #16161b;
  --surface-hover: #1d1d24;
  --surface-border: rgba(255, 255, 255, 0.07);

  --brass: #d9a14a;
  --brass-soft: rgba(217, 161, 74, 0.16);
  --violet: #7c5cbf;
  --violet-soft: rgba(124, 92, 191, 0.18);

  --text: #f3f1ec;
  --text-muted: #9a968d;
  --text-faint: #66635c;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-card: 0 10px 30px -14px rgba(0, 0, 0, 0.6);
  --shadow-modal: 0 30px 90px -20px rgba(0, 0, 0, 0.75);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--brass-soft); color: var(--text); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ---------------- background wash (blurred cover art, behind everything) --------------- */

.bg-layer {
  position: fixed;
  inset: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(1.2);
  transform: scale(1.15);
  opacity: 0;
  transition: opacity 900ms var(--ease), background-image 0ms;
  z-index: 0;
  pointer-events: none;
}
.bg-layer.active { opacity: 0.45; }

.bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(11,11,14,0.5), rgba(11,11,14,0.92) 70%);
  z-index: 0;
  pointer-events: none;
}

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(11, 11, 14, 0.72);
  border-bottom: 1px solid var(--surface-border);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.filter-row {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.filter-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.filter-chips {
  display: flex;
  gap: 6px;
}
.chip {
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.chip:hover { border-color: var(--brass); color: var(--text); }
.chip.active {
  background: var(--brass);
  border-color: var(--brass);
  color: #1a1305;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.wordmark-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--brass);
  position: relative;
  flex-shrink: 0;
}
.wordmark-ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--brass);
}
.wordmark-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--text-faint);
  pointer-events: none;
}
#search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 10px 40px 10px 40px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
#search-input::placeholder { color: var(--text-faint); }
#search-input:focus {
  border-color: var(--brass);
  background: var(--surface-hover);
}
.search-count {
  position: absolute;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 3px;
  flex-shrink: 0;
}
.view-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.view-btn.active {
  background: var(--brass);
  color: #1a1305;
}

/* ---------------- main ---------------- */

.main {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 28px 140px;
}

.status-banner {
  background: rgba(217, 161, 74, 0.1);
  border: 1px solid var(--brass-soft);
  color: var(--brass);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 20px;
}

.view-panel.hidden, .hidden { display: none !important; }

/* ---------------- artists grid ---------------- */

.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 22px;
}

.artist-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 18px 14px 16px;
  text-align: center;
  cursor: pointer;
  transition: transform 260ms var(--ease), background 260ms var(--ease), box-shadow 260ms var(--ease);
  animation: card-in 500ms var(--ease) both;
  position: relative;
}
.artist-card:hover, .artist-card:focus-visible {
  transform: translateY(-4px);
  background: var(--surface-hover);
  box-shadow: var(--shadow-card);
  outline: none;
}

.artist-photo-wrap {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brass-soft), var(--violet-soft));
  display: flex;
  align-items: center;
  justify-content: center;
}
.artist-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.artist-photo-wrap img.loaded { opacity: 1; }
.artist-monogram {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  color: var(--brass);
}

.artist-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.artist-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}

/* ---------------- albums grid ---------------- */

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px;
}

.album-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 12px;
  cursor: pointer;
  transition: transform 260ms var(--ease), background 260ms var(--ease), box-shadow 260ms var(--ease);
  animation: card-in 500ms var(--ease) both;
}
.album-card:hover, .album-card:focus-visible {
  transform: translateY(-4px);
  background: var(--surface-hover);
  box-shadow: var(--shadow-card);
  outline: none;
}
.album-cover-wrap {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, #1c1c22, #0f0f13);
  margin-bottom: 12px;
}
.album-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.album-cover-wrap img.loaded { opacity: 1; }
.album-cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
}
.album-cover-fallback svg { width: 34%; height: 34%; opacity: 0.5; }

.play-hover {
  position: absolute;
  right: 8px;
  bottom: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.album-card:hover .play-hover,
.album-card:focus-visible .play-hover {
  opacity: 1;
  transform: translateY(0);
}
.play-hover-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.6);
  transition: transform 150ms var(--ease);
}
.play-hover-btn:hover { transform: scale(1.06); }
.play-hover-btn svg { width: 17px; height: 17px; fill: #1a1305; margin-left: 2px; }

.card-share-btn {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(11,11,14,0.55);
  backdrop-filter: blur(6px);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), background 180ms var(--ease);
}
.card-share-btn svg { width: 14px; height: 14px; }
.album-card:hover .card-share-btn,
.artist-card:hover .card-share-btn { opacity: 1; transform: translateY(0); }
.card-share-btn:hover { background: var(--brass); color: #1a1305; }

.album-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.album-artist {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.album-track-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- tracks view ---------------- */

.artist-filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 10px 16px;
  background: var(--brass-soft);
  border: 1px solid rgba(217,161,74,0.25);
  border-radius: var(--radius-md);
}
#artist-filter-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brass);
}

.tracks-toolbar {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.ghost-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 0;
  transition: color 200ms var(--ease);
}
.ghost-btn:hover { color: var(--brass); }
.tracks-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}
.tracks-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
}

.tracks-list {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.track-row {
  display: grid;
  grid-template-columns: 44px 1fr 140px 90px 70px 44px;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--surface-border);
  cursor: pointer;
  transition: background 180ms var(--ease);
}
.track-row:last-child { border-bottom: none; }
.track-row:hover { background: var(--surface-hover); }
.track-row.playing { background: var(--brass-soft); }
.track-row.playing .track-title { color: var(--brass); }

.track-cover {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: #1c1c22;
  flex-shrink: 0;
}
.track-main { min-width: 0; }
.track-title {
  font-size: 13.5px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 1px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-album {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-format {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--violet);
  background: var(--violet-soft);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-align: center;
  justify-self: start;
}
.track-size {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  text-align: right;
}
.track-dl {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.track-dl:hover { background: var(--surface-border); color: var(--brass); }
.track-dl svg { width: 15px; height: 15px; }

@media (max-width: 720px) {
  .track-row { grid-template-columns: 40px 1fr 60px 40px; }
  .track-album, .track-size { display: none; }
}

/* ---------------- empty / loading ---------------- */

.empty-state, .loading-state {
  text-align: center;
  padding: 90px 20px;
  color: var(--text-muted);
}
.loading-state.hidden { display: none; }
.empty-title, .empty-sub { font-family: var(--font-display); }
.empty-title { font-size: 20px; margin-bottom: 6px; }
.empty-sub { font-size: 14px; color: var(--text-faint); font-family: var(--font-body); }

.spinner-ring {
  width: 40px;
  height: 40px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid var(--surface-border);
  border-top-color: var(--brass);
  animation: spin 900ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- mini player ---------------- */

.mini-player {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: rgba(22, 22, 27, 0.82);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  z-index: 50;
  animation: rise-in 400ms var(--ease);
  overflow: hidden;
}
@keyframes rise-in {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.mini-cover-btn {
  width: 48px; height: 48px;
  border-radius: 10px;
  border: none;
  padding: 0;
  overflow: hidden;
  background: #1c1c22;
}
.mini-cover-btn img { width: 100%; height: 100%; object-fit: cover; }
.mini-info { min-width: 0; }
.mini-title {
  font-size: 13.5px; font-weight: 700; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-artist {
  font-size: 12px; color: var(--text-muted); margin: 2px 0 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-controls { display: flex; align-items: center; gap: 4px; }
.mini-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(255,255,255,0.06);
}
.mini-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--brass);
  transition: width 150ms linear;
}

.icon-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background 180ms var(--ease), transform 120ms var(--ease);
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: rgba(255,255,255,0.08); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn.play { background: var(--text); color: var(--bg); }
.icon-btn.play:hover { background: var(--brass); }
.icon-btn.play svg { width: 15px; height: 15px; }

@media (max-width: 560px) {
  .mini-info { display: none; }
  .mini-player { grid-template-columns: 48px auto; justify-content: space-between; }
}

/* ---------------- fullscreen player modal ---------------- */

.player-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 380ms var(--ease), visibility 0s linear 380ms;
}
.player-modal.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 380ms var(--ease);
}

.close-btn {
  position: absolute;
  top: 26px; right: 26px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
  z-index: 2;
}
.close-btn:hover { background: rgba(255,255,255,0.1); transform: rotate(90deg); }
.close-btn svg { width: 18px; height: 18px; }

.player-inner {
  position: relative;
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 64px;
  align-items: center;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 480ms var(--ease) 80ms, opacity 480ms var(--ease) 80ms;
}
.player-modal.open .player-inner {
  transform: translateY(0);
  opacity: 1;
}

.player-art-col { display: flex; justify-content: center; }

.art-groove {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 26px;
  padding: 3px;
  background: conic-gradient(from 0deg, rgba(217,161,74,0.5), rgba(124,92,191,0.35), rgba(217,161,74,0.5));
}
.art-groove::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 34px;
  border: 1px solid rgba(217,161,74,0.18);
  pointer-events: none;
}
.player-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  background: #1c1c22;
  box-shadow: var(--shadow-modal);
  transition: transform 6s linear;
}
.art-groove.spinning .player-cover {
  animation: art-spin 18s linear infinite;
}
@keyframes art-spin { to { transform: rotate(360deg); } }

.player-info-col { min-width: 0; }

.player-album {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 10px;
}
.player-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.player-artist {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.time-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  width: 38px;
  flex-shrink: 0;
}
.time-label:last-child { text-align: right; }

.seek-bar, .volume-bar {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  outline: none;
  cursor: pointer;
}
.seek-bar { flex: 1; }
.seek-bar::-webkit-slider-thumb, .volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--brass);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--brass);
  transition: transform 150ms var(--ease);
}
.seek-bar::-webkit-slider-thumb:hover, .volume-bar::-webkit-slider-thumb:hover { transform: scale(1.15); }
.seek-bar::-moz-range-thumb, .volume-bar::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%; background: var(--brass); border: 2px solid var(--bg);
}

.transport-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.icon-btn.transport { width: 40px; height: 40px; color: var(--text-muted); }
.icon-btn.transport svg { width: 18px; height: 18px; }
.icon-btn.transport:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.icon-btn.transport.active-toggle { color: var(--brass); }
.icon-btn.play-main {
  width: 58px; height: 58px;
  background: var(--brass);
  color: #1a1305;
}
.icon-btn.play-main svg { width: 22px; height: 22px; }
.icon-btn.play-main:hover { background: #e8b062; }

.secondary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.volume-wrap { display: flex; align-items: center; gap: 10px; }
.vol-icon { width: 18px; height: 18px; color: var(--text-faint); }
.volume-bar { width: 100px; }

.action-btns { display: flex; gap: 10px; }
.pill-btn {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--surface-border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  transition: background 180ms var(--ease), border-color 180ms var(--ease);
}
.pill-btn svg { width: 15px; height: 15px; }
.pill-btn:hover { background: var(--surface-hover); border-color: var(--brass); }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--surface-border);
}
.meta-item dt {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.meta-item dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .player-inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .player-art-col { order: 1; }
  .art-groove { width: min(320px, 70vw); height: min(320px, 70vw); }
  .progress-row, .secondary-row { justify-content: center; }
  .transport-row { justify-content: center; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); text-align: left; }
  .player-modal { padding: 24px 20px; }
}

/* ---------------- toast ---------------- */

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  z-index: 200;
  opacity: 0;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
