.container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Main video section */
.main-video {
    flex: 2;
    min-width: 300px;
    max-width: 700px;
    position: relative;
}

/* Vertical slider area */
.slider {
    flex: 1;
    min-width: 200px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.small-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    margin-bottom: 15px;
    background: #000;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s;
}

.small-video:hover {
    transform: scale(1.05);
}

iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* scrollbar styling */
.slider::-webkit-scrollbar {
    width: 6px;
}
.slider::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

@media (max-width: 768px) {

    /* Make main video behave like a small-video */
    .main-video {
        width: 100%;
        padding-top: 56.25%;   /* 16:9 ratio */
        position: relative;
        margin-bottom: 15px;
        border-radius: 6px;
        overflow: hidden;
    }

    .main-video iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    /* Full width video list under it */
    .slider {
        width: 100%;
        max-height: none;
        overflow-y: visible;
    }

    .small-video {
        width: 100%;
        padding-top: 56.25%;
    }
}
