body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

body a {
    text-decoration: none;
}
.float-right {
    float: right !important;
}
#caglecast {
    position: relative;
}

video {
    aspect-ratio: 16 / 9;
    height: unset;
    width: 100%;
    max-height: 100vh;
}

video::cue {
    color: #fff !important;
    padding-bottom: 3em !important;
}

#video_controls { display: none; }


#caglecast.canvas,
#caglecast.canvas div.episode,
#caglecast.canvas div.episode video {
    height: auto;
    width: 100%;
}

#available_on {
    display: flex;
    position: absolute;
    bottom: 13.5rem;
    left: 0;
    background: transparent;
    font: 700 2.5vw Roboto, sans-serif;
    color: #fff;

}
#available_on img {
    width: 10vw;
}
#watch_on,
#watch_on_youtube {
    display: flex;
    align-items: center;
    position: fixed;
    transition: 1s all ease;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 0.75rem;
    color: #fff;
}

.slidein {
    left: 0 !important;
}

.slideout {
    left: -100% !important;
}

#watch_on_youtube {

}


#watch_on img.brand-logo {
    margin-left: 1vw;
    width: 10vw;
    height: auto;
}

#watch_on a {
    color: #fff;
    text-decoration: none;
}

.hide {
    display: none !important;
}

.pinned,
.active {
    display: block !important;
}

#custom_controls {
    display: block;
}

.share-item button {
    margin: 0 auto;
}

#share_menu {
    position: absolute;
    top: 1vw;
    right: 1vw;
    padding: .5vw;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.75);
    color: #FFF200;
    border: none;
    border-radius: 4px;
    list-style-type: none;
    list-style-image: none;
}

#share_options {
    list-style-type: none;
    list-style-image: none;
    padding:0;
    margin:0;
    position: relative;
    cursor: default;
}

#share_options .share-item {
    margin-top: .5vw;
}

.share-item {

}

.share-item-icon{
    margin: auto;
}

.share-item-icon svg {
    height: 3.5vw;
    width: 3.5vw;
    margin: auto;
}

#copylink_icon svg {
    margin: 2px auto;
}

.share-item-title {
    display: none;
    font-size: 2vw;
    font-weight: bold;
}

/** AI Output */

#embed_code {
    margin: auto;
    width: 80vw;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    background-color: transparent;
}

#embed_code header {
    margin: 0;
    padding: .5rem;
    background-color: #000;
    font-family: Roboto, "Open Sans", verdana, monospace;
}

#embed_code header label {
    font-size: 1rem;
    line-height: 2vw;
    color: #fff;
}

#copy_embed {
    display: inline-block;
    background-color: #000;
    border: 1px solid gray;
    margin: 0 1rem 0 0;
    padding: .25rem;
    font-family: Roboto, "Open Sans", verdana, monospace;
    font-size: .6rem;
    font-weight: normal;
    color: #fff;
    cursor: pointer;
    float: right;
}

#copy_embed:hover {
    color: yellow;
}


#embed_code section {
    background-color: #fff;
    padding: .25rem;

}
#code {

    background-color: #f1f1f1;
    max-width: 95vw;
    max-height: 190px;
    overflow-y: scroll;
    display: block;
    padding: 1rem;
    line-height: 1.5;
}

#copy_embed_tooltip {
    color: green;
    font-size: .75rem;
}

#copy_embed_close {
    float: right;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    border: unset;
}

#copy_embed_close button {
    margin: 0;
    padding: 0;
    border: unset;
}
#copy_embed_close button:hover {
    color: yellow;
}

figure {
    max-width:1080px;
    width:100%;
    height:auto;
    margin: auto;
    position: relative;
}
figcaption {
    display:block;
    font-size: 1rem;
}
video {
    width:100%;
    height:auto;
}

/* controls */
.controls {
    display:none;
    position: relative;
    width: 100%;
    height: 3rem;
    top: -3rem;
    overflow: visible;
    background-color: rgba(0,0,0,.8);
    /* opacity: .85; */
    padding-top: .25rem !important;
}

.controls.controls-extended {
    height: 3.5rem;
    top: -3.7rem;
}

.controls ul {
    list-style-type:none;
}

.controls,
.controls ul,
.controls li {
    padding: 0;
    margin: 0;
}

.controls li {
    float: left;
    margin-left: .5rem !important;

}
.controls > ul > li.progress,
.controls > ul > li.playpause,
.controls #resolutions li {
    margin-left: 0 !important;
}


.controls .progress {
    width: 100%;
    height: 5px;
    cursor:pointer;
    margin-bottom: .5rem;

}
.controls button,
.controls progress {
    width: 100%;
    height: 1rem;
    text-align:center;
    white-space:nowrap;
    text-overflow:ellipsis;
    border: none;
    padding: 0;
    margin: .25rem;
    background: transparent;

}
.controls progress {
    display: block;
    width: 99%;
    height: .35rem;
    margin-top: 0.125rem;
    border:1px solid #aaa;
    overflow:hidden;
    -moz-border-radius:5px;
    -webkit-border-radius:5px;
    border-radius:5px;
}
.controls progress span {
    width: 0;
    height: 100%;
    display:inline-block;
}

.controls .off {
    color: red;
}

.controls progress #progress-bar { background-color: red; }
.controls progress::-moz-progress-bar { background: red; }
.controls progress::-webkit-progress-value { background: red; }
.controls progress { color: red; }

.controls #frame,
.controls #chapter_title    {
    position: relative;
    width: 2.5rem;
    top: -3rem;
    display: none;
    padding: .25rem;
    color: #FFF;
    border: 2px solid #000;
    background-color: rgba(0,0,0,1);
    border-radius: .5rem .5rem;
    -webkit-border-radius: .5rem .5rem;
    -moz-border-radius: .5rem .5rem;
    text-align: center;
}

.controls #chapter_title {
    width: unset;
    margin: auto;
    text-align: center;
    top: -1.5rem;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1000;
    color: yellow;
    opacity: 1;
}

.controls progress:hover {
    height: 7px;
}

.controls select {
    display: inline-block;
    background-color: gray;
    color: #FFF;
}

.controls progress,
.controls #timecode {
    opacity: 1 !important;

}

.controls #timecode {
    width: auto !important;
    line-height: 1.2;
    font-size: 1.5rem;
}



.controls #chapter_selectors {
    width: 100%;
    float: none;
    /*
    height: 0.6rem;
    top: -0.25rem;
    position: relative;

     */
}

.controls .chapter-selector {
    display: inline-block;
    height: .5rem;
    background-color: rgba(255, 255, 0, .35);
    margin-right: 1px;
}

.controls .chapter-selector:hover {
    background-color: rgba(255,255,0,.5);
}

.controls .btn-jump {
    width: 100%;
}

progress[value]::-webkit-progress-bar {
    background-color: darkgray;
}


/* The container <div> - needed to position the dropup content */
.dropup {
    position: relative;
    float:right !important;
    text-align: right;
    color: gray;
    line-height: 1.4rem;
    padding: 0 .5rem !important;
    margin-right: 1rem !important;
}
.controls i {
    font-size: 1.5rem;
}
#resolution i {
    margin: 0.25rem;
}



/* Dropup content (Hidden by Default) */
.dropup-content {

    position: absolute;
    display: none;
    bottom: 2rem;
    right: 1rem;
    float: none;
    list-style-type: none;
    list-style-image: none;

}

/* items inside the dropup */
.dropup-content li {
    background-color: #000;
    color: #fff;
    display: block;
    width: 100%;
    border: none;
    padding: 0.25rem .5rem .25rem 0 !important;
    margin: 0;
    text-align: right;
}

.dropup button {
    display: block;
    color: #fff;
    width: 100%;
    height: 1rem;
    text-align: right;
    white-space: nowrap;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
}

.dropup .fa-circle-check {
    margin-right: .5rem;
    font-size: .9rem;

}

.dropup-content li:hover,
.dropup-content li:hover button,
.dropup-content li:hover     button i {
    color: #000 !important;
}

/* Change color of dropup links on hover */
.dropup-content li:hover {
    background-color: #ddd
}

/* Show the dropup menu on hover */
.dropup:hover .dropup-content {
    display: block;
}


/* fullscreen */
html:-ms-fullscreen {
    width:100%;
}
:-webkit-full-screen {
    background-color:transparent;
}
/* hide controls on fullscreen with WebKit
figure[data-fullscreen=true] video::-webkit-media-controls {
    display:none !important;
}
*/

figure[data-fullscreen=true] {
    max-width:100%;
    width:100%;
    margin:0;
    padding:0;
}
figure[data-fullscreen=true] video {
    height:auto;
}
figure[data-fullscreen=true] figcaption {
    display:none;
}
figure[data-fullscreen=true] .controls {
    position:absolute;
    bottom:2%;
    width:100%;
    z-index:2147483647;
}
figure[data-fullscreen=true] .controls li {
    width:5%;
}
figure[data-fullscreen=true] .controls .progress {
    width:68%;
}

.controls,
.controls li,
.controls li button,
.controls li button i {
    color: #fff;
}

.controls li button:hover i,
#resolution:hover i {
    color: yellow;
}

#progress_selector {
    height: 5px;
    background: yellow;
    width: 100%;
    top: .4rem;
    position: absolute;
    display: none;
    z-index: 9999;
}
/*
.progress:hover #progress_selector {
    display: block;
}
*/

/** mobile devices (phones) */
@media only screen and (max-width: 576px) {
    #share_embed,
    #embed_code {
        display: none !important;
    }
}

