﻿html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    background: #000;
    font-family: sans-serif;
}

.video-preview {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
}

.video-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 48px;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    background: #c00;
}

.play-button::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 28px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
}

.video-label {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 10px;
    background: rgba(0, 0, 0, .8);
    text-align: center;
    font-size: 14px;
}

.video-preview:hover .play-button,
.video-preview:focus-visible .play-button {
    background: #f00;
}

.video-preview:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -3px;
}
