.vid-section {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    background-color: #000;
    overflow: hidden;
    display: block;
}

#mainVideo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    z-index: 1;
}

.vid-overlay {
    position: absolute; top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
    linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%);
    z-index: 2;
    pointer-events: none;
}

.vid-selector-container {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vid-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    background: #000;
}

.vid-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.vid-thumbnail:hover img {
    opacity: 1;
}

.vid-thumbnail:hover {
    border-color: rgba(234, 180, 101, 0.5);
    transform: scale(1.05);
}

.vid-thumbnail.active {
    border-color: #eab465;
    box-shadow: 0 0 20px rgba(234, 180, 101, 0.5);
}

.vid-thumbnail.active img {
    opacity: 1;
}

.vid-thumbnail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(234, 180, 101, 0.9);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.vid-thumbnail:hover::after {
    opacity: 1;
}

.vid-thumbnail-title {
    position: absolute;
    right: 140px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: 'Helvetica Neue', sans-serif;
}

.vid-thumbnail:hover .vid-thumbnail-title {
    opacity: 1;
}

/* Control buttons */
.vid-controls-container {
    position: absolute;
    bottom: 50px;
    left: auto;
    right: 40px;
    transform: none;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

.vid-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, color 0.3s;
    width: 40px; height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.vid-btn:hover {
    color: #eab465;
    transform: scale(1.1);
    filter: drop-shadow(0 2px 8px rgba(234, 180, 101, 0.4));
}

.vid-sep {
    width: 1px; height: 25px;
    background: rgba(255,255,255,0.2);
}


@media (max-width: 768px) {
    .vid-section {
        height: 80vh;
        max-height: none;
    }

    #mainVideo {
        object-fit: contain;
        object-position: center center;
    }

    .vid-selector-container {
        flex-direction: row;
        top: auto;
        bottom: 140px;
        right: 50%;
        transform: translateX(50%);
        gap: 10px;
        width: 90%;
        overflow-x: auto;
        padding: 10px 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .vid-selector-container::-webkit-scrollbar {
        display: none;
    }

    .vid-thumbnail {
        width: 100px;
        height: 65px;
        flex-shrink: 0;
    }

    .vid-thumbnail-title {
        display: none;
    }

    .vid-controls-container {
        bottom: 30px;
        right: 20px;
        transform: none;
    }

    .vid-btn-bar {
        padding: 10px 20px;
        gap: 15px;
    }

    .vid-btn {
        font-size: 1.8rem;
        width: 36px;
        height: 36px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .vid-section {
        height: 70vh;
    }

    .vid-selector-container {
        bottom: 120px;
    }

    .vid-thumbnail {
        width: 85px;
        height: 55px;
    }

    .vid-controls-container {
        bottom: 20px;
        right: 15px; /* KANAN */
    }

    .vid-btn {
        font-size: 1.5rem;
        width: 32px;
        height: 32px;
    }
}

/* Landscape mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .vid-section {
        height: 100vh;
    }

    .vid-selector-container {
        bottom: 100px;
    }
}