/*
 * Fachada del vídeo del episodio (.episode-video).
 *
 * Miniatura y botón de reproducción. Sin JavaScript el contenedor es un enlace
 * funcional a YouTube; con JavaScript el clic carga el <iframe> de
 * youtube-nocookie.com (ver assets/js/episode-video.js). Sin dependencias.
 */

.episode-video {
    position: relative;
    display: block;
    margin: 1.5rem 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.episode-video__link,
.episode-video__iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.episode-video__thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 48px;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.6);
    transition: background 0.15s ease-in-out;
}

.episode-video__play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #fff;
}

.episode-video__link:hover .episode-video__play,
.episode-video__link:focus-visible .episode-video__play {
    background: #c00;
}

/*
 * Oculta visualmente el texto accesible sin retirarlo del árbol de
 * accesibilidad.
 */
.episode-video .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
