/* Стили для видео превью и модального окна */
.video-engagement-preview {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: 150px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.video-engagement-preview.show {
    opacity: 1;
    transform: translateY(0);
}

.video-engagement-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-engagement-preview .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-engagement-preview:hover .play-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.video-engagement-preview .play-button {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-engagement-preview:hover .play-button {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.video-engagement-preview .play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 15px solid #333;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 3px;
}

.video-engagement-preview .close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-engagement-preview .close-button:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Модальное окно */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.show {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.video-modal.show .video-modal-content {
    transform: scale(1);
}

.video-modal video {
    width: 100%;
    height: auto;
    display: block;
}

.video-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 1;
    transition: background 0.3s ease;
}

.video-modal .close-modal:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Адаптивность */
@media (max-width: 768px) {
    .video-engagement-preview {
        width: 150px;
        height: 112px;
        bottom: 15px;
        right: 15px;
    }
    
    .video-engagement-preview .play-button {
        width: 40px;
        height: 40px;
    }
    
    .video-engagement-preview .play-button::after {
        border-left-width: 12px;
        border-top-width: 8px;
        border-bottom-width: 8px;
    }
    
    .video-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .video-engagement-preview {
        width: 120px;
        height: 90px;
        bottom: 10px;
        right: 10px;
    }
    
    .video-engagement-preview .play-button {
        width: 35px;
        height: 35px;
    }
    
    .video-engagement-preview .play-button::after {
        border-left-width: 10px;
        border-top-width: 7px;
        border-bottom-width: 7px;
    }
} 