.yt-gallery-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
}

/* Section Title */
.yt-gallery-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 15px 0;
    padding-left: 0;
    line-height: 1;
}


/* Main Player */
.yt-gallery-main-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.yt-gallery-main-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Slider Wrapper */
.yt-gallery-bottom-wrapper {
    position: relative;
    min-height: 150px;
}

.yt-gallery-bottom-slider {
    width: 100%;
    padding: 10px 0 30px 0;
    overflow: hidden;
}

.yt-gallery-bottom-slider.swiper:not(.swiper-initialized) .swiper-wrapper,
.yt-gallery-bottom-slider.swiper-container:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    overflow: hidden;
}


/* Thumbnails */
.yt-gallery-thumb {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.yt-gallery-thumb-inner {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.yt-gallery-thumb.active .yt-gallery-thumb-inner {
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.yt-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.yt-gallery-thumb:hover img {
    opacity: 0.7;
}

/* Play Icon Overlay */
.yt-gallery-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 0, 0, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.yt-gallery-play-icon i {
    color: #fff;
    font-size: 16px;
    margin-left: 2px;
}

.yt-gallery-thumb:hover .yt-gallery-play-icon,
.yt-gallery-thumb.active .yt-gallery-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Title Overlay */
.yt-gallery-thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 15px 10px 8px 10px;
}

.yt-gallery-thumb-overlay span {
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

/* Navigation Arrows */
.yt-gallery-nav {
    color: #fff !important;
    width: 30px !important;
    height: 30px !important;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.yt-gallery-nav:after {
    font-size: 14px !important;
    font-weight: bold;
}

.yt-gallery-nav:hover {
    background: #ff0000;
}

.swiper-button-next { right: 0 !important; }
.swiper-button-prev { left: 0 !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .yt-gallery-container {
        padding: 10px;
    }
    .yt-gallery-section-title {
        font-size: 16px;
    }
}
