/* Video Player Desktop Layout (Non-Chat) */

/* Title styling for desktop */
.video-player-top-heading-block {
    padding-top: 10px;
    margin-bottom: 10px;
}

.video-player-top-heading-block h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

/* Ensure dropdown doesn't overlay video */
.video-player-top-heading-block .dropdown {
    position: relative;
}

.video-player-top-heading-block .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    z-index: 1050;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-player-top-heading-block .dropdown-menu.show {
    display: block;
}

/* Online Users Display */
#active-userList {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent !important;
}

/* Fix for dynamically inserted user elements */
#active-userList * {
    background: transparent !important;
}

#active-userList a {
    background: transparent !important;
}

/* Video Player Auto-Hide Controls */
#myvideo-1 .vjs-control-bar {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

#myvideo-1.vjs-user-inactive .vjs-control-bar {
    opacity: 0 !important;
    pointer-events: none;
}

#myvideo-1.vjs-user-active .vjs-control-bar {
    opacity: 1 !important;
    pointer-events: auto;
}

/* Ensure controls are visible when paused */
#myvideo-1.vjs-paused .vjs-control-bar {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Also hide big play button when inactive */
#myvideo-1.vjs-user-inactive .vjs-big-play-button {
    opacity: 0;
    pointer-events: none;
}

/* Slim divider for Series You May Like section */
.related-like-section {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 20px;
    margin-left: 20px;
}

/* Mobile: Remove divider on smaller screens */
@media (max-width: 767px) {
    .related-like-section {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
}

/* Restore original max-width for containers but allow flexibility for video player */
.video-player-content .container-1350 {
    max-width: 1350px;
    width: 100%;
}

.video-player-full-content .container-1350 {
    max-width: 1350px;
    width: 100%;
}

/* Video container maintains original constraints */
#videocontainer.container-1350 {
    max-width: 1350px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Video scaling */
.video-listing video {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

/* Desktop: Standard layout */
@media (min-width: 768px) {
    /* Add proper padding for desktop columns */
    .video-player-left-content {
        padding-right: 30px !important;
    }

    .video-player-right-content {
        padding-left: 30px !important;
    }

    /* Ensure the video content area below maintains proper layout */
    .video-player-full-content .container-1350 {
        max-width: 1350px;
        width: 100%;
    }

    /* Default state - normal two-column layout */
    .video-player-full-content .col-md-7 {
        transition: all 0.3s ease;
    }

    .video-player-full-content .col-md-5 {
        display: block;
        transition: all 0.3s ease;
    }
}
