/* Video Widget — floating side widget (remont/ style) */
.video-widget {
    position: fixed;
    left: 1.7rem;
    bottom: 2.25rem;
    z-index: 1000;
    transition: opacity 0.3s;
}

.video-widget__action {
    font-size: 0.688rem;
    font-weight: 500;
    letter-spacing: 0.28px;
    color: #4caf50;
    margin-bottom: 0.6rem;
    margin-left: 4.5rem;
    position: relative;
    white-space: nowrap;
}

.video-widget__action svg {
    position: absolute;
    left: -2.5rem;
    bottom: -0.75rem;
    height: 2.8rem;
    width: auto;
}

.video-widget__link-wrap {
    position: relative;
}

.video-widget__link {
    width: 9.125rem;
    height: 13.688rem;
    border-radius: 15px;
    box-shadow: 0 0 81px 0 rgba(53, 53, 53, 0.3);
    border: solid 3px #fff;
    background-color: #000;
    display: block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.video-widget__link img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.video-widget__iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 100%;
    transform: translate(-50%, -50%);
    border: none;
    pointer-events: none;
}

.video-widget__link img {
    opacity: 0.85;
    transition: opacity 0.3s;
}

.video-widget__link:hover img {
    opacity: 0.7;
}

.video-widget__play {
    width: 2.063rem;
    height: 2.063rem;
    background-color: #fe6155;
    border-radius: 50%;
    border: none;
    animation: vw-pulse 2s infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.625rem;
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' viewBox='0 0 15.2 17' style='enable-background:new 0 0 15.2 17;'%3E%3Cpath fill='%23FFFFFF' d='M2.7,0.4C1.2-0.5,0,0.3,0,2v13c0,1.8,1.2,2.5,2.8,1.6l11.3-6.5c1.5-0.9,1.5-2.3,0-3.2L2.7,0.4z'/%3E%3C/svg%3E");
    cursor: pointer;
    z-index: 2;
}

.video-widget__close {
    z-index: 3;
    cursor: pointer;
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    background-size: 10px;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15.6 15.5'%3E%3Crect x='-2.2' y='6.8' transform='matrix(0.7071 -0.7071 0.7071 0.7071 -3.2219 7.778)' fill='%23FFFFFF' width='20' height='2'/%3E%3Crect x='6.8' y='-2.2' transform='matrix(0.7071 -0.7071 0.7071 0.7071 -3.2218 7.7782)' fill='%23FFFFFF' width='2' height='20'/%3E%3C/svg%3E");
    transition: background-color 0.2s;
}

.video-widget__close:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

@keyframes vw-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(254, 97, 85, 0.6);
    }
    70% {
        box-shadow: 0 0 0 1rem rgba(254, 97, 85, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(254, 97, 85, 0);
    }
}

/* Video Modal */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.video-modal-overlay.is-open {
    display: flex;
}
.video-modal {
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
    position: relative;
}
.video-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}
.video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.video-modal__close:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Mobile */
@media (max-width: 768px) {
    .video-widget {
        left: 0.8rem;
        bottom: 1rem;
    }
    .video-widget__link {
        width: 7rem;
        height: 10.5rem;
        border-radius: 12px;
        border-width: 2px;
    }
    .video-widget__action {
        font-size: 0.6rem;
        margin-left: 3.5rem;
        margin-bottom: 0.4rem;
    }
    .video-widget__play {
        width: 1.75rem;
        height: 1.75rem;
        background-size: 0.5rem;
    }
    .video-modal {
        width: 95%;
    }
}
