/* The Centre's video reviews (templates/vendor/video/_player.twig, video.js). */
.cv {
    margin: 0;
}

.cv__frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--cms-radius, 14px);
    background: #0b0b1a;
    aspect-ratio: 16 / 9;
}

.cv__frame--tall {
    display: none;
    aspect-ratio: 9 / 16;
    max-width: 420px;
    margin-inline: auto;
}

/* A phone gets the vertical cut when there is one. */
@media (max-width: 640px) {
    .cv--reels .cv__frame--wide { display: none; }
    .cv--reels .cv__frame--tall { display: block; }
}

.cv__frame iframe,
.cv__facade,
.cv__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.cv__facade {
    display: block;
    color: #fff;
    cursor: pointer;
}

.cv__poster {
    object-fit: cover;
    transition: opacity .2s;
}

.cv__facade:hover .cv__poster,
.cv__facade:focus-visible .cv__poster {
    opacity: .85;
}

.cv__play {
    position: absolute;
    left: 50%;
    top: 78%; /* the posters carry the headline in the middle */
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #14142b;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    transition: transform .2s;
}

.cv__play svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
}

.cv__facade:hover .cv__play,
.cv__facade:focus-visible .cv__play {
    transform: translate(-50%, -50%) scale(1.07);
}

.cv__len {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .7);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.cv__chapters ol {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 4px 20px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.cv__chapters time {
    display: inline-block;
    min-width: 3.2em;
    color: var(--cms-muted, #6b7280);
    font-variant-numeric: tabular-nums;
}

/* «Смотреть обзор»: the player over the page. */
.cv-dialog {
    width: min(1100px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.cv-dialog::backdrop {
    background: rgba(6, 6, 18, .82);
}

.cv-dialog__close {
    position: absolute;
    right: 0;
    top: -44px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    cursor: pointer;
}

.cv-dialog__close svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 640px) {
    .cv-dialog .cv--reels .cv__frame--tall {
        max-height: calc(100vh - 80px);
        width: auto;
    }
}

/* /video — every review. */
.cv-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px 64px;
}

.cv-page__lead {
    max-width: 720px;
    color: var(--cms-muted, #6b7280);
    font-size: 18px;
}

.cv-page__list {
    display: grid;
    gap: 56px;
    margin-top: 40px;
}

.cv-page__item {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.cv-page__item h2 {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.4vw, 28px);
}

.cv-page__item p {
    margin: 0 0 14px;
    color: var(--cms-muted, #6b7280);
}

@media (max-width: 860px) {
    .cv-page__item {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* A market page: the video above the screenshots. */
.vendor-video {
    max-width: 880px;
    margin: 24px 0;
}
