/* Start Video container */
.video-container {
    position: absolute;
    width: 1280px;
    height: 720px;
    top: 0px;
    left: 0px;
    background: #000;
    z-index: 999999;
}

.video-title {
    position: absolute;
    color: #FFFFFF;
    font-size: 40px;
    font-weight: bold;
    top: 40%;
    left: 50%;
    width: 95%;
    right: 50%;
    text-align: center;
    -webkit-transform: translate(-50%, -35.9%);
    transform: translate(-50%, -35.9%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-loader {
    position: absolute;
    top: 47%;
    left: 46.4%;
    width: 110px;
    height: 110px;
    z-index: 9999;
}

.video_box {
    width: 1280px;
    height: 720px;
}

.pause-icon {
    width: 110px;
    height: 110px;
    top: 45%;
    left: 46.4%;
    text-align: center;
    z-index: 9999;
    position: absolute;
}

#av-player,
#video_container {
    display: none;
}

.mejs__offscreen {
    display: none !important;
}

/** Start of progress bar **/
.progress-container {
    position: absolute;
    bottom: 75px;
    display: table;
    width: 100%;
    padding: 0px 2px;
    z-index: 999999;
}

.progress-time {
    color: #fff;
    font-size: 28px;
    vertical-align: middle;
    white-space: nowrap;
    width: 1%;
    line-height: 1;
    padding: 6px 18px;
    display: table-cell;
}

.progress {
    float: left;
    position: relative;
    width: 100%;
    margin-top: 22px;
    margin-bottom: 20px;
    display: table-cell;
    border-radius: 10px 10px;
    height: 20px;
    background-color: #fff;
    overflow: hidden;
}

.progress-bar {
    float: left;
    width: 0;
    height: 100%;
    font-size: 12px;
    line-height: 20px;
    color: #fff;
    text-align: center;
    background-color: #ff431d;
    -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
    -webkit-transition: width .6s ease;
    transition: width .6s ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/** End of progress bar **/

/** Start Video Loader **/
.video-buffered {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.buffered_dimension {
    position: absolute;
    top: 43.3%;
    left: 46.2%;
    width: 145px;
    height: 145px;
    text-align: center;
    -webkit-transform: translate(-46.2%, -43.3%);
    -moz-transform: translate(-46.2%, -43.3%);
    -ms-transform: translate(-46.2%, -43.3%);
    -o-transform: translate(-46.2%, -43.3%);
    transform: translate(-46.2%, -43.3%);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/** End Video Loader **/

/* Start Video container */
.video-player-container {
    display: none;
}

.video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    top: 0px;
    left: 0px;
    background: #000;
    z-index: 99999;
    margin: 0 auto;
}

#video_container {
    display: none;
}

.vjs-big-play-button,
/* .vjs-control-bar, */
.vjs-loading-spinner {
    display: none !important;
}
.vjs-play-control,
.vjs-volume-panel,
.vjs-descriptions-button,
.vjs-subs-caps-button,
.vjs-audio-button,
.vjs-picture-in-picture-control,
.vjs-fullscreen-control{
    display: none !important;
}
.video-js .vjs-control-bar{
    background-color: transparent !important;
    height: 4rem;
}
.video-js .vjs-time-control {
    font-size: 1.6rem;
    line-height: 4rem;
    color: red;
    font-weight: 600;
    padding-left: .6em;
    padding-right: .6em;
}
.video-js .vjs-current-time{
    display: unset;
}
.video-js .vjs-play-progress {
    background-color:red !important;
}
.video-js .vjs-progress-holder {
    height: .8em;
}
.video-js .vjs-play-progress:before {
    font-size: 2em;
}
.video-js .vjs-control {
    display: none !important;
}

.vjs-text-track-display {
    background: transparent !important;
    z-index: 1000000 !important;
    position: absolute !important;
    left: 0; right: 0; top: 0; bottom: 0;
    pointer-events: none;
}
.custom-player-controls{
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background-color: transparent;
    display: grid;
    place-content: center;
    z-index: 99999;
    visibility: hidden;
}

.custom-control-bar{
    width: 100vw;
    height: 3rem;
    background: transparent;
    bottom: 0;
    position: absolute;
    display: flex;
    justify-content: space-between;
}

.custom-time{
    font-size: 1.4rem;
    font-weight: 800;
    color: red;
    width: 9vw;
    text-align: center;
}

.custom-progress-bar{
    width: 84vw;
    height: 1rem;
    background-color: rgb(204 204 204 / 46%);
    border-radius: 10px;
    margin-top: 0.3rem;
}

.custom-current-pr{
    position: relative;
    background-color: red;
    width: 0%;
    height: 1rem;
    border-radius: 20px;
    -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
    -webkit-transition: width .6s ease;
    transition: width .6s ease;
    --after-color: white;
}

.custom-current-pr::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
/*    left: 0;*/
    transform: translate(50%, -50%);
    width: 20px;   /* Adjust the size of the circle */
    height: 20px;  /* Adjust the size of the circle */
    background-color:  var(--after-color);;  /* Color of the circle */
    border-radius: 50%;  /* Makes the element circular */
}

.custom-current-pr:focus::after {
    background-color: red; /* Change on focus */
}

.custom-play-pause-button{
    display: none;
    /* position: absolute; */
    /* top: 50%; */
    /* left: 50%; */
    /* width: 145px; */
    height: 145px;
    /* transform: translate(-50%, -50%); */
}


.custom-centered-buttons{
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-play-btn .layer_play{
    margin: 0 4rem 0 6rem;
    display: none;
}

.custom-play-btn .layer_loader{
    margin: 0 5rem 0 5rem;
    display: none;
}

.custom-play-btn .layer_pause{
    margin: 0 5rem 0 5rem;
    display: none;
}

.current-content-title{
    position: absolute;
    top:0;
    left: 0;
    font-size: 2rem;
    color: #FFFFFF;
    font-weight: 800;
    padding: 1rem;
}
.player-loader-container{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90px;
    height: 90px;
    transform: translate(-50%, -50%);
}
.player-loader {
    width: 90px;
    height: 90px;
    background: url("../images/player-loader.png") no-repeat;
    background-size: cover;
    -moz-animation: spin 5s infinite linear;
    -webkit-animation: spin 5s infinite linear;
    animation: spin 2s linear infinite;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Start of preview player section */

#previewPlayer{
    top: 0;
    right: 0;
    z-index: 0;
    position: absolute;
}

.video-js .vjs-ima {
    z-index: 1000 !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.video-js .vjs-ima-container {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000 !important;
}

.video-js .vjs-tech {
    z-index: 10 !important;
}

#my-video_ima-ad-container{
    position: absolute !important;
    z-index: 999999 !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
}

/* Add this after your Video.js and video-player.css files (or append to video-player.css).
   It forces the gradient overlay to paint above preview players and lowers preview z-index. */
