/* ════════════════════════════════════════════════════════
   components.css — All UI component styles
   ════════════════════════════════════════════════════════ */

/* ── Sidebar Logo ───────────────────────────────────────── */
.sidebar-logo {
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold2);
  line-height: 1.2;
  transition: color 0.3s;
}
.sidebar-logo .tagline {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  transition: color 0.3s;
}

/* ── Theme dropdown ─────────────────────────────────────── */
.theme-select-wrap {
  margin-top: 11px;
  position: relative;
}
.theme-select-wrap::after {
  content: "▾";
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--muted);
  pointer-events: none;
}
#theme-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 6px 26px 6px 10px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, background 0.3s, color 0.3s;
}
#theme-select:hover  { border-color: var(--accent); color: var(--text); }
#theme-select:focus  { border-color: var(--accent); }

/* ── Vinyl record spinner ───────────────────────────────── */
#vinyl-wrap {
  position: relative;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  /* The entire wrap spins — label and disc move together */
  animation: spin-record 3s linear infinite;
  animation-play-state: paused;
  border-radius: 50%;
}
#vinyl-wrap.spinning {
  animation-play-state: running;
}

/* Outer disc — visible grooves with contrast ring */
#vinyl-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    /* outer shine ring */
    radial-gradient(circle at 38% 32%, rgba(255,255,255,0.07) 0%, transparent 55%),
    /* grooves — alternating dark bands */
    repeating-radial-gradient(
      circle at center,
      #2a2a2a 0px,   #1a1a1a 2px,
      #242424 4px,   #181818 6px,
      #222222 8px,   #161616 10px,
      #202020 12px,  #141414 14px,
      #1e1e1e 16px,  #121212 18px,
      #1c1c1c 20px,  #111111 22px,
      #1a1a1a 24px,  #0f0f0f 26px,
      #181818 28px,  #0d0d0d 29px
    );
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.08),
    0 3px 16px rgba(0,0,0,0.8);
}

/* Album art label in the center — spins with the disc */
#vinyl-label {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  background: var(--surface3);
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.12);
}

/* Spindle hole */
#vinyl-disc::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background: #080808;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

/* ── Sidebar Nav ────────────────────────────────────────── */
.sidebar-nav {
  padding: 10px 8px 0;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  width: 100%;
  text-align: left;
}
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active { background: var(--surface3); color: var(--accent2); }
.nav-item svg { flex-shrink: 0; opacity: 0.65; }
.nav-item.active svg { opacity: 1; }

/* ── Sidebar section label ──────────────────────────────── */
.sidebar-section-label {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 20px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-section-label button {
  font-size: 17px;
  color: var(--muted);
  line-height: 1;
  padding: 0 3px;
  transition: color 0.15s;
}
.sidebar-section-label button:hover { color: var(--accent2); }

/* ── Playlist nav items ─────────────────────────────────── */
#playlist-nav { padding: 0 8px; }
.pl-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  width: 100%;
}
.pl-nav-item:hover { background: var(--surface2); color: var(--text); }
.pl-nav-item.active {
  color: var(--accent2);
  background: var(--surface3);
  border-left: 2px solid var(--accent2);
  padding-left: 10px;
}
.pl-nav-item .pl-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pl-nav-item .pl-del {
  opacity: 0;
  font-size: 13px;
  color: var(--red);
  flex-shrink: 0;
  padding: 0 2px;
  transition: opacity 0.15s, color 0.15s;
}
.pl-nav-item:hover .pl-del { opacity: 1; }
.pl-nav-item .pl-del:hover { color: #e07070; }
#playlist-nav .empty-state {
  padding: 4px 20px 6px;
  font-size: 11px;
  color: var(--muted);
}

/* ── Search ─────────────────────────────────────────────── */
.sidebar-search { padding: 10px 12px 6px; }
.search-wrap { position: relative; }
.search-wrap svg {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.35;
  pointer-events: none;
}
#search-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 7px 10px 7px 29px;
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s, background 0.3s;
}
#search-input::placeholder { color: var(--muted); }
#search-input:focus { border-color: var(--accent); }

/* ── Tag chips ──────────────────────────────────────────── */
.tags-area {
  padding: 4px 12px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tag-chip {
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.tag-chip:hover { border-color: var(--accent); color: var(--accent); }
.tag-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 500;
}

/* ── Sidebar track list ─────────────────────────────────── */
#sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 3px 0 6px;
  border-top: 1px solid var(--border);
}
.track-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.12s;
}
.track-row:hover { background: var(--surface2); }
.track-row.current { background: var(--surface3); }
.track-row.current .tr-title { color: var(--accent2); }
.tr-art {
  width: 34px;
  height: 34px;
  border-radius: 3px;
  object-fit: cover;
  background: var(--surface3);
  flex-shrink: 0;
}
.tr-info { flex: 1; min-width: 0; }
.tr-title {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tr-tags {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.tr-dur { font-size: 10px; color: var(--muted); flex-shrink: 0; }

/* Playing bars animation */
.bars { display: none; gap: 2px; align-items: flex-end; height: 14px; flex-shrink: 0; }
.track-row.playing .bars { display: flex; }
.bars span {
  display: block;
  width: 3px;
  background: var(--accent2);
  border-radius: 1px;
  animation: bar 0.9s ease-in-out infinite alternate;
}
.bars span:nth-child(2) { animation-delay: 0.18s; animation-duration: 0.65s; }
.bars span:nth-child(3) { animation-delay: 0.36s; animation-duration: 1.1s; }

/* ── Hero section ───────────────────────────────────────── */
#hero-art {
  width: 130px;
  height: 130px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface3);
  flex-shrink: 0;
  box-shadow: 0 12px 48px rgba(0,0,0,0.55);
  transition: all 0.3s;
}
#hero-info { flex: 1; min-width: 0; }
.hero-eye {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
/* #hero-title now defined in layout.css for sizing */
#hero-artist { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
#hero-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.hero-tag {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 10px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.hero-tag:hover { border-color: var(--accent); color: var(--accent); }

/* Sparkle canvas — above content, no interaction */
#sparkle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Hero action buttons */
.hero-actions { display: flex; gap: 7px; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.hero-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 5px;
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-dim);
  transition: all 0.15s;
  white-space: nowrap;
}
.hero-btn:hover { border-color: var(--accent); color: var(--accent); }
.hero-btn.dl-btn:hover { border-color: var(--gold); color: var(--gold); }
.hero-btn[hidden] { display: none; }

/* ── Section bar ────────────────────────────────────────── */
.section-bar h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s;
}
.section-bar span { font-size: 11px; color: var(--muted); }
.sort-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--text-dim);
  outline: none;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

/* ── Song cards ─────────────────────────────────────────── */
#no-results {
  display: none;
  padding: 48px 30px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.song-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.3s;
  animation: fadeUp 0.3s ease backwards;
  display: flex;
  flex-direction: column;
}
.song-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.song-card.current { border-color: var(--accent2); }
.card-art-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface3);
}
.card-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.song-card:hover .card-art { transform: scale(1.04); }
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.song-card:hover .card-overlay,
.song-card.current .card-overlay { opacity: 1; }
.card-play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.card-play:hover { transform: scale(1.1); background: var(--accent2); }
.card-play svg { color: var(--bg); }
.card-body { padding: 10px 11px 11px; display: flex; flex-direction: column; flex: 1; }
.card-actions { display: flex; gap: 4px; margin-top: auto; padding-top: 8px; }
.card-title {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-card.current .card-title { color: var(--accent2); }
.card-meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 7px; min-height: 22px; align-content: flex-start; }
.card-tag {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--surface3);
  color: var(--muted);
  transition: all 0.12s;
  cursor: pointer;
}
.card-tag:hover { background: var(--accent); color: var(--bg); }
.card-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.15s;
  min-width: 0;
}
.card-btn:hover { border-color: var(--accent); color: var(--accent); }
.card-btn.dl:hover    { border-color: var(--gold);    color: var(--gold); }
.card-btn.share-btn:hover { border-color: var(--accent2); color: var(--accent2); }

/* ── Player bar components ──────────────────────────────── */
#vinyl-wrap {
  /* sizing handled in components.css vinyl section */
}
#p-art {
  /* hidden — art shown inside vinyl label instead */
  display: none;
}
#p-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#p-artist {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctrl-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: color 0.15s;
}
.ctrl-btn:hover { color: var(--text); }
.ctrl-btn.active { color: var(--accent2); }
.ctrl-btn.pp {
  width: 38px;
  height: 38px;
  background: var(--text);
  color: var(--bg);
  margin: 0 4px;
  transition: background 0.15s;
}
.ctrl-btn.pp:hover { background: var(--accent2); }

/* Progress bar */
#progress {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
#progress::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  bottom: -8px;
}
#prog-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  pointer-events: none;
  transition: width 0.1s linear, background 0.3s;
}
#progress:hover #prog-fill { background: var(--accent2); }

.t-lbl {
  font-size: 10px;
  color: var(--muted);
  width: 35px;
  flex-shrink: 0;
}
.t-lbl:last-child { text-align: right; }

/* Volume */
#vol-btn { color: var(--text-dim); transition: color 0.15s; }
#vol-btn:hover { color: var(--text); }
#vol-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: background 0.3s;
}
#vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
#vol-slider:hover::-webkit-slider-thumb { background: var(--accent2); }

/* ── Keyboard hints ─────────────────────────────────────── */
.kbd-hint {
  font-size: 9px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 3px;
}
kbd {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
  transition: background 0.3s, border-color 0.3s;
}

/* ── Modals ─────────────────────────────────────────────── */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.backdrop.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
  width: 400px;
  max-width: 92vw;
  max-height: 82vh;
  overflow-y: auto;
  box-shadow: 0 28px 80px rgba(0,0,0,0.7);
  transform: translateY(12px);
  transition: transform 0.2s, background 0.3s, border-color 0.3s;
}
.modal-wide { width: 540px; }
.backdrop.open .modal { transform: translateY(0); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.modal-head h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}
.modal-x {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--muted);
  font-size: 15px;
  transition: all 0.15s;
}
.modal-x:hover { background: var(--surface2); color: var(--text); }
.modal label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.modal input[type="text"],
.modal input[type="password"],
.modal textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 8px 11px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, background 0.3s;
  margin-bottom: 14px;
}
.modal input:focus,
.modal textarea:focus { border-color: var(--accent); }
.modal textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.65;
}
.modal-desc {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.6;
}
.modal-err {
  font-size: 11px;
  color: var(--red);
  margin-top: -10px;
  margin-bottom: 10px;
  display: none;
}
.modal-err.show { display: block; }
.modal-btns {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  margin-top: 4px;
}
.modal-footer-action {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.m-btn {
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.m-btn:hover { border-color: var(--accent); color: var(--accent); }
.m-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 500;
}
.m-btn.primary:hover { background: var(--accent2); border-color: var(--accent2); }
.m-btn.full { width: 100%; justify-content: center; }

/* Lyrics modal body */
#lyrics-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  white-space: pre-wrap;
}
#lyrics-body.empty {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* Playlist options in add-to-playlist modal */
.pl-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s;
}
.pl-option:hover { background: var(--surface2); }
.pl-option .pl-check { color: var(--accent2); display: none; font-size: 14px; }
.pl-option.has-song .pl-check { display: block; }
.pl-options-empty {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 16px 0;
}

/* ── Toast ──────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: calc(var(--player-h) + var(--kbd-bar-h) + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 15px;
  font-size: 12px;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s;
  z-index: 2000;
  white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ── Visualizer canvas ───────────────────────────────────── */
#viz-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

/* Push hero content above viz canvas but below sparkle canvas */
#hero > *:not(#viz-canvas):not(#sparkle-canvas) { position: relative; z-index: 1; }

/* Visualizer controls row */
#viz-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

#viz-style-wrap {
  display: flex;
  align-items: center;
}

/* Active state for viz toggle button */
.hero-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,0,0,0.15);
}

/* ── Lightbox ────────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  cursor: zoom-out;
}
#lightbox.open {
  opacity: 1;
  pointer-events: all;
}
#lightbox-img {
  max-width: min(80vw, 80vh);
  max-height: min(80vw, 80vh);
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 32px 100px rgba(0,0,0,0.8);
  transform: scale(0.92);
  transition: transform 0.25s ease;
  cursor: default;
}
#lightbox.open #lightbox-img {
  transform: scale(1);
}
#lightbox-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
#lightbox-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: #e8e0d4;
  letter-spacing: -0.2px;
}
#lightbox-album {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
#lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* Clickable artwork cursor */
.card-art { cursor: zoom-in; }
#hero-art  { cursor: zoom-in; }

/* ── Card zoom button ────────────────────────────────────── */
.card-zoom {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.18s, transform 0.18s, color 0.15s, border-color 0.15s, background 0.15s;
  z-index: 3;
}
.card-art-wrap:hover .card-zoom {
  opacity: 1;
  transform: scale(1);
}
.card-zoom:hover {
  color: var(--accent2);
  border-color: var(--accent);
  background: rgba(0,0,0,0.75);
}


/* ── Shared song prompt ──────────────────────────────────── */
#shared-prompt {
  position: fixed;
  bottom: calc(var(--player-h) + var(--kbd-bar-h) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 16px 56px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  max-width: 480px;
  width: calc(100vw - 48px);
  pointer-events: none;
}
#shared-prompt.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
#shared-prompt.hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}
#shared-prompt-art-wrap {
  flex-shrink: 0;
}
#shared-prompt-art {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
#shared-prompt-info {
  flex: 1;
  min-width: 0;
}
#shared-prompt-eye {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}
#shared-prompt-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}
#shared-prompt-artist {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
}
#shared-prompt-play {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent);
  border: none;
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}
#shared-prompt-play:hover { background: var(--accent2); transform: scale(1.04); }
#shared-prompt-play:active { transform: scale(0.97); }
#shared-prompt-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  padding: 2px 4px;
  flex-shrink: 0;
  transition: color 0.15s;
  align-self: flex-start;
}
#shared-prompt-close:hover { color: var(--text); }

/* Rainbow canvas around play button */
#rainbow-canvas { position: fixed; pointer-events: none; z-index: 200; }

/* ── Love / heart button ─────────────────────────────────── */
.card-btn.love-btn {
  color: var(--muted);
  border-color: var(--border);
  gap: 3px;
  min-width: 0;
}
.card-btn.love-btn:hover {
  border-color: #e05a7a;
  color: #e05a7a;
}
.card-btn.love-btn.loved {
  color: #e05a7a;
  border-color: rgba(224,90,122,0.4);
  background: rgba(224,90,122,0.06);
}
.card-btn.love-btn.loved:hover {
  border-color: #e05a7a;
  background: rgba(224,90,122,0.12);
}
.love-count {
  font-size: 9px;
  line-height: 1;
}

/* ── Embed button ─────────────────────────────────────────── */
.card-btn.embed-btn:hover { border-color: var(--gold); color: var(--gold); }
