/**
 * Styles podcasts
 * 
 * @package artge
 */

 .archive.category-podcast,
 body.archive {
    background-color: var(--beige);
 }

body.archive .card.card-big.form-contact-block.bg-beige {
    background-color: #fff !important;
}

/*  POPUP  PODCAST */
.podcast-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.podcast-popup.active {
    display: flex;
    opacity: 1;
}

.podcast-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.podcast-popup__content {
    position: relative;
    padding: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.podcast-popup__player iframe {
    min-height: 150px;
    padding: 1rem 1rem .65rem;
    box-shadow: 1px 0 30px rgba(0,0,0,.5);
    background: #2c2e30;
    border-radius: 1rem;
}

.podcast-popup.active .podcast-popup__content {
    transform: scale(1);
}

.podcast-popup__close {
    position: absolute;
    z-index: 110;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
}

.podcast-popup__close:hover {
    background: #f3f4f6;
    color: #374151;
}

.podcast-popup__player iframe {
    width: 100%;
    height: 185px;
    border: none;
}


.podcast-loader__spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--orange);
    border-radius: 50%;
    animation: podcast-spin 1s linear infinite;
}

@keyframes podcast-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


@media (max-width: 768px) {
    .podcast-popup__content {
        max-height: 90vh;
    }
}

.podcasts-single-column {
    margin: 0 auto;
    max-width: 1000px;
}

.card-podcast {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.card-podcast .card-body {
    padding: 8px 20px 0;
    gap: 10px;
}

.card-podcast .podcast-play {
    border: none;
    background: var(--bleuALT) url(../images/icon/ic-play.svg) no-repeat .9rem center;
    background-size: 15px;
    padding: 1.25rem;
}

.card-podcast .podcast-play:hover {
    background-color: var(--bleuLT);
}

.podcasts-single-column.loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.podcasts-single-column.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid var(--bleuLT);
    border-top: 4px solid var(--bleu);
    border-radius: 50%;
    animation: podcastLoading 1s linear infinite;
    z-index: 10;
}

@keyframes podcastLoading {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}