:root {
  --bg-base: #0c0e14;
  --bg-surface: #141824;
  --bg-card: #1c2233;
  --bg-card-hover: #232b40;
  --border-subtle: #27314a;
  --border-focus: #4e6294;
  --text-main: #f0f4fc;
  --text-muted: #8e9bb8;
  --text-dim: #5c6784;

  --color-user1: #38bdf8;
  --color-user1-glow: rgba(56, 189, 248, 0.25);
  --color-user1-bg: rgba(56, 189, 248, 0.08);

  --color-user2: #f43f5e;
  --color-user2-glow: rgba(244, 63, 94, 0.25);
  --color-user2-bg: rgba(244, 63, 94, 0.08);

  --color-accent: #818cf8;
  --color-spotify: #1db954;
  --color-apple: #fc3c44;
  --color-youtube: #ff0000;
  --color-amber: #fbbf24;
  --color-emerald: #10b981;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --left-split-pct: 50%;
  --right-split-pct: 50%;
}

:root[data-theme="light"],
html.light-theme {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-subtle: #e2e8f0;
  --border-focus: #94a3b8;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --color-user1: #0284c7;
  --color-user1-glow: rgba(2, 132, 199, 0.2);
  --color-user1-bg: rgba(2, 132, 199, 0.08);

  --color-user2: #e11d48;
  --color-user2-glow: rgba(225, 29, 72, 0.2);
  --color-user2-bg: rgba(225, 29, 72, 0.08);

  --color-accent: #6366f1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.4;
}

/* ==========================================================================
   Soundstage Layout & Postures (L | C | R)
   ========================================================================== */
body.soundstage-room {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.soundstage-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.exchange-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
  position: relative;
  background: #080a0f;
}

.col-playlist {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), min-width 0.35s, flex 0.35s;
  overflow: hidden;
  position: relative;
}

.col-header {
  flex-shrink: 0;
}

.song-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #27314a transparent;
}

.song-list::-webkit-scrollbar {
  width: 6px;
}

.song-list::-webkit-scrollbar-track {
  background: transparent;
}

.song-list::-webkit-scrollbar-thumb {
  background: #27314a;
  border-radius: 9999px;
}

.song-list::-webkit-scrollbar-thumb:hover {
  background: #4e6294;
}

#colUser1 {
  width: var(--left-split-pct);
  background: radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.04), transparent 50%), #0d1017;
  border-right: 1px solid var(--border-subtle);
}

#colUser2 {
  width: var(--right-split-pct);
  background: radial-gradient(circle at 90% 20%, rgba(244, 63, 94, 0.04), transparent 50%), #0d1017;
}

/* ==========================================================================
   Collapsed Micro-Spine Mode (16% Width)
   ========================================================================== */
.col-playlist.is-collapsed {
  cursor: pointer;
}
.col-playlist.is-collapsed .col-header .user-text,
.col-playlist.is-collapsed .col-header .col-stats,
.col-playlist.is-collapsed .col-header .col-header-meta,
.col-playlist.is-collapsed .col-header .view-toggle-group,
.col-playlist.is-collapsed .col-header .crate-flipper-wrap,
.col-playlist.is-collapsed .song-card .song-info,
.col-playlist.is-collapsed .song-card .song-note,
.col-playlist.is-collapsed .song-card .song-footer,
.col-playlist.is-collapsed .song-card .comment-accordion,
.col-playlist.is-collapsed .empty-state {
  display: none !important;
}

.col-playlist.is-collapsed .col-header {
  padding: 12px 6px;
  justify-content: center;
}

.col-playlist.is-collapsed .song-list {
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.col-playlist.is-collapsed .song-card {
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  overflow: visible;
  position: relative;
}

.col-playlist.is-collapsed .song-top-row {
  margin-bottom: 0;
  display: block;
}

.col-playlist.is-collapsed .song-art {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.15s, border-color 0.15s;
}

.col-playlist.is-collapsed .song-card:hover .song-art {
  transform: scale(1.15);
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 10;
}

/* Tooltip on collapsed tile hover */
.col-playlist.is-collapsed .song-card::after {
  content: attr(data-title);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #1b2131;
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  border: 1px solid var(--border-focus);
  z-index: 30;
}

#colUser1.is-collapsed .song-card::after {
  left: 44px;
}
#colUser2.is-collapsed .song-card::after {
  right: 44px;
}
.col-playlist.is-collapsed .song-card:hover::after {
  opacity: 1;
}

/* ==========================================================================
   ( L | C | R ) Mode Selector
   Only visible when the window is narrower than 1024px
   ========================================================================== */
.lcr-selector {
  display: inline-flex;
  background: #141926;
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
@media (min-width: 1024px) {
  .lcr-selector {
    display: none !important;
  }
}
.lcr-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.lcr-btn:hover {
  color: var(--text-main);
}
.lcr-btn.active {
  background: var(--bg-card);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  border: 1px solid var(--border-focus);
}
.lcr-glyph {
  font-size: 14px;
  opacity: 0.8;
}

/* ==========================================================================
   Crate-Flipping Scroll Indicator Animation (Records fanning out)
   ========================================================================== */
.crate-flipper-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.25;
  transition: opacity 0.25s ease;
}
.crate-flipper-wrap.active {
  opacity: 1;
}

.crate-records {
  position: relative;
  width: 24px;
  height: 24px;
}

.crate-sleeve {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.2);
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease;
}

.sleeve-1 {
  background: #334155;
  transform: rotate(-10deg) translate(-2px, 0);
}
.sleeve-2 {
  background: #475569;
  transform: rotate(0deg);
}
.sleeve-3 {
  background: #64748b;
  transform: rotate(10deg) translate(2px, 0);
}

.crate-flipper-wrap.active .sleeve-1 {
  animation: flipSleeve1 0.4s infinite alternate ease-in-out;
}
.crate-flipper-wrap.active .sleeve-2 {
  animation: flipSleeve2 0.4s infinite alternate ease-in-out 0.1s;
}
.crate-flipper-wrap.active .sleeve-3 {
  animation: flipSleeve3 0.4s infinite alternate ease-in-out 0.2s;
}

@keyframes flipSleeve1 {
  0% { transform: rotate(-25deg) translateY(-2px); }
  100% { transform: rotate(-5deg) translateY(1px); }
}
@keyframes flipSleeve2 {
  0% { transform: rotate(-5deg) translateY(0); }
  100% { transform: rotate(8deg) translateY(-3px); }
}
@keyframes flipSleeve3 {
  0% { transform: rotate(10deg) translateY(1px); }
  100% { transform: rotate(28deg) translateY(-2px); }
}

.crate-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-amber);
}

/* ==========================================================================
   Animated Audio Equalizer Bars (Waveform)
   ========================================================================== */
.equalizer-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  padding: 0 4px;
}
.eq-bar {
  width: 3px;
  background: var(--color-emerald);
  border-radius: 1px;
  animation: bounceBar 0.8s infinite ease-in-out alternate;
}
.eq-bar:nth-child(1) { height: 40%; animation-duration: 0.6s; }
.eq-bar:nth-child(2) { height: 100%; animation-duration: 0.9s; }
.eq-bar:nth-child(3) { height: 60%; animation-duration: 0.7s; }
.eq-bar:nth-child(4) { height: 80%; animation-duration: 0.5s; }

@keyframes bounceBar {
  0% { height: 20%; }
  100% { height: 100%; }
}

/* ==========================================================================
   Song Cards & Accordion
   ========================================================================== */
.song-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.song-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}
.song-card.now-playing {
  border-color: var(--color-emerald);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.song-top-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.song-art {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.song-info {
  flex: 1;
  min-width: 0;
}
.song-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-artist {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 5px;
}
.tag-pill.mood {
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.3);
  color: #c7d2fe;
}

.song-note {
  font-size: 12.5px;
  line-height: 1.45;
  color: #d1d9ec;
  font-style: italic;
  padding: 8px 11px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  border-left: 3px solid;
  margin-bottom: 12px;
}
.note-user1 {
  border-left-color: var(--color-user1);
}
.note-user2 {
  border-left-color: var(--color-user2);
}

.song-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.streaming-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stream-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #121723;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}
.stream-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.stream-btn:hover {
  background: #20293d;
  color: #fff;
  border-color: var(--border-focus);
}
.stream-btn:hover svg {
  transform: scale(1.1);
}
.stream-btn.btn-spotify:hover {
  color: var(--color-spotify);
  border-color: rgba(29, 185, 84, 0.5);
  background: rgba(29, 185, 84, 0.12);
}
.stream-btn.btn-apple:hover {
  color: var(--color-apple);
  border-color: rgba(252, 60, 68, 0.5);
  background: rgba(252, 60, 68, 0.12);
}
.stream-btn.btn-youtube:hover {
  color: var(--color-youtube);
  border-color: rgba(255, 0, 0, 0.5);
  background: rgba(255, 0, 0, 0.12);
}
.stream-btn.btn-songlink:hover {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.12);
}
.stream-btn.is-preferred {
  border-color: var(--color-accent);
  background: rgba(129, 140, 248, 0.2);
  color: #fff;
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.4);
}
.stream-btn.btn-spotify.is-preferred {
  border-color: var(--color-spotify);
  color: var(--color-spotify);
  background: rgba(29, 185, 84, 0.18);
  box-shadow: 0 0 8px rgba(29, 185, 84, 0.4);
}
.stream-btn.btn-apple.is-preferred {
  border-color: var(--color-apple);
  color: var(--color-apple);
  background: rgba(252, 60, 68, 0.18);
  box-shadow: 0 0 8px rgba(252, 60, 68, 0.4);
}
.stream-btn.btn-youtube.is-preferred {
  border-color: var(--color-youtube);
  color: var(--color-youtube);
  background: rgba(255, 0, 0, 0.18);
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

.action-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.action-btn {
  background: #141926;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.action-btn:hover {
  background: #1e2638;
  color: #fff;
}
.action-btn.active-listened {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}
.action-btn.active-loved {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.5);
  color: #fda4af;
}

/* Accordion Drawer */
.comment-accordion {
  margin-top: 10px;
  background: #111520;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: none;
}
.comment-accordion.is-open {
  display: block;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.comment-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.comment-bubble {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.35;
  background: #171d2c;
  border: 1px solid rgba(255,255,255,0.04);
}
.comment-bubble.from-user1 {
  border-left: 3px solid var(--color-user1);
}
.comment-bubble.from-user2 {
  border-left: 3px solid var(--color-user2);
}
.comment-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-dim);
  margin-bottom: 3px;
  font-weight: 600;
}

.comment-form {
  display: flex;
  padding: 8px;
  background: #0d1017;
  border-top: 1px solid var(--border-subtle);
  gap: 6px;
}
.comment-input {
  flex: 1;
  background: #161c28;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 12px;
  color: #fff;
  outline: none;
}
.comment-input:focus {
  border-color: var(--color-accent);
}
.comment-submit {
  background: var(--color-accent);
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* ==========================================================================
   Column View Toggle & Compact (2-Line) Rows
   ========================================================================== */
.col-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.view-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #141a27;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 22px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-toggle-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.view-toggle-btn.active {
  background: #222b3e;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

#colUser1 .view-toggle-btn.active {
  color: var(--color-user1);
}

#colUser2 .view-toggle-btn.active {
  color: var(--color-user2);
}

/* Default / Full Cards Mode Elements */
.song-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.song-artist-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.compact-note-indicator {
  display: none;
}

.compact-tag-inline {
  display: none;
}

.compact-note-accordion {
  display: none;
}

.song-tags-cloud {
  display: flex;
}

/* ==========================================================================
   Compact 2-Line Row View & Single-Card Expansion
   ========================================================================== */
.col-playlist.is-compact .song-card {
  cursor: pointer;
  transition: padding 0.15s ease, margin 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.col-playlist.is-compact .song-card:not(.is-expanded) {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
  min-height: 52px;
}

.col-playlist.is-compact .song-card:not(.is-expanded) .song-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 0%;
  min-width: 0;
  margin-bottom: 0;
}

.col-playlist.is-compact .song-card:not(.is-expanded) .song-art {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.col-playlist.is-compact .song-card:not(.is-expanded) .song-info {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.col-playlist.is-compact .song-card:not(.is-expanded) .song-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.col-playlist.is-compact .song-card:not(.is-expanded) .song-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-playlist.is-compact .song-card:not(.is-expanded) .compact-note-indicator {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  cursor: help;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.col-playlist.is-compact .song-card:not(.is-expanded) .compact-note-indicator:hover {
  opacity: 1;
  transform: scale(1.15);
}

.col-playlist.is-compact .song-card:not(.is-expanded) .song-artist-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 1px;
}

.col-playlist.is-compact .song-card:not(.is-expanded) .song-artist {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0;
}

.col-playlist.is-compact .song-card:not(.is-expanded) .compact-tag-inline {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 500;
  color: #818cf8;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  padding: 0 5px;
  border-radius: 4px;
  line-height: 16px;
  flex-shrink: 0;
}

/* Hide multi-pill tag cloud and full note box in compact 2-line mode */
.col-playlist.is-compact .song-card:not(.is-expanded) .song-tags-cloud {
  display: none !important;
}
.col-playlist.is-compact .song-card:not(.is-expanded) .song-note {
  display: none !important;
}

/* Compact right-side controls */
.col-playlist.is-compact .song-card:not(.is-expanded) .song-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: none;
  padding-top: 0;
  flex-shrink: 0;
  margin-left: 8px;
}

.col-playlist.is-compact .song-card:not(.is-expanded) .streaming-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.col-playlist.is-compact .song-card:not(.is-expanded) .stream-btn {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}
.col-playlist.is-compact .song-card:not(.is-expanded) .stream-btn svg {
  width: 12px;
  height: 12px;
}

.col-playlist.is-compact .song-card:not(.is-expanded) .action-btn-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.col-playlist.is-compact .song-card:not(.is-expanded) .action-btn {
  padding: 2px 7px;
  font-size: 11px;
  height: 22px;
  gap: 3px;
}

/* Full-width accordion drawer expansion in compact mode */
.col-playlist.is-compact .song-card:not(.is-expanded) .comment-accordion {
  width: 100%;
  flex-basis: 100%;
  margin-top: 8px;
}

.col-playlist.is-compact .song-card:not(.is-expanded) .compact-note-accordion {
  display: block;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
  border-left: 3px solid;
  font-size: 12px;
  line-height: 1.4;
}

/* Expanded Card in Compact Mode: Returns to Full Card Size with Distinct Focus Highlight */
.col-playlist.is-compact .song-card.is-expanded {
  margin-bottom: 12px;
  border-color: var(--border-focus);
  animation: cardExpand 0.15s ease-out;
}

#colUser1.is-compact .song-card.is-expanded {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15), 0 4px 16px rgba(0, 0, 0, 0.3);
}

#colUser2.is-compact .song-card.is-expanded {
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.15), 0 4px 16px rgba(0, 0, 0, 0.3);
}

@keyframes cardExpand {
  from { opacity: 0.88; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

.compact-note-accordion-header {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.compact-note-accordion-body {
  font-style: italic;
  color: #d1d9ec;
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}
.empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #161c2b;
  border: 2px dashed var(--border-focus);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
  color: var(--text-dim);
}
.empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.empty-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 260px;
  margin-bottom: 18px;
}

/* ==========================================================================
   Modals & Slide-over Drawers
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 16px;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 22px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}
.modal-backdrop.open .modal-panel {
  transform: translateY(0) scale(1);
}

/* Activity Slide-over Drawer */
.activity-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 360px;
  max-width: 90vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-focus);
  box-shadow: -10px 0 40px rgba(0,0,0,0.8);
  z-index: 150;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.activity-drawer.open {
  transform: translateX(0);
}
.drawer-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.activity-item {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.4;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

/* ==========================================================================
   Filter Section & Panel
   ========================================================================== */
.filter-trigger-btn {
  user-select: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-trigger-btn:hover {
  border-color: var(--border-focus);
  background: #20293d;
}
.filter-trigger-btn.has-active {
  background: rgba(129, 140, 248, 0.18);
  border-color: rgba(129, 140, 248, 0.5);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.25);
}

.active-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(129, 140, 248, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.45);
  color: #c7d2fe;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  animation: popIn 0.15s ease-out;
}
.active-filter-remove {
  cursor: pointer;
  font-size: 10px;
  opacity: 0.7;
  margin-left: 2px;
  transition: opacity 0.15s;
}
.active-filter-remove:hover {
  opacity: 1;
  color: #ffffff;
}

.filter-checkbox-item {
  transition: all 0.15s ease;
}
.filter-checkbox-item:hover {
  background: #171d2b;
  border-color: var(--border-focus);
}
.filter-checkbox-item.is-checked {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.5);
  color: #ffffff;
}

.filter-chip {
  background: #182030;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.filter-chip:hover {
  background: #232c42;
  color: #ffffff;
  border-color: var(--border-focus);
}
.filter-chip.active {
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
  border-color: var(--color-accent);
  box-shadow: 0 2px 10px rgba(129, 140, 248, 0.4);
}

/* ==========================================================================
   Multi-Tag Selector Modal
   ========================================================================== */
.tag-btn {
  transition: all 0.15s ease;
  user-select: none;
  cursor: pointer;
}
.tag-btn:hover {
  border-color: var(--border-focus);
  color: #ffffff;
}
.tag-btn.is-selected {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(168, 85, 247, 0.9)) !important;
  border-color: rgba(168, 85, 247, 0.8) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}
.tag-btn.is-hidden {
  display: none !important;
}

.selected-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(129, 140, 248, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #c7d2fe;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  animation: popIn 0.15s ease-out;
}
.selected-tag-remove {
  cursor: pointer;
  opacity: 0.7;
  font-size: 10px;
  transition: opacity 0.15s;
}
.selected-tag-remove:hover {
  opacity: 1;
  color: #fff;
}

@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.tag-picker-scroll::-webkit-scrollbar {
  width: 5px;
}
.tag-picker-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.tag-picker-scroll::-webkit-scrollbar-thumb {
  background: #27314a;
  border-radius: 9999px;
}
.tag-picker-scroll::-webkit-scrollbar-thumb:hover {
  background: #4e6294;
}

/* ==========================================================================
   URL Drag & Drop Soundstage Zones
   ========================================================================== */
.top-drop-zone {
  position: relative;
  transition: box-shadow 0.2s ease, outline 0.2s ease;
}

/* Subtle visual invitation while dragging anywhere on window */
body.drag-in-progress .top-drop-zone {
  outline: 2px dashed rgba(129, 140, 248, 0.45);
  outline-offset: -2px;
}

/* Active drop hover over top bar */
.top-drop-zone.drag-active {
  outline: 2px dashed rgba(129, 140, 248, 0.95) !important;
  outline-offset: -2px;
  box-shadow: 0 4px 30px rgba(99, 102, 241, 0.45);
}

.top-drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 26, 0.88);
  backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-in-out;
}

.top-drop-zone.drag-active .top-drop-overlay {
  opacity: 1;
}

.top-drop-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #161e30;
  border: 1.5px solid rgba(129, 140, 248, 0.85);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(99, 102, 241, 0.45);
  transform: scale(0.95);
  transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.top-drop-zone.drag-active .top-drop-badge {
  transform: scale(1);
}

.top-drop-icon {
  font-size: 24px;
  display: inline-block;
  animation: bounceDrop 0.75s infinite alternate ease-in-out;
}

@keyframes bounceDrop {
  0% { transform: translateY(-2px); }
  100% { transform: translateY(3px); }
}

.top-drop-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.top-drop-subtitle {
  font-size: 10.5px;
  font-weight: 500;
  color: #94a3b8;
}

/* Profile Header Buttons & Settings Overlay */
.profile-header-btn {
  user-select: none;
  cursor: pointer;
  background: transparent;
  border: none;
}

.profile-header-btn:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.6);
  outline-offset: 2px;
}

.provider-option-card {
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.provider-option-card:hover {
  transform: translateY(-1px);
}

.provider-option-card:active {
  transform: scale(0.97);
}

/* ==========================================================================
   Theme Toggle Button & Light Theme Overrides
   ========================================================================== */
.theme-toggle-btn {
  background: #182030;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.theme-toggle-btn:hover {
  background: #20293d;
  color: #ffffff;
  border-color: var(--border-focus);
}
.theme-toggle-icon {
  font-size: 13px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease;
}
.theme-toggle-btn:hover .theme-toggle-icon {
  transform: rotate(15deg) scale(1.1);
}

/* Base Light Theme Overrides */
html.light-theme,
html[data-theme="light"] {
  color-scheme: light;
}

html.light-theme body,
html[data-theme="light"] body {
  background-color: var(--bg-base) !important;
  color: var(--text-main) !important;
}

/* Top Navigation & Header */
html.light-theme header,
html[data-theme="light"] header {
  background-color: rgba(255, 255, 255, 0.88) !important;
  border-bottom-color: #e2e8f0 !important;
}
html.light-theme header h1,
html[data-theme="light"] header h1 {
  color: #0f172a !important;
}
html.light-theme header .text-slate-400,
html[data-theme="light"] header .text-slate-400 {
  color: #64748b !important;
}
html.light-theme header button:not(.bg-gradient-to-r),
html[data-theme="light"] header button:not(.bg-gradient-to-r),
html.light-theme .theme-toggle-btn,
html[data-theme="light"] .theme-toggle-btn {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
html.light-theme header button:not(.bg-gradient-to-r):hover,
html[data-theme="light"] header button:not(.bg-gradient-to-r):hover,
html.light-theme .theme-toggle-btn:hover,
html[data-theme="light"] .theme-toggle-btn:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Persona Switcher */
html.light-theme .inline-flex.items-center.gap-1.bg-\[\#182030\],
html[data-theme="light"] .inline-flex.items-center.gap-1.bg-\[\#182030\] {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

/* Filter Bar */
html.light-theme #topDropZone > div:nth-child(3),
html[data-theme="light"] #topDropZone > div:nth-child(3),
html.light-theme .bg-\[\#101420\],
html[data-theme="light"] .bg-\[\#101420\] {
  background-color: #f8fafc !important;
  border-bottom-color: #e2e8f0 !important;
}
html.light-theme .filter-trigger-btn,
html[data-theme="light"] .filter-trigger-btn {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}
html.light-theme .filter-trigger-btn:hover,
html[data-theme="light"] .filter-trigger-btn:hover {
  background-color: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}
html.light-theme .filter-trigger-btn.has-active,
html[data-theme="light"] .filter-trigger-btn.has-active {
  background-color: #eef2ff !important;
  border-color: #818cf8 !important;
  color: #3730a3 !important;
}
html.light-theme .active-filter-badge,
html[data-theme="light"] .active-filter-badge {
  background: #eef2ff !important;
  border-color: #c7d2fe !important;
  color: #4338ca !important;
}

/* LCR Mode Selector */
html.light-theme .lcr-selector,
html[data-theme="light"] .lcr-selector {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}
html.light-theme .lcr-btn,
html[data-theme="light"] .lcr-btn {
  color: #64748b !important;
}
html.light-theme .lcr-btn:hover,
html[data-theme="light"] .lcr-btn:hover {
  color: #0f172a !important;
}
html.light-theme .lcr-btn.active,
html[data-theme="light"] .lcr-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
}

/* Exchange Workspace & Columns */
html.light-theme .exchange-workspace,
html[data-theme="light"] .exchange-workspace {
  background: #f1f5f9 !important;
}
html.light-theme #colUser1,
html[data-theme="light"] #colUser1 {
  background: radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.05), transparent 50%), #ffffff !important;
  border-right-color: #e2e8f0 !important;
}
html.light-theme #colUser2,
html[data-theme="light"] #colUser2 {
  background: radial-gradient(circle at 90% 20%, rgba(225, 29, 72, 0.05), transparent 50%), #ffffff !important;
}
html.light-theme .col-header,
html[data-theme="light"] .col-header {
  background-color: #f8fafc !important;
  border-bottom-color: #e2e8f0 !important;
}
html.light-theme .col-header .text-white,
html[data-theme="light"] .col-header .text-white {
  color: #0f172a !important;
}
html.light-theme .col-header .profile-header-btn:hover,
html[data-theme="light"] .col-header .profile-header-btn:hover {
  background-color: #e2e8f0 !important;
}
html.light-theme .col-stats,
html[data-theme="light"] .col-stats {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

/* Song Cards */
html.light-theme .song-card,
html[data-theme="light"] .song-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}
html.light-theme .song-card:hover,
html[data-theme="light"] .song-card:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}
html.light-theme .song-title,
html[data-theme="light"] .song-title {
  color: #0f172a !important;
}
html.light-theme .song-artist,
html[data-theme="light"] .song-artist {
  color: #64748b !important;
}
html.light-theme .song-note,
html[data-theme="light"] .song-note {
  background: #f1f5f9 !important;
  color: #334155 !important;
}
html.light-theme .tag-pill,
html[data-theme="light"] .tag-pill {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}
html.light-theme .tag-pill.mood,
html[data-theme="light"] .tag-pill.mood {
  background: #eef2ff !important;
  border-color: #c7d2fe !important;
  color: #4338ca !important;
}
html.light-theme .tag-pill.mood:hover,
html[data-theme="light"] .tag-pill.mood:hover {
  background: #e0e7ff !important;
  border-color: #a5b4fc !important;
  color: #3730a3 !important;
}
html.light-theme .stream-btn,
html[data-theme="light"] .stream-btn {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
}
html.light-theme .stream-btn:hover,
html[data-theme="light"] .stream-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}
html.light-theme .action-btn,
html[data-theme="light"] .action-btn {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}
html.light-theme .action-btn:hover,
html[data-theme="light"] .action-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}
html.light-theme .comment-accordion,
html[data-theme="light"] .comment-accordion {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html.light-theme .comment-bubble,
html[data-theme="light"] .comment-bubble {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
}
html.light-theme .comment-meta,
html[data-theme="light"] .comment-meta {
  color: #64748b !important;
}
html.light-theme .comment-form,
html[data-theme="light"] .comment-form {
  background: #f1f5f9 !important;
  border-top-color: #e2e8f0 !important;
}
html.light-theme .comment-input,
html[data-theme="light"] .comment-input {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* View Toggle (Light Theme) */
html.light-theme .view-toggle-group,
html[data-theme="light"] .view-toggle-group {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

html.light-theme .view-toggle-btn,
html[data-theme="light"] .view-toggle-btn {
  color: #64748b !important;
}

html.light-theme .view-toggle-btn:hover,
html[data-theme="light"] .view-toggle-btn:hover {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.05) !important;
}

html.light-theme .view-toggle-btn.active,
html[data-theme="light"] .view-toggle-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

html.light-theme #colUser1 .view-toggle-btn.active,
html[data-theme="light"] #colUser1 .view-toggle-btn.active {
  color: #0284c7 !important;
}

html.light-theme #colUser2 .view-toggle-btn.active,
html[data-theme="light"] #colUser2 .view-toggle-btn.active {
  color: #e11d48 !important;
}

html.light-theme .compact-note-accordion,
html[data-theme="light"] .compact-note-accordion {
  background: #f8fafc !important;
  border-bottom-color: #e2e8f0 !important;
}

html.light-theme .compact-note-accordion-body,
html[data-theme="light"] .compact-note-accordion-body {
  color: #334155 !important;
}

html.light-theme #colUser1.is-compact .song-card.is-expanded,
html[data-theme="light"] #colUser1.is-compact .song-card.is-expanded {
  border-color: rgba(2, 132, 199, 0.45) !important;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

html.light-theme #colUser2.is-compact .song-card.is-expanded,
html[data-theme="light"] #colUser2.is-compact .song-card.is-expanded {
  border-color: rgba(225, 29, 72, 0.45) !important;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

/* Empty State */
html.light-theme .empty-state,
html[data-theme="light"] .empty-state {
  color: #64748b !important;
}
html.light-theme .empty-title,
html[data-theme="light"] .empty-title {
  color: #0f172a !important;
}
html.light-theme .empty-desc,
html[data-theme="light"] .empty-desc {
  color: #64748b !important;
}
html.light-theme .empty-icon,
html[data-theme="light"] .empty-icon {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
}

/* Modals & Slide-over Drawers */
html.light-theme .modal-backdrop,
html[data-theme="light"] .modal-backdrop {
  background: rgba(15, 23, 42, 0.45) !important;
}
html.light-theme .modal-panel,
html[data-theme="light"] .modal-panel {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15) !important;
}
html.light-theme .modal-panel h3,
html[data-theme="light"] .modal-panel h3 {
  color: #0f172a !important;
}
html.light-theme .modal-panel .text-white,
html[data-theme="light"] .modal-panel .text-white {
  color: #0f172a !important;
}
html.light-theme .modal-panel .text-slate-400,
html[data-theme="light"] .modal-panel .text-slate-400 {
  color: #64748b !important;
}
html.light-theme .modal-panel .text-slate-300,
html[data-theme="light"] .modal-panel .text-slate-300 {
  color: #334155 !important;
}
html.light-theme .modal-panel .text-slate-200,
html[data-theme="light"] .modal-panel .text-slate-200 {
  color: #1e293b !important;
}
html.light-theme .modal-panel .border-slate-800,
html[data-theme="light"] .modal-panel .border-slate-800,
html.light-theme .modal-panel .border-slate-700,
html[data-theme="light"] .modal-panel .border-slate-700 {
  border-color: #e2e8f0 !important;
}
html.light-theme .modal-panel input[type="text"],
html[data-theme="light"] .modal-panel input[type="text"],
html.light-theme .modal-panel input[type="url"],
html[data-theme="light"] .modal-panel input[type="url"],
html.light-theme .modal-panel textarea,
html[data-theme="light"] .modal-panel textarea,
html.light-theme .modal-panel select,
html[data-theme="light"] .modal-panel select {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html.light-theme .modal-panel input::placeholder,
html[data-theme="light"] .modal-panel input::placeholder,
html.light-theme .modal-panel textarea::placeholder,
html[data-theme="light"] .modal-panel textarea::placeholder {
  color: #94a3b8 !important;
}
html.light-theme #selectedTagsContainer,
html[data-theme="light"] #selectedTagsContainer {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
}
html.light-theme #tagButtonsGrid,
html[data-theme="light"] #tagButtonsGrid {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html.light-theme .tag-btn,
html[data-theme="light"] .tag-btn {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
html.light-theme .tag-btn:hover,
html[data-theme="light"] .tag-btn:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}
html.light-theme .filter-checkbox-item,
html[data-theme="light"] .filter-checkbox-item {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}
html.light-theme .filter-checkbox-item:hover,
html[data-theme="light"] .filter-checkbox-item:hover {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}
html.light-theme .filter-checkbox-item.is-checked,
html[data-theme="light"] .filter-checkbox-item.is-checked {
  background-color: #eef2ff !important;
  border-color: #818cf8 !important;
  color: #312e81 !important;
}

/* Profile & Settings Modal - Light Theme Overrides */
html.light-theme .modal-panel .profile-modal-close-btn,
html[data-theme="light"] .modal-panel .profile-modal-close-btn,
html.light-theme .modal-panel button.text-slate-400,
html[data-theme="light"] .modal-panel button.text-slate-400 {
  color: #64748b !important;
}
html.light-theme .modal-panel .profile-modal-close-btn:hover,
html[data-theme="light"] .modal-panel .profile-modal-close-btn:hover,
html.light-theme .modal-panel button.text-slate-400:hover,
html[data-theme="light"] .modal-panel button.text-slate-400:hover {
  color: #0f172a !important;
}

html.light-theme .profile-avatar-user1,
html[data-theme="light"] .profile-avatar-user1 {
  background-color: #e0f2fe !important;
  border-color: #7dd3fc !important;
  color: #0369a1 !important;
}
html.light-theme .profile-avatar-user2,
html[data-theme="light"] .profile-avatar-user2 {
  background-color: #ffe4e6 !important;
  border-color: #fda4af !important;
  color: #be123c !important;
}
html.light-theme .profile-badge-user1,
html[data-theme="light"] .profile-badge-user1 {
  background-color: #f0f9ff !important;
  border-color: #bae6fd !important;
  color: #0284c7 !important;
}
html.light-theme .profile-badge-user2,
html[data-theme="light"] .profile-badge-user2 {
  background-color: #fff1f2 !important;
  border-color: #fecdd3 !important;
  color: #e11d48 !important;
}
html.light-theme .profile-curator-badge,
html[data-theme="light"] .profile-curator-badge {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

html.light-theme #profileModal .profile-section-box,
html[data-theme="light"] #profileModal .profile-section-box,
html.light-theme #profileModal .bg-\[\#0e121a\],
html[data-theme="light"] #profileModal .bg-\[\#0e121a\] {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.light-theme #profileModal .profile-stat-box,
html[data-theme="light"] #profileModal .profile-stat-box,
html.light-theme #profileModal .bg-\[\#121624\],
html[data-theme="light"] #profileModal .bg-\[\#121624\] {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

html.light-theme #profileModal .text-sky-400,
html[data-theme="light"] #profileModal .text-sky-400 {
  color: #0284c7 !important;
}
html.light-theme #profileModal .text-rose-400,
html[data-theme="light"] #profileModal .text-rose-400 {
  color: #e11d48 !important;
}
html.light-theme #profileModal .text-amber-400,
html[data-theme="light"] #profileModal .text-amber-400 {
  color: #d97706 !important;
}

html.light-theme #profileViewUser1 .profile-vibe-pill,
html[data-theme="light"] #profileViewUser1 .profile-vibe-pill {
  background-color: #f0f9ff !important;
  border-color: #bae6fd !important;
  color: #0284c7 !important;
}
html.light-theme #profileViewUser2 .profile-vibe-pill,
html[data-theme="light"] #profileViewUser2 .profile-vibe-pill {
  background-color: #fff1f2 !important;
  border-color: #fecdd3 !important;
  color: #e11d48 !important;
}

html.light-theme #profileModal .profile-provider-badge,
html[data-theme="light"] #profileModal .profile-provider-badge,
html.light-theme #profileModal .bg-\[\#141b29\],
html[data-theme="light"] #profileModal .bg-\[\#141b29\] {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

html.light-theme #profileModal .provider-option-card,
html[data-theme="light"] #profileModal .provider-option-card {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}
html.light-theme #profileModal .provider-option-card:hover,
html[data-theme="light"] #profileModal .provider-option-card:hover {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light-theme #profileModal .provider-option-card.is-selected.provider-spotify,
html[data-theme="light"] #profileModal .provider-option-card.is-selected.provider-spotify,
html.light-theme #profileModal .provider-option-card:has(input[value="spotify"]:checked),
html[data-theme="light"] #profileModal .provider-option-card:has(input[value="spotify"]:checked) {
  background-color: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25) !important;
}

html.light-theme #profileModal .provider-option-card.is-selected.provider-apple,
html[data-theme="light"] #profileModal .provider-option-card.is-selected.provider-apple,
html.light-theme #profileModal .provider-option-card:has(input[value="apple"]:checked),
html[data-theme="light"] #profileModal .provider-option-card:has(input[value="apple"]:checked) {
  background-color: #fff1f2 !important;
  border-color: #f43f5e !important;
  color: #9f1239 !important;
  box-shadow: 0 0 0 1px rgba(244, 63, 94, 0.25) !important;
}

html.light-theme #profileModal .provider-option-card.is-selected.provider-youtube,
html[data-theme="light"] #profileModal .provider-option-card.is-selected.provider-youtube,
html.light-theme #profileModal .provider-option-card:has(input[value="youtube"]:checked),
html[data-theme="light"] #profileModal .provider-option-card:has(input[value="youtube"]:checked) {
  background-color: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.25) !important;
}

html.light-theme #profileModal .profile-close-btn,
html[data-theme="light"] #profileModal .profile-close-btn,
html.light-theme #profileModal button.bg-slate-800,
html[data-theme="light"] #profileModal button.bg-slate-800 {
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}
html.light-theme #profileModal .profile-close-btn:hover,
html[data-theme="light"] #profileModal .profile-close-btn:hover,
html.light-theme #profileModal button.bg-slate-800:hover,
html[data-theme="light"] #profileModal button.bg-slate-800:hover {
  background-color: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

html.light-theme #profileModal .profile-cancel-btn,
html[data-theme="light"] #profileModal .profile-cancel-btn {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
html.light-theme #profileModal .profile-cancel-btn:hover,
html[data-theme="light"] #profileModal .profile-cancel-btn:hover {
  background-color: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

html.light-theme .modal-panel button.hover\:bg-slate-800:hover,
html[data-theme="light"] .modal-panel button.hover\:bg-slate-800:hover {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light-theme #profileModal .text-emerald-400,
html[data-theme="light"] #profileModal .text-emerald-400 {
  color: #059669 !important;
}
html.light-theme .activity-drawer,
html[data-theme="light"] .activity-drawer {
  background: #ffffff !important;
  border-left-color: #e2e8f0 !important;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.1) !important;
}
html.light-theme .drawer-header,
html[data-theme="light"] .drawer-header {
  border-bottom-color: #e2e8f0 !important;
}
html.light-theme .drawer-header h3,
html[data-theme="light"] .drawer-header h3 {
  color: #0f172a !important;
}
html.light-theme .activity-item,
html[data-theme="light"] .activity-item {
  border-bottom-color: #f1f5f9 !important;
  color: #334155 !important;
}

/* Scrollbars */
html.light-theme .song-list,
html[data-theme="light"] .song-list,
html.light-theme .comment-list,
html[data-theme="light"] .comment-list,
html.light-theme .tag-picker-scroll,
html[data-theme="light"] .tag-picker-scroll,
html.light-theme #filterCheckboxesGrid,
html[data-theme="light"] #filterCheckboxesGrid,
html.light-theme .drawer-body,
html[data-theme="light"] .drawer-body {
  scrollbar-color: #cbd5e1 transparent !important;
}
html.light-theme .song-list::-webkit-scrollbar-thumb,
html[data-theme="light"] .song-list::-webkit-scrollbar-thumb,
html.light-theme .tag-picker-scroll::-webkit-scrollbar-thumb,
html[data-theme="light"] .tag-picker-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
}
html.light-theme .song-list::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] .song-list::-webkit-scrollbar-thumb:hover,
html.light-theme .tag-picker-scroll::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] .tag-picker-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}

/* Index / Lobby Page */
html.light-theme .index-page-main,
html[data-theme="light"] .index-page-main {
  color: #0f172a !important;
}
html.light-theme .index-card,
html[data-theme="light"] .index-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08) !important;
}
html.light-theme .index-user-box-user1,
html[data-theme="light"] .index-user-box-user1 {
  background-color: #f0f9ff !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
}
html.light-theme .index-user-box-user2,
html[data-theme="light"] .index-user-box-user2 {
  background-color: #fff1f2 !important;
  border-color: rgba(225, 29, 72, 0.25) !important;
}
html.light-theme .index-card input,
html[data-theme="light"] .index-card input {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html.light-theme .existing-room-card,
html[data-theme="light"] .existing-room-card {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html.light-theme .existing-room-card:hover,
html[data-theme="light"] .existing-room-card:hover {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}
html.light-theme .existing-room-card .text-white,
html[data-theme="light"] .existing-room-card .text-white {
  color: #0f172a !important;
}



