/* Homepage podcast thumbnail enhancement.
   The image path is generated by Podcast Studio and points to /img/podcast/,
   so rendering this preview does not contact YouTube. */

/* A YouTube thumbnail is 16:9. On the homepage, switch the podcast card from
   the generic portrait artwork layout to a landscape video-preview layout. */
.podcast-feature.podcast-feature--youtube {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
}

.podcast-feature.podcast-feature--youtube .podcast-art.podcast-art--youtube {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
}

.podcast-feature.podcast-feature--youtube .podcast-copy {
    min-width: 0;
}

.podcast-art.podcast-art--youtube {
    position: relative;
    isolation: isolate;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    background: #101214;
}

.podcast-art.podcast-art--youtube::after {
    display: none;
}

.podcast-art.podcast-art--youtube::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(9, 10, 11, .08) 18%, rgba(9, 10, 11, .18) 58%, rgba(9, 10, 11, .72) 100%),
        linear-gradient(90deg, rgba(9, 10, 11, .08), transparent 45%);
}

.podcast-home-youtube-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.002);
}

.podcast-home-youtube-badge,
.podcast-home-youtube-episode,
.podcast-home-youtube-play {
    position: absolute;
    z-index: 2;
}

.podcast-home-youtube-badge {
    top: 18px;
    left: 18px;
    padding: 6px 8px;
    color: #17191b;
    background: rgba(242, 194, 48, .96);
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .09em;
}

.podcast-home-youtube-episode {
    left: 18px;
    bottom: 17px;
    color: #ffffff;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.065em;
    text-shadow: 0 3px 15px rgba(0, 0, 0, .55);
}

.podcast-home-youtube-play {
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    color: #17191b;
    background: rgba(242, 194, 48, .96);
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .32);
    transition: transform .18s ease, background .18s ease;
}

.podcast-home-youtube-play svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
}

.podcast-feature:hover .podcast-home-youtube-play {
    transform: translate(-50%, -50%) scale(1.07);
    background: #f7d45f;
}

@media (max-width: 720px) {
    .podcast-feature.podcast-feature--youtube .podcast-art.podcast-art--youtube {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .podcast-home-youtube-play {
        width: 54px;
        height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .podcast-home-youtube-play {
        transition: none;
    }

    .podcast-feature:hover .podcast-home-youtube-play {
        transform: translate(-50%, -50%);
    }
}
