
#VideoContainer {
    width: auto;
    box-shadow: 8px 6px 10px 0 rgba(0, 0, 0, .14902);
}

#VideoControl {
}

.scrolled #VideoControl {
    display: flex;
    flex-direction: column;
}

/* Let the video grow to fill the same height as the title pane instead of leaving a gap below the controls */
.scrolled #VideoControl #bitplayer {
    flex: 1 1 auto;
    height: auto !important;
}

@media (max-width: 768px) {
    /* Too narrow for the video itself to stretch nicely - keep a correct 16:9 ratio instead,
       and let the controls bar's white background grow to absorb the leftover height so there's no gap */
    .scrolled #VideoControl #bitplayer {
        flex: none;
        aspect-ratio: 16 / 9;
        height: auto !important;
    }

    .scrolled #VideoControl #VideoControlersContainer {
        flex: 1 1 auto;
    }
}

#TitleNextUpContainer {
    background-color: white;
    width: 100%;
}

#VideoTitle {
    padding: 20px;
    align-content: center;
    /*width: 60%;*/
}


#closeCollapsedVideo {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000;
}

#closeCollapsed {
    padding: 5px;
    margin: 0 10px;
    border: none;
    background-color: white;
}

    #closeCollapsed img {
        width: 20px;
        height: auto;
        border: none;
    }

#ifiTitle {
    font-family: Open Sans;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: #398465;
    width: 100%;
    margin-bottom: 10px;
}

#VideoTitleContent {
    color: #161B1D;
    font-family: 'Lora';
    font-size: 26px;
    font-weight: 600;
    line-height: 26px;
    padding: 8px 8px 8px 0;
}

#SponsorCollapsedVideo {
    font-family: Open Sans;
    font-weight: 400;
    font-size: 12px;
    line-height: 16.34px;
    color: #435056;
    padding-left: 5px;
}

#NextUpContainer {
    display: flex;
    padding-left: 20px;
    border-left: 2px solid #eee;
    margin-left: auto;
    cursor: pointer;
    width: 35%;
}

@media (max-width: 768px) {
    #NextUpContainer {
        /*width: 17%;*/
    }
}

#NextUpContent {
    margin: 10px 0;
}

#ifiNext {
    font-family: Open Sans;
    font-weight: 600;
    font-size: 12px;
    line-height: 12px;
    color: #398465;
}

#NextUpTitle {
    font-family: Open Sans;
    font-weight: 600;
    font-size: 18px !important;
    line-height: 24px;
    color: #161B1D;
}

#upNextText {
    font-family: Open Sans;
    font-weight: 600;
    font-size: 20px;
    line-height: 27.24px;
    color: #435056;
}

#nextArrow {
    padding: 30px;
    margin: auto;
    flex-grow: 10;
}

    #nextArrow img {
        width: 17px;
        height: 28px;
        border: none;
    }


#VideoControlersContainer {
    background-color: white;
    display: flex;
    justify-content: center;
    border-right: 1px solid #c5ced3;
    
}

#VideoControlers {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: auto;
    height: 34.5px;
}

#advance {
    padding: 5px;
    margin: 0 10px;
    border: none;
    background-color: white;
}

    #advance img {
        width: 20px;
        height: auto;
        border: none;
    }

#delay img {
    width: 20px;
    height: auto;
    border: none;
}

#delay {
    padding: 5px;
    margin: 0 10px;
    border: none;
    background-color: white;
}

#speed {
    padding: 5px;
    margin: 0 10px;
    border: none;
    background-color: white;
    font-family: Proxima Nova;
    font-weight: 600;
    font-size: 14px;
    line-height: 19.49px;
    color: #161B1D;
}

.scrolled {
    display: flex !important;
    position: fixed;
    top: 0;
    z-index: 9999;
    width: 100% !important;
    left: 0;
}

@media (max-width: 767px) {
    .scrolled .bitmovinplayer-container,
    .scrolled .bitmovinplayer-ad-container {
        min-height: 110px;
        min-width: 150px;
    }
}

.importantLinks-Collapsed {
    font-family: Open Sans;
    font-weight: 400;
    font-size: 14px;
    line-height: 19.07px;
    color: #435056;
    padding: 4px;
}


.importantLinks-Collapsed .importantLink-1 {
    padding-right: 15px;
    text-decoration: underline;
}

.importantLinks-Collapsed .importantLink-2 {
    padding-left: 15px;
    text-decoration: underline;
}


/** MOBILE **/
@media (min-width:320px) and (max-width: 1366px) {

    #TitleNextUpContainer {
        height: 160px;
    }

    #VideoTitle {
         margin-right: 20px;
        font-size: 18px;
        /*padding: 10px;*/
    }

    #ifiTitle {
        font-family: Open Sans;
        font-weight: 600;
        font-size: 12px;
        line-height: 12px;
        color: #398465;
        width: max-content;
    }

    #VideoTitleContent {
        font-size: 12px !important;
        line-height: 16px;
        /*padding: 8px;*/
    }

    #NextUpTitle {
        font-size: 16px !important;
    }

        #SponsorCollapsedVideo {
        font-family: Open Sans;
        font-weight: 400;
        font-size: 10px;
        line-height: 13.62px;
        color: #435056;
    }

    #VideoControlersContainer {
        height: 25%;
    }

    #VideoControlers {
        /* height: 86px;*/
    }

    #speed {
        font-size: 16px
    }

    .importantLinks-Collapsed {
        font-family: Open Sans;
        font-weight: 400;
        font-size: 10px !important;
        line-height: 13.62px;
        color: #435056;
    }

        .importantLinks-Collapsed .importantLink-1 {
            padding-right: 0px;
        }

        .importantLinks-Collapsed .importantLink-2 {
            padding-left: 0px;
        }
}