/* ============================================ */

/* STYLE.CSS — Variables globales y estilos     */

/*             generales del sitio RRI          */

/* ============================================ */

/* ============================= */

/* FUENTES                       */

/* ============================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playwrite+NO:wght@100;200;300;400;500;600;700&display=swap');
/* ============================= */

/* VARIABLES GLOBALES            */

/* ============================= */

:root {
    --font-main: 'Manrope', sans-serif;
    --font-blog: 'PT Serif', serif;
    --font-accent: 'Playwrite NO', cursive;
    --color-primary: #006fca;
    --color-secondary: #005fec;
    --color-white: #ffffff;
    --color-black: #050505;
    --transition: 0.3s ease;
}

/* ============================= */

/* BASE                          */

/* ============================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-black);
    color: var(--color-white);
    margin: 0;
}

/* ============================= */

/* BOTÓN PLAY PRO                */

/* ============================= */

.play-btn-main {
    width: 52px;
    height: 52px;
    background: var(--color-white) !important;
    color: var(--color-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
}

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

.play-btn-main:active {
    transform: scale(0.95);
}

.play-btn-main.playing {
    box-shadow: 0 0 20px rgba(6, 49, 245, 0.6);
}

.play-btn-main i {
    transition: color var(--transition);
}

/* ============================= */

/* LIVE TAG ANIMADO              */

/* ============================= */

.live-tag {
    background: rgba(224, 18, 32, 0.15);
    color: var(--color-secondary);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* ============================= */

/* ICONO RADIO                   */

/* ============================= */

.info-card-bg {
    background: var(--color-secondary);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(6, 21, 236, 0.4);
}

/* ============================= */

/* SLIDER DE VOLUMEN             */

/* ============================= */

input[type='range'] {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    width: 90px;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition);
}

input[type='range']:hover {
    height: 6px;
}

input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    background: var(--color-white);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

input[type='range']::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* ============================= */

/* TEXTO NOW PLAYING             */

/* ============================= */

#nowPlaying {
    transition: opacity 0.3s ease;
}

/* ============================= */
/* SLIDESHOW (Ken Burns Effect)  */
/* ============================= */

.slideshow-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: kenburns 24s infinite linear;
    z-index: 0;
}

.slideshow-bg:nth-child(1) { animation-delay: 0s; }
.slideshow-bg:nth-child(2) { animation-delay: 6s; }
.slideshow-bg:nth-child(3) { animation-delay: 12s; }
.slideshow-bg:nth-child(4) { animation-delay: 18s; }

@keyframes kenburns {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    5% {
        opacity: 0.4; /* Opacity adjusted for background */
    }
    25% {
        opacity: 0.4;
    }
    30% {
        opacity: 0;
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}