.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Video Player Section */
.video-player-section {
    width: 70%;
    margin-bottom: 20px; /* Increased margin to create space */
}

.video-player {
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.video-title {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.video-description {
    font-size: 1em;
    color: #555;
}

/* Horizontal Sidebar */
.horizontal-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.filter-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.filter-button {
    padding: 8px 15px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.filter-button:hover {
    background-color: #555;
}

.filter-button.active {
    background-color: #0056b3; /* Active button color */
    color: white;
    font-weight: bold;
}

.scroll-container {
    display: flex;
    align-items: center;
    width: 90%;
    justify-content: center;
    position: relative;
}

.video-list {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #e1e1e1;
    overflow: hidden;
    scroll-behavior: smooth;
    width: 90%;
    max-height: 400px; /* Limit height for vertical layout */
}

.video-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    min-width: 25%;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-item.hidden {
    display: none;
}

.video-item img {
    width: 120px;
    height: 70px;
    object-fit: cover;
}

.video-details {
    display: flex;
    flex-direction: column;
}

.video-details h4 {
    margin: 0;
    font-size: 1em;
}

.video-details p {
    margin: 5px 0 0;
    color: gray;
    font-size: 0.9em;
}

/* Modern Style for Scroll Buttons */
.scroll-button {
    background-color: #444;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 50%; /* Rounded buttons for modern look */
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.scroll-button.left {
    margin-right: 10px;
}

.scroll-button.right {
    margin-left: 10px;
}

.scroll-button:hover {
    background-color: #666;
    transform: scale(1.1); /* Slight scaling on hover for emphasis */
}

.scroll-button:disabled {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .video-player-section {
        width: 90%;
    }

    .filter-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .video-item {
        min-width: 45%;
    }
}

@media (max-width: 768px) {
    .scroll-container {
        flex-direction: column;
        align-items: center;
    }

    .scroll-button {
        width: 100%; /* Full width for up/down buttons */
        height: auto;
        margin: 5px 0;
    }

    .scroll-button.left {
        order: -1; /* Move up button to the top */
    }

    .scroll-button.right {
        order: 1; /* Move down button to the bottom */
    }
    .video-list {
        flex-direction: column;
        width: 100%;
        max-height: 400px; /* Limit the height to show only 4 items */
    }

    .filter-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .video-item {
        min-width: 90%;
    }
}
