/* Ana Galeri Konteyneri - KOYU TEMA BURADA BAŞLIYOR */
.tubeGallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: auto;

    /* Koyu tema stillerini bu konteynere taşıyoruz */
    background-color: #212121;
    /* Koyu konteyner arka planı */
    color: #f1f1f1;
    /* Konteyner içindeki varsayılan metin rengi açık */

    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Sol Taraf: Ana Video Oynatıcı */
.main-video-wrapper {
    flex: 3;
    min-width: 300px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

#main-video-player {
    width: 100%;
    height: 100%;
    border: none;
}

/* Sağ Taraf: Video Listesi */
.video-list-wrapper {
    flex: 1;
    min-width: 250px;
    max-height: 500px;
    overflow-y: auto;
    border-left: 1px solid #333;
    /* Koyu temaya uygun ayırıcı çizgi */
    padding-left: 20px;
}

/* Liste içindeki her bir video elemanı */
.video-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    background-color: transparent;
}

.video-item:hover {
    background-color: #333;
}

.video-item.active {
    background-color: #555;
    font-weight: bold;
}

.video-item img {
    width: 120px;
    height: 67px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}

.video-item .title {
    font-size: 14px;
    color: #f1f1f1;
    /* Başlık renginin açık olduğundan emin oluyoruz */
}

/* Koyu Temalı Scrollbar Stilleri */
.video-list-wrapper::-webkit-scrollbar {
    width: 8px;
}

.video-list-wrapper::-webkit-scrollbar-track {
    background-color: #333;
    border-radius: 4px;
}

.video-list-wrapper::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
}

.video-list-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}

.huluTubeContainer {
    width: 100%;
    height: 100%;
    position: relative;
    margin-bottom: 20px;
}

/* Paylaşım butonu ve seçenekler */
.custom-share-container {
    position: absolute;
    top: 20%;
    right: 10px;
    z-index: 1000;
}

.share-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.share-options {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: absolute;
    right: 0;
    top: 40px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    width: 100%;
}

.share-option:hover {
    background: #f5f5f5;
}

/* Mobil Cihazlar ve Küçük Ekranlar İçin (Responsive) */
@media (max-width: 768px) {
    .tubeGallery-container {
        flex-direction: column;
    }

    .video-list-wrapper {
        max-height: 300px;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #333;
        /* Koyu temaya uygun üst çizgi */
        padding-top: 20px;
    }
}