/* Vídeos que cargan al pulsar. Nubenegra, 2026-10. */

.nn-video {
    max-width: 525px;
    margin: 0 0 1.5em;
}

.nn-video-boton {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
    line-height: 0;
}

/* El hueco del fotograma tiene la misma forma que tendrá el reproductor, así que al
   pulsar no salta nada. Sin esto, cada miniatura mide un poco distinto -YouTube no da
   todas las fotos en la misma proporción- y la página se movía al cargar el vídeo. */
.nn-video-boton {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.nn-video-foto {
    display: block;
    width: 100%;
    height: 100%;
    /* La foto llena el hueco sin deformarse. Si viene en otra proporción -hay algún
       vídeo antiguo en 4:3- se recorta por los lados, nunca se estira. */
    object-fit: cover;
    opacity: .85;
    transition: opacity .2s;
}

.nn-video-boton:hover .nn-video-foto,
.nn-video-boton:focus-visible .nn-video-foto {
    opacity: 1;
}

.nn-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .65);
    border: 2px solid #fff;
    transition: background .2s;
}

.nn-video-play:after {
    content: "";
    position: absolute;
    left: 28px;
    top: 21px;
    border-style: solid;
    border-width: 14px 0 14px 22px;
    border-color: transparent transparent transparent #fff;
}

.nn-video-boton:hover .nn-video-play,
.nn-video-boton:focus-visible .nn-video-play {
    background: #e67e22;
}

.nn-video-boton:focus-visible {
    outline: 3px solid #e67e22;
    outline-offset: 3px;
}

.nn-video-titulo {
    font-weight: 600;
    line-height: 1.35;
    margin: .6em 0 0;
}

/* Cuando el vídeo ya no está en YouTube: se dice, en vez de dejar un hueco negro mudo. */
.nn-video-titulo-ausente {
    font-weight: 400;
    font-style: italic;
    color: #777;
}

/* Rótulo sobre el fotograma de una lista de reproducción, para que se distinga de un
   vídeo suelto sin tener que pulsarlo. */
.nn-video-cinta {
    position: absolute;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .78);
    color: #fff;
    font-size: .75rem;
    line-height: 1;
    padding: .5em .7em;
    letter-spacing: .02em;
}

.nn-video-aviso {
    font-size: .8em;
    line-height: 1.5;
    color: #555;
    margin: .35em 0 0;
}

.nn-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    display: block;
}
