/* ══════════════════════════════════════════════
   Album Studio + Player  |  style.css
   ══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:    #1db954;
  --accent-d:  #159c3e;
  --bg:        #0a0a0a;
  --s1:        #111111;
  --s2:        #1a1a1a;
  --s3:        #242424;
  --s4:        #333333;
  --text:      #ffffff;
  --text2:     #b3b3b3;
  --text3:     #6a6a6a;
  --border:    rgba(255,255,255,0.08);
  --radius:    12px;
  --font:      'Inter', system-ui, sans-serif;
}

html, body { height: 100%; font-family: var(--font); background: var(--bg); color: var(--text); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); color: inherit; }
img { display: block; }
input, textarea, select { font-family: var(--font); }
.hidden { display: none !important; }

/* ── Scrollbars ──────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--s4); border-radius: 3px; }

/* ── Back pill ───────────────────────────────── */
.back-pill {
  position: fixed; top: 12px; right: 14px; z-index: 9999;
  background: rgba(0,0,0,.6); color: white;
  padding: .3rem .8rem; border-radius: 20px; font-size: .72rem;
  border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(8px);
  transition: background .15s;
}
.back-pill:hover { background: rgba(255,255,255,.1); }

/* ══════════════════════════════════════════════
   STUDIO VIEW
══════════════════════════════════════════════ */
#studioView {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
}

/* Studio header */
.studio-header {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 28px;
  background: rgba(0,0,0,.4);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
}
.studio-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1rem; font-weight: 800;
  flex-shrink: 0;
}
.brand-icon { font-size: 1.4rem; color: var(--accent); }

.studio-album-tabs {
  display: flex; gap: 6px; flex: 1; overflow-x: auto;
  padding-bottom: 10px; margin-bottom: -2px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent;
}
.studio-album-tabs::-webkit-scrollbar { height: 4px; }
.studio-album-tabs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }
.studio-album-tabs::-webkit-scrollbar-track { background: transparent; }
.album-tab {
  padding: 6px 14px; border-radius: 20px; font-size: .8rem; font-weight: 600;
  background: var(--s3); color: var(--text2); white-space: nowrap;
  border: 1px solid transparent; transition: all .15s; flex-shrink: 0;
}
.album-tab:hover { color: var(--text); }
.album-tab.active { background: rgba(255,255,255,.12); color: var(--text); border-color: rgba(255,255,255,.15); }
.album-tab .tab-del { margin-left: 6px; opacity: 0; font-size: .65rem; transition: opacity .15s; }
.album-tab:hover .tab-del { opacity: 1; }

.new-album-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 20px; font-size: .82rem; font-weight: 700;
  background: var(--accent); color: #000;
  transition: background .15s, transform .1s; flex-shrink: 0;
}
.new-album-btn:hover { background: #1ed760; transform: scale(1.03); }

/* Studio body */
.studio-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 28px 60px;
  gap: 40px;
}

/* ── Left panel ──────────────────────────────── */
.studio-left {
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 80px; align-self: start;
}

/* Album art upload */
.art-zone {
  width: 100%; aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  position: relative;
  background: var(--s2);
  border: 2px dashed var(--border);
  transition: border-color .2s;
}
.art-zone:hover { border-color: var(--accent); }
.art-zone.dragover { border-color: var(--accent); background: rgba(29,185,84,.07); }
.art-zone-inner { width: 100%; height: 100%; position: relative; }
.art-preview { width: 100%; height: 100%; object-fit: cover; }
.art-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--text3);
}
.art-placeholder i { font-size: 2.5rem; }
.art-placeholder span { font-size: .9rem; font-weight: 600; }
.art-placeholder small { font-size: .75rem; }

/* BG mini upload */
.bg-upload-row { display: flex; align-items: center; gap: 12px; }
.bg-mini-zone {
  width: 60px; height: 60px; border-radius: 8px;
  background: var(--s2); border: 1.5px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; flex-shrink: 0;
  transition: border-color .2s; position: relative;
  font-size: .65rem; color: var(--text3); text-align: center;
}
.bg-mini-zone:hover { border-color: var(--accent); }
.bg-mini-zone #bgLabel { font-size: .6rem; text-align: center; padding: 2px; line-height: 1.3; }
.bg-preview { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.bg-hint { font-size: .75rem; color: var(--text3); }

/* Meta form */
.meta-form { display: flex; flex-direction: column; gap: 10px; }
.meta-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.meta-input {
  width: 100%; padding: 11px 14px;
  background: var(--s2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: .88rem;
  outline: none; transition: border-color .15s;
}
.meta-input:focus { border-color: var(--accent); }
.meta-input::placeholder { color: var(--text3); }

/* Color swatches */
.color-section { display: flex; flex-direction: column; gap: 10px; }
.color-label { font-size: .78rem; font-weight: 600; color: var(--text2); }
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .15s, border-color .15s;
  flex-shrink: 0;
}
.swatch:hover { transform: scale(1.15); }
.swatch.active { border-color: white; transform: scale(1.15); }
.custom-swatch {
  display: flex; align-items: center; justify-content: center;
  background: var(--s3); font-size: .75rem; color: var(--text2); position: relative;
}
.custom-swatch input[type=color] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; border: none;
}

/* Launch button */
.launch-btn {
  width: 100%; padding: 14px;
  background: var(--accent); color: #000;
  border-radius: 50px; font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .15s, transform .1s;
  letter-spacing: .02em;
}
.launch-btn:hover { background: #1ed760; transform: scale(1.02); }
.launch-btn:active { transform: scale(.98); }

/* ── Right panel (Song builder) ──────────────── */
.studio-right { display: flex; flex-direction: column; gap: 16px; }

.songs-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 4px;
}
.songs-title { font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.song-count-badge {
  background: var(--s3); color: var(--text2);
  font-size: .72rem; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
}
.songs-action-btn {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text3); font-size: .82rem;
  transition: color .15s, background .15s;
}
.songs-action-btn:hover { color: #ef4444; background: rgba(239,68,68,.1); }

/* Song drop zone */
.song-drop-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; color: var(--text3);
  cursor: pointer; transition: border-color .2s, background .2s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.song-drop-zone i { font-size: 2rem; }
.song-drop-zone p { font-size: .9rem; font-weight: 600; color: var(--text2); }
.song-drop-zone span { font-size: .78rem; }
.song-drop-zone:hover, .song-drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(29,185,84,.05);
  color: var(--text2);
}

/* Song builder rows */
.song-builder-list { display: flex; flex-direction: column; gap: 6px; }

.song-build-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--s1); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
  transition: background .15s; position: relative;
}
.song-build-row:hover { background: var(--s2); border-color: rgba(255,255,255,.12); }
.song-build-row.dragging { opacity: .5; }

.sbr-drag { color: var(--text3); cursor: grab; font-size: .8rem; padding: 2px 4px; }
.sbr-drag:active { cursor: grabbing; }

.sbr-num { width: 22px; text-align: center; font-size: .82rem; color: var(--text3); flex-shrink: 0; }

/* Song cover upload */
.sbr-cover-zone {
  width: 44px; height: 44px; border-radius: 6px;
  background: var(--s3); border: 1.5px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; flex-shrink: 0;
  transition: border-color .15s;
}
.sbr-cover-zone:hover { border-color: var(--accent); }
.sbr-cover-zone img { width: 100%; height: 100%; object-fit: cover; }
.sbr-cover-zone i { font-size: .85rem; color: var(--text3); }

.sbr-info { flex: 1; min-width: 0; }
.sbr-title-input {
  width: 100%; background: none; border: none; outline: none;
  color: var(--text); font-size: .9rem; font-weight: 500;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .15s;
}
.sbr-title-input:focus { border-color: var(--accent); }
.sbr-title-input::placeholder { color: var(--text3); }
.sbr-file-name { font-size: .72rem; color: var(--text3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sbr-lyrics-btn {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--text3); transition: color .15s, background .15s;
}
.sbr-lyrics-btn:hover { color: var(--accent); background: rgba(29,185,84,.1); }
.sbr-lyrics-btn.has-lyrics { color: var(--accent); }

.sbr-duration { font-size: .78rem; color: var(--text3); flex-shrink: 0; width: 36px; text-align: right; }

.sbr-del {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--text3); opacity: 0;
  transition: opacity .15s, color .15s, background .15s;
}
.song-build-row:hover .sbr-del { opacity: 1; }
.sbr-del:hover { color: #ef4444; background: rgba(239,68,68,.1); }

.add-more-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 8px;
  border: 1.5px dashed var(--border);
  color: var(--text3); font-size: .85rem; font-weight: 600;
  transition: border-color .15s, color .15s;
  position: relative;
}
.add-more-btn:hover { border-color: var(--accent); color: var(--accent); }
.add-more-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ══════════════════════════════════════════════
   PLAYER VIEW
══════════════════════════════════════════════ */
#playerView {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* Background */
.player-bg {
  position: absolute; inset: -20px;
  background-size: cover; background-position: center;
  filter: blur(40px) saturate(1.4);
  opacity: 0.35;
  z-index: 0;
  transition: background-image 1s ease, opacity .5s;
}
.player-bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.88) 100%);
}

/* Topbar */
.player-topbar {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.topbar-back {
  display: flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 600; color: var(--text2);
  padding: 7px 14px; border-radius: 20px;
  background: rgba(255,255,255,.08); border: 1px solid var(--border);
  transition: color .15s, background .15s;
}
.topbar-back:hover { color: var(--text); background: rgba(255,255,255,.13); }
.topbar-album { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.topbar-album-name { font-weight: 700; }
.topbar-dot { color: var(--text3); }
.topbar-artist { color: var(--text2); }
.topbar-actions { display: flex; gap: 6px; }
.topbar-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; color: var(--text2);
  background: rgba(255,255,255,.08); border: 1px solid var(--border);
  transition: color .15s, background .15s;
}
.topbar-btn:hover { color: var(--text); background: rgba(255,255,255,.15); }
.topbar-btn.active { color: var(--accent); }

/* Player layout */
.player-layout {
  flex: 1; display: grid;
  grid-template-columns: 280px 1fr 300px;
  overflow: hidden;
  position: relative; z-index: 5;
}

/* ── Tracklist panel ─────────────────────────── */
.tracklist-panel {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  overflow: hidden;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}
.tracklist-album-info {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tl-cover {
  width: 56px; height: 56px; border-radius: 6px;
  overflow: hidden; flex-shrink: 0; background: var(--s3);
}
.tl-cover img { width: 100%; height: 100%; object-fit: cover; }
.tl-album-name { font-size: .88rem; font-weight: 700; }
.tl-artist { font-size: .75rem; color: var(--text2); margin-top: 2px; }
.tl-year-genre { font-size: .7rem; color: var(--text3); margin-top: 1px; }

.tracklist { flex: 1; overflow-y: auto; padding: 8px; }

.track-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  cursor: pointer; transition: background .15s;
  position: relative;
}
.track-item:hover { background: rgba(255,255,255,.08); }
.track-item.active { background: rgba(255,255,255,.1); }
.track-item.active .ti-title { color: var(--accent); }

.ti-num { width: 18px; text-align: right; font-size: .78rem; color: var(--text3); flex-shrink: 0; }
.ti-cover {
  width: 36px; height: 36px; border-radius: 4px;
  overflow: hidden; flex-shrink: 0; background: var(--s3);
}
.ti-cover img { width: 100%; height: 100%; object-fit: cover; }
.ti-info { flex: 1; min-width: 0; }
.ti-title { font-size: .82rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-artist { font-size: .7rem; color: var(--text3); margin-top: 1px; }
.ti-dur { font-size: .72rem; color: var(--text3); flex-shrink: 0; }

/* Playing indicator bars */
.ti-playing {
  display: flex; align-items: flex-end; gap: 1.5px;
  width: 14px; height: 14px; flex-shrink: 0;
}
.ti-bar {
  width: 2.5px; background: var(--accent); border-radius: 1px;
  animation: ti-pulse 0.8s ease-in-out infinite alternate;
}
.ti-bar:nth-child(1) { height: 6px; animation-delay: 0s; }
.ti-bar:nth-child(2) { height: 10px; animation-delay: .15s; }
.ti-bar:nth-child(3) { height: 7px; animation-delay: .3s; }
.ti-bar:nth-child(4) { height: 12px; animation-delay: .1s; }
@keyframes ti-pulse {
  from { opacity: .5; transform: scaleY(.5); }
  to   { opacity: 1;  transform: scaleY(1); }
}
.ti-playing.paused .ti-bar { animation-play-state: paused; }

/* ── Player stage ────────────────────────────── */
.player-stage {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px 32px;
  gap: 16px;
  overflow: hidden;
}

/* Vinyl disc */
.vinyl-wrap {
  position: relative;
  flex-shrink: 0;
}

/* Tonearm */
.tonearm {
  position: absolute;
  width: 90px; height: 8px;
  background: linear-gradient(90deg, #888, #555);
  border-radius: 4px;
  top: 30px; right: -20px;
  transform-origin: right center;
  transform: rotate(-30deg);
  transition: transform .8s cubic-bezier(.4,0,.2,1);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.tonearm::after {
  content: '';
  position: absolute;
  right: -4px; top: -4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #777;
  box-shadow: 0 2px 4px rgba(0,0,0,.5);
}
.tonearm.on-disc { transform: rotate(-8deg); }

.vinyl-disc {
  width: 260px; height: 260px; border-radius: 50%;
  background:
    radial-gradient(circle at 50%, transparent 19%, rgba(255,255,255,.02) 20%, transparent 21%),
    radial-gradient(circle at 50%, transparent 29%, rgba(255,255,255,.02) 30%, transparent 31%),
    radial-gradient(circle at 50%, transparent 39%, rgba(255,255,255,.02) 40%, transparent 41%),
    radial-gradient(circle at 50%, transparent 49%, rgba(255,255,255,.02) 50%, transparent 51%),
    radial-gradient(circle at 50%, transparent 59%, rgba(255,255,255,.02) 60%, transparent 61%),
    radial-gradient(circle at 50%, transparent 69%, rgba(255,255,255,.02) 70%, transparent 71%),
    radial-gradient(circle at 50%, transparent 79%, rgba(255,255,255,.02) 80%, transparent 81%),
    #0f0f0f;
  position: relative;
  animation: vinyl-spin 3.5s linear infinite;
  animation-play-state: paused;
  box-shadow: 0 0 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  transition: box-shadow .3s;
}
.vinyl-disc.playing { animation-play-state: running; }
.vinyl-disc.playing { box-shadow: 0 0 80px rgba(0,0,0,.7), 0 0 30px var(--glow, rgba(29,185,84,.2)); }
@keyframes vinyl-spin { to { transform: rotate(360deg); } }

.vinyl-label {
  position: absolute; width: 42%; height: 42%;
  border-radius: 50%; overflow: hidden;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--s3);
  box-shadow: inset 0 0 10px rgba(0,0,0,.8);
  z-index: 1;
}
.vinyl-label img { width: 100%; height: 100%; object-fit: cover; }

.vinyl-center-hole {
  position: absolute; width: 8%; height: 8%; border-radius: 50%;
  background: var(--bg); border: 1px solid rgba(255,255,255,.1);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2;
}

.vinyl-glow {
  position: absolute; inset: -15px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow, rgba(29,185,84,.15)), transparent 70%);
  pointer-events: none; z-index: -1;
  transition: background .5s;
}

/* Stage info */
.stage-song-info { text-align: center; }
.stage-title-wrap { overflow: hidden; max-width: 380px; }
.stage-title {
  font-size: 1.5rem; font-weight: 800;
  white-space: nowrap;
}
.stage-title.overflow .stage-title-text {
  display: inline-block;
  animation: marquee 8s linear infinite;
}
@keyframes marquee {
  0%, 20%   { transform: translateX(0); }
  80%, 100% { transform: translateX(-100%); }
}
.stage-artist { font-size: .88rem; color: var(--text2); margin-top: 4px; }

/* Visualizer */
.visualizer {
  display: flex; align-items: flex-end; gap: 2px;
  height: 40px; overflow: hidden;
}
.viz-bar {
  width: 3px; border-radius: 2px;
  background: var(--accent);
  animation: viz-dance var(--dur, .6s) ease-in-out infinite alternate;
  animation-play-state: paused;
  height: var(--h, 10px);
  opacity: .7;
}
.viz-bar.playing { animation-play-state: running; }
@keyframes viz-dance {
  from { transform: scaleY(.2); opacity: .4; }
  to   { transform: scaleY(1);  opacity: .9; }
}

/* Controls */
.player-controls { display: flex; align-items: center; gap: 20px; }
.ctrl-sm {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: var(--text2);
  transition: color .15s, transform .1s;
}
.ctrl-sm:hover { color: var(--text); transform: scale(1.1); }
.ctrl-sm.active { color: var(--accent); }
.ctrl-play {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--text); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform .1s, background .15s;
  padding-left: 3px;
}
.ctrl-play:hover { transform: scale(1.07); }
.ctrl-play:active { transform: scale(.96); }

/* Seek row */
.seek-row { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 420px; }
.seek-time { font-size: .72rem; color: var(--text2); width: 36px; flex-shrink: 0; text-align: center; }
.seek-track {
  flex: 1; height: 4px; background: rgba(255,255,255,.15); border-radius: 2px;
  position: relative; cursor: pointer;
}
.seek-track:hover { height: 6px; }
.seek-fill {
  height: 100%; background: var(--text); border-radius: 2px;
  position: absolute; left: 0; top: 0; width: 0%;
  transition: background .2s;
}
.seek-track:hover .seek-fill { background: var(--accent); }
.seek-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--text); position: absolute;
  top: 50%; left: 0%; transform: translate(-50%,-50%);
  opacity: 0; transition: opacity .15s;
  pointer-events: none;
}
.seek-track:hover .seek-thumb { opacity: 1; }

/* Bottom row */
.bottom-row {
  display: flex; align-items: center; gap: 16px;
  width: 100%; max-width: 420px; justify-content: space-between;
}
.like-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: var(--text2);
  transition: color .15s, transform .1s;
}
.like-btn:hover { color: var(--text); transform: scale(1.1); }
.like-btn.liked { color: var(--accent); }
.like-btn.liked i.fa-regular { display: none; }
.vol-row { display: flex; align-items: center; gap: 8px; flex: 1; }
.vol-icon-btn { color: var(--text2); font-size: .88rem; flex-shrink: 0; transition: color .15s; }
.vol-icon-btn:hover { color: var(--text); }
.vol-track {
  flex: 1; height: 4px; background: rgba(255,255,255,.15); border-radius: 2px;
  position: relative; cursor: pointer; max-width: 100px;
}
.vol-fill {
  height: 100%; background: var(--text2); border-radius: 2px;
  position: absolute; left: 0; top: 0; width: 70%;
  transition: background .2s;
}
.vol-track:hover .vol-fill { background: var(--accent); }
.vol-thumb {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--text); position: absolute;
  top: 50%; left: 70%; transform: translate(-50%,-50%);
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.vol-track:hover .vol-thumb { opacity: 1; }
.speed-btn {
  font-size: .75rem; font-weight: 700;
  padding: 4px 9px; border-radius: 4px;
  color: var(--text2); border: 1px solid rgba(255,255,255,.15);
  transition: color .15s, border-color .15s;
}
.speed-btn:hover { color: var(--text); border-color: rgba(255,255,255,.3); }

/* ── Info panel ──────────────────────────────── */
.info-panel {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--border);
  overflow: hidden;
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(10px);
}
.panel-tabs {
  display: flex; padding: 0 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.panel-tab {
  padding: 14px 12px; font-size: .8rem; font-weight: 600;
  color: var(--text3); border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.panel-tab:hover { color: var(--text2); }
.panel-tab.active { color: var(--text); border-color: var(--text); }

.panel-content { flex: 1; overflow: hidden; }
.tab-pane { display: none; height: 100%; overflow-y: auto; }
.tab-pane.active { display: block; }

/* Lyrics */
.lyrics-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; padding: 32px; text-align: center; gap: 10px;
  color: var(--text3);
}
.lyrics-empty i { font-size: 2rem; }
.lyrics-empty p { font-size: .85rem; }
.lyrics-edit-btn {
  padding: 8px 16px; border-radius: 20px;
  border: 1px solid var(--border); color: var(--text2);
  font-size: .78rem; font-weight: 600;
  transition: color .15s, border-color .15s;
}
.lyrics-edit-btn:hover { color: var(--text); border-color: rgba(255,255,255,.3); }

.lyrics-text {
  padding: 20px 18px;
  font-size: .88rem; line-height: 1.8;
  color: var(--text2);
  white-space: pre-wrap;
}

/* About panel */
.about-panel { padding: 20px 18px; }
.about-cover {
  width: 100%; aspect-ratio: 1; border-radius: 8px;
  overflow: hidden; margin-bottom: 16px; background: var(--s3);
}
.about-cover img { width: 100%; height: 100%; object-fit: cover; }
.about-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.about-artist { font-size: .85rem; color: var(--text2); margin-bottom: 16px; }
.about-stats { display: flex; flex-direction: column; gap: 8px; }
.stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: .82rem;
}
.stat-label { color: var(--text2); }
.stat-value { font-weight: 600; }

/* Queue */
.queue-list { padding: 8px; }
.queue-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 8px;
  cursor: pointer; transition: background .15s;
}
.queue-item:hover { background: rgba(255,255,255,.07); }
.qi-cover {
  width: 40px; height: 40px; border-radius: 4px;
  overflow: hidden; flex-shrink: 0; background: var(--s3);
}
.qi-cover img { width: 100%; height: 100%; object-fit: cover; }
.qi-title { font-size: .82rem; font-weight: 500; }
.qi-artist { font-size: .72rem; color: var(--text3); margin-top: 1px; }
.qi-dur { font-size: .72rem; color: var(--text3); flex-shrink: 0; margin-left: auto; }

/* ══ MODAL ════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.modal {
  background: #1c1c1c; border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
  width: 520px; max-width: 95vw; max-height: 85vh;
  display: flex; flex-direction: column; gap: 16px;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-close {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); font-size: .85rem;
  transition: color .15s, background .15s;
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,.1); }
.modal-song-sel { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.modal-song-sel select {
  flex: 1; background: var(--s2); border: 1px solid var(--border);
  border-radius: 6px; padding: 7px 10px; color: var(--text); outline: none;
}
.lyrics-textarea {
  flex: 1; min-height: 280px;
  background: var(--s2); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px; color: var(--text);
  font-size: .88rem; line-height: 1.7; resize: vertical; outline: none;
}
.lyrics-textarea:focus { border-color: var(--accent); }
.modal-footer { display: flex; justify-content: flex-end; }
.modal-save {
  padding: 10px 24px; border-radius: 20px;
  background: var(--accent); color: #000;
  font-weight: 700; font-size: .88rem;
  transition: background .15s;
}
.modal-save:hover { background: #1ed760; }

/* ══ TOAST ════════════════════════════════════════ */
#toastWrap {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column-reverse; gap: 8px; z-index: 9999;
}
.toast {
  background: #323232; color: var(--text);
  padding: 11px 20px; border-radius: 8px;
  font-size: .85rem; font-weight: 500;
  white-space: nowrap;
  animation: toast-in .25s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.toast.out { animation: toast-out .25s ease forwards; }
@keyframes toast-in  { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes toast-out { to   { opacity:0; transform:translateY(8px); } }

/* ══ RESPONSIVE ═══════════════════════════════════ */
@media (max-width: 1100px) {
  .info-panel { display: none; }
  .player-layout { grid-template-columns: 240px 1fr; }
}
@media (max-width: 800px) {
  .studio-body { grid-template-columns: 1fr; padding: 20px 16px; }
  .studio-left { position: static; }
  .player-layout { grid-template-columns: 1fr; }
  .tracklist-panel { display: none; }
  .player-stage { padding: 16px; }
  .vinyl-disc { width: 200px; height: 200px; }
  .tonearm { display: none; }
}
@media (max-width: 500px) {
  .vinyl-disc { width: 160px; height: 160px; }
  .stage-title { font-size: 1.2rem; }
}
