/* ============================================================
   ALBUM CLICKER — style.css
   Dark cinematic theme with glassmorphism & neon effects
   ============================================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --bg:           #080810;
  --sidebar-bg:   #0d0d1f;
  --card-bg:      rgba(18, 18, 42, 0.7);
  --card-hover:   rgba(26, 26, 62, 0.85);
  --accent1:      #7c3aed;
  --accent2:      #ec4899;
  --heart:        #ff4d6d;
  --text:         #f8f8ff;
  --text-sub:     #a5b4fc;
  --green:        #22c55e;
  --gold:         #ffd700;
  --silver:       #c0c0c0;
  --bronze:       #cd7f32;
  --grad:         linear-gradient(135deg, var(--accent1), var(--accent2));
  --glow:         0 0 20px rgba(124, 58, 237, 0.6), 0 0 40px rgba(236, 72, 153, 0.3);
  --radius:       14px;
  --nav-h:        64px;
  --sidebar-w:    200px;
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---------- PARTICLE CANVAS ---------- */
#particles-canvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ---------- DYNAMIC BG BLUR ---------- */
#bg-blur {
  position: fixed; inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(80px) saturate(1.5);
  opacity: 0.15;
  z-index: 0;
  transition: background-image 1.5s ease;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(8, 8, 16, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  z-index: 9999;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-emoji { font-size: 1.8rem; }
.logo-text {
  font-family: 'Righteous', cursive;
  font-size: 1.6rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── NAVBAR "FIND US ON" LINK ─────────────────────────── */
.nav-find-us {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  flex: 1;
  text-align: center;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-find-us::before {
  content: '🎵';
  font-size: 1rem;
  animation: navIconPulse 2.5s ease-in-out infinite;
}
.nav-find-us strong {
  font-family: 'Righteous', cursive;
  font-size: 1.1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  letter-spacing: 0.5px;
  filter: drop-shadow(0 0 8px rgba(124,58,237,0.5));
  transition: filter 0.25s ease;
}
.nav-find-us:hover {
  color: rgba(255,255,255,1);
  transform: scale(1.03);
}
.nav-find-us:hover strong {
  filter: drop-shadow(0 0 14px rgba(236,72,153,0.7));
}
@keyframes navIconPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%       { transform: scale(1.2) rotate(-8deg); }
}
@media (max-width: 700px) { .nav-find-us { display: none; } }

.nav-btn {
  padding: 8px 16px;
  border-radius: 30px;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.share-btn {
  background: var(--grad);
  color: white;
}
.share-btn:hover { transform: scale(1.05); box-shadow: var(--glow); }

.leaderboard-btn {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.4);
}
.leaderboard-btn:hover { background: rgba(255, 215, 0, 0.25); }

.admin-btn {
  background: rgba(124, 58, 237, 0.2);
  color: var(--text-sub);
  border: 1px solid rgba(124, 58, 237, 0.4);
}
.admin-btn:hover { background: rgba(124, 58, 237, 0.35); color: white; }

.ycdsb-nav-btn {
  background: rgba(14, 165, 233, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(14, 165, 233, 0.4);
}
.ycdsb-nav-btn:hover { background: rgba(14, 165, 233, 0.3); color: white; }

.boost-badge, .req-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--heart);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}

/* ---------- SHARE BANNER ---------- */
.share-banner {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--grad);
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.9rem;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: slideDown 0.5s ease;
}
.share-banner-btn {
  background: white;
  color: var(--accent1);
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}

/* ---------- PRE-LIVE SCREEN ---------- */
.prelive-screen {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.prelive-content {
  text-align: center;
  max-width: 500px;
  padding: 40px;
}
.prelive-logo { font-size: 5rem; animation: float 3s ease-in-out infinite; }
.prelive-title {
  font-family: 'Righteous', cursive;
  font-size: 3rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 10px 0;
}
.prelive-pulse-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent2);
  margin: 20px auto;
  animation: pulseRing 2s ease-out infinite;
}
.prelive-subtitle {
  font-size: 1.8rem;
  font-family: 'Playfair Display', serif;
  color: var(--text);
  margin-bottom: 10px;
}
.prelive-text { color: var(--text-sub); margin-bottom: 24px; }
.prelive-qr {
  background: white;
  padding: 16px;
  border-radius: var(--radius);
  display: inline-block;
  margin: 20px auto;
}
.prelive-scan { font-size: 0.85rem; color: var(--text-sub); margin-bottom: 16px; }
.prelive-share {
  padding: 12px 28px !important;
  font-size: 1rem !important;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  background: rgba(13, 13, 31, 0.9);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: 80px;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--accent1); border-radius: 4px; }

.sidebar-header {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-sub);
  padding: 20px 16px 10px;
}

.genre-list { list-style: none; flex: 1; }
.genre-list li {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-sub);
  transition: var(--transition);
  border-left: 3px solid transparent;
  display: flex; align-items: center; gap: 8px;
}
.genre-list li:hover {
  background: rgba(124, 58, 237, 0.15);
  color: var(--text);
  border-left-color: var(--accent1);
}
.genre-list li.active {
  background: rgba(124, 58, 237, 0.25);
  color: white;
  border-left-color: var(--accent2);
  box-shadow: inset 0 0 20px rgba(124, 58, 237, 0.1);
}

.request-btn {
  margin: 12px 10px;
  padding: 10px;
  background: var(--grad);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  width: calc(100% - 20px);
}
.request-btn:hover { opacity: 0.85; transform: scale(1.02); }

/* ---------- NOW PLAYING PANEL ---------- */
.now-playing-panel {
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  flex-direction: column;
}

.now-playing-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Visible YouTube video container */
.yt-video-container {
  flex: 1;
  position: relative;
  background: #000;
  display: flex;
  flex-direction: column;
}

.yt-video-container #yt-player,
.yt-video-container #yt-player iframe {
  allow: autoplay; fullscreen;
  width: 100% !important;
  flex: 1;
  min-height: 0;
  display: block;
}

/* When nothing is playing yet, show a placeholder */
.yt-video-container.empty {
  background: radial-gradient(ellipse at center, #1a0a2e 0%, #080810 100%);
  align-items: center;
  justify-content: center;
}
.yt-placeholder {
  text-align: center;
  color: var(--text-sub);
}
.yt-placeholder-icon { font-size: 4rem; margin-bottom: 12px; }
.yt-placeholder-text { font-family: 'Raleway', sans-serif; font-size: 1rem; }

/* Song info overlay at bottom of video */
.album-art-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 20px 18px;
  background: linear-gradient(to top, rgba(8,8,16,0.95) 0%, rgba(8,8,16,0.5) 60%, transparent 100%);
  pointer-events: none;
}
.now-artist {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  color: var(--text-sub);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.now-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--text);
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
/* ── Cover Art Mode ─────────────────────────────────── */
.cover-art-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a0a2e 0%, #080810 100%);
  padding: 24px 20px;
  gap: 20px;
}
.cover-art-view.hidden { display: none !important; }

.cover-art-img-wrap {
  width: min(60%, 280px);
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.5), 0 2px 12px rgba(0,0,0,0.8);
}
.cover-art-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-art-info {
  text-align: center;
}
.cover-art-artist {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  color: var(--text-sub);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cover-art-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--text);
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  margin: 0;
}

/* Display toggle button accent */
.display-toggle-btn {
  background: rgba(124, 58, 237, 0.2) !important;
  border: 1px solid rgba(124, 58, 237, 0.4) !important;
}
.display-toggle-btn.active {
  background: rgba(124, 58, 237, 0.5) !important;
  border-color: var(--accent) !important;
}

.queue-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(8, 8, 20, 0.5);
  backdrop-filter: blur(10px);
}

.queue-header {
  padding: 16px 16px 8px;
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--accent2);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.genre-search-bar {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}
.genre-search-bar input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 30px;
  padding: 8px 14px;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}
.genre-search-bar input:focus { border-color: var(--accent2); box-shadow: 0 0 12px rgba(236,72,153,0.2); }
.genre-search-bar input::placeholder { color: var(--text-sub); }

.queue-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.queue-list::-webkit-scrollbar { width: 4px; }
.queue-list::-webkit-scrollbar-track { background: transparent; }
.queue-list::-webkit-scrollbar-thumb { background: var(--accent1); border-radius: 4px; }

/* ---------- SONG CARD ---------- */
.song-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 4px 8px;
  border-radius: var(--radius);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 58, 237, 0.15);
  cursor: default;
  transition: var(--transition);
  position: relative;
  overflow: visible;
}
.song-card:hover {
  background: var(--card-hover);
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 0 0 1px rgba(236,72,153,0.3), 0 8px 24px rgba(124, 58, 237, 0.25);
}

.song-rank {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  color: var(--text-sub);
  min-width: 22px;
  text-align: center;
}

.song-thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(124, 58, 237, 0.2);
  flex-shrink: 0;
}

.song-info {
  flex: 1;
  min-width: 0;
}
.song-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Nunito', sans-serif;
}
.song-artist {
  font-size: 0.75rem;
  color: var(--text-sub);
  font-family: 'Raleway', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-genre-tag {
  font-size: 0.62rem;
  background: rgba(124, 58, 237, 0.25);
  color: var(--text-sub);
  padding: 2px 6px;
  border-radius: 10px;
  margin-top: 2px;
  display: inline-block;
}

.heart-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  position: relative;
  width: 48px;
  min-width: 48px;
}

.heart-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
  transition: filter 0.15s ease;
  display: block;
  position: relative;
  z-index: 1;
  /* Larger tap target without changing visual size */
  padding: 8px;
  margin: -8px;
  /* Eliminate 300 ms tap delay & blue iOS highlight */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.heart-btn:hover { filter: drop-shadow(0 0 6px rgba(255,77,109,0.8)); }
.heart-btn.pop {
  animation: heartPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.heart-btn.locked {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(1);
}
@keyframes heartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.7) rotate(-12deg); }
  70%  { transform: scale(0.9) rotate(6deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.vote-count {
  font-family: 'Orbitron', monospace;
  font-size: 0.68rem;
  color: var(--heart);
  font-weight: 700;
  transition: transform 0.15s ease;
  display: block;
  text-align: center;
}
.vote-count.bump {
  animation: countBump 0.25s ease;
}
@keyframes countBump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); color: #ff6b6b; }
  100% { transform: scale(1); }
}

.cooldown-msg {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: rgba(255,77,109,0.9);
  color: white;
  font-size: 0.65rem;
  padding: 3px 7px;
  border-radius: 8px;
  white-space: nowrap;
  font-weight: 700;
  z-index: 20;
  pointer-events: none;
}

/* ---------- FLOATING +1 ANIMATION ---------- */
.float-plus {
  position: fixed;
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--heart);
  pointer-events: none;
  z-index: 9999;
  animation: floatUp 0.85s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
  text-shadow: 0 0 14px rgba(255,77,109,1), 0 0 30px rgba(255,77,109,0.4);
}
@keyframes floatUp {
  0%   { opacity: 1; transform: translateY(0) scale(0.8); }
  15%  { opacity: 1; transform: translateY(-8px) scale(1.3); }
  100% { opacity: 0; transform: translateY(-55px) scale(0.9); }
}

/* ---------- NO RESULTS ---------- */
.no-results {
  padding: 24px 16px;
  text-align: center;
}
.no-results p { color: var(--text-sub); font-size: 0.9rem; margin-bottom: 8px; }
.no-results-sub { font-size: 0.8rem !important; }
.inline-request {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.inline-request input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.8rem;
  outline: none;
}
.inline-request button {
  background: var(--grad);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ---------- FLOATING LEADERBOARD ---------- */
.leaderboard-float {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: 280px;
  background: rgba(13, 13, 31, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(255,215,0,0.1);
  z-index: 80;
  overflow: hidden;
  transform: translateX(320px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.leaderboard-float.open { transform: translateX(0); }

.leaderboard-header {
  padding: 12px 16px;
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--gold);
  border-bottom: 1px solid rgba(255,215,0,0.2);
  text-transform: uppercase;
}

.leaderboard-list {
  list-style: none;
  padding: 8px 0;
  max-height: 360px;
  overflow-y: auto;
}
.leaderboard-list::-webkit-scrollbar { width: 3px; }
.leaderboard-list::-webkit-scrollbar-thumb { background: var(--gold); }

.lb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  transition: var(--transition);
}
.lb-item:hover { background: rgba(255,215,0,0.05); }

.lb-rank {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 900;
  min-width: 24px;
  text-align: center;
}
.lb-rank.gold   { color: var(--gold); text-shadow: 0 0 8px var(--gold); }
.lb-rank.silver { color: var(--silver); }
.lb-rank.bronze { color: var(--bronze); }
.lb-rank.other  { color: var(--text-sub); }

.lb-info { flex: 1; min-width: 0; }
.lb-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-artist {
  font-size: 0.68rem;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-votes {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  color: var(--heart);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- FLOATING QR BUTTON ---------- */
.qr-float-btn {
  position: fixed;
  right: 24px;
  bottom: 56px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad);
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 80;
  box-shadow: var(--glow);
  transition: var(--transition);
}
.qr-float-btn:hover { transform: scale(1.15); }

/* ---------- QR POSTER OVERLAY ---------- */
.poster-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.poster-card {
  background: linear-gradient(145deg, #0d0d1f, #1a0a2e);
  border: 2px solid rgba(124, 58, 237, 0.5);
  border-radius: 24px;
  padding: 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.4), 0 0 120px rgba(236, 72, 153, 0.2);
}
.poster-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
}
.poster-title {
  font-family: 'Righteous', cursive;
  font-size: 2.4rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}
.poster-qr {
  background: white;
  padding: 16px;
  border-radius: 12px;
  display: inline-block;
  margin: 0 auto 16px;
}
.poster-scan-text { color: var(--text-sub); font-size: 0.9rem; margin-bottom: 16px; }
.poster-boost-text {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent2);
  margin-bottom: 16px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.poster-share-btn {
  width: 100%;
  padding: 14px !important;
  font-size: 0.95rem !important;
  border-radius: 12px !important;
}

/* ---------- MODALS ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-card {
  background: linear-gradient(145deg, #0d0d1f, #12122a);
  border: 1px solid rgba(124, 58, 237, 0.5);
  border-radius: 20px;
  padding: 36px;
  max-width: 420px;
  width: 90%;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 20px;
  text-align: center;
}
.modal-desc {
  color: var(--text-sub);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 16px;
}
.modal-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 12px;
  outline: none;
  transition: var(--transition);
}
.modal-input:focus { border-color: var(--accent2); box-shadow: 0 0 12px rgba(236,72,153,0.2); }
.modal-input option { background: #12122a; color: var(--text); }
.modal-submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--grad);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 4px;
  transition: var(--transition);
}
.modal-submit-btn:hover { opacity: 0.9; transform: scale(1.01); }
.login-error, .req-msg, .add-msg {
  font-size: 0.82rem;
  text-align: center;
  padding: 6px 0;
  margin-top: 4px;
}
.login-error { color: var(--heart); }
.req-msg.success { color: var(--green); }
.add-msg.success { color: var(--green); }
.add-msg.error, .req-msg.error { color: var(--heart); }

/* ---------- ADMIN DRAWER ---------- */
.admin-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 360px;
  height: 100vh;
  background: rgba(8, 8, 20, 0.97);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(124, 58, 237, 0.4);
  z-index: 10001;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.admin-drawer.open { transform: translateX(0); }
.admin-drawer::-webkit-scrollbar { width: 4px; }
.admin-drawer::-webkit-scrollbar-thumb { background: var(--accent1); }

.admin-drawer-inner { padding: 20px; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}
.admin-header h2 {
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  color: var(--text-sub);
}
.admin-close-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
}

.go-live-btn {
  width: 100%;
  padding: 16px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 2px;
  margin-bottom: 20px;
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}
.go-live-btn:hover { opacity: 0.9; transform: scale(1.02); }
.go-live-btn.live {
  background: #dc2626;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
}

.admin-section {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(124, 58, 237, 0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(124, 58, 237, 0.2);
}
.admin-section h3 {
  font-size: 0.85rem;
  color: var(--text-sub);
  font-family: 'Orbitron', monospace;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.req-badge-inline {
  background: var(--heart);
  color: white;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 20px;
  font-family: 'Nunito', sans-serif;
}

.admin-playing-title {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 12px;
  font-style: italic;
}

.admin-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.admin-ctrl-btn {
  flex: 1;
  padding: 8px 10px;
  background: rgba(124, 58, 237, 0.2);
  color: var(--text-sub);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.admin-ctrl-btn:hover { background: rgba(124, 58, 237, 0.4); color: white; }

.vol-label { font-size: 0.75rem; color: var(--text-sub); display: block; margin-bottom: 6px; }
.vol-slider { width: 100%; accent-color: var(--accent1); }

.admin-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 0.83rem;
  margin-bottom: 8px;
  outline: none;
  transition: var(--transition);
}
.admin-input:focus { border-color: var(--accent2); }
.admin-input option { background: #12122a; }

.file-label { font-size: 0.75rem; color: var(--text-sub); display: block; margin-bottom: 4px; }
.file-input { font-size: 0.78rem; color: var(--text-sub); margin-bottom: 8px; }

.admin-submit-btn {
  width: 100%;
  padding: 10px;
  background: var(--grad);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 4px;
}

.reset-desc { font-size: 0.8rem; color: var(--text-sub); margin-bottom: 10px; }
.reset-btn {
  width: 100%;
  padding: 10px;
  background: rgba(220, 38, 38, 0.2);
  color: #f87171;
  border: 1px solid rgba(220,38,38,0.4);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.reset-btn:hover { background: rgba(220, 38, 38, 0.4); }

.empty-msg { font-size: 0.8rem; color: var(--text-sub); font-style: italic; }

.logout-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--text-sub);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: var(--transition);
}
.logout-btn:hover { background: rgba(255,255,255,0.05); color: var(--text); }

/* ---------- REQUEST ITEM IN ADMIN ---------- */
.request-item {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(124, 58, 237, 0.2);
}
.request-item-title { font-size: 0.82rem; color: var(--text); margin-bottom: 4px; }
.request-item-url   { font-size: 0.72rem; color: var(--text-sub); word-break: break-all; margin-bottom: 8px; }
.request-item-date  { font-size: 0.7rem; color: var(--text-sub); margin-bottom: 8px; }
.request-item-actions { display: flex; gap: 6px; }
.req-approve { flex: 1; padding: 6px; background: rgba(34,197,94,0.2); color: #4ade80; border: 1px solid rgba(34,197,94,0.4); border-radius: 6px; font-size: 0.75rem; font-weight: 700; cursor: pointer; }
.req-reject  { flex: 1; padding: 6px; background: rgba(220,38,38,0.2); color: #f87171; border: 1px solid rgba(220,38,38,0.4); border-radius: 6px; font-size: 0.75rem; font-weight: 700; cursor: pointer; }
.req-approve-genre { width: 100%; margin-bottom: 6px; }

/* ---------- FLOATING UP NEXT BAR ---------- */
.upnext-bar {
  position: fixed;
  top: calc(var(--nav-h) + 52px);
  left: var(--sidebar-w);
  right: 0;
  height: 54px;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 85;
  overflow: hidden;
}
.upnext-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--accent2);
  padding: 0 14px;
  white-space: nowrap;
  border-right: 1px solid rgba(124, 58, 237, 0.3);
  height: 100%;
  display: flex;
  align-items: center;
  min-width: 90px;
}
.upnext-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  padding: 0 10px;
  height: 100%;
  scrollbar-width: none;
}
.upnext-scroll::-webkit-scrollbar { display: none; }

.upnext-card {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 30px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
  cursor: default;
}
.upnext-card:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(236, 72, 153, 0.4);
}
.upnext-card.rank1 {
  border-color: var(--accent2);
  background: rgba(236, 72, 153, 0.15);
}
.upnext-thumb {
  width: 30px; height: 30px;
  border-radius: 6px;
  object-fit: cover;
}
.upnext-info { display: flex; flex-direction: column; }
.upnext-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upnext-votes {
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  color: var(--heart);
}
.upnext-rank {
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  color: var(--text-sub);
  margin-right: 2px;
}

/* Adjust main layout to account for Up Next bar */
.main-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr 380px;
  height: calc(100vh - var(--nav-h) - 52px - 54px - 44px);
  margin-top: calc(var(--nav-h) + 52px + 54px);
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}
.site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 44px;
  background: rgba(8, 8, 16, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 0.8rem;
  color: var(--text-sub);
  z-index: 50;
}
.site-footer strong { color: var(--text); }

/* ── YCDSB LIVE QR OVERLAY ──────────────────────────────
   Fixed bottom-right corner, visible only when YCDSB is
   hosting a live session. Sits well above the controls btn.
   ──────────────────────────────────────────────────────── */
.ycdsb-live-qr {
  position: fixed;
  bottom: 118px;   /* raised above the YCDSB controls button at 60px */
  right: 20px;
  z-index: 8000;
  background: rgba(8, 8, 20, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(124, 58, 237, 0.55);
  border-radius: 18px;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 32px rgba(124, 58, 237, 0.4), 0 0 0 1px rgba(236,72,153,0.1);
  animation: qrFadeIn 0.4s ease;
}
@keyframes qrFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ycdsb-live-qr-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
}
.ycdsb-live-qr-url {
  font-family: 'Righteous', cursive;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}
#ycdsb-live-qr-code img,
#ycdsb-live-qr-code canvas {
  border-radius: 10px;
  display: block;
  width: 200px !important;
  height: 200px !important;
  transition: width 0.4s ease, height 0.4s ease;
}

/* When nothing is playing, enlarge the QR so it fills the dead air beautifully */
.no-song-playing #ycdsb-live-qr-code img,
.no-song-playing #ycdsb-live-qr-code canvas {
  width: 260px !important;
  height: 260px !important;
}
.no-song-playing .ycdsb-live-qr {
  padding: 20px 22px 18px;
  gap: 12px;
  box-shadow: 0 8px 48px rgba(124, 58, 237, 0.55), 0 0 0 1px rgba(236,72,153,0.15);
}
.no-song-playing .ycdsb-live-qr-label {
  font-size: 0.88rem;
  letter-spacing: 1px;
}
.no-song-playing .ycdsb-live-qr-url {
  font-size: 0.92rem;
}

/* ---------- UTILITY ---------- */
.hidden { display: none !important; }

/* ---------- ANIMATIONS ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes pulseRing {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
@keyframes artGlow {
  0%, 100% { opacity: 0; box-shadow: 0 0 30px var(--accent1); }
  50%       { opacity: 0.6; box-shadow: 0 0 60px var(--accent2); }
}
@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  20%       { transform: rotate(-15deg); }
  40%       { transform: rotate(15deg); }
  60%       { transform: rotate(-10deg); }
  80%       { transform: rotate(10deg); }
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.fadeIn { animation: fadeIn 0.3s ease forwards; }


/* ── HEART RIPPLE BURST ── */
.heart-ripple {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--heart);
  pointer-events: none;
  z-index: 9998;
  animation: rippleBurst 0.5s ease-out forwards;
}
@keyframes rippleBurst {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: 0.9; }
  100% { transform: translate(-50%,-50%) scale(8); opacity: 0; }
}

/* ── HEART PARTICLES ── */
.heart-particle {
  position: fixed;
  font-size: 0.8rem;
  pointer-events: none;
  z-index: 9998;
  animation: particleFly var(--dur, 0.7s) ease-out forwards;
}
@keyframes particleFly {
  0%   { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx,0px), var(--ty,-40px)) scale(0.3); }
}

/* ── SONG CARD LIKED STATE ── */
.song-card.just-voted {
  animation: cardPulse 0.4s ease;
}
@keyframes cardPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,77,109,0); }
  40%  { box-shadow: 0 0 0 6px rgba(255,77,109,0.25); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,109,0); }
}

/* ── UPNEXT CARD ENTER ANIMATION ── */
.upnext-card {
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── GENRE ACTIVE PULSE ── */
.genre-list li.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent2);
  box-shadow: 0 0 8px var(--accent2);
  border-radius: 0 2px 2px 0;
}
.genre-list li { position: relative; }

/* ── QUEUE HEADER GLOW ── */
.queue-header {
  position: relative;
}
.queue-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent2), transparent);
}

/* ── LEADERBOARD HOVER GLOW ── */
.lb-rank.gold { text-shadow: 0 0 12px var(--gold), 0 0 20px var(--gold); }

/* ── NAV BUTTON ACTIVE FEEDBACK ── */
.nav-btn:active { transform: scale(0.96) !important; }

/* ── MODAL OPEN ANIMATION ── */
.modal-card {
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ── ADMIN DRAWER SLIDE REFINEMENT ── */
.admin-ctrl-btn:active { transform: scale(0.94); }
.go-live-btn:active { transform: scale(0.97) !important; }

/* ── PRELIVE SCREEN QR PULSE ── */
.prelive-qr {
  animation: qrGlow 3s ease-in-out infinite;
}
@keyframes qrGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); }
  50%       { box-shadow: 0 0 20px 4px rgba(124,58,237,0.4); }
}

/* ── SHARE BANNER SHIMMER ── */
.share-banner::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  animation: shimmer 3s infinite;
  pointer-events: none;
}
.share-banner { position: relative; overflow: hidden; }
@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* ── TOAST REFINEMENT ── */
#_toast {
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.3) !important;
}

/* ── UPNEXT BAR SCROLLBAR ── */
.upnext-scroll { scroll-behavior: smooth; }

/* ═══════════════════════════════════════════════════════════
   YCDSB MODE
   ═══════════════════════════════════════════════════════════ */

/* ── Layout overrides when body.ycdsb-mode is active ── */
body.ycdsb-mode .share-banner        { display: none !important; }
body.ycdsb-mode #upnext-bar          { display: none !important; }
body.ycdsb-mode .qr-float-btn        { display: none !important; }
body.ycdsb-mode .leaderboard-float   { display: none !important; }
body.ycdsb-mode .nav-actions .share-btn,
body.ycdsb-mode .nav-actions .leaderboard-btn { display: none !important; }

body.ycdsb-mode .main-layout {
  grid-template-columns: 300px 1fr;
  margin-top: calc(var(--nav-h) + 80px); /* nav + ycdsb-top-bar */
  height: calc(100vh - var(--nav-h) - 80px - 44px);
}
body.ycdsb-mode .sidebar      { display: none !important; }
body.ycdsb-mode .queue-panel  { display: none !important; }
body.ycdsb-mode #ycdsb-rank-panel { display: flex !important; }

/* ── YCDSB TOP-10 BAR ── */
.ycdsb-top-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  height: 80px;
  background: rgba(8, 8, 20, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  z-index: 90;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.ycdsb-top-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.62rem;
  letter-spacing: 3px;
  color: var(--accent2);
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(236, 72, 153, 0.7);
  white-space: nowrap;
}
.ycdsb-top-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
  padding: 4px 0;
}
.ycdsb-top-scroll::-webkit-scrollbar { display: none; }

.ycdsb-top-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 10px;
  padding: 5px 10px 5px 5px;
  flex-shrink: 0;
  min-width: 150px;
}
.ycdsb-chip-rank {
  font-family: 'Orbitron', monospace;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--accent2);
  min-width: 22px;
  text-align: center;
}
.ycdsb-chip-thumb {
  width: 38px; height: 38px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.ycdsb-chip-info { flex: 1; min-width: 0; }
.ycdsb-chip-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
.ycdsb-chip-votes {
  font-size: 0.6rem;
  color: var(--heart);
  font-family: 'Orbitron', monospace;
}

/* ── YCDSB RANK PANEL (left column) ── */
#ycdsb-rank-panel {
  display: none;
  flex-direction: column;
  background: rgba(13, 13, 31, 0.97);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(124, 58, 237, 0.2);
  overflow: hidden;
}
.ycdsb-rank-header {
  font-family: 'Orbitron', monospace;
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent2);
  padding: 16px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
  text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
  flex-shrink: 0;
}
.ycdsb-rank-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent1) transparent;
}
.ycdsb-rank-list::-webkit-scrollbar { width: 4px; }
.ycdsb-rank-list::-webkit-scrollbar-thumb { background: var(--accent1); border-radius: 4px; }
.ycdsb-rank-list::-webkit-scrollbar-track { background: transparent; }

.ycdsb-rank-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
  transition: background 0.2s ease;
}
.ycdsb-rank-card:hover { background: rgba(124, 58, 237, 0.08); }
.ycdsb-rank-num {
  font-family: 'Orbitron', monospace;
  font-size: 0.62rem;
  color: var(--text-sub);
  min-width: 24px;
  text-align: center;
}
.ycdsb-rank-thumb {
  width: 36px; height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.ycdsb-rank-info { flex: 1; min-width: 0; }
.ycdsb-rank-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ycdsb-rank-artist {
  font-size: 0.64rem;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ycdsb-rank-votes {
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  color: var(--heart);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── YCDSB FLOATING CONTROLS BUTTON ── */
.ycdsb-float-btn {
  position: fixed;
  bottom: 60px;
  right: 16px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ycdsb-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.75);
}
.ycdsb-float-btn:active { transform: scale(0.95); }

/* ── DRAWER BACKDROP (shared) ── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 299;        /* just below the drawer (z-index 300) */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── YCDSB DRAWER ── */
.ycdsb-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 380px;
  max-width: 95vw;
  height: 100vh;
  background: rgba(10, 10, 22, 0.98);
  backdrop-filter: blur(30px);
  border-left: 1px solid rgba(124, 58, 237, 0.3);
  z-index: 350;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent1) transparent;
}
.ycdsb-drawer.open { transform: translateX(0); }
.ycdsb-drawer-inner { padding: 20px; min-height: 100vh; }

/* YCDSB go-live button (reuses .go-live-btn shape, own ID for specificity) */
#ycdsb-live-btn {
  width: 100%;
  padding: 14px;
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  margin-bottom: 16px;
  transition: var(--transition);
  touch-action: manipulation;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}
#ycdsb-live-btn.live {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

/* ── REMOVE SONG BUTTON & LIST ── */
.remove-list {
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent1) transparent;
  margin-top: 6px;
}
.remove-list::-webkit-scrollbar { width: 4px; }
.remove-list::-webkit-scrollbar-thumb { background: var(--accent1); border-radius: 4px; }

.remove-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}
.remove-list-item-info { flex: 1; min-width: 0; }
.remove-list-item-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.remove-list-item-artist {
  font-size: 0.67rem;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.remove-song-btn {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease;
  touch-action: manipulation;
  flex-shrink: 0;
}
.remove-song-btn:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(239, 68, 68, 0.6);
}

/* ── REMOVE LIST SEARCH INPUT ── */
.remove-search {
  width: 100%;
  box-sizing: border-box;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 8px;
  color: var(--text);
  font-family: Nunito, sans-serif;
  font-size: 0.8rem;
  padding: 7px 10px;
  margin-bottom: 6px;
  outline: none;
  transition: border-color 0.2s;
}
.remove-search::placeholder { color: var(--text-sub); opacity: 0.7; }
.remove-search:focus { border-color: var(--accent1); }

/* Genre tag inside remove list artist line */
.remove-list-genre {
  font-size: 0.62rem;
  color: var(--accent1);
  opacity: 0.8;
}
