/* ================================================================
   LIVE VIEW
   ================================================================ */

.live-wrapper { display: flex; height: 100%; }

.live-sidebar {
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    background: var(--bg-panel);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    overflow-y: auto;
}
.live-sidebar h3 { color: var(--text-bright); font-size: 0.95rem; font-weight: 700; }

.live-main { flex: 1; display: flex; flex-direction: column; background: #000; overflow: hidden; }

.live-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #222;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    background: linear-gradient(180deg, #111, #000);
}

#live-title { font-size: 1.8rem; color: var(--text-bright); font-weight: 800; }
.live-meta { color: var(--accent-cyan); font-weight: 600; font-size: 0.85rem; }
.equipment-note { color: var(--accent-yellow); font-style: italic; margin-top: 0.3rem; background: rgba(248,233,161,0.1); display: inline-block; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.85rem; }
#live-metadata { color: var(--text-main); font-size: 0.82rem; margin-top: 0.2rem; }

.live-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.live-viewport { flex: 1; overflow-y: auto; padding: 1.5rem 2rem; padding-bottom: 60vh; position: relative; }

.live-controls { display: flex; gap: 0.5rem; }
.btn-live {
    flex: 1; padding: 0.6rem 0; background: var(--bg-color);
    border: 1px solid var(--border-color); color: var(--text-bright);
    border-radius: 6px; font-family: inherit; font-weight: 600; font-size: 0.85rem;
    cursor: pointer; transition: all 0.2s;
}
.btn-live:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.list-compact .song-item { padding: 0.5rem 0.6rem; margin-bottom: 0.3rem; }
.list-compact .song-item.selected { background: rgba(60,229,215,0.1); }

/* ── Modo Músico: solo lo esencial ── */
body.musician-mode .live-sidebar    { display: none !important; }
body.musician-mode #scroll-params-live { display: none !important; }

/* Selector de set dentro del Live Show */
.live-set-picker { display: flex; gap: 0.4rem; align-items: center; }
.live-set-picker select {
    flex: 1; min-width: 0; background: var(--bg-color); color: var(--text-bright); border: 1px solid var(--border-color);
    border-radius: 6px; padding: 0.45rem 0.5rem; font-family: inherit; font-weight: 700; font-size: 0.85rem;
}
.live-set-picker select:focus { outline: none; border-color: var(--accent-cyan); }
.btn-live-sets {
    flex-shrink: 0; background: var(--bg-color); border: 1px solid var(--border-color); color: var(--text-bright);
    border-radius: 6px; padding: 0.45rem 0.6rem; font-family: inherit; font-weight: 600; font-size: 0.8rem; cursor: pointer;
}
.btn-live-sets:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
body:not(.practice-mode) #live-set-name { display: none; }
body.practice-mode .live-set-picker { display: none; }

/* Costado del Live Show: el selector de set y Prev/Siguiente quedan fijos; solo la lista de
   canciones se desplaza (en pantallas grandes; en el celular el costado va arriba, como antes) */
@media screen and (min-width: 801px) {
    .live-sidebar { overflow: hidden; min-height: 0; }
    .live-sidebar > h3, .live-set-picker, .live-controls { flex-shrink: 0; }
    #live-setlist { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0; padding-right: 2px; }
}

/* Botón "Animación" (batería o bajo) junto al tono */
.btn-anim.active { background: var(--accent-cyan); color: #000; border-color: var(--accent-cyan); }
/* Apagado: tenue (sin el celeste del prendido) */
.btn-anim:not(.active) { opacity: 0.6; border-color: var(--border-color); color: var(--text-main); }

/* Tempo por micrófono: botón solo en el Live Show (no en práctica) y cartel con la flecha */
body.practice-mode #btn-tempomic { display: none !important; }
#tempo-hint { position: fixed; top: 120px; right: 18px; z-index: 8500; display: none; min-width: 150px;
    padding: 10px 16px 12px; border-radius: 14px; text-align: center; background: rgba(10,14,20,0.92);
    border: 2px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.55); pointer-events: none; }
#tempo-hint.on { display: block; }
body:has(#view-live:not(.active)) #tempo-hint { display: none; }
#tempo-hint .th-arrow { font-size: 4rem; font-weight: 900; line-height: 1; }
#tempo-hint .th-text { font-size: 1.3rem; font-weight: 800; margin-top: 2px; }
#tempo-hint .th-detail { font-size: 0.78rem; color: #9aa6b5; margin-top: 4px; font-variant-numeric: tabular-nums; }
#tempo-hint.up   { border-color: #ff9f1c; } #tempo-hint.up   .th-arrow, #tempo-hint.up   .th-text { color: #ff9f1c; }
#tempo-hint.down { border-color: #4cc9f0; } #tempo-hint.down .th-arrow, #tempo-hint.down .th-text { color: #4cc9f0; }
#tempo-hint.ok   { border-color: var(--accent-green); } #tempo-hint.ok .th-arrow, #tempo-hint.ok .th-text { color: var(--accent-green); }
#tempo-hint.wait .th-arrow { font-size: 2.2rem; } #tempo-hint.wait .th-text { color: #ccc; font-size: 1rem; }
@media (max-width: 700px) {
    #tempo-hint { top: auto; bottom: 16px; right: 12px; min-width: 120px; padding: 8px 12px 10px; }
    #tempo-hint .th-arrow { font-size: 3rem; }
}
