.telegram-video-preview {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    isolation: isolate;
    overflow: hidden;
    background: #181e2a;
}

.telegram-video-preview > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.telegram-video-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #ffffff70;
    border-radius: 999px;
    background: #111827e8;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.telegram-video-play {
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid currentColor;
    margin-left: 2px;
}

.telegram-video-preview:is(:hover, :focus-visible) .telegram-video-control {
    background: #111827;
    border-color: #fff;
}

.telegram-video-preview:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: -4px;
}

.telegram-video-detail {
    width: min(100%, 760px);
    aspect-ratio: 16 / 9;
    margin-block-end: 24px;
    border-radius: 16px;
}

.telegram-video-detail > img {
    object-fit: contain;
}

.telegram-video-detail .telegram-video-control {
    padding-inline: 16px;
}

@media (max-width: 700px) {
    .telegram-video-preview.news-image {
        aspect-ratio: 1;
    }
}
