body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a; /* Dark background */
    color: #e0e0e0; /* Light text */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 1200px;
}

.video-list {
    background-color: #1a1a1a;
    padding: 10px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.video-list a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 8px 15px;
    background-color: #3a3a3a;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.video-list a:hover {
    background-color: #505050;
}

.video-list a.active {
    background-color: #007bff;
}

.video-wrapper {
    flex: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #2a2a2a;
    display: flex;
    justify-content: center;
    align-items: center;
}

#video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
    .video-list {
        padding: 5px 0;
        gap: 8px;
    }

    .video-list a {
        padding: 6px 10px;
        font-size: 14px;
    }

    .video-wrapper {
        /* Ensure space for controls on mobile */
        max-height: calc(100vh - 60px); /* Adjust based on video-list height */
    }

    #video-player {
        max-height: 100%; /* Prevent overflow */
    }
}