/* ==========================================================================
   Karaokê Studio Pro — Premium High-End Visual System
   Design System: Deep Space Cyberpunk / Lounge Neon Glassmorphism
   ========================================================================== */

:root {
  --bg-main: #06080f;
  --bg-surface: #0b0f19;
  --bg-card: rgba(14, 20, 36, 0.75);
  --bg-card-hover: rgba(22, 32, 58, 0.9);
  --bg-modal: #080c16;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-active: rgba(6, 182, 212, 0.5);

  --accent-cyan: #06b6d4;
  --accent-violet: #8b5cf6;
  --accent-gold: #facc15;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-pink: #ec4899;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Stage Glow */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Common UI Utils */
.hidden { display: none !important; }

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   HEADER PRINCIPAL
   ========================================================================== */
.studio-header {
  height: 66px;
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 8px;
  border-radius: 6px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-name span {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* AI Status Badge */
.ai-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-secondary);
}

.ai-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseGreen 2s infinite ease-in-out;
}

.ai-status-indicator.offline .ai-pulse-dot {
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
  animation: none;
}

@keyframes pulseGreen {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* Header Mic Toggle & VU Meter */
.header-mic-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mic-select-header {
  background: rgba(14, 20, 36, 0.9);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  outline: none;
  max-width: 160px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.mic-select-header:hover, .mic-select-header:focus {
  border-color: var(--accent-cyan);
}

.mic-select-header option, .mic-select-stage option {
  background: #0f172a;
  color: #f8fafc;
}

.btn-mic-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mic-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-mic-toggle.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-green);
  color: #34d399;
}

.mic-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  transition: background 0.2s ease;
}

.btn-mic-toggle.active .mic-dot {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.mini-vu {
  width: 50px;
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
}

.mini-vu-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #facc15, #ef4444);
  transition: width 0.06s ease;
}

/* Controle de Retorno de Microfone no Header */
.header-mic-return-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: border-color 0.2s;
}

.header-mic-return-box:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.header-retorno-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.btn-retorno-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-retorno-pill:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-retorno-pill.muted {
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.06);
}

.header-mini-range {
  -webkit-appearance: none;
  appearance: none;
  width: 55px;
  height: 4px;
  background: #334155;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.header-mini-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
}

/* ==========================================================================
   BARRA DE DOWNLOAD DIRETO DO YOUTUBE
   ========================================================================== */
.yt-quick-bar {
  padding: 12px 28px;
  background: rgba(13, 18, 32, 0.7);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 40;
}

.yt-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(6, 9, 18, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 7px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.yt-input-wrapper:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.25);
}

.yt-icon {
  font-size: 16px;
}

.yt-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: var(--font-body);
}

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

.btn-yt-action {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-yt-action:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-yt-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   TELA INICIAL / LOBBY DE MÚSICAS & GESTÃO
   ========================================================================== */
.lobby-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  position: relative;
  z-index: 10;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* Navegação por Abas */
.lobby-tabs-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tabs-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

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

.btn-tab.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.tab-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.queue-badge {
  background: rgba(236, 72, 153, 0.3);
  color: #f472b6;
}

/* Barra de Busca */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 19, 36, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  width: 320px;
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: var(--accent-cyan);
}

.search-icon {
  font-size: 14px;
  opacity: 0.6;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: var(--font-body);
}

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

.search-input:-webkit-autofill,
.search-input:-webkit-autofill:hover,
.search-input:-webkit-autofill:focus,
.search-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Tab Contents */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

/* ==========================================================================
   CARDS DE MÚSICA (GRID DO CATÁLOGO)
   ========================================================================== */
.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.song-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.song-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: 0 16px 36px -10px rgba(6, 182, 212, 0.25), 0 0 1px 1px rgba(255, 255, 255, 0.1);
  background: var(--bg-card-hover);
}

/* Capa do Card */
.song-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.song-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.song-card:hover .song-card-thumb {
  transform: scale(1.05);
}

/* Botão de Favorito Flutuante */
.btn-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.btn-fav:hover {
  transform: scale(1.15);
  background: rgba(0, 0, 0, 0.85);
}

.btn-fav.active {
  background: rgba(236, 72, 153, 0.35);
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.6));
}

/* Badges sobre a capa */
.song-badge-dur {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.song-badge-code {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(6, 182, 212, 0.25);
  border: 1px solid rgba(6, 182, 212, 0.5);
  color: #a5f3fc;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Corpo do Card */
.song-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.song-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.song-card-artist {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.song-card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.btn-card-sing {
  flex: 1;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-card-sing:hover {
  opacity: 0.93;
  transform: translateY(-1px);
}

.btn-card-queue {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-card-queue:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   ABA: FILA DE CANTORES
   ========================================================================== */
.queue-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: rgba(14, 20, 36, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 16px 20px;
  border-radius: var(--radius-md);
}

.queue-header-actions h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.queue-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.btn-primary-queue {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-violet));
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-primary-queue:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.queue-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  gap: 16px;
  transition: all 0.2s ease;
}

.queue-item-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.queue-item-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.queue-item-pos {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-muted);
  width: 32px;
  text-align: center;
}

.queue-item-thumb {
  width: 70px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #0f172a;
}

.queue-item-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.queue-item-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.queue-item-artist {
  font-size: 13px;
  color: var(--text-secondary);
}

.queue-singer-badge {
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #f472b6;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 12px;
}

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

.btn-queue-sing-now {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-queue-sing-now:hover {
  opacity: 0.9;
}

.btn-queue-remove {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-queue-remove:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

/* ==========================================================================
   ABA: HISTÓRICO & HALL DA FAMA
   ========================================================================== */
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: rgba(14, 20, 36, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 16px 20px;
  border-radius: var(--radius-md);
}

.history-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.history-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.btn-secondary-clear {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary-clear:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.history-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.history-table th {
  background: rgba(10, 15, 28, 0.75);
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-subtle);
}

.history-table td {
  padding: 16px 18px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

.history-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.history-rank {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
}

.rank-gold { color: #facc15; }
.rank-silver { color: #cbd5e1; }
.rank-bronze { color: #f97316; }

.history-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.score-high {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.score-med {
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: #fde047;
}

.score-low {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.history-singer-name {
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.history-verdict-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  max-width: 360px;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: rgba(14, 20, 36, 0.4);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-top: 10px;
}

.empty-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.7;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   MODAL: PALCO AO VIVO FULLSCREEN (CANTO E CONTROLES)
   ========================================================================== */
.stage-fullscreen-modal {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  background: rgba(6, 8, 15, 0.95);
  border: none;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  outline: none;
}

.stage-fullscreen-modal::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.stage-modal-content {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 16px 28px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Cabeçalho do Palco */
.stage-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.stage-song-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stage-singer-tag {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(236, 72, 153, 0.5);
  color: #f472b6;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  width: fit-content;
  letter-spacing: 0.5px;
}

.stage-now-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-top: 4px;
}

.stage-now-artist {
  font-size: 14px;
  color: var(--accent-cyan);
  font-weight: 500;
}

.stage-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Medidor de Pontuação Ao Vivo */
.live-score-pill {
  background: rgba(13, 19, 36, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.score-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
}

#live-score-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--accent-gold);
}

.score-progress-ring {
  width: 100%;
  height: 4px;
  background: #1e293b;
  border-radius: 2px;
  overflow: hidden;
}

.score-fill-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
  transition: width 0.2s ease;
}

.btn-ai-action {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #ddd6fe;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ai-action:hover {
  background: rgba(139, 92, 246, 0.3);
  color: #fff;
}

.btn-judge-call {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  color: #a5f3fc;
}

.btn-judge-call:hover {
  background: rgba(6, 182, 212, 0.3);
  color: #fff;
}

.btn-exit-stage {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-exit-stage:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

/* ==========================================================================
   CONSOLE DE RACKS DE ESTÚDIO (SUPRESSÃO, ECO E SINCRONIA)
   ========================================================================== */
.stage-control-racks {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 16px;
  padding: 12px 0;
  flex-shrink: 0;
}

.rack-panel {
  background: rgba(14, 20, 36, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rack-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
}

.rack-header strong {
  color: #e2e8f0;
}

.vocal-mode-badge, .dsp-active-tag, .sync-current {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.vocal-presets-group {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.btn-vocal-preset {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.btn-vocal-preset:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-vocal-preset.active {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.vocal-slider-strip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.strip-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.vocal-fader {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #1e293b;
  border-radius: 3px;
  outline: none;
}

.vocal-fader::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.strip-value {
  font-size: 12px;
  color: var(--accent-cyan);
  width: 34px;
  text-align: right;
  font-family: var(--font-display);
}

/* Rack Microfone & Eco */
.mic-device-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.mic-device-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.mic-select-stage {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  max-width: 100%;
}

.rack-sliders-row {
  display: flex;
  gap: 12px;
}

.mini-dsp-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-dsp-item span {
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.mini-dsp-item strong {
  color: var(--accent-violet);
}

.mini-range {
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  background: #1e293b;
  border-radius: 3px;
  outline: none;
}

.mini-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-violet);
  cursor: pointer;
}

/* Rack Sincronia */
.sync-buttons-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.btn-sync-nudge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  padding: 5px 6px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-sync-nudge:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-sync-nudge.active {
  background: rgba(250, 204, 21, 0.2);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-toggle-view {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: auto;
}

.btn-toggle-view:hover {
  color: #fff;
}

/* ==========================================================================
   TELÃO CENTRAL DE KARAOKÊ (EXIBIÇÃO DINÂMICA DE LETRA)
   ========================================================================== */
.stage-lyrics-display {
  flex: 1;
  background: radial-gradient(circle at center, rgba(14, 20, 42, 0.8) 0%, rgba(6, 9, 18, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
  margin: 6px 0;
}

/* Modo Palco: 3 Linhas em Foco */
.stage-dynamic-lyrics {
  width: 90%;
  max-width: 950px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px;
}

.stage-lyric-prev {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-muted);
  opacity: 0.5;
  transition: all 0.3s ease;
  min-height: 28px;
}

.stage-lyric-current {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
  letter-spacing: -0.5px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.6), 0 0 40px rgba(139, 92, 246, 0.4);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(1.02);
}

.stage-intro-badge {
  font-size: 20px;
  color: var(--accent-gold);
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 8px 24px;
  border-radius: var(--radius-full);
}

.stage-lyric-next {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-secondary);
  opacity: 0.75;
  transition: all 0.3s ease;
  min-height: 30px;
}

/* Modo Lista Completa (Opcional) */
.lyrics-stream {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.lyric-row {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.lyric-row:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.lyric-row.active {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  background: rgba(6, 182, 212, 0.15);
  border-left: 4px solid var(--accent-cyan);
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* ==========================================================================
   BARRA INFERIOR DE CONTROLES DO PLAYER
   ========================================================================== */
.stage-bottom-bar {
  background: rgba(10, 15, 28, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  margin-top: 8px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Linha do Scrubber */
.scrubber-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.time-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  width: 38px;
}

.timeline-slider-track {
  flex: 1;
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.timeline-slider-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
  border-radius: 4px;
  transition: width 0.1s linear;
}

/* Linha de Botões de Ação */
.controls-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.transpose-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.ctrl-sublabel {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.btn-step {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-step:hover {
  background: rgba(255, 255, 255, 0.15);
}

.key-badge {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-gold);
  min-width: 24px;
  text-align: center;
}

.playback-main-btns {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-ctrl-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ctrl-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-play-pause {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
  transition: transform 0.15s;
}

.btn-play-pause:hover {
  transform: scale(1.08);
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vol-icon {
  font-size: 14px;
  opacity: 0.7;
}

.mini-slider {
  width: 90px;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  background: #1e293b;
  border-radius: 3px;
  outline: none;
}

.mini-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

/* ==========================================================================
   MODAIS COMPLEMENTARES (FILA, COACH, NOTAS)
   ========================================================================== */
.score-modal {
  margin: auto;
  border: none;
  background: transparent;
  outline: none;
}

.score-modal::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-score-card {
  background: #0d1222;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(6, 182, 212, 0.15);
  text-align: center;
  max-width: 480px;
  width: 90vw;
}

/* Modal da Fila */
.queue-modal-card {
  text-align: left;
}

.modal-form-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.queue-form-icon {
  font-size: 32px;
}

.modal-form-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.modal-form-header p {
  font-size: 13px;
  color: var(--accent-cyan);
}

.modal-form-body {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(6, 9, 18, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--accent-cyan);
}

.modal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-secondary-score {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-primary-score {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Modal de Pontuação & Jurado */
.score-glow-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.15) 0%, transparent 70%);
  border: 4px solid var(--accent-gold);
  margin: 0 auto 18px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(250, 204, 21, 0.35);
}

.score-huge-num {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.score-huge-sub {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 1.5px;
}

.score-verdict-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.ai-judge-box {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 22px;
  text-align: left;
}

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

.ai-judge-badge {
  font-size: 10px;
  font-weight: 800;
  color: #c084fc;
  background: rgba(139, 92, 246, 0.2);
  padding: 2px 7px;
  border-radius: 4px;
}

.ai-judge-loading {
  font-size: 11px;
  color: var(--text-secondary);
}

.score-verdict-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
}

.score-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Modal Coach */
.coach-modal-card {
  text-align: left;
  max-width: 520px;
}

.coach-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.coach-badge-icon {
  font-size: 32px;
}

.coach-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.coach-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.coach-content-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 20px;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-line;
}

/* ==========================================================================
   MODAL: CONFIRMAÇÃO DE MÚSICA & RESULTADOS DE PESQUISA
   ========================================================================== */
.song-confirm-card {
  text-align: left;
  max-width: 580px;
}

.confirm-preview-row {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.confirm-thumb {
  width: 105px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #0f172a;
}

.confirm-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.confirm-info h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.confirm-info p {
  font-size: 13px;
  color: var(--accent-cyan);
}

.confirm-dur-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Caixa de Status da Letra */
.lyrics-status-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.lyrics-status-box.warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.4);
}

.lyrics-status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.lyrics-status-icon {
  font-size: 18px;
}

.lyrics-status-header strong {
  font-size: 13px;
  color: #34d399;
}

.lyrics-status-box.warning .lyrics-status-header strong {
  color: #fbbf24;
}

.lyrics-status-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
}

.lyrics-warning-options {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(245, 158, 11, 0.3);
}

.lyrics-opt-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #f1f5f9;
  cursor: pointer;
}

/* Lista de Múltiplos Resultados de Busca */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: all 0.2s;
  cursor: pointer;
}

.search-result-item:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--accent-cyan);
}

.search-res-thumb {
  width: 72px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
}

.search-res-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-res-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.search-res-artist {
  font-size: 12px;
  color: var(--text-secondary);
}

.search-res-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
  width: fit-content;
}

.tag-has-lrc {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.tag-no-lrc {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.btn-select-result {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* ==========================================================================
   TEMA CLARO (LIGHT THEME) — DESIGN SYSTEM ELEGANTE & PROFISSIONAL
   ========================================================================== */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-modal: #ffffff;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.14);
  --border-active: rgba(6, 182, 212, 0.8);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.07), 0 0 1px 1px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] body {
  background-color: var(--bg-main);
  color: var(--text-primary);
}

[data-theme="light"] .ambient-glow {
  opacity: 0.18;
}

[data-theme="light"] .studio-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .brand-name {
  color: #0f172a;
}

[data-theme="light"] .ai-status-indicator {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #065f46;
}

[data-theme="light"] .mic-select-header {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

[data-theme="light"] .yt-quick-bar {
  background: #ffffff;
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .yt-input-wrapper {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .yt-input {
  color: #0f172a;
}

[data-theme="light"] .yt-input::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .lobby-tabs-bar {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-tab {
  color: #475569;
}

[data-theme="light"] .btn-tab:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .btn-tab.active {
  background: #ffffff;
  color: var(--accent-cyan);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .search-box {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .search-input {
  color: #0f172a;
}

[data-theme="light"] .song-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .song-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.15);
}

[data-theme="light"] .song-card-title {
  color: #0f172a;
}

[data-theme="light"] .queue-item-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .queue-item-card:hover {
  border-color: var(--accent-cyan);
}

[data-theme="light"] .queue-item-title {
  color: #0f172a;
}

[data-theme="light"] .queue-header-actions {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .queue-header-actions h3 {
  color: #0f172a;
}

[data-theme="light"] .queue-sub {
  color: #475569;
}

[data-theme="light"] .queue-singer-badge {
  background: #fce7f3;
  border-color: #f472b6;
  color: #9d174d;
  font-weight: 800;
}

[data-theme="light"] .queue-score-pill.score-gold {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
  font-weight: 800;
}

[data-theme="light"] .queue-score-pill.score-green {
  background: #d1fae5;
  border-color: #10b981;
  color: #065f46;
  font-weight: 800;
}

[data-theme="light"] .queue-score-pill.score-blue {
  background: #e0f2fe;
  border-color: #0ea5e9;
  color: #0369a1;
  font-weight: 800;
}

[data-theme="light"] .btn-queue-re-sing {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  font-weight: 800;
}

[data-theme="light"] .btn-queue-re-sing:hover {
  background: #10b981;
  color: #ffffff;
}

[data-theme="light"] .btn-queue-remove {
  background: #fee2e2;
  border: 1px solid #f87171;
  color: #991b1b;
  font-weight: 800;
}

[data-theme="light"] .btn-queue-remove:hover {
  background: #ef4444;
  color: #ffffff;
}

[data-theme="light"] .btn-mic-toggle {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .btn-mic-toggle:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

[data-theme="light"] .btn-mic-toggle.active {
  background: #d1fae5;
  border-color: #10b981;
  color: #065f46;
  font-weight: 700;
}

[data-theme="light"] .mic-select-header {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .mic-select-header option {
  background: #ffffff;
  color: #0f172a;
}

[data-theme="light"] .mini-vu {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}

[data-theme="light"] .queue-section-header h4 {
  color: #0f172a;
}

[data-theme="light"] .queue-item-artist {
  color: #475569;
}

[data-theme="light"] .history-table-wrap {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .history-table th {
  background: #f8fafc;
  color: #475569;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .history-table td {
  border-bottom-color: rgba(0, 0, 0, 0.05);
  color: #1e293b;
}

[data-theme="light"] .history-singer-name {
  color: #0f172a;
}

[data-theme="light"] .stage-fullscreen-modal {
  background: #ffffff;
  color: #0f172a;
}

[data-theme="light"] .stage-now-title {
  color: #0f172a;
}

[data-theme="light"] .stage-lyrics-display {
  background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .stage-lyric-current {
  color: #0284c7;
  text-shadow: 0 0 20px rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .stage-lyric-prev,
[data-theme="light"] .stage-lyric-next {
  color: #64748b;
}

[data-theme="light"] .rack-panel {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .stage-bottom-bar {
  background: #ffffff;
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .modal-score-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

[data-theme="light"] .search-result-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .search-res-title {
  color: #0f172a;
}

/* ==========================================================================
   BOTÃO DE TEMA (CLARO / ESCURO) NO CABEÇALHO
   ========================================================================== */
.btn-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-medium);
  color: #f8fafc;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.btn-theme-toggle:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent-cyan);
}

[data-theme="light"] .btn-theme-toggle {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

[data-theme="light"] .btn-theme-toggle:hover {
  background: #e2e8f0;
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   EXCLUIR MÚSICA DO CATÁLOGO (.btn-card-del)
   ========================================================================== */
.btn-card-del {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
  opacity: 0.85;
}

.btn-card-del:hover {
  transform: scale(1.15);
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
  opacity: 1;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

[data-theme="light"] .btn-card-del {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(239, 68, 68, 0.4);
  color: #dc2626;
}

[data-theme="light"] .btn-card-del:hover {
  background: #fee2e2;
  border-color: #dc2626;
}

/* ==========================================================================
   MODAL DE CONTAGEM REGRESSIVA (10 SEGUNDOS PARA PREPARAÇÃO)
   ========================================================================== */
.countdown-card {
  text-align: center;
  padding: 36px 32px;
  max-width: 460px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: radial-gradient(circle at top, rgba(17, 24, 39, 0.98), rgba(6, 8, 15, 0.98));
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(6, 182, 212, 0.25);
}

[data-theme="light"] .countdown-card {
  background: #ffffff;
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12), 0 0 25px rgba(6, 182, 212, 0.15);
}

.countdown-badge-pill {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.countdown-singer-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.countdown-singer-box h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 60%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .countdown-singer-box h2 {
  background: linear-gradient(135deg, #0f172a 0%, #0284c7 60%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.countdown-singer-box p {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

.countdown-timer-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(139, 92, 246, 0.05) 70%, transparent 100%);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.35), inset 0 0 20px rgba(6, 182, 212, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  position: relative;
  animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
  0% { transform: scale(1); box-shadow: 0 0 25px rgba(6, 182, 212, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 45px rgba(6, 182, 212, 0.6); }
  100% { transform: scale(1); box-shadow: 0 0 25px rgba(6, 182, 212, 0.3); }
}

.countdown-number {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 20px var(--accent-cyan);
}

[data-theme="light"] .countdown-number {
  color: #0284c7;
  text-shadow: 0 0 15px rgba(2, 132, 199, 0.3);
}

.countdown-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 2px;
}

.countdown-tip {
  font-size: 14px;
  color: var(--text-secondary);
}

.countdown-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.countdown-actions .btn {
  flex: 1;
}

/* ==========================================================================
   SEÇÕES DA FILA DE CANTORES (AGUARDANDO vs JÁ CANTADAS)
   ========================================================================== */
.queue-section-header {
  margin: 16px 0 10px 0;
}

.queue-section-header h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.queue-item-card.completed {
  background: rgba(14, 20, 36, 0.5);
  border-color: rgba(16, 185, 129, 0.2);
  opacity: 0.9;
}

[data-theme="light"] .queue-item-card.completed {
  background: #f8fafc;
  border-color: rgba(16, 185, 129, 0.25);
}

.queue-item-check {
  font-size: 20px;
  width: 32px;
  text-align: center;
}

.queue-score-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
}

.queue-score-pill.score-gold {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.4);
}

.queue-score-pill.score-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.queue-score-pill.score-blue {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.btn-queue-instant {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-queue-instant:hover {
  background: rgba(6, 182, 212, 0.28);
  border-color: var(--accent-cyan);
}

.btn-queue-re-sing {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-queue-re-sing:hover {
  background: rgba(16, 185, 129, 0.35);
  color: #ffffff;
}

/* ==========================================================================
   VISUALIZADOR SUTIL DE ONDA DE VOZ NO FUNDO DO TELÃO (.vocal-wave-canvas)
   ========================================================================== */
.vocal-wave-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
  filter: drop-shadow(0 0 16px rgba(6, 182, 212, 0.5));
  transition: opacity 0.3s ease;
}

.stage-dynamic-lyrics,
.lyrics-stream {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   CONEXÃO REMOTA VIA CELULAR & QR CODE MODAL
   ========================================================================== */
.btn-qr-toggle {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(139, 92, 246, 0.25));
  border: 1px solid var(--accent-cyan);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-qr-toggle:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.45), rgba(139, 92, 246, 0.45));
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
  transform: scale(1.03);
}

[data-theme="light"] .btn-qr-toggle {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #0284c7;
}

.qr-modal-card {
  max-width: 420px;
  text-align: center;
  padding: 30px 24px;
}

.qr-content-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
}

.qr-image {
  width: 210px;
  height: 210px;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--border-medium);
}

.qr-link-text a {
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 16px;
  text-decoration: underline;
  word-break: break-all;
}

.qr-hint-tag {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  padding: 0 10px;
}

/* ==========================================================================
   BOTOES DO HEADER: ADMIN & AUTENTICAÇÃO
   ========================================================================== */
.btn-admin-toggle {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(99, 102, 241, 0.25));
  border: 1px solid var(--accent-violet);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-admin-toggle:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.45), rgba(99, 102, 241, 0.45));
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
  transform: scale(1.03);
}

[data-theme="light"] .btn-admin-toggle {
  background: #f3e8ff;
  color: #7e22ce;
  border-color: #a855f7;
}

.user-auth-widget {
  display: inline-flex;
  align-items: center;
}

.btn-auth-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-auth-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent-cyan);
}

[data-theme="light"] .btn-auth-pill {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   HUD DE PONTUAÇÃO AO VIVO EM DESTAQUE (CANTO INFERIOR DIREITO DO PLAYER)
   ========================================================================== */
.stage-hud-live-score {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 25;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  border: 2px solid rgba(6, 182, 212, 0.45);
  border-radius: 18px;
  padding: 14px 20px;
  min-width: 200px;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(6, 182, 212, 0.25);
  transition: all 0.25s ease;
  pointer-events: auto;
}

.stage-hud-live-score:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.7), 0 0 30px rgba(6, 182, 212, 0.4);
}

.hud-score-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.hud-score-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.hud-score-digit {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  color: #38bdf8;
  text-shadow: 0 0 22px rgba(56, 189, 248, 0.7);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.hud-score-unit {
  font-size: 14px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 1px;
}

.hud-score-bar-wrap {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 6px;
}

.hud-score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 40%, #10b981 75%, #06b6d4 100%);
  border-radius: 999px;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hud-score-status {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
}

/* Modos de cor do HUD dependendo da faixa de pontuação */
.stage-hud-live-score.hud-low {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 68, 68, 0.25);
}
.stage-hud-live-score.hud-low .hud-score-digit {
  color: #ef4444;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
}

.stage-hud-live-score.hud-mid {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.25);
}
.stage-hud-live-score.hud-mid .hud-score-digit {
  color: #f59e0b;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.7);
}

.stage-hud-live-score.hud-good {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.25);
}
.stage-hud-live-score.hud-good .hud-score-digit {
  color: #10b981;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.7);
}

.stage-hud-live-score.hud-high {
  border-color: rgba(6, 182, 212, 0.7);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 30px rgba(6, 182, 212, 0.45);
}
.stage-hud-live-score.hud-high .hud-score-digit {
  color: #06b6d4;
  text-shadow: 0 0 25px rgba(6, 182, 212, 0.85);
}

[data-theme="light"] .stage-hud-live-score {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12), 0 0 20px rgba(6, 182, 212, 0.15);
}

[data-theme="light"] .hud-score-label {
  color: #475569;
}

[data-theme="light"] .hud-score-status {
  color: #0f172a;
}

[data-theme="light"] .hud-score-bar-wrap {
  background: #e2e8f0;
}

/* ==========================================================================
   MODAL DE ADMINISTRAÇÃO & CRUD DE USUÁRIOS
   ========================================================================== */
.admin-fullscreen-modal {
  width: 92vw;
  max-width: 960px;
  max-height: 90vh;
  border-radius: 20px;
  background: #0b101e;
  border: 1px solid var(--border-medium);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  padding: 0;
  overflow: hidden;
  color: #f8fafc;
}

[data-theme="light"] .admin-fullscreen-modal {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.admin-modal-card {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px 32px;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.admin-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-badge-icon {
  font-size: 30px;
}

.admin-header-title h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

[data-theme="light"] .admin-header-title h2 {
  color: #0f172a;
}

.admin-header-title p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.btn-close-icon {
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-close-icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .btn-close-icon:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.admin-tabs-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.btn-admin-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-admin-tab.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--accent-violet);
  color: #fff;
}

[data-theme="light"] .btn-admin-tab {
  color: #475569;
}

[data-theme="light"] .btn-admin-tab.active {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #a855f7;
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

.admin-section-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

[data-theme="light"] .admin-section-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.admin-section-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-hint-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.ai-provider-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 16px 0 10px;
}

.provider-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="light"] .provider-radio-card {
  background: #ffffff;
  border-color: #cbd5e1;
}

.provider-radio-card:has(input:checked) {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.2);
}

[data-theme="light"] .provider-radio-card:has(input:checked) {
  background: #ecfeff;
  border-color: #06b6d4;
}

.provider-radio-card input {
  margin-top: 4px;
  cursor: pointer;
}

.provider-card-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.provider-card-content strong {
  font-size: 14px;
}

.provider-card-content small {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.admin-grid-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.admin-provider-config-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
}

[data-theme="light"] .admin-provider-config-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.admin-provider-config-box.full-width-box {
  grid-column: 1 / -1;
}

.box-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.box-title-row h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.admin-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  transition: border-color 0.2s;
}

[data-theme="light"] .admin-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.admin-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.input-with-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-toggle-eye {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

[data-theme="light"] .btn-toggle-eye {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-toggle-eye:hover {
  background: rgba(255, 255, 255, 0.15);
}

.admin-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  gap: 16px;
  flex-wrap: wrap;
}

.test-feedback-box {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  flex: 1;
  min-width: 260px;
}

[data-theme="light"] .test-feedback-box {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.admin-action-btns {
  display: flex;
  gap: 10px;
}

/* User CRUD Layout */
.form-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

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

.user-feedback-text {
  font-size: 13px;
  font-weight: 600;
}

.admin-table-wrapper {
  overflow-x: auto;
  margin-top: 10px;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-users-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .admin-users-table th {
  background: #f1f5f9;
  color: #475569;
}

.admin-users-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-del-user {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-del-user:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Auth Modal & Form High-Contrast Styles */
.auth-modal-card {
  max-width: 420px;
  padding: 30px 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
  text-align: left;
}

/* Ensure all form labels have high contrast and never render dark-on-dark */
label,
.form-group label,
.auth-label,
.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc !important; /* Pure readable crisp white */
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  text-align: left;
}

[data-theme="light"] label,
[data-theme="light"] .form-group label,
[data-theme="light"] .auth-label,
[data-theme="light"] .form-label {
  color: #0f172a !important; /* Deep dark slate in light theme */
}

/* Inputs styling with high contrast */
.auth-input,
.modal-input,
.form-group input,
.admin-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(15, 23, 42, 0.92) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 10px;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.auth-input:focus,
.modal-input:focus,
.form-group input:focus,
.admin-input:focus {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.45), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  background: rgba(15, 23, 42, 1) !important;
}

.auth-input::placeholder,
.modal-input::placeholder,
.form-group input::placeholder,
.admin-input::placeholder {
  color: rgba(148, 163, 184, 0.6) !important;
}

[data-theme="light"] .auth-input,
[data-theme="light"] .modal-input,
[data-theme="light"] .form-group input,
[data-theme="light"] .admin-input {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .auth-input:focus,
[data-theme="light"] .modal-input:focus,
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .admin-input:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.35) !important;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
}

.auth-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-password-wrapper .auth-input {
  padding-right: 48px;
}

.btn-toggle-eye {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  opacity: 0.75;
  transition: opacity 0.2s;
  color: #94a3b8;
}

.btn-toggle-eye:hover {
  opacity: 1;
}

[data-theme="light"] .btn-toggle-eye {
  color: #64748b;
}

.auth-error-msg {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

[data-theme="light"] .auth-error-msg {
  background: #fee2e2;
  color: #b91c1c;
}

/* ==========================================================================
   GATEKEEPER DE ENTRADA (TELA DE LOGIN OBRIGATÓRIA PARA ACESSO TOTAL)
   ========================================================================== */
.gatekeeper-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #0f172a 0%, #06080f 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.gatekeeper-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gatekeeper-ambient-backdrop {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.gatekeeper-card {
  position: relative;
  width: 90vw;
  max-width: 440px;
  background: rgba(13, 18, 34, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(6, 182, 212, 0.4);
  border-radius: 24px;
  padding: 38px 34px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 50px rgba(6, 182, 212, 0.22);
  text-align: center;
  z-index: 1;
  animation: gatekeeperPop 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gatekeeperPop {
  0% { transform: scale(0.92) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

[data-theme="light"] .gatekeeper-overlay {
  background: radial-gradient(ellipse at center, #f8fafc 0%, #e2e8f0 100%);
}

[data-theme="light"] .gatekeeper-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 30px rgba(6, 182, 212, 0.15);
}

.gatekeeper-brand {
  margin-bottom: 24px;
}

.gatekeeper-badge {
  display: inline-block;
  padding: 5px 16px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(6, 182, 212, 0.45);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}

[data-theme="light"] .gatekeeper-badge {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
}

.gatekeeper-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(139, 92, 246, 0.25));
  border: 1.5px solid rgba(6, 182, 212, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.35);
}

.gatekeeper-mic-icon {
  font-size: 34px;
}

.gatekeeper-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

[data-theme="light"] .gatekeeper-title {
  color: #0f172a;
}

.gatekeeper-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
  max-width: 340px;
  margin: 0 auto;
}

[data-theme="light"] .gatekeeper-desc {
  color: #475569;
}

.gatekeeper-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
  text-align: left;
}

.btn-auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.4), 0 0 20px rgba(139, 92, 246, 0.25);
  transition: all 0.25s ease;
  margin-top: 6px;
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(6, 182, 212, 0.5), 0 0 30px rgba(139, 92, 246, 0.35);
  filter: brightness(1.08);
}

.btn-auth-submit:active {
  transform: translateY(0);
}


