
#theatre_main_menu_button {
    position: fixed;
    top: 15px;
    right: 35px;
    padding: 3px 8px;
    padding-top: 0;
    border: 1px solid #aaa;
    border-radius: 3px;
    z-index: 5;
    cursor: pointer;
}
#theatre_menu_option_button {
    background-color: #fff;
    font-weight: bolder;
    color: #000;
    padding: 5px 25px;
    border: 1px solid #aaa;
    border-radius: 3px;
    cursor: pointer;
}

#theatre_main_menu,
#theatre_sub_menu {
    background-color: #000;
    display: none;
    position: absolute;
    top: 15px;
    right: 75px;
    height: auto;
    width: auto;
    border: 1px solid #aaa;
    border-radius: 3px;
    z-index: 5;
}

#video_container {
    background-color: #000;
    position: relative;
    max-width: 750px;
    height: 300px;
    margin: auto;
    margin-top: 130px;
    overflow: hidden;
}

/* Show the title on hover OR when the video is paused */
#video_container:hover #video_title_overlay,
#video_container.paused #video_title_overlay {
    opacity: 1;
}

#video_player {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#video_title_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    color: #ffffff;
    font-family: Georgia, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Prevents overlay from blocking video controls clicks */
}

#skip_intro_overlay {
    position: absolute;
    bottom: 70px;
    right: 25px;
    z-index: 20;
}

#up_next_overlay {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(15, 15, 20, 0.9);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: sans-serif;
    font-size: 14px;
    display: none; /* Controlled via JS */
    align-items: center;
    gap: 10px;
    z-index: 20;
    backdrop-filter: blur(8px);
    opacity: 0.8;
}

#up_next_overlay button {
    background: #457545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: background 0.2s;
}

#up_next_overlay button:hover {
    background: #45b545;
}

#up_next_overlay button.cancel-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

#up_next_overlay button.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.45);
}

#theatre_media_display {
    max-height: 325px;
    margin: auto;
    margin-top: 10px;
    padding: 0px 10px;
    border-top: 2px solid #f90;
    border-bottom: 2px solid #f90;
    overflow-y: auto;
}

.media-item {
    background-color: #000;
    margin: 3px 0px;
    padding: 10px 5px;
    padding-left: 25px;
    border: 1px solid #aaa;
    border-radius: 3px;
    cursor: pointer;
}