/* ================================================================
   DRUMS - panel de carriles de batería (vista Live)
   ================================================================ */

#drums-panel {
    flex: 0 0 55%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    background: #07070a;
    border-bottom: 1px solid #222;
    position: relative;
}
#drums-panel.hidden { display: none; }
#drums-canvas { flex: 1; width: 100%; min-height: 0; display: block; }
.drums-controls {
    position: absolute;
    top: 6px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #888;
    opacity: 0.6;
}
.drums-controls:hover { opacity: 1; }
.drums-controls .scroll-param-val { min-width: 28px; text-align: center; }

/* Con la batería visible, la letra queda en el resto del alto */
#view-live .live-main { min-height: 0; }
#view-live .live-viewport { min-height: 0; }

/* Panel del bajo: igual que el de la batería */
#bass-panel {
    flex: 0 0 55%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    background: #111111;
    border-bottom: 1px solid #222;
    position: relative;
}
#bass-panel.hidden { display: none; }
#bass-canvas { flex: 1; width: 100%; min-height: 0; display: block; }

/* Baterista / bajista: el instrumento ocupa toda la vista, sin letra ni acordes.
   Si el perfil muestra los dos, se reparten el alto. */
body.drums-only #drums-panel,
body.bass-only #bass-panel { flex: 1 1 0; }
body.drums-only #scroll-container,
body.bass-only #scroll-container { flex: 0 0 0; min-height: 0; height: 0; overflow: visible; padding: 0; }
body.drums-only #live-chords-lyrics,
body.bass-only #live-chords-lyrics { display: none; }
/* la cuenta atrás sigue visible encima de los carriles */
body.drums-only #lrc-countdown,
body.bass-only #lrc-countdown { position: fixed; background: rgba(0, 0, 0, 0.5); }

/* Mis anotaciones: cartel 3 s antes, con cuenta regresiva, sobre la parte alta de los carriles */
.live-main { position: relative; }
.annotation-banner {
    position: absolute; left: 50%; transform: translateX(-50%); z-index: 20; pointer-events: none;
    max-width: min(92%, 760px); display: flex; align-items: center; gap: 0.9rem;
    padding: 0.6rem 1.2rem; border-radius: 12px;
    background: rgba(26, 23, 8, 0.95); border: 2px solid #ffd60a; color: #ffd60a;
    font-weight: 800; font-size: 1.35rem; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.7);
}
.annotation-banner.hidden { display: none; }
.annotation-banner .ab-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.annotation-banner .ab-count {
    min-width: 1.8em; height: 1.8em; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #ffd60a; color: #000; font-size: 1.1rem;
}
.annotation-banner .ab-count:empty { display: none; }
.annotation-banner.now { background: #ffd60a; color: #000; }

/* Sin letra en pantalla no tiene sentido cambiar su tamaño */
body.drums-only .text-size-controls,
body.bass-only .text-size-controls { display: none !important; }

/* Sin acordes en pantalla tampoco tiene sentido transponer */
body.drums-only .transpose-top,
body.bass-only .transpose-top { display: none !important; }

/* Con la animación tampoco hay acordes en pantalla */
body.drums-only #btn-chords,
body.bass-only #btn-chords { display: none !important; }
