.gvp-container {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gvp-thumbnail-wrapper {
    position: relative;
    display: inline-block;
}

.gvp-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    max-width: var(--thumb-width, 700px);
}

.gvp-play-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    aspect-ratio: 1 / 0.7;
    background-color: var(--play-color, #00ce7c);
    border-radius: 15px 15px 15px 15px / 45px 45px 45px 45px;
    opacity: var(--play-opacity, 0.7);
    transform: translate(-50%, -50%);
    z-index: 1;
}

.gvp-play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9%;
    aspect-ratio: 1 / 1;
    background-color: white;
    opacity: var(--play-opacity, 0.7);
    transform: translate(-50%, -50%);
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
    z-index: 2;
}

.gvp-overlay {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    inset: 0;
    max-width: 100%;
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}


.gvp-overlay.active {
    visibility: visible;
    opacity: 1;
}

.gvp-popup {
    position: relative;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: var(--popup-padding, 2px);
    width: var(--video-width, 70%);
    background: var(--popup-bg, #fff);
    border-radius: var(--popup-radius, 8px);
    max-width: 90vw;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

.gvp-overlay.active .gvp-popup {
    transform: scale(1);
}


.gvp-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
}

.gvp-close:hover {
    color: #666;
}

.gvp-video {
    width: 100%;
    min(var(--video-height, auto), 100%);
    border-radius: 8px;
    aspect-ratio: 16 / 9;
}

.gvp-video.gvp-portrait {
    aspect-ratio: 9 / 16;
}


body.gvp-open {
    overflow: hidden;
}