/* Single Video Container */
.ml-video-container {
    position: relative;
    margin: 0 auto 30px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ml-video-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.ml-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

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

.ml-video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.ml-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
    padding: 20px;
}

.ml-video-container:hover .ml-video-overlay {
    opacity: 1;
}

.ml-overlay-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.ml-overlay-separator {
    width: 80px;
    height: 2px;
    margin-bottom: 15px;
}

.ml-overlay-text {
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.ml-video-container.playing .ml-video-thumbnail,
.ml-video-container.playing .ml-video-overlay {
    display: none;
}

/* Video Gallery Grid */
.ml-video-gallery-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.ml-video-gallery-grid.ml-columns-1 {
    grid-template-columns: 1fr;
}

.ml-video-gallery-grid.ml-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ml-video-gallery-grid.ml-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ml-video-gallery-grid.ml-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.ml-video-gallery-grid.ml-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.ml-video-gallery-grid.ml-columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.ml-video-gallery-item {
    width: 100%;
}

.ml-video-gallery-item .ml-video-container {
    margin-bottom: 0;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .ml-video-gallery-grid.ml-columns-6,
    .ml-video-gallery-grid.ml-columns-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .ml-video-gallery-grid.ml-columns-6,
    .ml-video-gallery-grid.ml-columns-5,
    .ml-video-gallery-grid.ml-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ml-overlay-title {
        font-size: 24px;
    }
    
    .ml-overlay-text {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    .ml-video-gallery-grid.ml-columns-6,
    .ml-video-gallery-grid.ml-columns-5,
    .ml-video-gallery-grid.ml-columns-4,
    .ml-video-gallery-grid.ml-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ml-overlay-title {
        font-size: 20px;
    }
    
    .ml-overlay-text {
        font-size: 14px;
    }
    
    .ml-overlay-separator {
        width: 60px;
    }
}

@media screen and (max-width: 480px) {
    .ml-video-gallery-grid {
        grid-template-columns: 1fr !important;
    }
    
    .ml-overlay-title {
        font-size: 18px;
    }
    
    .ml-overlay-text {
        font-size: 13px;
    }
}