/* ── Episode cards & lists ─────────────────────────────────────────────────
   Cards: template-parts/content-podcast.php (Afleveringen, Gasten, homepage).
   List with search + "Meer afleveringen": template-parts/episode-list.php
   and js/episode-list.js.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Card: thumbnail with episode badge ── */
.podcast--thumb {
    position: relative;
    overflow: hidden;
}
/* the thumbnail carries width/height attributes; keep the theme's 16:9 crop */
.post-related .podcast--item .podcast--thumb img {
    height: auto;
}
.podcast--badge {
    position: absolute;
    left: 0.6rem;
    bottom: 0.6rem;
    z-index: 1;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: rgba(12, 8, 24, 0.85);
    color: white;
    font-family: 'Sora', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.podcast--badge--live {
    background: rgb(181, 23, 239);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.podcast--badge--live::before {
    content: '';
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-right: 0.35rem;
    border-radius: 50%;
    background: white;
    vertical-align: 0.1rem;
}
/* badge without a thumbnail sits in the date line */
.podcast--item h4 .podcast--badge {
    position: static;
    margin-right: 0.5rem;
    box-shadow: none;
}

/* ── Card: date + duration line ── */
.post-related .podcast--item h4 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}
.podcast--duration {
    flex-shrink: 0;
    color: rgba(15, 14, 26, 0.45);
    letter-spacing: 0.04em;
    text-transform: none;
    white-space: nowrap;
}
.podcast--duration i {
    margin-right: 0.3rem;
}

/* ── List: search + count ── */
.episode-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin: -0.5rem 0 1.75rem;
}
.episode-search {
    position: relative;
    flex: 1 1 280px;
    max-width: 440px;
}
.episode-search i {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(181, 23, 239, 0.8);
    pointer-events: none;
}
.episode-search input {
    width: 100%;
    padding: 0.75rem 1.1rem 0.75rem 2.75rem;
    border: 1.5px solid rgba(181, 23, 239, 0.3);
    border-radius: 50px;
    background: white;
    color: #0f0e1a;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.episode-search input::placeholder {
    color: rgba(15, 14, 26, 0.4);
}
.episode-search input:focus {
    outline: none;
    border-color: rgb(181, 23, 239);
    box-shadow: 0 0 0 4px rgba(181, 23, 239, 0.15);
}
/* the theme styles .episode-count for a dark background */
.posts-overview .episode-count {
    margin: 0;
    color: rgba(15, 14, 26, 0.55);
}

/* ── List: paging ── */
.post-related .podcast--item[hidden] {
    display: none;
}
/* before the script has run: show only the first 24, like it will */
.gk-js [data-episode-list]:not(.is-ready) > .podcast--item:nth-child(n + 25) {
    display: none;
}
.episode-empty {
    padding: 2rem 0;
    text-align: center;
    color: rgba(15, 14, 26, 0.55);
}
.episode-more {
    margin: 2.5rem 0 1rem;
    text-align: center;
}
.episode-more[hidden],
.episode-empty[hidden] {
    display: none;
}
.episode-more button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2.5rem;
    border: 2px solid rgb(181, 23, 239);
    border-radius: 30px;
    background: transparent;
    color: rgb(181, 23, 239);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.episode-more button:hover {
    background-color: rgb(181, 23, 239);
    color: white;
    transform: translateY(-2px);
}
.episode-more button:focus-visible {
    outline: 3px solid rgba(181, 23, 239, 0.4);
    outline-offset: 3px;
}
