/* ========================================
   VIDEO STYLES - Minimal & Essential
   ======================================== */

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    margin: 15vh auto 0;
    width: 85%;
    max-width: 900px;
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
}

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

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Video Wrapper - 16:9 ratio container */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Video Preview */
.video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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

/* Video Play Button - Inline version for buttons-container */
.video-play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(218, 0, 52, 0.9);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(218, 0, 52, 0.3);
    flex-shrink: 0;
}

.video-play-button:hover {
    background: #c60030;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(218, 0, 52, 0.4);
}

.video-play-button i {
    margin-left: 2px;
    font-size: 16px;
}

/* Video Play Button - Absolute version for video preview */
.video-preview .video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    z-index: 10;
}

.video-preview .video-play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-preview .video-play-button i {
    font-size: 24px;
}

/* Video iframe */
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .video-modal-content {
        margin: 12vh auto 0;
        width: 90%;
        padding: 12px;
    }
    
    .video-modal-close {
        top: 12px;
        right: 18px;
        width: 38px;
        height: 38px;
        font-size: 26px;
    }
    
    .video-play-button {
        width: 45px;
        height: 45px;
    }
    
    .video-play-button i {
        font-size: 14px;
    }
    
    .video-preview .video-play-button {
        width: 60px;
        height: 60px;
    }
    
    .video-preview .video-play-button i {
        font-size: 20px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .video-modal-content {
        margin: 20vh auto 0;
        width: 92%;
        padding: 10px;
        border-radius: 8px;
        align-items: flex-start;
    }
    
    .video-modal-close {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .video-play-button {
        width: 40px;
        height: 40px;
    }
    
    .video-play-button i {
        font-size: 12px;
    }
    
    .video-preview .video-play-button {
        width: 50px;
        height: 50px;
    }
    
    .video-preview .video-play-button i {
        font-size: 16px;
    }
}

/* Desktop - Wider Video */
@media (min-width: 1200px) {
    .video-wrapper {
        max-width: 1400px;
    }
}

@media (min-width: 1600px) {
    .video-wrapper {
        max-width: 1600px;
    }
}