/* =========================================
   OIGO RADIO - MODERN UI 2026 
   ========================================= */

:root {
    --bg-dark: #f1f3f8;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --accent: var(--radio-color); /* Dinámico desde PHP */
    --accent-rgb: var(--radio-color-rgb); /* Dinámico desde PHP */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.radio-single {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
}

/* --- Navegación --- */
.radio-top-nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.live-badge {
    background: #ff0040;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    animation: pulse-red 2s infinite;
}

/* --- Hero Section (Efecto Glassmorphism 2026) --- */
.radio-hero {
    padding: 140px 0 80px;
    background: radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(var(--accent-rgb), 0.1), transparent 40%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
    align-items: center;
}
.sub-txt-2026{
    color: var(--sub1-color);
}

.icono-song-2026{
    color: var(--titulo-color);
}
.artista-2026{
    color: var(--album-artista);
}
.temas-2026{
    color: var(--album-tema);
}
.badge{
    color: var(--album-envivo);
}

.status-now {
    font-size: 12px;
    font-weight: 600;
    color: var(--sub-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.program-title {
    color: var(--titulo-color);
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 800;
    margin: 0 0 30px;
    line-height: 1;
    letter-spacing: -2px;
}

/* Botón Play Principal */
.big-play-btn {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: none;
    background: var(--btn-play-bg);
    color: var(--btn-play-icon);
    border: 2px solid var(--btn-play-border);
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 15px 35px rgba(var(--accent-rgb), 0.3);
}

.big-play-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 20px 45px rgba(var(--accent-rgb), 0.5);
}

/* Carátula Dinámica */
.album-art-container {
    position: relative;
}

.album-card {
    background: var(--album-bg);
    border-radius: 30px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--album-border);;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.album-card img {
    width: 96%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 7px solid #ffffff;
    border-radius: 20px;
    
}

.song-overlay {
    margin-top: 20px;
}

/* Estilo Reloj Cinemático - Versión Desktop */
.schedule-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-left: 20px; /* Espacio respecto al botón play */
}

.label-horario {
    font-size: 14px;
    font-weight: 800;
    color:var(--hora-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reloj-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
}

.time-val {
    font-size: 48px; 
    font-weight: 800;
    color: var(--hora-time);
    line-height: 1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.ampm-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--hora-ampm); 
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* AJUSTES PARA MÓVILES (Responsive) */
@media (max-width: 768px) {
    .schedule-info {
        margin-left: 15px; /* Reducimos el margen en móviles */
    }

    .label-horario {
        font-size: 11px; /* Etiqueta un poco más pequeña */
    }

    .time-val {
        font-size: 32px; /* Reducimos el tamaño para que no se desborde */
    }

    .ampm-val {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-wrap: wrap; /* Si el espacio es muy poco, baja el reloj abajo del play */
        justify-content: center;
        text-align: center;
    }
    
    .schedule-info {
        align-items: center; /* Centramos el reloj si baja de línea */
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }

    .time-val {
        font-size: 38px; /* Un tamaño intermedio para que luzca bien centrado */
    }
}
/* =========================================
   ESTILOS PARA GRILLA DE NOTICIAS (MODERNO)
   ========================================= */

/* 1. La Grilla: Asegura que sea responsiva y tenga buen espacio */
.news-grid-rss {
    display: grid;
    /* Crea columnas de mínimo 280px, llenando el espacio disponible */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 25px; /* Espacio entre tarjetas */
    padding: 20px 0;
}

/* 2. La Tarjeta: Estilo visual de contenedor blanco con sombra */
.news-card-rss {
    background-color: #ffffff; /* Fondo blanco puro */
    border-radius: 15px;       /* Esquinas redondeadas suaves */
    overflow: hidden;         /* Importante: recorta la imagen si sobresale */
    box-shadow: 0 10px 20px rgb(0 0 0 / 0%); /* Sombra suave para dar profundidad */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animación suave al pasar el mouse */
    border: 1px solid #f0f0f0; /* Borde sutil casi invisible */
}

/* Efecto al pasar el mouse (Hover) */
.news-card-rss:hover {
    transform: translateY(-5px); /* Levanta la tarjeta ligeramente */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); /* Sombra más pronunciada */
}

/* Asegura que el enlace ocupe toda la tarjeta */
.news-card-rss a {
    text-decoration: none; /* Quita el subrayado */
    color: inherit;         /* Hereda el color de texto */
    display: flex;
    flex-direction: column; /* Contenido uno debajo del otro */
    height: 100%;
}

/* 3. El Contenedor de la Imagen: Define la proporción */
.news-thumb {
    width: 100%;
    /* Define una proporción de aspecto (ej: 16:9). 
       Esto hace que todas las imágenes midan lo mismo de alto */
    aspect-ratio: 16 / 9; 
    overflow: hidden; /* Recorta lo que sobre */
    background-color: #f4f4f4; /* Fondo gris mientras carga la imagen */
}

/* 4. La Imagen Mágica: Se adapta al cuadro sin deformarse */
.news-thumb img {
    width: 100%;
    height: 100%;
    /* ESTA ES LA PROPIEDAD CLAVE: 
       Hace que la imagen cubra todo el espacio disponible, 
       recortándose si es necesario, pero SIN DEFORMARSE (estirarse) 
       y manteniéndose centrada. */
    object-fit: cover; 
    object-position: center; /* Centra el recorte */
    transition: transform 0.5s ease; /* Animación para el zoom */
}

/* Efecto de zoom en la imagen al hacer hover en la tarjeta */
.news-card-rss:hover .news-thumb img {
    transform: scale(1.05); /* Zoom suave */
}

/* 5. La Info (Título): Espaciado y tipografía */
.news-info {
    padding: 20px; /* Espacio interno del texto */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Empuja el texto hacia arriba si hay espacio */
    justify-content: center; /* Centra verticalmente el título */
}

/* Estilo del Título (H3) */
.news-info h3 {
    margin: 0;
    font-family: 'Montserrat', sans-serif; /* Tu fuente */
    font-size: 1.1rem;      /* Tamaño de fuente moderno */
    font-weight: 600;       /* Semi-negrita */
    color: #1a1a1a;         /* Color casi negro */
    line-height: 1.4;       /* Altura de línea para legibilidad */
    
    /* TRUCO PARA CORTAR EL TEXTO A 2 LÍNEAS (y poner "...") */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Número de líneas máximo */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Título de la sección "Noticias Recientes" */
.section-title-fb {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #1877f2; /* Asumo que tu fondo de hero es oscuro */
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #18181b; /* Asumo que tu fondo de hero es oscuro */
    margin-bottom: 10px;
    letter-spacing: -1px;
}

/* --- Player Footer (Flotante y Moderno) --- */
.footer-player {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: var(--player-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--player-border);
    border-radius: 25px;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 20px 50px var(--player-sombra);
}

.player-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-station {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 30%;
}

.mini-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
}

.mini-info strong {
    color: var(--titulo-color);
    display: block;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.mini-info span {
    font-size: 12px;
    color: var(--sub2-color);
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 40%;
}

.mini-play-btn {
    width: 45px;
    height: 45px;
    background: var(--btn-play-bg);
    color:var(--btn-play-icon);
    border: 1px solid var(--btn-play-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.mini-play-btn:hover {
    transform: scale(1.1);
    background: var(--accent);
}

/* --- Animaciones --- */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 64, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 64, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 64, 0); }
}

.pulse-icon {
    width: 8px;
    height: 8px;
    background: var(--titulo-color);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-accent 2s infinite;
}

@keyframes pulse-accent {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(0.95); opacity: 1; }
}

/* --- OIGO 2026: Modern Radio Grid --- */
.suggestions-section {
    padding-top: 0px;    
}

.section-subtitle {
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 40px;
    text-align: center;
}

.radios-published-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 40px;
    justify-content: center;
    padding: 20px 0;
}

.radio-published-item {
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* El contenedor del logo con efecto 2026 */
.radio-circle-wrapper {
    width: 130px;
    height: 130px;
    margin: 0 auto 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10%;
    /* Borde dinámico con glow sutil */
    box-shadow: 
        0 0 0 4px #fff, 
        0 0 0 7px var(--item-color);
    transition: all 0.4s ease;
}

.radio-published-item:hover .radio-circle-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 0 0 4px #fff, 
        0 0 0 9px var(--item-color),
        0 20px 40px rgba(var(--item-color-rgb), 0.3);
}

.radio-circle-wrapper img {
    object-fit: contain;
    filter: grayscale(10%);
    width: 130px;
    height: 130px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10%;
    box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--item-color);
    transition: all 0.4s ease;
}

.radio-published-item:hover img {
    filter: grayscale(0%);
}

.radio-name-modern {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1d23;
    margin-top: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.radio-published-item:hover .radio-name-modern {
    opacity: 1;
    color: var(--item-color);
}

/* --- Navegación (REMPLAZAR SOLO ESTA PARTE) --- */
.radio-top-nav {
    position: fixed;
    top: 0;
    justify-content: space-between;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgb(255 255 255 / 8%); /* Fondo sutil que permite ver el gradiente del body */
    backdrop-filter: blur(15px);      /* Efecto cristal esmerilado profesional */
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgb(255 255 255 / 22%);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* --- Logo Estilizado --- */
.brand-name a {
    text-decoration: none;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -1px;
    color: #fff;
    text-transform: uppercase;
}

.brand-name span {
    color: var(--accent); /* Usa tu variable dinámica --accent */
    font-weight: 400;
    margin-left: 2px;
}

/* --- Badge "EN VIVO" Modernizado --- */
.live-badge {
    background: #ff0040;
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 0, 64, 0.3);
    letter-spacing: 1px;
    animation: pulse-red 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Punto de pulso interno para el badge */
.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot-inner 1.5s infinite;
}

@keyframes pulse-dot-inner {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(0.9); opacity: 1; }
}

/* Mantengo tu animación original pulse-red pero optimizada */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 64, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 64, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 64, 0); }
}

/* --- Responsive --- */
@media (max-width: 992px) {
    
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-container { justify-items: center; }
    .album-art-container { order: -1; width: 300px; }
    .player-extras { display: none; }
    .player-station { width: 70%; }
    .player-controls { width: 30%; }
}


/* --- Ajustes Responsive 2026 --- */
@media (max-width: 768px) {
    .fb-grid-modern{
        grid-template-columns: repeat(auto-fill, minmax(299px, 1fr)) !important;
        }
    /* Navegación Móvil */
    .radio-top-nav {
        height: 65px; /* Más compacto en móvil */
        padding: 0;
    }

    .brand-name a {
        font-size: 1.1rem; /* Logo un poco más pequeño */
    }

    .live-badge {
        padding: 4px 10px;
        font-size: 9px;
        gap: 5px;
    }

    /* Player Footer Móvil */
    .footer-player {
        bottom: 10px; /* Pegado al borde inferior */        
        padding: 10px 15px;
        border-radius: 15px;
    }

    .player-wrap {
        gap: 10px;
    }

    .player-station {
        width: 65%; /* Prioridad al nombre de la canción */
        gap: 10px;
    }

    .mini-logo {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .mini-info strong {
        font-size: 12px;
        max-width: 150px;
    }

    .mini-info span {
        font-size: 10px;
    }

    .player-controls {
        width: 35%;
        flex-direction: row; /* Controles al lado de la info */
        justify-content: flex-end;
    }

    .mini-play-btn {
        width: 40px;
        height: 40px;
    }

    /* Ocultar barra de progreso y volumen en móvil para limpiar la interfaz */
    .progress-bar-container, 
    .player-extras {
        display: none !important;
    }
}
/* Contenedor para poner icono y barra uno al lado del otro */
.volume-horizontal-stack {
    display: flex;
    align-items: center;
    gap: 12px; /* Espacio entre el parlante y la barra */
}

.vol-icon {
    font-size: 16px;
    color: var(--vol-handle) !important;
    width: 20px; /* Ancho fijo para que no salte al cambiar de icono */
    text-align: center;
}

.vol-bar-container {
    position: relative;
    width: 100px; /* Un poquito más larga para que sea cómoda */
    height: 5px;
    background: var(--vol-bar-bg);
    border-radius: 10px;
}


#volSlider {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.vol-bar-fill {
    height: 100%;
    background: var(--vol-progress);
    border-radius: 10px;
    transition: width 0.1s ease;
}

/* volumen*/


#volSlider {
    position: absolute;
    width: 100%;
    opacity: 0; /* Lo hacemos invisible para que solo se vea tu vol-bar-fill */
    cursor: pointer;
    z-index: 5;
}


/* =========================================
   CONTROL DE VOLUMEN (ALINEADO Y DISTINGUIBLE)
   ========================================= */

/* Contenedor principal de extras */
.player-extras {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio horizontal entre icono y barra */
    justify-content: flex-end; /* Lo empuja a la derecha */
}

/* El icono del parlante */

/* Contenedor visual de la barra de volumen */


/* El control deslizante real (invisible, pero capta el clic) */
#volSlider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Invisible */
    cursor: pointer;
    z-index: 10; /* Por encima de la barra visual */
    margin: 0;
}

/* El relleno visual de la barra (LO QUE CAMBIA A BLANCO) */

/* Estilo para cuando el mouse pasa por encima (Hover) */
.vol-bar-container:hover .vol-bar-fill {
    background: var(--vol-progress); /* Se mantiene blanco o podrías poner var(--accent) si quieres */
}

/* Asegura que el contenido del main no se esconda detrás del footer.
   Ajusta el valor de '100px' al alto real que tenga tu footer.
*/
body.radio-single {
    padding-bottom: 100px; 
}

/* Opcionalmente, si prefieres aplicarlo directamente al main 
   para que el empuje sea más específico:
*/
main.radio-content {
    margin-bottom: 40px; /* Un respiro extra entre el contenido y el footer */
}

/* --- HISTORIAL DE CANCIONES PREMIUM (FONDO BLANCO) --- */
.historial-moderno-section {
    padding: 30px 0;
    margin-bottom: 20px;
}

.titulo-historial {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-left: 5px;
}

.historial-grid-premium {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Fuerza 5 columnas */
    gap: 15px;
}

.card-cancion {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.card-cancion:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.card-img-container {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin: 8px;
    border-radius: 12px;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-cancion:hover .card-img-container img {
    transform: scale(1.1);
}

/* Efecto de play al pasar el mouse */
.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-overlay i {
    color: #fff;
    font-size: 40px;
    text-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.card-cancion:hover .card-overlay {
    opacity: 1;
}

.card-body {
    padding: 5px 12px 15px 12px;
}

.card-titulo {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-artista {
    font-size: 12px;
    color: #777;
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsivo para móviles */
@media (max-width: 992px) {
    .historial-grid-premium {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        overflow-x: auto;
        padding-bottom: 15px;
    }
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
    .radio-info {
        display: flex;
        flex-direction: column;
        align-items: center;    /* Centra horizontalmente los elementos hijos */
        text-align: center;     /* Centra el texto dentro de los elementos */
        justify-content: center;
        width: 100%;
    }

    /* Ajuste para que la fila de sintonizando/vistas/fb también se centre */
    .status-now {
        justify-content: center;
        width: 100%;
        margin-bottom: 10px;
    }

    /* Ajuste para las acciones (botón play y reloj) */
    .hero-actions {
        flex-direction: column; /* Apila el botón play sobre el reloj */
        gap: 20px;
    }

    /* Asegurar que el logo o título no se desplace */
    .logo-radio-header {
        margin: 0 auto;
    }
}