/*
 * Single Podcast — Styles dédiés (toutes règles préfixées .single-podcast)
 * Harmonisé avec le design TT Event / Explorer
 * Version: 2.1.0
 */

/* ======================================= */
/* 1. Conteneur général                    */
/* ======================================= */

.single-podcast {
    padding: 0 0 60px;
}

.single-podcast .container {
    margin: 0 auto;
}

/* ======================================= */
/* 2. En-tête de l'épisode                 */
/* ======================================= */

.single-podcast .podcast-header {
    margin: 0 0 40px;
}

.single-podcast .podcast-header-text {
    width: 100%;
}

.single-podcast .podcast-show-label {
    display: inline-block;
    font-family: 'Degular Text', 'Marianne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
    padding: 4px 12px;
    border: 1px solid #000000;
    margin-bottom: 16px;
}

/* Titre */
.single-podcast .podcast-header .podcast-title {
    font-family: 'Degular Text', sans-serif !important;
    font-size: 52px !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    color: #000000 !important;
    margin: 0 0 4px !important;
}

.single-podcast .podcast-subtitle {
    font-family: 'Degular Text', sans-serif;
    font-size: 19px;
    line-height: 1.4;
    color: #555555;
    margin: 0 0 20px;
}

.single-podcast .podcast-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-family: 'Marianne', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #444444;
    padding-top: 16px;
    border-top: 1px solid #eeeeee;
}

.single-podcast .podcast-meta .meta-item strong {
    color: #000000;
}

/* ======================================= */
/* 3. Lecteur audio                        */
/* ======================================= */

.single-podcast .podcast-player {
    margin: 0 0 48px;
}

.single-podcast .podcast-embed-wrapper {
    width: 100%;
}

.single-podcast .podcast-embed-wrapper iframe {
    display: block;
    width: 100%;
    border: none;
}

.single-podcast .podcast-html5-player {
    background: #f6f6f6;
    padding: 20px;
}

.single-podcast .podcast-html5-player audio {
    width: 100%;
    display: block;
}

.single-podcast .podcast-no-audio {
    padding: 24px;
    background: #f6f6f6;
    text-align: center;
    color: #888888;
    font-family: 'Degular Text', sans-serif;
}

.single-podcast .podcast-external-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-family: 'Degular Text', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    border-bottom: 2px solid #000000;
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.single-podcast .podcast-external-link:hover {
    opacity: 0.6;
}

/* Date de publication sous le lecteur */
.single-podcast .podcast-publish-date {
    margin-top: 16px;
    font-family: 'Marianne', sans-serif;
    font-size: 14px;
    color: #444444;
}

.single-podcast .podcast-publish-date .date-label {
    color: #666666;
}

.single-podcast .podcast-publish-date .date-value {
    font-weight: 400;
    color: #000000;
}

/* ======================================= */
/* 4. Contenu principal (éditeur WordPress)*/
/* ======================================= */

.single-podcast .podcast-content {
    margin: 0 0 44px;
    font-family: 'Degular Text', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #222222;
}

.single-podcast .podcast-content-inner p {
    margin: 0 0 16px;
}

.single-podcast .podcast-content-inner h2,
.single-podcast .podcast-content-inner h3 {
    font-family: 'Degular Text', sans-serif;
    font-weight: 700;
    margin: 28px 0 14px;
}

.single-podcast .podcast-content-inner a {
    color: #000000;
    text-decoration: underline;
}

.single-podcast .podcast-content-inner img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
}

.single-podcast .podcast-content-inner ul,
.single-podcast .podcast-content-inner ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

/* Neutralise le wrapper Gutenberg UNIQUEMENT dans la zone de contenu podcast */
.single-podcast .podcast-content .kl-container-default {
    max-width: 100%;
    padding: 0;
}

/* ======================================= */
/* 5. Show Notes                           */
/* ======================================= */

.single-podcast .podcast-show-notes,
.single-podcast .podcast-chapters,
.single-podcast .podcast-guests,
.single-podcast .podcast-transcript {
    margin: 0 0 44px;
}

.single-podcast .podcast-show-notes h2,
.single-podcast .podcast-chapters h2,
.single-podcast .podcast-guests h2,
.single-podcast .podcast-transcript h2 {
    font-family: 'Degular Text', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000000;
}

.single-podcast .show-notes-content {
    font-family: 'Degular Text', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #222222;
}

.single-podcast .show-notes-content p {
    margin: 0 0 16px;
}

.single-podcast .show-notes-content a {
    color: #000000;
    text-decoration: underline;
}

/* ======================================= */
/* 6. Chapitres / Timestamps               */
/* ======================================= */

.single-podcast .chapters-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-podcast .chapter-item {
    display: flex;
    gap: 16px;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
}

.single-podcast .chapter-time {
    font-family: 'Marianne', monospace;
    font-weight: 700;
    font-size: 14px;
    color: #000000;
    min-width: 72px;
    flex-shrink: 0;
}

.single-podcast .chapter-title {
    font-family: 'Degular Text', sans-serif;
    font-size: 16px;
    color: #222222;
}

/* ======================================= */
/* 7. Invités                              */
/* ======================================= */

.single-podcast .guests-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.single-podcast .guests-list li {
    font-family: 'Degular Text', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 8px 16px;
    background: #f6f6f6;
    color: #000000;
}

/* ======================================= */
/* 8. Transcription                        */
/* ======================================= */

.single-podcast .transcript-content {
    font-family: 'Degular Text', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333333;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #eeeeee;
}

.single-podcast .transcript-pdf-link {
    display: inline-block;
    padding: 12px 28px;
    background: #000000;
    color: #FFFFFF;
    font-family: 'Degular Text', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.single-podcast .transcript-pdf-link:hover {
    background: #333333;
}

/* ======================================= */
/* 9. Derniers podcast                     */
/* ======================================= */

.single-podcast .podcast-recent {
    margin: 60px 0 0;
    padding-top: 40px;
    /*border-top: 2px solid #000000;*/
}

.single-podcast .podcast-recent h2 {
    font-family: 'Degular Text', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 28px;
}

.single-podcast .podcast-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.single-podcast .podcast-recent-item {
    background: #FFFFFF;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.single-podcast .podcast-recent-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
}

.single-podcast .podcast-recent-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Image */
.single-podcast .podcast-recent-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: #f6f6f6;
}

.single-podcast .podcast-recent-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.single-podcast .podcast-recent-link:hover .podcast-recent-image img {
    transform: scale(1.08);
}

.single-podcast .podcast-recent-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cccccc;
}

/* Badge icône podcast */
.single-podcast .podcast-recent-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 8px;
    background: #FFFFFF;
    z-index: 10;
    line-height: 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.single-podcast .podcast-recent-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    color: #000000;
}

/* Corps — version compacte */
.single-podcast .podcast-recent-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.single-podcast .podcast-recent-label {
    display: inline-block;
    font-family: 'Degular Text', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
}

.single-podcast .podcast-recent-title {
    font-family: 'Degular Text', sans-serif;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.single-podcast .podcast-recent-subtitle {
    font-family: 'Degular Text', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #555555;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-podcast .podcast-recent-date {
    font-family: 'Marianne', sans-serif;
    font-size: 12px;
    color: #000000;
    margin-top: auto;
    padding-top: 6px;
}

/* ======================================= */
/* 10. Responsive                          */
/* ======================================= */

@media (max-width: 768px) {
    .single-podcast {
        padding-top: 24px;
    }

    .single-podcast .podcast-header .podcast-title {
        font-size: 36px !important;
    }

    .single-podcast .podcast-subtitle {
        font-size: 17px;
    }

    .single-podcast .podcast-meta {
        gap: 6px 16px;
        font-size: 13px;
    }

    .single-podcast .podcast-recent-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .single-podcast {
        padding: 24px 0 40px;
    }

    .single-podcast .podcast-header .podcast-title {
        font-size: 30px !important;
    }
}