/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    height: 100vh;
    background-color: #262323;
    color: rgb(255, 255, 255);
    overflow: hidden;
}

/* Sidebar styles */
#sidebar {
    width: 250px;
    background-color: #393535;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 2px solid #444;
}

#sidebar h2 {
    text-align: center;
    margin-bottom: 15px;
}

.channel {
    padding: 10px;
    background: #5d5a5a;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
    margin-top: 3px;
}

.channel:hover {
    background: #0b0b0b;
}

/* Main content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    width: 100%;
}

#videoContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

video, iframe {
    width: 80%;
    max-width: 800px;
    border: 2px solid white;
    display: none;
    background-color: #000;
}

/* Shaka player container */
#shakaContainer {
    width: 100%;
    display: none;
    justify-content: center;
}

#shakaPlayer {
    width: 80%;
    max-width: 900px;
    border: 2px solid white;
    background-color: #000;
}

/* Responsive sidebar for mobile */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        height: 100vh;
        transition: 0.3s;
        z-index: 1000;
    }
    #videoContainer {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 200px; /* Adjust this value */
        margin-bottom: 20px;
    }
    
    #sidebar.active {
        left: 0;
    }
    video, iframe {
        width: 100%;
        max-width: 800px;
        border: 2px solid black;
    
        display: none;
        background-color: #000;
    }
   

    #sidebarToggle {
        position: fixed;
        top: 20px;
        left: 20px;
        background-color: #5d5a5a;
        color: white;
        border: none;
        padding: 10px;
        cursor: pointer;
        z-index: 1100;
        border-radius: 5px;
        transition: 0.3s;
    }

    #sidebarToggle:hover {
        background-color: #0b0b0b;
    }
}
