/* Módulo LRC — estilos (T-210) */

/* ─── Botón "Letra" dentro del overlay del player ─────────────────────── */

.player-overlay-lyric-toggle-wrapper {
    text-align: center;
}

.player-lyric-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--color-yellow);
    background-color: transparent;
    color: var(--color-yellow);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.player-lyric-toggle-btn:hover,
.player-lyric-toggle-btn:focus {
    background-color: rgba(235, 214, 97, 0.15);
    color: var(--color-yellow);
}

.player-lyric-toggle-btn--active {
    background-color: var(--color-yellow);
    color: #000;
}

/* ─── Panel de letra a pantalla completa ──────────────────────────────── */

/*
 * El show/hide lo gestionan las clases Bootstrap d-none / d-flex desde JS.
 * Este bloque solo aporta el posicionamiento y fondo:
 * position:fixed + inset:0 saca el panel del flujo del DOM y lo pone
 * encima del overlay del player (z-index 10000).
 */
.lrc-panel {
    position: fixed;
    inset: 0;
    z-index: 10001;
    flex-direction: column;
    align-items: center;
    background-color: rgba(8, 8, 8, 0.96);
}

/* Botón cerrar (X) — posición absoluta sobre el panel */
.lrc-panel__close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.4rem;
    padding: 8px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    transition: color 0.2s;
}

.lrc-panel__close:hover,
.lrc-panel__close:focus {
    color: #fff;
}

/*
 * Contenedor scrollable de la letra.
 *
 * flex:1 lo hace crecer para llenar todo el panel (el panel es flex-column).
 * padding:48vh top/bottom garantiza que cualquier línea — la primera o la
 * última — pueda centrarse verticalmente gracias a scrollIntoView(center).
 * scrollbar-width:none oculta la barra de scroll visualmente.
 * mask-image crea el desvanecido en los bordes estilo Spotify.
 */
.lrc-panel__lyrics {
    flex: 1;
    width: 100%;
    max-width: 600px;
    overflow-y: auto;
    text-align: center;
    padding: 48vh 24px;
    scrollbar-width: none;

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 18%,
        #000 82%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 18%,
        #000 82%,
        transparent 100%
    );
}

.lrc-panel__lyrics::-webkit-scrollbar {
    display: none;
}

/* ─── Líneas de letra ─────────────────────────────────────────────────── */

.lrc-line {
    color: rgba(255, 255, 255, 0.28);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 20px 0;
    transition: color 0.35s ease, font-size 0.35s ease, transform 0.35s ease, text-shadow 0.35s ease;
}

.lrc-line--active {
    color: #fff;
    font-size: 1.65rem;
    font-weight: 700;
    transform: scale(1.04);
    text-shadow: 0 0 28px rgba(255, 255, 255, 0.28);
}

.lrc-line-plain {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    white-space: pre-line;
    line-height: 1.8;
}
