/* Complemento aislado para videos del Blog. No modifica estilos generales. */
.tucosmos-video-card {
    width: 100%;
    margin-inline: auto;
}
.tucosmos-video-card--unico:not(.tucosmos-video-card--short) {
    max-width: 620px;
}
.tucosmos-video-card--short {
    max-width: 270px;
}
.tucosmos-video-card--short.tucosmos-video-card--unico {
    max-width: 310px;
}
.tucosmos-video-marco {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
    border-radius: 0.4rem;
}
.tucosmos-video-marco--short {
    aspect-ratio: 9 / 16;
}
.tucosmos-video-portada {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    color: #fff;
    background: #111;
    cursor: pointer;
}
.tucosmos-video-portada img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.tucosmos-video-portada::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 18%), transparent 55%);
    pointer-events: none;
}
.tucosmos-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 68px;
    height: 46px;
    border-radius: 13px;
    background: #ff0033;
    transform: translate(-50%, -50%);
    transition: background-color 150ms ease;
}
.tucosmos-video-play::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 17px solid #fff;
    transform: translate(-38%, -50%);
}
.tucosmos-video-portada:hover .tucosmos-video-play,
.tucosmos-video-portada:focus-visible .tucosmos-video-play {
    background: #d9002b;
}
.tucosmos-video-portada:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -5px;
}
.tucosmos-video-marco iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.tucosmos-video-admin-preview .tucosmos-video-card {
    max-width: 350px;
    margin-inline: 0;
}
.tucosmos-video-admin-preview .tucosmos-video-card--short {
    max-width: 220px;
}
