@charset "UTF-8";

:root {
  --bg-obsidian: #06070a;
  --surface-glass: rgba(16, 18, 26, 0.62);
  --border-hairline: rgba(255, 255, 255, 0.07);
  --border-warm: rgba(226, 181, 108, 0.32);
  --text-ivory: #f4f1ea;
  --text-secondary: #a39e93;
  --text-muted: #625f58;
  --accent-gold: #e2b56c;
  --accent-gold-bright: #f3cf8a;
  --accent-glow: rgba(226, 181, 108, 0.25);
  --font-serif: "Playfair Display", "Be Vietnam Pro", "Times New Roman", serif;
  --font-sans: "Be Vietnam Pro", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html,
body {
  min-height: 100vh;
  background: var(--bg-obsidian);
  color: var(--text-ivory);
  font-family: var(--font-sans);
  font-size-adjust: from-font;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@supports not (font-size-adjust: from-font) {
  html,
  body {
    line-height: 1.5;
  }
}

button,
input,
select,
textarea,
optgroup {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
}

/* ==========================================
   AMBIENT DYNAMIC AURA CANVAS
   ========================================== */
.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-cover-blur {
  position: absolute;
  top: -15%;
  left: -10%;
  width: 75vw;
  height: 85vh;
  background-size: cover;
  background-position: center;
  filter: blur(110px) saturate(1.45);
  opacity: 0.22;
  transition: background-image 1.2s ease, opacity 0.8s ease;
}

.ambient-mood-orb {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 70vw;
  height: 70vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 155, 78, 0.16), transparent 68%);
  filter: blur(80px);
  transition: background 1.2s ease;
}

/* ==========================================
   MINIMAL TOP HEADER
   ========================================== */
.lounge-header {
  position: sticky;
  top: 0;
  z-index: 40;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(to bottom, rgba(6, 7, 10, 0.88) 40%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.4s ease;
}

.brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--text-ivory);
  cursor: pointer;
}

.brand-disc-icon {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle, #06070a 28%, var(--accent-gold) 33%, #6e4f23 72%, var(--accent-gold-bright) 100%);
  box-shadow: 0 0 12px var(--accent-glow);
}

.brand-name {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-ivory);
}

/* OMNIBAR */
.omnibar-wrap {
  position: relative;
  flex: 1;
  max-width: 380px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.omnibar-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.omnibar-input {
  width: 100%;
  padding: 8px 104px 8px 36px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-ivory);
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}

.omnibar-input::placeholder {
  color: var(--text-muted);
}

.omnibar-input:focus {
  border-color: var(--border-warm);
  background: rgba(255, 255, 255, 0.06);
}

.omnibar-kbd {
  position: absolute;
  right: 82px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  color: var(--text-muted);
  border: 1px solid var(--border-hairline);
  border-radius: 4px;
  padding: 1px 5px;
  pointer-events: none;
}

.omnibar-clear {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px;
}

.omnibar-ai-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--border-warm);
  background: rgba(226, 181, 108, 0.14);
  color: var(--accent-gold-bright);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}

.omnibar-ai-btn:hover,
.omnibar-ai-btn.active {
  background: var(--accent-gold);
  color: #06070a;
}

.ai-music-panel {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(226, 181, 108, 0.055);
  border: 1px solid var(--border-warm);
}

.ai-music-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ai-music-badge {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-gold-bright);
}

.ai-music-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-prompt-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ai-prompt-input {
  flex: 1;
  min-width: 0;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-warm);
  background: rgba(8, 10, 15, 0.75);
  color: var(--text-ivory);
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ai-prompt-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(226, 181, 108, 0.16);
}

.ai-prompt-submit {
  padding: 9px 15px;
  border-radius: 999px;
  border: none;
  background: var(--accent-gold);
  color: #06070a;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, opacity 0.15s;
}

.ai-prompt-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.ai-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.ai-chip-btn {
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s;
}

.ai-chip-btn:hover {
  border-color: var(--border-warm);
  color: var(--accent-gold-bright);
  background: rgba(226, 181, 108, 0.1);
}

.ai-music-reply {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-ivory);
  margin: 0 0 10px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ghost-nav-btn:hover,
.ghost-nav-btn.active {
  color: var(--text-ivory);
  border-color: var(--border-warm);
  background: rgba(226, 181, 108, 0.09);
}

.icon-16 { width: 15px; height: 15px; }
.icon-18 { width: 18px; height: 18px; }
.icon-20 { width: 20px; height: 20px; }

/* ==========================================
   SPLIT-STAGE LAYOUT (LEFT VINYL / RIGHT LIST)
   ========================================== */
.lounge-split {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 32px 48px;
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 48px;
  align-items: start;
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* LEFT COLUMN: STICKY VINYL / MV STAGE */
.stage-pane {
  position: sticky;
  top: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 20px 24px;
  border-radius: 28px;
  background: rgba(12, 14, 20, 0.42);
  border: 1px solid var(--border-hairline);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.stage-top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.stage-mode-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
}

.stage-mode-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stage-mode-btn.active {
  background: var(--accent-gold);
  color: #08090c;
  font-weight: 600;
}

.icon-circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-circle-btn:hover {
  color: var(--accent-gold-bright);
  border-color: var(--border-warm);
}

/* TURNTABLE & VINYL RECORD */
.stage-centerpiece {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 18px;
}

.turntable {
  position: relative;
  z-index: 3;
  width: 286px;
  height: 286px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.stage-pane.video-mode .turntable {
  display: none;
}

.platter-halo {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 181, 108, 0.16), transparent 70%);
  filter: blur(18px);
  opacity: 0.4;
  transition: opacity 0.5s;
}

.vinyl-record {
  position: relative;
  width: 266px;
  height: 266px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #191b22 0%, #07080b 32%, #13151c 34%, #060709 64%, #151820 66%, #050608 100%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.82),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinLP 16s linear infinite;
  animation-play-state: paused;
}

.vinyl-record.playing {
  animation-play-state: running;
}

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

.vinyl-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 35deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.045) 25deg,
    transparent 55deg,
    transparent 180deg,
    rgba(255, 255, 255, 0.045) 205deg,
    transparent 235deg
  );
  pointer-events: none;
}

.vinyl-grooves {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 2px,
    transparent 5px
  );
  pointer-events: none;
}

.vinyl-label {
  position: relative;
  width: 102px;
  height: 102px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(226, 181, 108, 0.65), rgba(120, 86, 34, 0.4));
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.85);
}

.vinyl-cover {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.vinyl-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #07080b;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

/* TONEARM */
.tonearm-assembly {
  position: absolute;
  top: 10px;
  right: 4px;
  width: 68px;
  height: 170px;
  pointer-events: none;
  transform-origin: 50px 18px;
  transform: rotate(-28deg);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.tonearm-assembly.playing {
  transform: rotate(-5deg);
}

.tonearm-pivot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, #383c47, #15171e);
  border: 1.5px solid rgba(226, 181, 108, 0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.tonearm-rod {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 52px;
  height: 132px;
  border-right: 2.5px solid rgba(226, 181, 108, 0.78);
  border-bottom: 2.5px solid rgba(226, 181, 108, 0.78);
  border-bottom-right-radius: 24px;
}

.tonearm-head {
  position: absolute;
  bottom: 14px;
  left: 8px;
  width: 14px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-gold);
  transform: rotate(-18deg);
}

/* MV 16:9 STAGE & SYNCED LYRICS TELEPROMPTER */
.stage-pane.lyrics-mode .turntable {
  display: none;
}

.lyrics-stage {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 286px;
  border-radius: 18px;
  background: rgba(8, 10, 15, 0.55);
  border: 1px solid var(--border-hairline);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lyrics-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 96px 18px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.lyrics-scroll::-webkit-scrollbar {
  display: none;
}

.lyric-line {
  font-family: var(--font-serif);
  font-size: 1.16rem;
  line-height: 1.45;
  color: var(--text-ivory);
  opacity: 0.32;
  padding: 7px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.lyric-line:hover {
  opacity: 0.7;
  background: rgba(255, 255, 255, 0.03);
}

.lyric-line.active {
  opacity: 1;
  color: var(--accent-gold-bright);
  font-weight: 700;
  transform: scale(1.06);
  text-shadow: 0 0 18px rgba(226, 181, 108, 0.35);
}

.lyric-empty {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  padding: 30px 12px;
}

/* KARAOKE STUDIO BAR */
.karaoke-studio-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(226, 181, 108, 0.08);
  border: 1px solid var(--border-warm);
}

.karaoke-beats-row {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.karaoke-beats-row::-webkit-scrollbar {
  display: none;
}

.karaoke-beat-pill {
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.karaoke-beat-pill.active {
  background: var(--accent-gold);
  color: #06070a;
  border-color: var(--accent-gold);
  font-weight: 600;
}

.karaoke-mic-btn {
  border: 1px solid var(--border-warm);
  background: rgba(226, 181, 108, 0.12);
  color: var(--accent-gold-bright);
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.karaoke-mic-btn.active {
  background: #e11d48;
  border-color: #fb7185;
  color: #fff;
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.55);
}

.mv-stage {
  position: absolute;
  z-index: 1;
  width: 220px;
  height: 220px;
  opacity: 0.02;
  pointer-events: none;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  border: 1px solid var(--border-hairline);
}

.stage-pane.video-mode .mv-stage,
.stage-pane.karaoke-mode .mv-stage {
  position: relative;
  z-index: 4;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
}

.stage-pane.karaoke-mode .turntable {
  display: none;
}

.mv-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* EDITORIAL SERIF TYPOGRAPHY */
.stage-typography {
  width: 100%;
  max-width: 440px;
  margin-bottom: 18px;
}

.stage-meta-line {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  margin-bottom: 6px;
  font-weight: 600;
}

.meta-dot {
  margin: 0 5px;
  opacity: 0.5;
}

.stage-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 2.5vw, 2.45rem);
  font-weight: 600;
  line-height: 1.24;
  color: var(--text-ivory);
  margin-bottom: 6px;
}

.stage-artist {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.stage-poem {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* UNIFIED PLAYER CONTROLLER */
.stage-controller {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seek-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
}

.seek-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  accent-color: var(--accent-gold);
  cursor: pointer;
}

.transport-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.transport-side {
  display: flex;
  align-items: center;
  gap: 6px;
}

.transport-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ctrl-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.ctrl-icon-btn:hover,
.ctrl-icon-btn.active {
  color: var(--accent-gold-bright);
  background: rgba(226, 181, 108, 0.1);
}

.play-master-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--text-ivory);
  color: #06070a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s ease, background 0.18s ease;
}

.play-master-btn:hover {
  transform: scale(1.05);
  background: var(--accent-gold-bright);
}

/* SMART POPOVER MENU (•••) */
.more-menu-Anchor {
  position: relative;
}

.smart-popover {
  position: absolute;
  bottom: 46px;
  right: 0;
  width: 290px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 17, 24, 0.96);
  border: 1px solid var(--border-warm);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  text-align: left;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popover-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.popover-mini-btn {
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-ivory);
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
}

.popover-mini-btn.gold,
.popover-mini-btn.active {
  border-color: var(--border-warm);
  color: var(--accent-gold-bright);
  background: rgba(226, 181, 108, 0.12);
}

.popover-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.source-pill,
.platform-pill {
  font-size: 0.73rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s;
}

.source-pill:hover,
.platform-pill:hover {
  color: var(--text-ivory);
  border-color: var(--border-warm);
}

.source-pill.active {
  background: rgba(226, 181, 108, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold-bright);
}

/* ==========================================
   RIGHT COLUMN: EDITORIAL TRACKLIST
   ========================================== */
.playlist-pane {
  min-width: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.editorial-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-hairline);
}

.editorial-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.editorial-tabs::-webkit-scrollbar {
  display: none;
}

.topic-pill {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.topic-pill:hover {
  color: var(--text-ivory);
}

.topic-pill.active {
  background: rgba(226, 181, 108, 0.13);
  color: var(--accent-gold-bright);
  font-weight: 600;
}

.editorial-count {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.editorial-group-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  margin: 18px 0 8px;
  padding-left: 8px;
}

.editorial-list {
  display: flex;
  flex-direction: column;
}

/* FLAT EDITORIAL TRACK ROW */
.track-row {
  display: grid;
  grid-template-columns: 28px 42px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: background 0.18s ease;
}

.track-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.track-row.playing {
  background: rgba(226, 181, 108, 0.09);
}

.track-idx {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.track-row.playing .track-idx {
  color: var(--accent-gold-bright);
  font-weight: 700;
}

/* MINI ANIMATED EQUALIZER FOR ACTIVE ROW */
.row-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.row-eq span {
  width: 2.5px;
  height: 4px;
  background: var(--accent-gold-bright);
  border-radius: 1px;
  animation: rowEqPulse 0.75s ease-in-out infinite alternate;
}

.row-eq span:nth-child(2) { animation-delay: 0.2s; }
.row-eq span:nth-child(3) { animation-delay: 0.35s; }

@keyframes rowEqPulse {
  from { height: 3px; }
  to { height: 12px; }
}

.track-art {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #141720;
}

.track-info {
  min-width: 0;
}

.track-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-ivory);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.track-row.playing .track-title {
  color: var(--accent-gold-bright);
  font-weight: 600;
}

.track-sub {
  font-size: 0.76rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-mv-btn {
  opacity: 0;
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s, border-color 0.15s, color 0.15s;
}

.track-row:hover .row-mv-btn,
.track-row:hover .row-pl-btn {
  opacity: 1;
}

.row-mv-btn:hover,
.row-pl-btn:hover {
  border-color: var(--border-warm);
  color: var(--accent-gold-bright);
}

.row-pl-btn {
  opacity: 0;
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.15s, border-color 0.15s, color 0.15s;
}

.row-pl-btn.danger:hover {
  border-color: rgba(244, 63, 94, 0.5);
  color: #fda4af;
}

/* USER PLAYLISTS STRIP & ACTIVE BANNER */
.user-playlists-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 12px;
  margin-bottom: 8px;
}

.user-playlists-strip::-webkit-scrollbar {
  display: none;
}

.user-pl-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.user-pl-pill:hover {
  color: var(--text-ivory);
  border-color: var(--border-warm);
}

.user-pl-pill.active {
  background: var(--accent-gold);
  color: #07080b;
  border-color: var(--accent-gold);
  font-weight: 600;
}

.user-pl-pill.new-btn {
  border-style: dashed;
  color: var(--accent-gold-bright);
}

.active-playlist-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(226, 181, 108, 0.07);
  border: 1px solid var(--border-warm);
}

.active-pl-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.active-pl-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-ivory);
}

.active-pl-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.active-pl-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pl-action-btn {
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s;
}

.pl-action-btn:hover {
  color: var(--text-ivory);
  border-color: var(--border-warm);
}

.pl-action-btn.gold {
  background: var(--accent-gold);
  color: #06070a;
  border-color: var(--accent-gold);
  font-weight: 600;
}

.pl-action-btn.danger:hover {
  border-color: rgba(244, 63, 94, 0.5);
  color: #fda4af;
}

/* FLOATING PLAYLIST PICKER POPOVER */
.pl-picker-popover {
  position: fixed;
  z-index: 120;
  width: 260px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(14, 16, 23, 0.98);
  border: 1px solid var(--border-warm);
  backdrop-filter: blur(20px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.85);
}

.pl-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-gold-bright);
}

.pl-picker-head span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pl-picker-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
}

.pl-picker-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 265px;
  overflow-y: auto;
  margin-bottom: 8px;
}

.pl-picker-sec-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 2px 4px;
}

.row-sys-btn {
  border: 1px solid var(--border-warm);
  background: rgba(226, 181, 108, 0.1);
  color: var(--accent-gold-bright);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}

.row-sys-btn:hover {
  background: var(--accent-gold);
  color: #06070a;
}

.row-sys-btn.saved {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.pl-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 9px;
  border: none;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-ivory);
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.pl-picker-item:hover {
  background: rgba(226, 181, 108, 0.12);
}

.pl-picker-item.in-playlist {
  color: var(--accent-gold-bright);
  background: rgba(226, 181, 108, 0.14);
}

.pl-picker-form {
  display: flex;
  gap: 6px;
}

.pl-picker-input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-ivory);
  font-size: 0.78rem;
  outline: none;
}

.pl-picker-input:focus {
  border-color: var(--border-warm);
}

.pl-picker-submit {
  padding: 6px 11px;
  border-radius: 8px;
  border: none;
  background: var(--accent-gold);
  color: #06070a;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.track-dur {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: right;
}

/* ==========================================
   ZEN MODE (DOUBLE CLICK VINYL OR PRESS Z)
   ========================================== */
body.zen-mode .playlist-pane,
body.zen-mode .omnibar-wrap {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

body.zen-mode .lounge-split {
  grid-template-columns: 1fr;
  max-width: 680px;
}

body.zen-mode .stage-pane {
  position: relative;
  top: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding-top: 28px;
}

body.zen-mode .turntable {
  width: 340px;
  height: 340px;
}

body.zen-mode .vinyl-record {
  width: 320px;
  height: 320px;
}

/* ==========================================
   TOAST & RESPONSIVE
   ========================================== */
.music-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: rgba(16, 18, 26, 0.94);
  color: var(--text-ivory);
  border: 1px solid var(--border-warm);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.music-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .lounge-header {
    padding: 12px 16px;
  }
  .lounge-split {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 8px 16px 40px;
  }
  .stage-pane {
    position: relative;
    top: 0;
  }
}
