/* ==========================================================================
   BITES & BREWS - DESIGN SYSTEM & STYLES (PUB GREEN & WARM GOLD THEME)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* Color Palette - BITES & BREWS (Deep Forest Pub Green & Warm Antique Gold) */
  --bg-core: #091a15;
  --bg-surface: #0f2720;
  --bg-surface-elevated: #16382e;
  --bg-glass: rgba(15, 39, 32, 0.88);
  --border-glass: rgba(203, 166, 111, 0.28);
  --border-focus: #cba66f;

  /* Brand Accents */
  --brand-gold: #cba66f;
  --brand-gold-light: #f3d79b;
  --brand-gold-glow: rgba(203, 166, 111, 0.45);
  --brand-green: #1a3c34;
  --brand-green-bright: #2d735b;
  --brand-green-glow: rgba(45, 115, 91, 0.4);

  --neon-cyan: #cba66f;
  --neon-cyan-glow: rgba(203, 166, 111, 0.35);
  --neon-pink: #d9933f;
  --neon-pink-glow: rgba(217, 147, 63, 0.35);
  --neon-purple: #1f5742;
  --gold-priority: #f3d79b;
  --gold-priority-glow: rgba(243, 215, 155, 0.45);
  --green-success: #38b000;

  /* Typography */
  --text-primary: #fcfcfc;
  --text-secondary: #cbd5cb;
  --text-muted: #85998b;
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacers & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-neon: 0 0 20px rgba(212, 163, 89, 0.35);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-core);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(212, 163, 89, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(45, 138, 86, 0.14) 0%, transparent 45%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-core);
}
::-webkit-scrollbar-thumb {
  background: #19442e;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-gold);
}

/* Utilities */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
  width: 100%;
}

.host-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4));
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  background: #0f231f;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-logo-img:hover {
  transform: scale(1.06);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.6);
}

.host-container .brand-logo-img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
}

.logo-group .icon {
  font-size: 28px;
  filter: drop-shadow(0 0 10px var(--neon-pink));
}

.logo-group h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 20%, #f59e0b 60%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-group .tagline {
  font-size: 0.72rem;
  color: #f59e0b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Anti-Spam Badge */
.quota-badge {
  background: rgba(203, 166, 111, 0.12);
  border: 1px solid rgba(203, 166, 111, 0.3);
  color: var(--brand-gold-light);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quota-badge.limit-reached {
  background: rgba(255, 0, 119, 0.12);
  border-color: rgba(255, 0, 119, 0.3);
  color: var(--neon-pink);
}

/* Search Bar */
.search-box-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.search-input-container {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.search-input-container:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px var(--neon-cyan-glow);
}

.search-icon {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-right: 10px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  padding: 8px 0;
  outline: none;
}

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

.clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: none;
}

.clear-btn:hover {
  color: var(--text-primary);
}

/* Results Section */
.section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.song-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all 0.2s ease;
}

.song-card:hover {
  transform: translateY(-2px);
  border-color: rgba(203, 166, 111, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(203, 166, 111, 0.2);
}

.song-thumbnail-wrapper {
  position: relative;
  width: 90px;
  height: 58px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.song-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-info {
  flex: 1;
  min-width: 0;
}

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

.song-channel {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select-song-btn {
  background: linear-gradient(135deg, var(--neon-cyan), #0099ff);
  color: #050810;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 14px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.select-song-btn:hover {
  filter: brightness(1.15);
  transform: scale(1.03);
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  transform: scale(0.95);
  transition: transform 0.25s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

/* Modal Options (Free vs Nequi Priority) */
.modal-options-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.choice-card {
  position: relative;
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.choice-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.choice-card.priority {
  border-color: rgba(255, 183, 3, 0.4);
  background: linear-gradient(145deg, #1b1625, #231b14);
}

.choice-card.priority:hover {
  border-color: var(--gold-priority);
  box-shadow: 0 0 20px var(--gold-priority-glow);
}

.choice-badge-top {
  position: absolute;
  top: -10px;
  right: 14px;
  background: linear-gradient(135deg, var(--gold-priority), #e85d04);
  color: #000;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.choice-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.choice-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.choice-action-btn {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-free {
  background: #16382e;
  color: var(--brand-gold-light);
  border: 1px solid rgba(203, 166, 111, 0.4);
}

.btn-free:hover {
  background: rgba(203, 166, 111, 0.18);
  border-color: var(--brand-gold);
}

.btn-nequi {
  background: linear-gradient(135deg, #20003b, #3d0066);
  border: 1px solid #da0081;
  color: #fff;
  box-shadow: 0 0 14px rgba(218, 0, 129, 0.3);
}

.btn-nequi:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 20px rgba(218, 0, 129, 0.5);
}

/* Nequi Form in Modal */
.nequi-form-container {
  display: none;
  margin-top: 14px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(218, 0, 129, 0.4);
}

.nequi-form-container.active {
  display: block;
}

.nequi-input {
  width: 100%;
  padding: 10px;
  background: #0d0f18;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.nequi-input:focus {
  border-color: #da0081;
  outline: none;
}

/* Live Queue on Client */
.live-queue-preview {
  margin-top: 24px;
}

.queue-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid var(--border-glass);
}

.queue-pill.is-vip {
  border-color: rgba(255, 183, 3, 0.4);
  background: rgba(255, 183, 3, 0.05);
}

.priority-tag {
  background: var(--gold-priority);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.requester-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(203, 166, 111, 0.16);
  border: 1px solid rgba(203, 166, 111, 0.45);
  color: var(--brand-gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.2px;
}

.requester-badge strong {
  color: #ffffff;
  font-weight: 700;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface-elevated);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  border: 1px solid var(--border-glass);
  font-size: 0.85rem;
  animation: slideUp 0.3s ease;
  pointer-events: auto;
}

.toast.success {
  border-left: 4px solid var(--green-success);
}
.toast.error {
  border-left: 4px solid var(--neon-pink);
}
.toast.warning {
  border-left: 4px solid var(--gold-priority);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   HOST / BAR SCREEN (DESKTOP) SPECIFIC STYLES
   ========================================================================== */

.host-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 20px;
  flex: 1;
  min-height: 0;
}

.host-player-section {
  display: flex;
  flex-direction: column;
  background: #000;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  position: relative;
}

.video-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  background: #000;
}

#youtube-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.player-footer {
  padding: 16px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.now-playing-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.soundwave-anim {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.soundwave-bar {
  width: 4px;
  background: var(--neon-cyan);
  border-radius: 2px;
  animation: equalize 1s infinite alternate ease-in-out;
}
.soundwave-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.soundwave-bar:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.soundwave-bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.soundwave-bar:nth-child(4) { height: 100%; animation-delay: 0.4s; }

@keyframes equalize {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

.host-queue-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  padding: 16px;
  overflow: hidden;
  gap: 12px;
}

.queue-items-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
  min-height: 100px;
}

/* Tarjeta Fija del Código QR en el Panel Lateral */
.host-sidebar-qr-card {
  background: linear-gradient(145deg, #091a15, #123327);
  border: 1.5px solid rgba(203, 166, 111, 0.4);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(203, 166, 111, 0.15);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.host-sidebar-qr-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
}

.sidebar-qr-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sidebar-qr-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  border: 1.5px solid rgba(212, 163, 89, 0.4);
  background: #071911;
  flex-shrink: 0;
}

.sidebar-qr-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--brand-gold-light);
  margin: 0;
  text-transform: uppercase;
}

.sidebar-qr-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin: 2px 0 0 0;
  line-height: 1.25;
}

.sidebar-qr-body {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(4, 15, 9, 0.75);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(212, 163, 89, 0.2);
}

.sidebar-qr-frame {
  background: #ffffff;
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(203, 166, 111, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-qr-code-img {
  width: 120px;
  height: 120px;
  display: block;
}

.sidebar-qr-instructions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  flex: 1;
}

.qr-step {
  font-size: 0.73rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.sidebar-qr-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-gold-light);
  margin-top: 4px;
  padding: 3px 6px;
  background: rgba(212, 163, 89, 0.12);
  border-radius: 4px;
  border: 1px dashed rgba(212, 163, 89, 0.35);
  display: inline-block;
  word-break: break-all;
}

.host-queue-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.host-queue-card.vip {
  border: 1.5px solid var(--gold-priority);
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.08), rgba(255, 0, 119, 0.05));
  box-shadow: 0 0 12px rgba(255, 183, 3, 0.15);
}

.host-controls {
  display: flex;
  gap: 8px;
}

.ctrl-btn {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.ctrl-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

/* ==========================================================================
   HOST LOGIN & PROTECTED ACCESS OVERLAY
   ========================================================================== */

.host-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(circle at center, #103328 0%, #06150e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.host-login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(16, 40, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(203, 166, 111, 0.45);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(203, 166, 111, 0.15);
  animation: fadeIn 0.4s ease;
}

.host-login-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 18px;
  border: 2px solid rgba(203, 166, 111, 0.5);
  background: #0d221c;
  padding: 6px;
  margin-bottom: 18px;
  box-shadow: 0 0 25px rgba(203, 166, 111, 0.35);
}

.host-login-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand-gold-light);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.host-login-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.4;
}

.host-login-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(203, 166, 111, 0.4);
  border-radius: 10px;
  color: #ffffff;
  font-size: 1.05rem;
  text-align: center;
  letter-spacing: 2px;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
  margin-bottom: 14px;
}

.host-login-input:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 15px rgba(203, 166, 111, 0.4);
}

.host-login-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--brand-gold), #b8860b);
  color: #0d1f19;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(203, 166, 111, 0.3);
  transition: all 0.2s ease;
}

.host-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(203, 166, 111, 0.5);
}

.host-login-error {
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 12px;
  display: none;
  font-weight: 600;
}

/* ==========================================================================
   HOST DASHBOARD MODAL & ANALYTICS
   ========================================================================== */

.host-dashboard-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 15, 10, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.host-dashboard-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.dashboard-container {
  width: 100%;
  max-width: 1000px;
  max-height: 92vh;
  background: rgba(13, 34, 27, 0.95);
  border: 1.5px solid rgba(203, 166, 111, 0.4);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(203, 166, 111, 0.25);
  background: rgba(7, 20, 16, 0.7);
}

.dashboard-header h2 {
  font-size: 1.35rem;
  color: var(--brand-gold-light);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.dashboard-close-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.dashboard-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--brand-gold);
}

.dashboard-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.kpi-card {
  background: rgba(20, 50, 40, 0.5);
  border: 1px solid rgba(203, 166, 111, 0.25);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-gold-light);
}

.kpi-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  background: rgba(203, 166, 111, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(203, 166, 111, 0.3);
  flex-shrink: 0;
}

.kpi-data {
  min-width: 0;
}

.kpi-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.kpi-label {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Top Sections Grid */
.dashboard-grid-2col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .dashboard-grid-2col {
    grid-template-columns: 1fr;
  }
}

.dashboard-panel {
  background: rgba(20, 48, 38, 0.45);
  border: 1px solid rgba(203, 166, 111, 0.2);
  border-radius: 14px;
  padding: 18px;
}

.panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-gold-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Top 10 Song List */
.top-song-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-song-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.top-song-item:hover {
  background: rgba(203, 166, 111, 0.1);
  border-color: rgba(203, 166, 111, 0.35);
}

.top-rank-badge {
  font-size: 0.85rem;
  font-weight: 800;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rank-1 {
  background: linear-gradient(135deg, #ffd700, #b8860b);
  color: #000;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}
.rank-2 {
  background: linear-gradient(135deg, #e0e0e0, #9e9e9e);
  color: #000;
}
.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #8b4513);
  color: #fff;
}
.rank-other {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.top-song-thumb {
  width: 44px;
  height: 30px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.top-song-meta {
  flex: 1;
  min-width: 0;
}

.top-song-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-song-channel {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.top-song-count {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand-gold-light);
  background: rgba(203, 166, 111, 0.15);
  border: 1px solid rgba(203, 166, 111, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Top Requesters List */
.requester-rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.requester-rank-name {
  font-weight: 700;
  font-size: 0.86rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn.skip {
  background: rgba(255, 0, 119, 0.1);
  color: var(--neon-pink);
  border-color: rgba(255, 0, 119, 0.3);
}

.ctrl-btn.skip:hover {
  background: var(--neon-pink);
  color: #fff;
}

/* Empty state */
.empty-queue {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
}

/* ==========================================================================
   HOST LOGIN OVERLAY & ADMIN DASHBOARD
   ========================================================================== */

/* Login Overlay */
.host-login-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(16, 48, 38, 0.98) 0%, rgba(7, 21, 14, 0.99) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.host-login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(19, 47, 40, 0.95);
  border: 1px solid rgba(203, 166, 111, 0.45);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(203, 166, 111, 0.2);
  padding: 36px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInModal 0.3s ease-out;
}

.host-login-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 18px;
  border: 2px solid rgba(203, 166, 111, 0.5);
  background: #103026;
  padding: 6px;
  filter: drop-shadow(0 0 16px rgba(203, 166, 111, 0.4));
  margin-bottom: 16px;
}

.host-login-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--brand-gold-light);
  margin-bottom: 8px;
}

.host-login-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 24px;
}

.host-login-card form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.host-login-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1.05rem;
  text-align: center;
  letter-spacing: 2px;
  color: #ffffff;
  background: rgba(8, 26, 19, 0.9);
  border: 1.5px solid rgba(203, 166, 111, 0.4);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.host-login-input:focus {
  border-color: var(--brand-gold-light);
  box-shadow: 0 0 16px rgba(203, 166, 111, 0.35);
}

.host-login-btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #07150e;
  background: linear-gradient(135deg, var(--brand-gold-light), #b88d48);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(203, 166, 111, 0.35);
}

.host-login-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(203, 166, 111, 0.5);
}

.host-login-error {
  display: none;
  font-size: 0.82rem;
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 4px;
}

/* Dashboard Modal */
.host-dashboard-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.host-dashboard-modal.active {
  display: flex;
}

.dashboard-container {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: #0f2b22;
  border: 1px solid rgba(203, 166, 111, 0.4);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(203, 166, 111, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInModal 0.25s ease-out;
}

.dashboard-header {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(203, 166, 111, 0.25);
  background: rgba(14, 38, 30, 0.9);
}

.dashboard-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-gold-light);
  margin: 0;
}

.dashboard-close-btn {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.dashboard-close-btn:hover {
  color: #fff;
  transform: scale(1.15);
}

.dashboard-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.kpi-card {
  background: rgba(19, 47, 40, 0.7);
  border: 1px solid rgba(203, 166, 111, 0.3);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.kpi-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(203, 166, 111, 0.12);
  border-radius: 10px;
  border: 1px solid rgba(203, 166, 111, 0.25);
  flex-shrink: 0;
}

.kpi-data {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kpi-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-label {
  font-size: 0.74rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-top: 2px;
}

/* Layout 2 columnas del dashboard */
.dashboard-grid-2col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

@media (max-width: 768px) {
  .dashboard-grid-2col {
    grid-template-columns: 1fr;
  }
}

.dashboard-panel {
  background: rgba(15, 38, 31, 0.7);
  border: 1px solid rgba(203, 166, 111, 0.25);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-gold-light);
  border-bottom: 1px solid rgba(203, 166, 111, 0.18);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

/* Top 10 Songs List */
.top-song-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.top-song-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(22, 56, 46, 0.5);
  border: 1px solid rgba(203, 166, 111, 0.15);
  border-radius: 10px;
  padding: 8px 10px;
  transition: transform 0.2s, background 0.2s;
}

.top-song-item:hover {
  background: rgba(22, 56, 46, 0.85);
  transform: translateX(2px);
}

.top-rank-badge {
  min-width: 28px;
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
}

.top-rank-badge.rank-1 { color: #f59e0b; font-size: 1.15rem; }
.top-rank-badge.rank-2 { color: #94a3b8; font-size: 1.15rem; }
.top-rank-badge.rank-3 { color: #d97706; font-size: 1.15rem; }
.top-rank-badge.rank-other { color: var(--text-muted); font-size: 0.82rem; }

.top-song-thumb {
  width: 48px;
  height: 32px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(203, 166, 111, 0.25);
  flex-shrink: 0;
}

.top-song-meta {
  flex: 1;
  min-width: 0;
}

.top-song-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-song-channel {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.top-song-count {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand-gold-light);
  background: rgba(203, 166, 111, 0.14);
  border: 1px solid rgba(203, 166, 111, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Top Requesters List */
.requester-rank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(22, 56, 46, 0.4);
  border: 1px solid rgba(203, 166, 111, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
}

.requester-rank-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   SISTEMA DE LETRAS SINCRONIZADAS (ESTILO SPOTIFY / KARAOKE)
   ========================================================================== */

/* Overlay de Letras en Pantalla Host */
.lyrics-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 20, 15, 0.93) 0%, rgba(3, 10, 7, 0.98) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 20;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInLyrics 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lyrics-overlay.active {
  display: flex;
}

@keyframes fadeInLyrics {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.lyrics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(10, 28, 22, 0.85);
  border-bottom: 1px solid rgba(203, 166, 111, 0.25);
  flex-shrink: 0;
  z-index: 5;
}

.lyrics-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.lyrics-track-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid rgba(203, 166, 111, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.lyrics-track-text {
  min-width: 0;
}

.lyrics-track-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}

.lyrics-track-artist {
  font-size: 0.84rem;
  color: var(--brand-gold-light);
  font-weight: 600;
}

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

.lyrics-status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(203, 166, 111, 0.15);
  border: 1px solid rgba(203, 166, 111, 0.35);
  color: var(--brand-gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.lyrics-status-pill.synced {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.lyrics-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.3rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lyrics-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
  transform: scale(1.08);
}

/* Área de desplazamiento de letras */
.lyrics-scroll-viewport {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 50px 32px 240px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(203, 166, 111, 0.3) transparent;
}

.lyrics-scroll-viewport::-webkit-scrollbar {
  width: 6px;
}

.lyrics-scroll-viewport::-webkit-scrollbar-thumb {
  background: rgba(203, 166, 111, 0.3);
  border-radius: 4px;
}

/* Líneas individuales de letra */
.lyric-line {
  font-size: 1.7rem;
  line-height: 1.45;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.28);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
  border-radius: 10px;
  padding: 4px 14px;
  max-width: 90%;
  display: inline-block;
  transform-origin: left center;
}

.lyric-line:hover {
  color: rgba(255, 255, 255, 0.65);
}

.lyric-line.active {
  color: #ffffff;
  font-size: 2.15rem;
  font-weight: 900;
  opacity: 1;
  transform: scale(1.03);
  text-shadow: 0 0 25px rgba(203, 166, 111, 0.8), 0 0 50px rgba(255, 255, 255, 0.4);
  background: rgba(203, 166, 111, 0.12);
  border-left: 4px solid var(--brand-gold-light);
  padding-left: 18px;
}

.lyric-line.passed {
  color: rgba(255, 255, 255, 0.22);
}

/* Estado de carga o sin letra */
.lyrics-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 20px;
  gap: 12px;
}

.lyrics-empty-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 15px rgba(203, 166, 111, 0.4));
}

.lyrics-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.lyrics-empty-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.45;
}

/* Botón activo en barra de controles */
.ctrl-btn.lyrics-active {
  background: linear-gradient(135deg, rgba(203, 166, 111, 0.35), rgba(245, 158, 11, 0.45)) !important;
  border-color: var(--brand-gold-light) !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(203, 166, 111, 0.5);
}

/* Letras en Móvil (Cliente) */
.client-lyrics-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.client-lyrics-modal.active {
  display: flex;
}

.client-lyrics-card {
  width: 100%;
  max-width: 540px;
  height: 85vh;
  background: linear-gradient(180deg, #0f2d23 0%, #07150e 100%);
  border: 1px solid rgba(203, 166, 111, 0.4);
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
  animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpModal {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.btn-open-lyrics {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(203, 166, 111, 0.18);
  border: 1px solid rgba(203, 166, 111, 0.45);
  color: var(--brand-gold-light);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-open-lyrics:hover {
  background: var(--brand-gold-light);
  color: #07150e;
}

/* ==========================================================================
   MODO DJ BAR - GESTOR DE PLAYLISTS Y LISTAS PERSONALIZADAS
   ========================================================================== */

.dj-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99995;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dj-modal.active {
  display: flex;
}

.dj-modal-card {
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  background: #0d2820;
  border: 1px solid rgba(203, 166, 111, 0.45);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(203, 166, 111, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInModal 0.25s ease-out;
}

.dj-modal-header {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(203, 166, 111, 0.25);
  background: rgba(10, 26, 20, 0.95);
  flex-shrink: 0;
}

.dj-modal-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-gold-light);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dj-tabs-nav {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(8, 20, 15, 0.6);
  border-bottom: 1px solid rgba(203, 166, 111, 0.15);
  flex-shrink: 0;
}

.dj-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dj-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.dj-tab-btn.active {
  background: rgba(203, 166, 111, 0.2);
  border-color: rgba(203, 166, 111, 0.5);
  color: var(--brand-gold-light);
}

.dj-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Grid de Listas Guardadas */
.dj-playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.dj-playlist-card {
  background: rgba(18, 48, 38, 0.65);
  border: 1px solid rgba(203, 166, 111, 0.25);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.dj-playlist-card:hover {
  transform: translateY(-2px);
  border-color: rgba(203, 166, 111, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dj-playlist-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.dj-playlist-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.dj-playlist-meta {
  font-size: 0.76rem;
  color: var(--brand-gold-light);
  font-weight: 600;
}

.dj-playlist-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 120px;
  overflow-y: auto;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dj-playlist-preview-item {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dj-playlist-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
}

.dj-action-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.dj-action-btn.play {
  background: linear-gradient(135deg, var(--brand-gold-light), #b88d48);
  color: #07150e;
  flex: 1;
  justify-content: center;
}

.dj-action-btn.play:hover {
  box-shadow: 0 0 14px rgba(203, 166, 111, 0.5);
  transform: translateY(-1px);
}

.dj-action-btn.shuffle {
  background: rgba(6, 214, 160, 0.15);
  border-color: rgba(6, 214, 160, 0.35);
  color: var(--neon-cyan);
}

.dj-action-btn.shuffle:hover {
  background: var(--neon-cyan);
  color: #000;
}

.dj-action-btn.delete {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.dj-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
}

/* Formulario de Creación de Playlists */
.dj-create-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dj-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dj-form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dj-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(7, 20, 15, 0.85);
  border: 1.5px solid rgba(203, 166, 111, 0.4);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
}

.dj-input:focus {
  border-color: var(--brand-gold-light);
  box-shadow: 0 0 14px rgba(203, 166, 111, 0.35);
}

.dj-textarea {
  width: 100%;
  min-height: 200px;
  padding: 14px 16px;
  background: rgba(7, 20, 15, 0.85);
  border: 1.5px solid rgba(203, 166, 111, 0.4);
  border-radius: 12px;
  color: #fff;
  font-size: 0.9rem;
  font-family: monospace, sans-serif;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}

.dj-textarea:focus {
  border-color: var(--brand-gold-light);
  box-shadow: 0 0 14px rgba(203, 166, 111, 0.35);
}

.dj-quick-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.dj-preset-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dj-preset-chip:hover {
  background: rgba(203, 166, 111, 0.15);
  border-color: rgba(203, 166, 111, 0.35);
  color: var(--brand-gold-light);
}

.dj-status-box {
  display: none;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(6, 214, 160, 0.1);
  border: 1px solid var(--neon-cyan);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  align-items: center;
  gap: 10px;
}

.dj-status-box.active {
  display: flex;
}

.dj-action-btn:disabled,
.dj-action-btn.disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(0.8) !important;
  box-shadow: none !important;
  transform: none !important;
}

.dj-action-btn.search {
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.25), rgba(6, 214, 160, 0.1));
  border: 1px solid var(--neon-cyan);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(6, 214, 160, 0.2);
}

.dj-action-btn.search:hover:not(:disabled) {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 16px rgba(6, 214, 160, 0.5);
  transform: translateY(-1px);
}

.dj-action-btn.search-mini {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 5px 10px;
}

.dj-action-btn.search-mini:hover:not(:disabled) {
  background: rgba(6, 214, 160, 0.2);
  border-color: var(--neon-cyan);
  color: #fff;
}

.dj-card-status {
  font-size: 0.76rem;
  padding: 7px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
}

.dj-card-status.warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.dj-card-status.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.dj-card-status.loading {
  background: rgba(6, 214, 160, 0.15);
  border: 1px solid var(--neon-cyan);
  color: #fff;
}

.dj-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin: 4px 0;
}

.dj-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), #10b981);
  border-radius: 999px;
  transition: width 0.2s ease;
  box-shadow: 0 0 10px rgba(6, 214, 160, 0.6);
}

.dj-verified-preview {
  margin-top: 10px;
  border: 1px solid rgba(203, 166, 111, 0.3);
  border-radius: 10px;
  background: rgba(7, 20, 15, 0.7);
  padding: 12px;
}

.dj-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.dj-preview-list {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.dj-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  font-size: 0.8rem;
}

.dj-preview-thumb {
  width: 38px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.dj-preview-info {
  flex: 1;
  min-width: 0;
}

.dj-preview-song-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: #fff;
}

.dj-preview-song-channel {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   HOST ADD SONG & IMMEDIATE QUEUE STYLES
   ========================================================================== */

.host-add-song-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(5, 150, 105, 0.45));
  color: #6ee7b7 !important;
  border: 1px solid #10b981 !important;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.host-add-song-btn:hover {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.55);
  transform: translateY(-1px);
}

.host-search-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.host-search-results-list::-webkit-scrollbar {
  width: 6px;
}

.host-search-results-list::-webkit-scrollbar-thumb {
  background: rgba(52, 211, 153, 0.35);
  border-radius: 4px;
}

.host-search-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(16, 48, 38, 0.5);
  border: 1px solid rgba(203, 166, 111, 0.2);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.host-search-card:hover {
  background: rgba(16, 48, 38, 0.88);
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transform: translateX(2px);
}

.host-search-thumb {
  width: 64px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d2820;
}

.host-search-meta {
  flex: 1;
  min-width: 0;
}

.host-search-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.host-search-channel {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.host-search-add-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: 1px solid #34d399;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}

.host-search-add-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.6);
  transform: scale(1.03);
}

.host-search-add-btn:disabled,
.host-search-add-btn.added {
  background: #047857 !important;
  border-color: #6ee7b7 !important;
  color: #ffffff !important;
  cursor: default;
  transform: none !important;
  box-shadow: 0 0 12px rgba(110, 231, 183, 0.4);
}

.host-queue-card.host-imm {
  border-color: rgba(52, 211, 153, 0.7) !important;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(16, 48, 38, 0.7)) !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2) !important;
}
