   /* =========================================================
   BIBLIOTECA RADIAL — listas de audios
========================================================= */
.biblio-card{
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(18,59,112,.08);
    border: 1px solid rgba(18,59,112,.08);
    padding: 1.1rem 1rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.biblio-head{
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding-bottom: .8rem;
    margin-bottom: .8rem;
    border-bottom: 1px solid rgba(18,59,112,.08);
}
.biblio-icon{
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(201,162,39,.15);
    color: var(--azul-cecopi, #C9A227);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.biblio-head h4{
    margin: 0 0 .15rem;
    color: var(--amarillo-cecopi, #123B70);
    font-size: 1.05rem;
    font-weight: 800;
}
.biblio-head p{
    margin: 0;
    color: var(--gris, #66717D);
    font-size: .78rem;
    line-height: 1.4;
}

.biblio-list{
    display: flex;
    flex-direction: column;
    gap: .6rem;
    flex: 1;
}

.biblio-loading{
    text-align: center;
    padding: 20px 0;
}
.biblio-loading .spinner{
    width: 30px;
    height: 30px;
    margin: 0 auto;
    border: 3px solid rgba(201,162,39,.2);
    border-top-color: var(--amarillo-cecopi, #123B70);
    border-radius: 50%;
    animation: biblioSpin .9s linear infinite;
}
@keyframes biblioSpin{ to { transform: rotate(360deg); } }

.biblio-empty{
    text-align: center;
    color: var(--gris, #66717D);
    font-size: .78rem;
    padding: 14px 8px;
}
.biblio-empty i{
    display: block;
    font-size: 22px;
    color: var(--amarillo-cecopi, #123B70);
    opacity: .35;
    margin-bottom: 6px;
}

.biblio-item{
    background: #f7f9fc;
    border: 1px solid rgba(18,59,112,.06);
    border-radius: 12px;
    padding: .55rem .6rem .5rem;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.biblio-item:hover{
    background: #fff;
    border-color: rgba(201,162,39,.3);
    transform: translateY(-1px);
}

.biblio-item-title{
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .35rem;
    color: var(--amarillo-cecopi, #123B70);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.3;
}
.biblio-item-title i{
    color: #D10D16;
    font-size: .85rem;
    flex-shrink: 0;
}
.biblio-item-title span{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.biblio-item audio{
    width: 100%;
    height: 34px;
    outline: none;
    border-radius: 8px;
}

/* Ocultar menú contextual "Descargar" del reproductor nativo en algunos navegadores */
.biblio-item audio::-webkit-media-controls-enclosure{
    border-radius: 8px;
}

/* =========================================================
   SECCIÓN COMBINADA: NOTICIAS + RADIO + VIDEOS
========================================================= */
.novedades-radio-section{
    padding: 3rem 0;
    background: #f7f9fc;
}
.noticias-col{
    height: 100%;
}
.radio-col{
    display: flex;
    flex-direction: column;
    gap: .9rem;
    height: 100%;
}

/* ===== Radio compacta ===== */
.radio-section-compact{
    padding: .5rem !important;
    margin: 0;
    width: 100%;
}
.radio-container-compact{
    padding: .9rem .75rem !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 24px 24px 18px 18px !important;
}
.radio-container-compact .logo-container-compact{
    width: 74px !important;
    height: 74px !important;
    margin-bottom: .35rem;
}
.radio-container-compact .logo-container-compact img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.station-title-compact h1{
    font-size: 1rem !important;
    margin-bottom: .1rem;
    letter-spacing: 1px !important;
}
.station-title-compact .subtitle{
    font-size: .62rem !important;
    letter-spacing: 1px !important;
}
.equalizer-compact{
    height: 34px !important;
    margin: .4rem 0 !important;
    gap: 2px !important;
    padding: 4px 6px !important;
}
.equalizer-compact .bar{
    width: 8px !important;
}
.controls-compact{
    gap: .4rem !important;
    margin: .4rem 0 !important;
}
.controls-compact .btn-play{
    width: 44px !important;
    height: 44px !important;
    font-size: .95rem !important;
}
.controls-compact .btn-vol{
    width: 30px !important;
    height: 30px !important;
    font-size: .85rem !important;
}
.controls-compact .volume-slider{
    min-width: 40px;
}
.vol-controls-compact{
    font-size: .6rem !important;
    margin-top: .2rem !important;
    gap: 6px !important;
}
.status-text-compact{
    font-size: .62rem !important;
    margin-top: .4rem !important;
    padding: 5px 8px !important;
    gap: 5px !important;
}
.cecopi-live-badge{
    font-size: .58rem !important;
    padding: .15rem .45rem !important;
    margin-bottom: .4rem !important;
}
.status-text-compact .live-badge{
    font-size: .48rem !important;
    padding: 1px 8px !important;
}

/* ===== Título de sección alineado a la izquierda ===== */
.section-title-left{
    text-align: left;
    margin-bottom: 1.25rem;
}
.section-title-left .line{
    margin-left: 0;
}

/* =========================================================
   LAYOUT DE NOTICIAS
   - Principal SOLA en fila 1
   - Resto 3 en 3 (4/12)
========================================================= */
#noticiasGrid.noticias-bento{
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    grid-auto-rows: auto !important;
    gap: 18px !important;
}

#noticiasGrid .noti-card.noti-featured{
    grid-column: span 12 !important;
    grid-row: auto !important;
}
#noticiasGrid .noti-card.noti-featured .noti-img-wrap{
    height: 420px !important;
}
#noticiasGrid .noti-card.noti-featured .noti-titulo{
    font-size: 26px !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
}
#noticiasGrid .noti-card.noti-featured .noti-resumen{
    font-size: 15px !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
}

#noticiasGrid .noti-card:not(.noti-featured){
    grid-column: span 4 !important;
    grid-row: auto !important;
}
#noticiasGrid .noti-card:not(.noti-featured) .noti-img-wrap{
    height: 190px !important;
}
#noticiasGrid .noti-card:not(.noti-featured) .noti-titulo{
    font-size: 16px !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
}
#noticiasGrid .noti-card:not(.noti-featured) .noti-resumen{
    font-size: 13px !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
}

/* =========================================================
   MARCA DE AGUA + PIE DE FOTO EN NOTICIAS
   (mismo estilo que radio.php, clases de noticias.js)
========================================================= */
.noti-img-wrap{
    position: relative;
    overflow: hidden;
}
.noti-img-wrap > img{
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

/* Marca de agua: 120px, abajo-derecha */
.noti-img-wrap .marca-agua{
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    right: 6px !important;
    bottom: 4px !important;
    width: 120px !important;
    max-width: 120px !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    transform: none !important;
    opacity: 0.18 !important;
    z-index: 2 !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35)) !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    animation: none !important;
    transition: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
.noti-img-wrap:hover .marca-agua{
    transform: none !important;
    width: 120px !important;
    max-width: 120px !important;
}

/* Pie de foto: Arial Narrow, 12px */
.noti-img-wrap .noti-pie-foto{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 22px 12px 8px;
    font-family: "Arial Narrow", "Arial Narrow Bold", Arial, sans-serif;
    font-size: 12px !important;
    font-stretch: condensed;
    font-style: italic;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.2px;
    color: #fff;
    background: linear-gradient(180deg, rgba(24,32,42,0) 0%, rgba(24,32,42,0.85) 100%);
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 6px;
    pointer-events: none;
    user-select: none;
    animation: none !important;
    transition: none !important;
    transform: none !important;
    text-align: left;
}
.noti-img-wrap .noti-pie-foto::before{
    content: "\F4AF";
    font-family: "bootstrap-icons";
    color: var(--azul-cecopi, #C9A227);
    font-style: normal;
    flex-shrink: 0;
    font-size: 11px;
}

/* Si la noticia tiene pie, subir la marca para que no la tape */
.noti-img-wrap:has(.noti-pie-foto) .marca-agua{
    bottom: 22px !important;
}

/* =========================================================
   BLOQUE DE VIDEOS (debajo de la radio)
========================================================= */
.radio-videos-block{
    background: #fff;
    border-radius: 18px;
    padding: .85rem .75rem 1rem;
    border: 1px solid rgba(18,59,112,.08);
    box-shadow: 0 6px 20px rgba(18,59,112,.06);
    margin-top: .3rem;
    width: 100%;
}

.radio-videos-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .7rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(18,59,112,.08);
    gap: .5rem;
}

.radio-videos-title{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #123B70;
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.radio-videos-title i{
    color: #D10D16;
    font-size: .95rem;
}

.radio-videos-vermas{
    font-size: .68rem;
    font-weight: 700;
    color: #C9A227;
    text-decoration: none;
    letter-spacing: .3px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color .2s ease;
    white-space: nowrap;
}
.radio-videos-vermas:hover{
    color: #123B70;
}

.radio-videos-grid{
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.rv-item{
    display: flex;
    gap: .5rem;
    align-items: center;
    background: #f7f9fc;
    border-radius: 10px;
    overflow: hidden;
    padding: .3rem;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    border: 1px solid rgba(18,59,112,.06);
    text-align: left;
    width: 100%;
    font: inherit;
}
.rv-item:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(18,59,112,.1);
    background: #fff;
    border-color: rgba(201,162,39,.3);
}

.rv-thumb{
    position: relative;
    width: 76px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f1a2b, #1a2a5e);
}
.rv-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rv-thumb .rv-play{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(209,13,22,.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    box-shadow: 0 3px 8px rgba(0,0,0,.4);
}
.rv-thumb .rv-play i{ margin-left: 1px; }

.rv-thumb-fallback{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.45);
    font-size: 20px;
}

.rv-titulo{
    margin: 0;
    font-size: .74rem;
    font-weight: 700;
    color: #123B70;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.radio-videos-loading{
    text-align: center;
    padding: 18px 10px;
}
.radio-videos-loading .spinner{
    width: 30px;
    height: 30px;
    margin: 0 auto;
    border: 3px solid rgba(201,162,39,.2);
    border-top-color: #123B70;
    border-radius: 50%;
    animation: rvSpin .9s linear infinite;
}
@keyframes rvSpin{ to { transform: rotate(360deg); } }

.radio-videos-empty{
    text-align: center;
    padding: 14px 8px;
    color: #66717D;
    font-size: .72rem;
}
.radio-videos-empty i{
    display: block;
    font-size: 24px;
    color: #123B70;
    opacity: .4;
    margin-bottom: 6px;
}

/* =========================================================
   MODAL DE VIDEO
========================================================= */
.rv-modal{
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(9,42,80,.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.rv-modal.activo{ display: flex; }

.rv-modal-box{
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 40px);
    background: #0f1a2b;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
    position: relative;
    display: flex;
    flex-direction: column;
}

.rv-modal-close{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(209,13,22,.95);
    color: #fff;
    border: 2px solid rgba(255,255,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: all .3s ease;
}
.rv-modal-close:hover{
    background: #C9A227;
    border-color: #fff;
    transform: rotate(90deg) scale(1.08);
}

.rv-modal-ratio{
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    flex-shrink: 0;
}
.rv-modal-ratio iframe{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.rv-modal-info{
    padding: 12px 18px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #fff;
    background: #0f1a2b;
    border-top: 1px solid rgba(255,255,255,.06);
}
.rv-info-icon{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(201,162,39,.18);
    color: #C9A227;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.rv-modal-info h3{
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}
.rv-modal-info p{
    margin: 3px 0 0;
    color: rgba(255,255,255,.65);
    font-size: 11.5px;
    line-height: 1.5;
}

/* =========================================================
   RESPONSIVO
========================================================= */
@media (max-width: 1199px){
    #noticiasGrid .noti-card.noti-featured .noti-img-wrap{ height: 360px !important; }
    #noticiasGrid .noti-card.noti-featured .noti-titulo{ font-size: 22px !important; }
    #noticiasGrid .noti-card:not(.noti-featured) .noti-img-wrap{ height: 170px !important; }

    .noti-img-wrap .marca-agua{
        width: 100px !important;
        max-width: 100px !important;
        right: 5px !important;
        bottom: 4px !important;
    }
    .noti-img-wrap:hover .marca-agua{
        width: 100px !important;
        max-width: 100px !important;
    }
    .noti-img-wrap:has(.noti-pie-foto) .marca-agua{
        bottom: 20px !important;
    }
}

@media (max-width: 991.98px){
    .radio-col{
        margin-top: 1.5rem;
        align-items: center;
    }
    .radio-section-compact,
    .radio-videos-block{
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }
    #noticiasGrid{
        grid-template-columns: repeat(12, 1fr) !important;
    }
    #noticiasGrid .noti-card.noti-featured{
        grid-column: span 12 !important;
    }
    #noticiasGrid .noti-card.noti-featured .noti-img-wrap{ height: 320px !important; }
    #noticiasGrid .noti-card:not(.noti-featured){
        grid-column: span 6 !important;
    }
    #noticiasGrid .noti-card:not(.noti-featured) .noti-img-wrap{ height: 190px !important; }
}

@media (max-width: 575.98px){
    .novedades-radio-section{ padding: 2rem 0; }
    #noticiasGrid .noti-card.noti-featured,
    #noticiasGrid .noti-card:not(.noti-featured){
        grid-column: span 12 !important;
    }
    #noticiasGrid .noti-card.noti-featured .noti-img-wrap{ height: 230px !important; }
    #noticiasGrid .noti-card:not(.noti-featured) .noti-img-wrap{ height: 200px !important; }
    #noticiasGrid .noti-card.noti-featured .noti-titulo{ font-size: 19px !important; }
    #noticiasGrid .noti-card:not(.noti-featured) .noti-titulo{ font-size: 17px !important; }

    .radio-container-compact{ padding: .9rem .8rem !important; }
    .radio-container-compact .logo-container-compact{ width: 68px !important; height: 68px !important; }

    .rv-modal{ padding: 10px; }
    .rv-modal-box{ max-height: calc(100vh - 20px); border-radius: 12px; }
    .rv-modal-close{ top: 8px; right: 8px; width: 34px; height: 34px; font-size: 14px; }
    .rv-modal-info{ display: none; }

    .noti-img-wrap .marca-agua{
        width: 80px !important;
        max-width: 80px !important;
        right: 4px !important;
        bottom: 3px !important;
        opacity: 0.16 !important;
    }
    .noti-img-wrap:hover .marca-agua{
        width: 80px !important;
        max-width: 80px !important;
    }
    .noti-img-wrap .noti-pie-foto{
        font-size: 11px !important;
        padding: 18px 10px 7px;
        gap: 5px;
    }
    .noti-img-wrap .noti-pie-foto::before{
        font-size: 10px;
    }
    .noti-img-wrap:has(.noti-pie-foto) .marca-agua{
        bottom: 18px !important;
    }
}