/* ==================================================
   1. PANEL DE CONTROL (COLORES, VISIBILIDAD Y REDONDEO)
   ================================================== */
:root {
    /* COLOR MAESTRO: Cambia este y cambia toda la radio */
    --player-primary: #4b22f5; 
    --color-rojo: #ff184e; /* Rojo original para detalles */
    
    /* INTERRUPTORES: 'block' para ver, 'none' para ocultar */
    --ver-noticias: block;
    --ver-mas-news: none; /* Botón personalizado */
    --ver-programas: block;
    --ver-emisoras: none;
    --ver-tv: block;
    --ver-historial: block;
    --ver-videos: block;
    --ver-locutores: block;
    --ver-splash: flex; /* 'flex' o 'none' */

    /* REDONDEO DE TV (Ajustable) */
    --redondeo-tv: 25px;

    /* VARIABLES INTERNAS (No tocar) */
    --scroll-bg: rgba(0, 0, 0, 0.2);
    --swiper-pagination-color: var(--player-primary) !important;
    --swiper-theme-color: var(--player-primary) !important;
}

/* ==================================================
   2. ORDEN DE MÓDULOS (CAMBIA LOS NÚMEROS AQUÍ)
   ================================================== */
.main-body, .header-menu-list { 
    display: flex !important; 
    flex-direction: column !important; 
}

/* El número más bajo (0, 1) sale arriba, el más alto (9) abajo */
#menu-inicio                      { order: 0; }
#menu-noticias, #section-news-rss { order: 1; } /* Noticias RSS */
#section-news                     { order: 2; } /* Noticias Manuales */
#section-custom-cta               { order: 3; } /* Botón Más Noticias */
#menu-programas, #section-program { order: 4; }
#menu-emisoras, #section-stations { order: 5; }
#menu-tv, #section-tv-inline      { order: 6; }
#menu-videos, #section-video-tops { order: 7; }
#menu-historial, #section-history { order: 8; }
#menu-locutores, #section-team     { order: 9; }

/* ==================================================
   3. APLICACIÓN DE VISIBILIDAD INTELIGENTE
   ================================================== */
#section-news, #section-news-rss, #menu-noticias { display: var(--ver-noticias); }
#section-custom-cta { display: var(--ver-mas-news) !important; }
#section-program, #menu-programas { display: var(--ver-programas) !important; }
#section-stations, #menu-emisoras { display: var(--ver-emisoras) !important; }
#section-tv-inline, #menu-tv { display: var(--ver-tv) !important; }
#section-history, #menu-historial { display: var(--ver-historial) !important; }
#section-video-tops, #menu-videos { display: var(--ver-videos) !important; }
#section-team, #menu-locutores { display: var(--ver-locutores) !important; }
#splash-screen { display: var(--ver-splash) !important; }

/* Forzado de apagado si la variable es 'none' (Gana al JS) */
html[style*="--ver-noticias: none"] #section-news,
html[style*="--ver-noticias: none"] #section-news-rss,
html[style*="--ver-noticias: none"] #menu-noticias { display: none !important; }



.section-heading {
    display: flex;
    align-items: center;
    /* centra verticalmente todo dentro */
    gap: 10px;
    /* espacio entre el texto y la línea */
}
.volume-dropdown {
    position: absolute;
    left: 50%;
    bottom: 100%;
    padding: 0.75rem;
    border-radius: 9999px;
    background-color: #fbfbfb;
    transform: translate(-50%, 0);
    box-shadow: var(--box-shadow-high);
    transition: opacity var(--player-duration), transform var(--player-duration);
}


.player-equalizer {
    border-radius: 0.5rem;
    overflow: hidden;
}
.modal-article-title{
  
    font-weight: 800;
 
}

.social-item {
    transition: color var(--player-duration);
    padding: 0.3rem;
    background-color: var(--player-social-bg, rgba(255, 255, 255, 0.2));
    border-radius: 999px;
    color: var(--player-social-color, #fff);
}


.social-item {
    transition: transform 0.3s ease, color 0.3s ease;
    background-color: rgb(255 255 255);
    color: black;
}

.social-item:hover {
    color: var(--player-primary);
    transform: scale(1.1);
    /* Aumenta un 10% al hacer hover */
}


.mobile-menu-list {
    font-size: 12px;
    font-weight: 600;
    gap: 12px;
}


.player.is-static {
    position: static;
}

.btn {
    border-radius: 50px;
}
.player.is-static .player-desc .artist-name {
    background-color: #000;
    font-weight: 800;
    padding: 0.25rem 0.5rem;
}

.modal-content {
    background-color: #4216F2;
    width: 100%;
    padding: 10px;
    max-width: 900px;
    border-radius: 15px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: modalOpen var(--player-duration) ease;
}

.btn {

    font-weight: 700;

}

body {
    min-height: 100vh;
    /* Usamos la variable para el fondo */
    background-image: var(--body-bg) !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    background-size: cover !important;
}
.footer {
    background-color: #4216F2;
    color: var(--player-footer-color);
}

.section-heading::after {
    content: "";
    flex: 1;
    height: 8px;
    border-radius: 50px;
    background-color: black;
}
.player:not(.is-static) {
    --container-width: 1250px;
}

/*.install-buttons-wrapper {
   
    background-color: #ffffff0d;
        -webkit-backdrop-filter: blur(1rem);
        backdrop-filter: blur(1rem);
}

.install-botton .install-button{
    align-items: center;
    gap: var(--button-gap, .5rem);
    padding: var(--button-padding, .75rem);
    text-transform: uppercase;
    transition: transform var(--duration);
    white-space: nowrap;
    background-color: rgba(255, 255, 255, .25);
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 700;
    display: flex;
}

.install-botton .install-button {
    text-transform: capitalize;
    --btn-bg: #fff;
    --btn-color: #ffffff;
}

.install-botton .install-button:hover {
    transform: scale(1.1);
}

/*.install-botton .install-button {
    transition: transform 0.3s ease;
    
}*/

/* --- ESTILO GENERAL REDES SOCIALES --- */
.header-socials, .footer-socials {
    display: flex !important;
    gap: 8px;
    align-items: center;
}

.social-item {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-item svg {
    width: 18px !important;
    height: 18px !important;
}

/* Redes en la cabecera (Fondo Rojo original) */
.header-top .social-item {
    background-color: #ffffff !important; /* Rojo original */
    color: #000000 !important;
}

/* Redes en el Footer (Fondo Blanco, Icono Negro) */
.footer .social-item {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.social-item:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* --- LIBERAR COLORES DEL LOGO LOCAL --- */
.header-brand, 
.brand-dark, 
.brand-white {
    /* Esto quita el filtro que lo vuelve blanco o negro */
    filter: none !important; 
    -webkit-filter: none !important;
    
    /* Ajustes de tamaño para que no se vea gigante */
    height: auto !important;
    max-height: 55px !important; 
    width: auto !important;
    object-fit: contain !important;
}

/* Evitar que el modo oscuro le ponga un fondo raro al logo */
.header-logo {
    background: transparent !important;
}


/* ==================================================
   PANEL DE CONTROL DE COLOR (MASTER)
   ================================================== */
:root {
    /* CAMBIA ESTE COLOR Y CAMBIARÁ TODA LA WEB */
    --player-primary: #ff184e; 
    
    /* El rojo original para resaltar botones específicos */
    --color-rojo: #ff184e; 

	/* Fondo por defecto (si el panel está vacío) */
    --body-bg: url("assets/bg.png");

	/* --- INTERRUPTOR DE SPLASH --- */
    /* Escribe 'flex' para ACTIVARLO */
    /* Escribe 'none' para DESACTIVARLO */
    --splash-display: flex; 

    /* Tus otros colores... */
    --player-primary: #4b22f5;

	/* --- CONFIGURACIÓN PARA EL SCROLLBAR --- */
    /* Color de la "pista" por donde corre el scroll (oscuro casi siempre) */
    --scroll-bg: rgba(0, 0, 0, 0.2);
}

/* --- APLICACIÓN EN TODA LA WEB --- */

/* Cabecera y Pie de página */
.header-top, 
footer.footer, 
#footer {
    background-color: var(--player-primary) !important;
}

/* Color para los puntos inactivos (los que no están seleccionados) */
.swiper-pagination-bullet {
    background: var(--player-primary) !important;
    opacity: 0.3 !important;
}

/* Color para el punto que está activo */
.swiper-pagination-bullet-active {
    background: var(--player-primary) !important;
    opacity: 1 !important;
}

/* --- 1. CABECERA Y BARRA DE NOTICIAS --- */
.header-top {
    background-color: var(--player-primary) !important;
}

/* La cajita de "Lo Último" y las redes sociales se quedan en ROJO para resaltar */
/*.newsletter-text, 
/*.header-socials .social-item {
    background-color: var(--color-rojo) !important;
    /*color: #ffffff !important;
}

/* --- 2. MENÚS (LATERAL, MÓVIL Y DE ABAJO) --- */
.header-menu-list a.is-active,
#mobile-menu a.is-active,
.mobile-menu-list a.is-active {
    /* background-color: var(--player-primary) !important;
    /* color: #ffffff !important;
}

/* Efecto hover en el texto del menú con el mismo color */
.header-menu-list a:hover:not(.is-active),
#mobile-menu a:hover:not(.is-active),
.mobile-menu-list a:hover:not(.is-active) {
    color: var(--player-primary) !important;
    background-color: transparent !important;
}

/* --- 3. REPRODUCTORES (PC Y FLOTANTE) --- */

/* Fondo del player derecho en PC */
.player.is-static .player-right {
    background-color: var(--player-primary) !important;
}

/* Fondo del player flotante en Celular (Traslúcido) */
.player:not(.is-static) .player-wrapper {
    background-color: var(--player-primary) !important;
    opacity: 0.9 !important;
    backdrop-filter: blur(10px) !important;
}

/* Barra de progreso superior */
.song-progress-container::after {
    background-color: var(--player-primary) !important;
}

/* Botón Play circular en el flotante */
.player:not(.is-static) .player-button-play {
    background-color: var(--player-primary) !important;
}

/* Bordes de los reproductores de TV */
.video-js-inline-wrapper, .video-js-container {
    border-color: var(--player-primary) !important;
}

/* --- 4. ETIQUETAS Y DETALLES (LOCUTORES, PROGRAMAS) --- */

/* Etiqueta Directo, Al Aire y Locutores */
.badge, 
.schedule-item.is-current .badge, 
.team-item .team-description {
    background-color: var(--player-primary) !important;
}

/* Resaltado del programa actual */
.schedule-item.is-current {
    border-left: 5px solid var(--player-primary) !important;
}

/* Botones de días de la semana */
.program-button.is-active {
    background-color: var(--player-primary) !important;
    border-color: var(--player-primary) !important;
}

/* Ranking de videos */
.videoTops-item::before, .history-rank {
    background-color: var(--player-primary) !important;
}

/* --- ESTO ES LO QUE ENCONTRASTE --- */
    /* Obligamos a Swiper a usar tu color para los puntitos */
    --swiper-pagination-color: var(--player-primary) !important;
    --swiper-theme-color: var(--player-primary) !important;
}

/* --- COLOR DE FONDO PARA VENTANAS DE CANCIÓN Y YOUTUBE --- */

/* 1. Fondo del modal cuando abres la carátula de una canción */
.modal-song .modal-content {
    background-color: var(--player-primary) !important;
}

/* 2. Fondo del modal cuando abres un video de YouTube */
/* Nota: Se recomienda negro para videos, pero si quieres el color de la radio usa var(--player-primary) */
.modal-youtube .modal-content {
    background-color: var(--player-primary) !important; 
}

/* 3. Asegurar que los textos dentro de esos modales se vean blancos */
.modal-song .modal-song-title,
.modal-song .modal-song-meta,
.modal-song .modal-song-info {
    color: #ffffff !important;
}

/* --- REPRODUCTOR DE TV INTEGRADO: BORDE, REDONDEO Y SOMBRA --- */

/* 1. El Marco Exterior */
.video-js-inline-wrapper {
    border-style: solid !important;
    border-width: 5px !important;
    border-color: var(--player-primary) !important;
    
    /* --- AJUSTA EL REDONDEO AQUÍ (Sube o baja este número) --- */
    border-radius: 25px !important; 
    
    /* --- AJUSTA LA SOMBRA AQUÍ --- */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    
    /* Esto corta el video para que obedezca el redondeo */
    overflow: hidden !important; 
    position: relative !important;
    z-index: 1;
}

/* 2. El Video Interno (Obligatorio para que el redondeo funcione) */
/* Atacamos todas las capas internas de Video.js */
#tv-inline-player,
#tv-inline-player video,
#tv-inline-player .vjs-tech,
#tv-inline-player .vjs-poster {
    /* El redondeo interno debe ser un poquito menor que el exterior 
       para que encaje perfecto (o igual al anterior) */
    border-radius: 20px !important; 
    overflow: hidden !important;
}

/* 3. Limpieza de fondos para evitar bordes blancos */
.vjs-default-skin .vjs-big-play-button {
    z-index: 2;
}

/* --- CORRECCIÓN BOTÓN CERRAR Y DISEÑO MODAL YOUTUBE --- */

/* 1. La ventana principal */
.modal-youtube .modal-content {
    /* Permitimos que el botón se vea aunque esté un poquito afuera */
    overflow: visible !important; 
    border: 5px solid var(--player-primary) !important;
    border-radius: 30px !important;
    background-color: #000000 !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8) !important;
}

/* 2. El contenedor del video (Aquí aplicamos el recorte) */
.modal-youtube .modal-body {
    /* Redondeamos el interior para que el video no tape el borde */
    border-radius: 25px !important; 
    overflow: hidden !important;
    padding: 0 !important; /* Quitamos espacios internos */
    display: flex !important;
}

/* 3. El Video / Iframe */
.modal-youtube .ytube-embed,
.modal-youtube iframe {
    border-radius: 5px !important;
    border: none !important;
    display: block !important;
}

/* 4. EL BOTÓN DE CERRAR (Aseguramos que esté al frente) */
.modal-youtube .modal-close {
    z-index: 999999 !important; /* Prioridad máxima */
    background-color: var(--player-primary) !important; /* Fondo del color de la radio */
    color: #ffffff !important; /* "X" blanca */
    border-radius: 50% !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Si quieres que se vea como antes, asegúrate de que esté dentro de la caja */
    top: 10px !important;
    right: 10px !important;
}

/* --- FILTRO DE COLOR PARA EL FONDO (SPLASHSCREEN) --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Usamos la variable que vendrá del panel */
    background-color: var(--splash-color, transparent);
    /* Ajusta este número (0.5) para que el filtro sea más fuerte o más suave */
    opacity: 0.8 !important; 
    z-index: -1; /* Se sitúa encima de la imagen pero detrás del contenido */
    pointer-events: none;
}

/* Aseguramos que el body sea el fondo base */
body {
    background-color: #000; /* Color de fondo si no hay imagen */
}

/* --- OCULTAR BOTONES DE APP STORE Y GOOGLE PLAY --- */
#player-apps, 
.player-apps {
    display: none !important;
}

/* ==================================================
   PANEL DE CONTROL: ORDEN DE MÓDULOS
   ================================================== */

/* 1. Preparamos los contenedores */
.main-body, 
.header-menu-list {
    display: flex !important;
    flex-direction: column !important;
}

/* 2. ASIGNACIÓN DE POSICIONES (1 arriba, 8 abajo) */

/* --- INICIO siempre arriba --- */
#menu-inicio         { order: 0; }

/* --- NOTICIAS (Posición 1 y 2) --- */
#menu-noticias, 
#section-news-rss    { order: 1; } 
#section-news        { order: 2; } 

/* --- PROGRAMACIÓN --- */
#menu-programas, 
#section-program     { order: 4; }

/* --- EMISORAS --- */
#menu-emisoras, 
#section-stations    { order: 5; }

/* --- TV EN VIVO --- */
#menu-tv, 
#section-tv-inline   { order: 6; }

/* --- VIDEOS --- */
#menu-videos, 
#section-video-tops  { order: 7; }

/* --- HISTORIAL --- */
#menu-historial, 
#section-history     { order: 8; }

/* --- LOCUTORES --- */
#menu-locutores, 
#section-team        { order: 9; }

#section-custom-cta { order: 3; display: block; margin-bottom: 40px; }
/* ==================================================
   SPLASH SCREEN
   ================================================== */

/* --- ESTILO SPLASH SCREEN --- */
#splash-screen {
	/* USAMOS LA VARIABLE PARA ENCENDER O APAGAR */
    display: var(--splash-display) !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* USA EL COLOR DINÁMICO DE TU PANEL */
	transition: background-color 1.2s ease, opacity 0.8s ease, visibility 1.2s ease !important;
    background-color: var(--player-primary, #4b22f5) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999; /* Por encima de todo */
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Cuando se le agrega la clase 'fade-out' desde JS */
#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    width: 180px; /* Ajusta el tamaño de tu logo */
    height: auto;
    margin-bottom: 20px;
    /* Animación de pulso */
    animation: splashPulse 2s infinite ease-in-out;
}

/* Línea de carga sutil debajo del logo */
.splash-loader {
    width: 100px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.splash-loader::after {
    content: "";
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: loadingLine 1.5s infinite;
}

/* ANIMACIONES */
@keyframes splashPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes loadingLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* --- ELIMINAR SPLASH SCREEN AUTOMÁTICAMENTE POR CSS --- */

#splash-screen {
    /* Mantenemos tus estilos de fondo y logo... */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* USA EL COLOR QUE YA CARGA TU PANEL */
    background-color: var(--player-primary, #4b22f5) !important;

    /* LLAMAMOS A LA ANIMACIÓN DE DESAPARICIÓN */
    /* 1s de duración, espera 3s para empezar, se queda oculto al final */
    animation: fadeOutSplash 1s ease forwards;
    animation-delay: 5s; 
}

/* Definimos la animación */
@keyframes fadeOutSplash {
    0% {
        opacity: 1;
        visibility: visible;
    }
    99% {
        opacity: 0;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none; /* Esto permite hacer clic en la radio de abajo */
    }
}

/* Animación del logo pulsando (para que no se quede quieto) */
.splash-logo {
    animation: splashPulse 2s infinite ease-in-out;
}

@keyframes splashPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ==================================================
   NOTICIAS RSS: WIDESCREEN CON TEXTO ABAJO (PC)
   ================================================== */
@media (min-width: 992px) {
    /* 1. Contenedor del Carrusel */
    .swiper-news-rss {
        width: 100% !important;
        overflow: hidden !important;
        padding-bottom: 40px !important;
    }

    /* 2. Cada noticia (Slide) */
    .swiper-news-rss .news-item {
        display: flex !important;
        flex-direction: column !important; /* Texto ABAJO de la imagen */
        width: 100% !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        border: none !important;
        margin: 0 !important;
    }

    /* 3. Imagen en formato Panorámico / Widescreen */
    .swiper-news-rss .news-image {
        width: 100% !important;
        height: 450px !important; /* Altura fija para que sea horizontal */
        flex-shrink: 0 !important;
    }

    .swiper-news-rss .news-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* No deforma la imagen */
    }

    /* 4. Contenido de texto abajo */
    .swiper-news-rss .news-content {
        width: 100% !important;
        padding: 25px 30px !important;
        text-align: left !important;
    }

    .swiper-news-rss .news-title {
        font-size: 1.2rem !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }

    .swiper-news-rss .news-description {
        font-size: 0.9rem !important;
        opacity: 0.8 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2; /* Solo 2 líneas para que no quede muy alto */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 5. Flechas laterales (las movemos más afuera para que no tapen) */
    .swiper-next-news-rss { right: -50px !important; }
    .swiper-prev-news-rss { left: -50px !important; }
    
    /* Si las flechas no se ven, usa estas dentro de la caja: */
    .news-wrapper {
        position: relative;
        padding: 0 10px;
    }
}

/* --- ESTABILIZADOR DE CARRUSEL RSS --- */
@media (min-width: 992px) {
    .swiper-news-rss .swiper-wrapper {
        /* Fuerza a que el movimiento sea fluido y no a saltos */
        transition-timing-function: ease-in-out !important;
    }

    .swiper-news-rss .swiper-slide {
        /* Asegura que cada noticia mida EXACTAMENTE el ancho del contenedor */
        width: 100% !important;
        flex-shrink: 0 !important;
        backface-visibility: hidden; /* Mejora la suavidad en Chrome/Celulares */
    }

    #news-rss {
        /* Evita que el contenedor tenga márgenes que confundan al Swiper */
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* --- 1. BARRA DE PROGRESO DEL REPRODUCTOR FLOTANTE --- */
.player:not(.is-static) .song-progress-container::after,
.player-range-fill,
.volume-range-fill {
    background-color: var(--player-primary) !important;
}

/* --- 2. BARRA DE DESPLAZAMIENTO DE LA PÁGINA (SCROLLBAR) --- */

/* Estilo para Chrome, Safari y navegadores modernos (Celulares Android) */
::-webkit-scrollbar {
    width: 10px; /* Ancho de la barra */
}

::-webkit-scrollbar-track {
    background: var(--scroll-bg); /* Fondo de la barra */
}

::-webkit-scrollbar-thumb {
    /* AQUÍ SE APLICA TU COLOR DEL PANEL */
    background-color: var(--player-primary) !important; 
    border-radius: 10px; /* Bordes redondeados */
    border: 2px solid transparent; /* Pequeño espacio para que luzca mejor */
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    filter: brightness(1.2); /* Se aclara un poco al pasar el mouse */
}

/* Estilo para Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--player-primary) var(--scroll-bg);
}

/* --- ESTILO DE LA BARRA DE PROGRESO (AVANCE DE LA CANCIÓN) --- */

.song-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px; /* Grosor de la línea */
    background-color: rgba(255, 255, 255, 0.7); /* Color de la barra vacía */
    z-index: 5;
    overflow: hidden;
}

/* Esta es la parte que "camina" y toma el color del panel */
.song-progress-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    
    /* USA EL COLOR DEL PANEL */
    background-color: var(--player-primary) !important;
    
    /* USA EL PORCENTAJE QUE ENVÍA EL JAVASCRIPT */
    width: var(--song-progress, 0%); 
    
    /* Animación suave para que no avance a saltos */
    transition: width 1s linear;
}

/* Opcional: Dale un brillo sutil a la punta de la barra */
.song-progress-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--song-progress, 0%);
    width: 10px;
    height: 100%;
    background: white;
    filter: blur(4px);
    opacity: 0.5;
    z-index: 6;
    transform: translateX(-100%);
}

/* ==================================================
   PANEL DE CONTROL: ACTIVAR/DESACTIVAR MÓDULOS
   (Escribe 'block' para ENCENDER o 'none' para APAGAR)
   ================================================== */
:root {
    --ver-noticias:   block;  /* Noticias (Manual y RSS) */
    --ver-programas:  block;  /* Programación */
    --ver-emisoras:   none;  /* Carrusel de radios abajo */
    --ver-tv:         block;  /* Reproductor TV en la página */
    --ver-historial:  block;  /* Canciones sonadas */
    --ver-videos:     block;  /* YouTube Tops */
    --ver-locutores:  block;  /* Staff / Team */
    --ver-splash:     flex;   /* Pantalla de carga inicial (flex o none) */
}

/* --- APLICACIÓN AUTOMÁTICA (No tocar) --- */

/* Noticias */
#section-news, #section-news-rss, #menu-noticias { 
    display: var(--ver-noticias) !important; 
}

/* Programación */
#section-program, #menu-programas { 
    display: var(--ver-programas) !important; 
}

/* Emisoras */
#section-stations, #menu-emisoras { 
    display: var(--ver-emisoras) !important; 
}

/* TV en Vivo */
#section-tv-inline, #menu-tv { 
    display: var(--ver-tv) !important; 
}

/* Historial */
#section-history, #menu-historial { 
    display: var(--ver-historial) !important; 
}

/* Videos YouTube */
#section-video-tops, #menu-videos { 
    display: var(--ver-videos) !important; 
}

/* Locutores */
#section-team, #menu-locutores { 
    display: var(--ver-locutores) !important; 
}

/* Splash Screen */
#splash-screen { 
    display: var(--ver-splash) !important; 
}

/* 1. Quitamos el !important de aquí abajo */
#section-news, 
#section-news-rss, 
#menu-noticias { 
    display: var(--ver-noticias); /* SIN !important */
}

/* 2. Dejamos el !important SOLO para el apagado total desde el panel */
html[style*="--ver-noticias: none"] #section-news,
html[style*="--ver-noticias: none"] #section-news-rss,
html[style*="--ver-noticias: none"] #menu-noticias {
    display: none !important;
}

/* --- CONFIGURACIÓN DE BOTÓN PERSONALIZADO --- */

/* 1. Agregar al sistema de orden (Cámbiale el número según donde lo quieras) */


/* 2. El diseño de la caja */
.cta-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

/* --- AJUSTE DE COLOR PARA EL BOTÓN PERSONALIZADO --- */
.cta-box {
    /* Mismo color negro de la franja de instalación */
    background-color: #0f172a !important; 
    
    /* Quitamos el efecto traslúcido para que sea un bloque sólido igual al otro */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    
    /* Ajustes de diseño para que sea idéntico */
    border: none !important;
    padding: 30px 40px !important;
    border-radius: 15px !important; /* Mismo redondeo que la instalación */
    text-align: center;
    width: 100%;
    max-width: 850px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

/* Aseguramos que el texto sea blanco puro */
#cta-text {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* 3. El Botón que toma el color de la radio */
.btn-pro-action {
    background-color: var(--player-primary) !important;
    color: #fff !important;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-transform: uppercase;
}

.btn-pro-action:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}