/*************************************************************
 * This is the style for the Video player itself
 * 
 * @author (Anyanwu Benedict Chukwuemeka)
 * @version (v0.01)
 *************************************************************/


html:root
{
    --settingSectionTitleIconBoxWidth: 30px;
    --ItemLeftWidth: 30px;
    --ItemRightWidth: 75px;
    --showlistAutoPlayTogglePadding: 0px;
    --genSettTransition: 300ms;
}


svg.hide
{
    display: none;
}


.vid_bdr
{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 16 / 9;
    max-height: 900px;
    max-height: 75vh;
}

.vid_bdr .vid_box
{
    width: 100%;
    max-width: var(--genMaxContainerWidth);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video_player, .video-controls, .video-timer, .options
{
    display: flex;
    align-items: center;
    justify-content: center;
}

.video_player
{
    position: relative;
    width: 98%;
    max-width: var(--genMaxContainerWidth);
    height: 100%;
    border-radius: 5px;
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 20px #0000001a;
    -moz-user-select: -moz-none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    overflow: hidden;
}

.video_player.fullscreen
{
    max-width: 100%;
    width: 100%;
    height: 100vh;
    border-radius: 0px;
}

.video_player .loader
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #00000010;
    transition: all 2s ease-out;
    pointer-events: none;
    z-index: 15;
    display: flex;
}

.video_player .loader .spinner
{
    width: 60px;
    height: 60px;
    border-right: 3px solid var(--genWhiteTypeBright);
    border-bottom: 3px solid var(--genWhiteTypeBright);
    border-left: 3px solid var(--genWhiteTypeBright);
    border-top: 1px solid transparent;
    border-radius: 50%;
    animation: ani 2000ms linear infinite;
    -moz-user-select: -moz-none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}


@keyframes ani
{
    0%
    {
        transform: translateY(0%) rotate(0deg);
    }
    50%
    {
        transform: translateY(0%) rotate(180deg);
    }
    100%
    {
        transform: translateY(0%) rotate(360deg);
    }
}

.video_player video
{
    width: 100%;
    -moz-user-select: -moz-none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
    z-index: 1;
}

.video_player video::cue
{
    opacity: 0;
}

.episode_title_bdr
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: transparent;
    transition: all 300ms ease;
    z-index: 4;
}

.video_player.show-controls .episode_title_bdr
{
    background: linear-gradient(to bottom, #000000a1 , transparent);
}

.episode_title_bdr .episode_title_box
{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 5px 15px;
}

.episode_title_box .companyTitle
{
    width: -moz-fit-content;
    width: fit-content;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: inherit;
    text-transform: uppercase;
}

.episode_title_box .companyTitle .head
{
    color: var(--genGreenTypeDark1);
    font-size: 14px;
}

.episode_title_box .companyTitle .tail
{
    color: #6b6a6a;
    font-size: 13px;
}

.video_player.show-controls .episode_title_bdr
.episode_title_box .companyTitle .head
{
    color: var(--genGreenTypeLight);
}


.video_player.show-controls .episode_title_bdr
.episode_title_box .companyTitle .tail
{
    color: var(--genWhiteTypeLight);
}

.episode_title_box .episodeTitle
{
    color: #6b6a6a;
    font-size: 13px;
}

.video_player.show-controls .episode_title_bdr
.episodeTitle
{
    color: var(--genWhiteTypeLight);
}

.wrapper
{
    position: absolute;
    left: 0;
    right: 0;
    bottom: -35px;
    opacity: 0;
    transition: all 0.08s ease;
    pointer-events: none;
    z-index: 10;
}

.video_player.show-controls .wrapper
{
    bottom: 0;
    opacity: 1;
    transition: all 0.13s ease;
    pointer-events: all;
}

.wrapper::before
{
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: calc(100% + 35px);
    background: linear-gradient(to top, #000000b3, transparent);
    pointer-events: none;
    z-index: -1;
}

.video-timeline
{
    height: 7px;
    width: 100%;
    cursor: pointer;
}

.wrapper .progress-area
{
    position: relative;
    width: calc(100% - 25px);
    height: 3px;
    margin: auto;
    background: #f0f0f063;
    transition: all 200ms ease-in-out;
    cursor: pointer;
    touch-action: none;
}

.progress-area .progress-bar
{
    position: relative;
    width: 0%;
    background: var(--genGreenTypeMid);
    height: inherit;
    border-radius: inherit;
    cursor: pointer;
}

.progress-area .progress-bar::before
{
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    opacity: 0;
    visibility: visible;
    transition: all 300ms ease-in-out;
    -moz-user-select: -moz-none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

.progress-area .bufferedBar
{
    position: absolute;
    top: 0%;
    right: 0%;
    width: 100%;
    height: inherit;
}

.video_player .thumbnailBox
{
    position: absolute;
    left: calc(11px + var(--posX));
    bottom: 75px;
    width: 250px;
    height: 150px;
    display: block;
    box-shadow: 0 0 5px 5px #00000075;
    transform: translate(-50%, 10px) scale(.75);
    transform-origin: 50% 100%;
    transition: transform .2s .1s, opacity .2s .1s;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 8;
}

.thumbnailBox.show
{
    opacity: 1;
    transform: translate(-50%, 0px) scale(1);
}

.thumbnailBox .thumbnailFence
{
    position: relative;
    width: 100%;
    height: 100%;
}

.thumbnailFence .thumbnailHouse
{
    width: 100%;
    height: 100%;
}

.thumbnailHouse .thumbnail
{
    width: 100%;
    height: 100%;
    background: #000000;
    box-shadow: 0px 0px 10px #000000dd;
    border-radius: 2px;
    z-index: 2;
}

.thumbnailHouse .progressAreaTime
{
    font-family: 'Poppins' , sans-serif;
    position: absolute;
    left: 50%;
    bottom: 0;
    min-width: 50px;
    display: block;
    padding: 3px;
    color: var(--genWhiteTypeBright);
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background-color: #000000;
    transform: translateX(-50%);
    z-index: 3;
}


.wrapper .video-controls
{
    padding: 12px 20px;
}

.video-controls .options
{
    width: 100%;
}

.video-controls .options:first-child
{
    justify-content: flex-start;
}

.video-controls .options:last-child
{
    justify-content: flex-end;
}

.options button
{
    height: 40px;
    width: 40px;
    font-size: 19px;
    border: none;
    cursor: pointer;
    background: none;
    color: var(--genWhiteTypeLight);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.options button :where(i, span)
{
    height: 100%;
    width: 100%;
    line-height: 40px;
}

.options button:active :where(svg, span)
{
    color: var(--genWhiteTypeBright);
    fill: var(--genWhiteTypeBright);
}

.options button :where(svg:active , span:active)
{
    transform: scale(0.9);
}

.options button svg
{
    width: 20px;
    fill: var(--genWhiteTypeLight);
    transition: all 0.2s ease;
}

.options.left input.volume-range
{
    height: 4px;
    margin-left: 3px;
    max-width: 75px;
    accent-color: var(--genGreenTypeMid2);
}

.options .video-timer
{
    color: var(--genWhiteTypeLight);
    margin-left: 15px;
    font-size: 14px;
}

.video-timer .separator
{
    margin: 0 5px;
    font-size: 18px;
    font-family: "Open sans";
}



/* ----------- SETTINGS MENU ------------ */

.settingsBtn.active svg
{
    transform: rotate(90deg);
}

.video_player .settingsBase
{
    position: static;
    width: 0;
    height: 0;
    display: none;
    pointer-events: none;
}

.video_player.show-controls .settingsBase
{
    position: absolute;
    bottom: 75px;
    right: 10px;
    width: 350px;
    height: fit-content;
    max-height: calc(100% - 100px);
    display: block;
    padding: 10px 0;
    background-color: #000000dd;
    border-radius: 10px;
    transform: translateX(75%);
    transition: --settingBaseScrollBarFade 0.5s 0.2s, 200ms;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    overflow-y: auto;
    z-index: 15;
}

.video_player.show-controls .settingsBase.active
{
    opacity: 1;
    visibility: visible;
    transform: translateX(0%);
    pointer-events: all;
}

.settingsBase .settingsLayout
{
    position: relative;
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row-reverse;
    align-items: end;
}

.settingsLayout .settingsHomeBdr
{
    width: 100%;
    height: fit-content;
    transition: var(--genSettTransition);
    overflow: hidden;
}

.settingsHomeBdr.notActive
{
    width: 0%;
    max-height: 0;
    transform: translateX(200%) scale(0);
}

.settingsHomeBdr .settingsHomeBox
{
    width: 100%;
    height: 100%;
}

.settingsHomeBox .settingsHomeList
{
    width: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    list-style: none;
    list-style-type: none;
}


.settingSectionTitleBox
{
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: transparent;
    border-bottom: 1px solid #6b6a6a;
}

.settingSectionTitleBox.settingHomeTitleBox
{
    display: none;
}

.settingSectionTitleBox .settingSectionTitleIconBox
{
    width: var(--settingSectionTitleIconBoxWidth);
    height: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
}

.settingSectionTitleIconBox .settingSectionTitleIcon
{
    width: 10px;
    height: 10px;
    display: block;
    border-top: 3px solid var(--genWhiteTypeLight);
    border-left: 3px solid var(--genWhiteTypeLight);
    transform: rotate(-45deg);
    cursor: pointer;
}

.settingSectionTitleBox .settingSectionTitleText
{
    width: calc(100% - var(--settingSectionTitleIconBoxWidth));
    font-size: 14px;
    color: var(--genWhiteTypeLight);
}

.settingsHomeList .settingsHomeListItem
{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 12px 10px;
    color: var(--genWhiteTypeLight);
    fill: var(--genWhiteTypeLight);
    background-color: transparent;
    border-color: var(--genWhiteTypeLight);
    font-size: 13px;
    transition: 200ms;
    cursor: pointer;
}

.settingsHomeListItem .itemLeft
{
    width: var(--ItemLeftWidth);
}

.settingsHomeListItem .itemCenter
{
    width: calc(100% - (var(--ItemLeftWidth) + var(--ItemRightWidth)));
    margin: 0 0 0 5px;
}
.settingsHomeListItem .itemRight
{
    min-width: var(--ItemRightWidth);
    display: flex;
    justify-content: end;
    margin: 0 5px 0 0;
}

.itemIconBox .itemIcon
{
    width: 18px;
}


#curr_vidLang::after,
#curr_vidSubtitle::after,
#curr_vidPlaybackSpeed::after,
#curr_vidPlaybackQuality::after
{
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    display: block;
    border-top-width: 2px;
    border-right-width: 2px;
    border-top-style: solid;
    border-right-style: solid;
    transform: rotate(45deg) translateY(-50%);
    margin: 0 15px 0 0;
    pointer-events: none;
}

.settingsLayout .settingsOptBdr
{
    width: 0%;
    height: fit-content;
    max-height: 0;
    opacity: 0;
    transform: translateX(-100%);
    transition: var(--genSettTransition);
    overflow: hidden;
}

.settingsOptBdr.active
{
    width: 100%;
    max-height: unset;
    transform: translateX(0%);
    opacity: 1;
}

.settingsOptBdr .settingsOptBox
{
    width: 100%;
    display: flex;
    flex-direction: column;
}

.settingsOptBox .settingsTitleBox
{
    width: 100%;
}

.settingsTitleBox .settingSectionTitleBox
{
    cursor: pointer;
}

.settingsOptBox .settingsCtntBox
{
    width: 100%;
}

.settingsCtntBox .settingsCtnt
{
    width: 100%;
}

.settingsCtnt .settingsCtnt_UL
{
    width: 100%;
    display: flex;
    flex-direction: column;
    color: var(--genWhiteTypeLight);
    list-style: none;
}

.settingsCtnt_UL .settingsCtnt_LI
{
    position: relative;
    width: 100%;
    padding: 10px 5px 10px 25px;
    font-size: 13px;
    transition: 200ms;
    cursor: pointer;
}

.settingsCtnt_LI:active
{
    background-color: #1d1d1ddd;
}

.settingsHomeListItem:active
{
    color: var(--genGreenTypeLight);
    fill: var(--genGreenTypeLight);
    background-color: #1d1d1ddd;
    border-color: var(--genGreenTypeLight);
}

.settingsCtnt_LI.active
{
    color: var(--genGreenTypeLight);
    background-color: #333333dd;
}

.settingsCtnt_LI.active::after
{
    content: '';
    position: absolute;
    bottom: 50%;
    left: 0;
    width: 8px;
    height: 4px;
    display: block;
    margin: 0 0 0 5px;
    border-bottom: 2px solid var(--genGreenTypeLight);
    border-left: 2px solid var(--genGreenTypeLight);
    transform: rotate(-45deg) translate(0%, 50%);
}



/* --- Checkbox --- */
.genCheckBoxBase
{
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.genCheckBoxBase .genCheckBoxInput
{
    width: 0;
    height: 0;
    opacity: 0;
    visibility: hidden;
    z-index: -1;
}

.genCheckBoxBase .genCheckBoxToggle
{
    position: relative;
    width: 30px;
    height: 15px;
    display: flex;
    justify-content: end;
    align-items: center;
    padding: var(--showlistAutoPlayTogglePadding);
    border-radius: 20px;
    background-color: var(--genWhiteTypeDark);
    transition: all 300ms ease;
    cursor: pointer;
}

.genCheckBoxToggle .genCheckBoxToggleCircle
{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--genWhiteTypeLight);
    transform: translateX(-75%);
    transition: all 300ms ease;
}

.genCheckBoxInput:checked ~ .genCheckBoxToggle
{
    background-color: var(--genGreenTypeMid);
}

.genCheckBoxInput:checked ~ .genCheckBoxToggle .genCheckBoxToggleCircle
{
    transform: translateX(25%);
}


/* --- Captions --- */

.captionText
{
    position: absolute;
    left: 50%;
    bottom: 10%;
    width: 90%;
    max-width: 90%;
    text-align: center;
    transform: translate(-50%, -75%);
    transition: bottom 300ms;
    -moz-user-select: -moz-none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
    z-index: 6;
}
  
.video_player .captionText
{
    bottom: 0%;
}

.video_player.show-controls .captionText
{
    bottom: 10%;
}

.captionText mark
{
    padding: 3px 10px;
    font-size: 25px;
    background-color: #000000c3 !important;
    color: #fff;
}









.video_player .cover-vid
{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 5;
}

.cover-vid .playPause_fullscreen_VidPc
{
    width: 100%;
    height: 100%;
    display: flex;
    background: transparent;
    z-index: 5;
}

.cover-vid .mobile_controls_box
{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background-color: #000000a1;
    opacity: 0;
    transform: scale(0);
    transition: 50ms;
    pointer-events: none;
    z-index: 2;
}

.mobile_controls_box .mobile_controls
{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 70px;
}

.mobile_controls button
{
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile_controls_box .mobile_controls .skip-backward,
.mobile_controls_box .mobile_controls .skip-forward,
.mobile_controls_box .mobile_controls .skip-backward svg,
.mobile_controls_box .mobile_controls .skip-forward svg
{
    width: 35px;
}

.mobile_controls_box .mobile_controls .play-pause,
.mobile_controls_box .mobile_controls .play-pause svg
{
    width: 45px;
}








/* ------------- For PC / Non - touch devices ------------ */
@media(hover: hover)
{
    @property --settingBaseScrollBarFade
    {
        syntax: "<color>";
        inherits: true;
        initial-value: #00000000;
    }

    .progress-area:hover
    {
        height: 6px;
    }

    .progress-area:hover .progress-bar::before
    {
        opacity: 1;
        visibility: visible;
        user-select: all;
        pointer-events: all;
    }

    .options button:hover :where(svg, span)
    {
        color: var(--genWhiteTypeBright);
        fill: var(--genWhiteTypeBright);
    }

    .settingsHomeListItem:hover
    {
        color: var(--genGreenTypeLight);
        fill: var(--genGreenTypeLight);
        background-color: #1d1d1ddd;
        border-color: var(--genGreenTypeLight);
    }

    .settingsCtnt_LI:hover
    {
        background-color: #1d1d1ddd;
    }

    .settingsBase:hover
    {
        --settingBaseScrollBarFade: #444444a1;
    }

    .settingsBase::-webkit-scrollbar
    {
        width: 7px;
        height: 5px;
    }

    .settingsBase::-webkit-scrollbar-thumb
    {
        background: var(--settingBaseScrollBarFade);
        border-radius: 7px;
    }
}








/* ==========================  RESPONSIVENESS ========================= */


/* --------- Mobile / Touch Devices ------ */
@media(hover: none) and (pointer: coarse),
only screen and (max-height: 485px),
only screen and (max-width: 884px)
{

    .wrapper .progress-area
    {
        height: 5px;
    }

    .video_player
    {
        border-radius: 0px;
    }

    .progress-area .progress-bar::before
    {
        opacity: 1;
        visibility: visible;
        user-select: all;
        pointer-events: all;
    }

    .video_player .cover-vid 
    .playPause_fullscreen_VidPc
    {
        display: none;
        pointer-events: none;
    }

    .video_player .episode_title_bdr
    {
        background-color: transparent;
        z-index: 7;
    }

    .video_player .thumbnailBox,
    .options input,
    .progress-area span,
    .pc_controls,
    .right .pic-in-pic,
    .video_player .progressAreaTime
    {
        display: none;
    }

    .video_player.show-controls .settingsBase
    {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 0%;
        max-height: 100%;
        background-color: #000000;
        border-radius: 0px;
        transform: translateX(0%);
    }

    .video_player.show-controls .settingsBase.active
    {
        height: 100%;
        opacity: 1;
    }

    .settingSectionTitleBox.settingHomeTitleBox
    {
        display: flex;
    }

    .video_player.show-controls .cover-vid .mobile_controls_box
    {
        opacity: 1;
        transform: scale(1);
        pointer-events: all;
    }
}


@media only screen and (hover: hover) and (max-height: 485px),
only screen and (hover: hover) and (max-width: 884px)
{
    .wrapper .progress-area:hover
    {
        height: 5px;
    }

    .progress-area:hover .progress-bar::before
    {
        opacity: 1;
        visibility: visible;
        user-select: all;
        pointer-events: all;
    }
}



/* ---------- Height ----------- */
@media only screen and (max-height: 485px)
{

    .wrapper .video-controls
    {
        padding: 7px 10px 10px;
    }
}



/* --------- Width ---------- */


@media only screen and (max-width: 884px)
{

    .options button
    {
        height: 30px;
        /* width: 30px; */
        font-size: 15px;
    }

    .options .video-timer
    {
        margin-left: 5px;
    }

    .video-timer .separator
    {
        font-size: 16px;
        margin: 0 2px;
    }

    .options button :where(i, span)
    {
        line-height: 30px;
    }

    .options button span
    {
        font-size: 21px;
    }

    .progress-area span
    {
        font-size: 12px;
    }

    .captionText mark
    {
        font-size: 18px;
    }

    .mobile_controls_box .mobile_controls .skip-backward,
    .mobile_controls_box .mobile_controls .skip-forward,
    .mobile_controls_box .mobile_controls .skip-backward svg,
    .mobile_controls_box .mobile_controls .skip-forward svg
    {
        width: 32px;
    }

    .mobile_controls_box .mobile_controls .play-pause,
    .mobile_controls_box .mobile_controls .play-pause svg
    {
        width: 40px;
    }
}


@media only screen and (max-width: 485px)
{
    .episode_title_box .companyTitle .head
    {
        font-size: 14px;
    }

    .episode_title_box .companyTitle .tail
    {
        font-size: 11px;
    }

    .episode_title_box .episodeTitle
    {
        font-size: 11px;
    }

    .wrapper .progress-area
    {
        width: calc(100% - 10px);
    }

    .wrapper .video-controls
    {
        padding: 5px 10px;
    }

    .options button
    {
        width: 30px;
    }

    .options button svg
    {
        width: 15px;
    }

    .options .video-timer
    {
        font-size: 12px;
    }

    .settingsHomeList .settingsHomeListItem
    {
        font-size: 11px;
    }

    .video_player .captionText
    {
        bottom: 0%;
        transform: translate(-50%, -25%);
    }

    .captionText mark
    {
        font-size: 14px;
    }

    .mobile_controls_box .mobile_controls
    {
        gap: 45px;
    }

    .mobile_controls_box .mobile_controls .skip-backward,
    .mobile_controls_box .mobile_controls .skip-forward,
    .mobile_controls_box .mobile_controls .skip-backward svg,
    .mobile_controls_box .mobile_controls .skip-forward svg
    {
        width: 20px;
    }

    .mobile_controls_box .mobile_controls .play-pause,
    .mobile_controls_box .mobile_controls .play-pause svg
    {
        width: 26px;
    }
}


@media only screen and (max-width: 300px)
{

    .wrapper .video-controls
    {
        padding: 5px 5px;
    }

    .wrapper .progress-area
    {
        height: 3px;
    }

    .options .video-timer
    {
        font-size: 10px;
    }

    .mobile_controls_box .mobile_controls
    {
        gap: 35px;
    }
}


@media only screen and (hover: hover) and (max-width: 300px)
{
    .wrapper .progress-area:hover
    {
        height: 3px;
    }
}


















