/* ============================================================
   Podcast Flames i Ginesta — listado de vídeos de YouTube
   Miniatura (facade) → click → iframe con autoplay.
   ============================================================ */

.podcast {
    padding: 48px 0 72px;
    background: #fff;
}
.podcast__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.podcast__empty {
    padding: 40px;
    text-align: center;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 12px;
}

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

.podcast-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(11, 65, 155, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.podcast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(11, 65, 155, 0.18);
}

/* ── Miniatura / facade ──────────────────────────────────── */
.podcast-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    margin: 0;
    border: 0;
    cursor: pointer;
    background: #000;
    overflow: hidden;
}
.podcast-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease, opacity .3s ease;
}
.podcast-card:hover .podcast-card__media img {
    transform: scale(1.06);
}
.podcast-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(193, 0, 0, 0.92);
    color: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    transition: transform .2s ease, background .2s ease;
    pointer-events: none;
}
.podcast-card__play svg { margin-left: 4px; }
.podcast-card:hover .podcast-card__play {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(193, 0, 0, 1);
}

/* ── Reproductor (iframe) ────────────────────────────────── */
.podcast-card__player {
    display: none;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.podcast-card__player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.podcast-card--playing .podcast-card__media { display: none; }
.podcast-card--playing .podcast-card__player { display: block; }

/* ── Cuerpo ──────────────────────────────────────────────── */
.podcast-card__body {
    padding: 16px 18px 20px;
}
.podcast-card__title {
    font-family: 'Karla', sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    color: #0b1f44;
    margin: 0;
    line-height: 1.25;
}
.podcast-card__desc {
    margin: 8px 0 0;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ── Botón "Carregar més" ────────────────────────────────── */
.podcast__load-more {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.podcast__load-more .button {
    appearance: none;
    border: 0;
    cursor: pointer;
    background: #0b419b;
    color: #fff;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 14px 34px;
    border-radius: 8px;
    transition: background .2s ease, transform .2s ease;
}
.podcast__load-more .button:hover { background: #061e52; transform: translateY(-2px); }
.podcast__load-more .button:disabled { opacity: .6; cursor: default; transform: none; }

@media (max-width: 640px) {
    .podcast-grid { grid-template-columns: 1fr; }
}
