/* Видео «фасадом»: обложка с кнопкой вместо плеера (App\Twig\VideoFacadeExtension + js/video-facade.js) */
.video-facade {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111 linear-gradient(135deg, #1f2937, #111827);
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 1em;
}
/* В .embed-container размер задаёт контейнер (padding-bottom), обложка занимает его целиком */
.embed-container > .video-facade {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    margin: 0;
}
.video-facade__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 !important;
}
.video-facade__title {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    padding: 12px 16px 28px;
    color: #fff;
    font-size: 16px;
    line-height: 1.3;
    background: linear-gradient(rgba(0, 0, 0, .65), transparent);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.video-facade__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 48px;
    margin: -24px 0 0 -34px;
    border-radius: 12px;
    background: rgba(33, 33, 33, .85);
    transition: background .15s;
}
.video-facade--youtube:hover .video-facade__play,
.video-facade:focus-visible .video-facade__play {
    background: #f00;
}
.video-facade--dzen:hover .video-facade__play,
.video-facade--rutube:hover .video-facade__play {
    background: #3e8ed0;
}
.video-facade__play::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -10px 0 0 -7px;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
}
.video-facade__label {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 13px;
}
.video-facade:focus-visible {
    outline: 3px solid #3e8ed0;
    outline-offset: 2px;
}
/* Плеер, подставленный по клику вне .embed-container */
.video-facade__frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}
.embed-container > .video-facade__frame {
    aspect-ratio: auto;
}
