.extenso-product-video-slide {
    position: relative;
}

.extenso-product-video-placeholder {
    position: relative;
    width: 100%;
    line-height: 0;
    background: #000;
}

.extenso-product-video-placeholder img {
    display: block;
    width: 100%;
    height: auto;
}

.extenso-youtube-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: #ff0000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.22);
    z-index: 3;
    touch-action: manipulation;
}

.extenso-youtube-play:hover,
.extenso-youtube-play:focus-visible {
    background: #e60000;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.extenso-youtube-play-icon {
    display: block;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
}

.extenso-product-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #000;
}

.extenso-product-video-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* The video is deliberately inserted as gallery item #2. These rules only
   decorate that thumbnail; they do not initialize or control the slider. */
body.extenso-has-product-video .flex-control-thumbs li:nth-child(2) {
    position: relative;
}

body.extenso-has-product-video .flex-control-thumbs li:nth-child(2)::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 20px;
    transform: translate(-50%, -50%);
    border-radius: 6px;
    background: #ff0000;
    pointer-events: none;
}

body.extenso-has-product-video .flex-control-thumbs li:nth-child(2)::before {
    content: '';
    position: absolute;
    left: calc(50% + 1px);
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #fff;
    pointer-events: none;
}

@media (max-width: 767px) {
    .extenso-youtube-play {
        width: 58px;
        height: 42px;
    }
}
