.popup-wrapper {
  display: flex;
  justify-content: center;
}

.tree-popup-button {
  font-family: 'Alata', sans-serif;
  width: 75%;
  padding: 0.75em 1.5em;
  text-align: center;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  background-color: #ebeef1;
  color: #191919;
  text-decoration: none;
  box-sizing: border-box;
  font-size: var(--wp--preset--font-size--medium);
}

.header-popup-button {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Alata', sans-serif;
  font-size: var(--wp--preset--font-size--large);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.28px;
  padding: 0.75em 1em;
  text-align: center;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background-color: #ce1ccb;
  color: #ffffff ;
  text-decoration: none;
  box-sizing: border-box;
}

.header-popup-button br:first-child {
  display: none;
}

.link-popup-button {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: left;
  justify-content: left;
  gap: 0.4em;
  font-size: var(--wp--preset--font-size--large);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px !important;
  text-underline-offset: .1em;
  color: var(--wp--preset--color--accent-2);
  font-family: 'Alata', sans-serif;
  margin-right: auto;

/*  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ctext y='14'%3E🎧%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 1em;
  padding-left: 1.5em; */
}

.link-popup-button br:first-child {
  display: none;
}

.link-popup-button:hover {
  text-decoration: none;
}

/* Général - Fond assombri */
.podcast-popup-container {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
    color: #191919;
}

/* Contenu principal de la popup */
.podcast-popup-content {
    background: #fff;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    /*padding: 0;*/
    font-family: 'Helvetica Neue', sans-serif;
    max-height: 70vh;
}

.podcast-popup-content.podcast-detail-view {
    max-height: 80vh;
    overflow-y: auto;
    padding-bottom: 2rem;
}

/* Header commun */
.podcast-popup-header {
    position: sticky;
    top: 0;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

/* Header centré (vue principale) */
.podcast-popup-header.main-header {
    justify-content: center;
    position: relative;
}

.podcast-popup-header.main-header .podcast-close-popup {
    position: absolute;
    left: 1.5rem;
}

/* Titre */
.podcast-popup-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

/* Vue détaillée : croix à gauche, flèche au centre, titre à droite */
.podcast-popup-header .podcast-close-popup {
    order: 2;
    margin-right: auto;
    font-size: 1.5rem;
    cursor: pointer;
    user-select: none;
    color: #333;
}

.podcast-popup-header .podcast-back-button {
    order: 0;
    margin: 0 auto;
    font-size: 1.5rem;
    cursor: pointer;
    user-select: none;
    color: #333;
}

.podcast-popup-header .podcast-popup-title {
    order: 1;
    margin-left: auto;
    font-size: 1.5rem;
    cursor: pointer;
    user-select: none;
}

/* Image */
.podcast-popup-image {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

/* Description courte */
.podcast-popup-short-description {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    color: #444;
    text-align: center;
}

/* Lire la suite */
.podcast-read-more-container {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.podcast-read-more-button {
    background-color: #f0f0f0;
    color: #333 !important;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Sous-titre plateformes */
.podcast-popup-platforms-title {
    text-align: center;
}

/* Boutons de plateformes */
.podcast-popup-platforms {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.podcast-popup-platforms li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #751074;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    color: #fff;
    transition: background-color 0.2s;
}

.podcast-popup-platforms li a:hover {
    background-color: #824881;
}

.podcast-popup-platforms br {
  display: none;
}

.platform-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Description complète */
.podcast-popup-description {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

/* Responsive ajustement */
@media (max-width: 500px) {
    .podcast-popup-content {
        max-width: 100%;
    }

    .podcast-popup-header {
        flex-direction: row;
        padding: 1rem;
    }

    .podcast-popup-title {
        font-size: 1rem;
    }

    .podcast-read-more-button {
        width: 90%;
        max-width: 250px;
    }

    .podcast-popup-platforms li a {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }

    .platform-icon {
        width: 18px;
        height: 18px;
    }
}
