/**
 * ==========================================================
 * FM Pulse - Persistent Radio Player
 * Barra fija inferior
 * ==========================================================
 */


/* ==========================================================
   CONTENEDOR PRINCIPAL
   ========================================================== */

#fm-pulse-player.fm-pulse-player {

    position: fixed !important;

    left: 0 !important;

    right: 0 !important;

    bottom: 0 !important;

    width: 100% !important;

    max-width: none !important;

    height: auto !important;

    margin: 0 !important;

    padding: 0 !important;

    background: #168b46 !important;

    border: none !important;

    box-shadow:
        0 -3px 15px rgba(0, 0, 0, 0.18) !important;

    z-index: 999999 !important;

    box-sizing: border-box !important;

}


/* ==========================================================
   CONTENEDOR INTERNO
   ========================================================== */

.fm-pulse-player-inner {

    width: 100%;

    max-width: 1200px;

    min-height: 72px;

    margin: 0 auto;

    padding: 10px 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 24px;

    box-sizing: border-box;

}


/* ==========================================================
   IDENTIDAD DE LA EMISORA
   ========================================================== */

.fm-pulse-brand {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;

    color: #ffffff;

}


.fm-pulse-microphone {

    font-size: 20px;

    line-height: 1;

}


.fm-pulse-brand-info {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.fm-pulse-title {

    color: #ffffff;

    font-size: 16px;

    font-weight: 700;

    line-height: 1.2;

    white-space: nowrap;

}


.fm-pulse-live {

    display: flex;

    align-items: center;

    gap: 6px;

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    line-height: 1;

}


/* ==========================================================
   INDICADOR EN VIVO
   ========================================================== */

.fm-pulse-live-indicator {

    display: inline-block;

    width: 10px;

    height: 10px;

    background: #9acd32;

    border-radius: 50%;

    box-shadow:
        0 0 0 3px rgba(154, 205, 50, 0.15);

}


/* ==========================================================
   REPRODUCTOR DE AUDIO
   ========================================================== */

.fm-pulse-audio {

    display: block;

    width: 320px;

    max-width: 100%;

    height: 42px;

    margin: 0;

}


/* ==========================================================
   BOTÓN ABRIR REPRODUCTOR
   ========================================================== */

.fm-pulse-open-player {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding: 9px 18px;

    margin: 0;

    border: none;

    border-radius: 5px;

    background: #ffffff;

    color: #168b46;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.2;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;

}


.fm-pulse-open-player:hover {

    background: #f1f1f1;

    color: #0f6f37;

    transform: translateY(-1px);

}


.fm-pulse-open-player:active {

    transform: translateY(0);

}


.fm-pulse-open-player:focus-visible {

    outline: 2px solid #ffffff;

    outline-offset: 3px;

}


/* ==========================================================
   AVISO
   ========================================================== */

.fm-pulse-notice {

    color: #ffffff;

    font-size: 14px;

    font-weight: 600;

}


/* ==========================================================
   RESPONSIVE - TABLET
   ========================================================== */

@media (max-width: 900px) {

    .fm-pulse-player-inner {

        gap: 12px;

        padding: 8px 12px;

    }


    .fm-pulse-title {

        font-size: 14px;

    }


    .fm-pulse-audio {

        width: 260px;

    }


    .fm-pulse-open-player {

        padding: 8px 12px;

    }

}


/* ==========================================================
   RESPONSIVE - MÓVIL
   ========================================================== */

@media (max-width: 650px) {

    #fm-pulse-player.fm-pulse-player {

        bottom: 0 !important;

    }


    .fm-pulse-player-inner {

        min-height: auto;

        padding: 8px 10px;

        display: grid;

        grid-template-columns: 1fr auto;

        gap: 8px;

    }


    .fm-pulse-brand {

        min-width: 0;

    }


    .fm-pulse-title {

        max-width: 180px;

        overflow: hidden;

        text-overflow: ellipsis;

        font-size: 13px;

    }


    .fm-pulse-live {

        font-size: 11px;

    }


    .fm-pulse-audio {

        width: 100%;

        max-width: none;

        height: 38px;

        grid-column: 1 / -1;

    }


    .fm-pulse-open-player {

        min-height: 36px;

        padding: 7px 10px;

        font-size: 12px;

    }

}


/* ==========================================================
   ESPACIO DE SEGURIDAD
   Evita que la barra tape contenido en móvil.
   ========================================================== */

@media (max-width: 650px) {

    body {

        padding-bottom: 100px;

    }

}