@import url('https://fonts.googleapis.com/css2?family=Anek+Tamil&display=swap');

/* Div for handling all video */
#video_player {
    width: 90%;
    max-width: 800px;
    margin: auto;
    position: relative;
    font-family: 'Anek Tamil', sans-serif;
    box-shadow: 0 0 20px -5px rgba(0, 0, 0, 0.7);

    --control-group-y-scale: 0;
}

#video_player > video {
    width: 100%;
    display: block;
    z-index: 1;
}

#video_player > .hiding_area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#video_action {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 3;
}

#video_action.video_action_start {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

#video_action.video_action_start > i {
    font-size: 4rem;
    color: #fffcfc;
}

#video_action.video_action_loading {
    width: 100px;
    height: 100px;
    
    opacity: 0.9;
    border: 10px solid #c9c9c9;


    border-top: 10px solid #fffcfc;
    animation: video_loading 2s linear infinite;
    box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.7);
}

@keyframes video_loading {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


.video_controls {
    color: #f1f1f1;
}

.control_icons {
    font-size: 1.2rem;
    
}

.control_icons:hover {
    color: #ffffff;
}


#control_group {
    background: linear-gradient(to top,  rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    padding: 7px 15px;
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 4;

    transform: scale(1, var(--control-group-y-scale));
    transform-origin: bottom;
    transition: transform 0.2s ease-in-out;

    /* For non selectable */
    -webkit-user-select: none;  /* Chrome all / Safari all */
    -moz-user-select: none;     /* Firefox all */
    -ms-user-select: none;      /* IE 10+ */
    user-select: none; 
}

#playing_bar {
    --pb-time-passed: 0%;
    --pb-video-loaded: 0%;

    position: relative;
    width: 100%;
    background-color: #c9c9c9;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
}

#time_passed {
    width: var(--pb-time-passed);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#time_passed > div {
    width: 100%;
    background-color: #05c19c;
    height: 8px;
    border-radius: 5px;
}

#time_passed > i {
    font-size: 1.1rem;
    color: #05c19c;
    position: absolute;
    
    left: calc(100% - 1.1rem / 2);

    cursor: pointer;
    pointer-events: none;
    z-index: 5;
}

#video_loaded {
    position: absolute;
    background-color: #fffcfc;
    width: var(--pb-video-loaded);
    height: 8px;
    top: 0;
    z-index: 1;
    border-radius: 5px;
}

#hover_timings {
    --hover-timings-position: 0px;

    color: #f1f1f1;
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    bottom: calc(100% + 10px);

    transform: scale(1, 0) translateX(var(--hover-timings-position));
    transition: transform 0.1s linear;
    transform-origin: bottom;
    z-index: 4;
}

#playing_bar:hover + #hover_timings {
    transform: scale(1) translateX(var(--hover-timings-position));
}


#other_controls {
    margin-top: 7px;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
}


#other_controls > div:not(.m_setting_box) {
    display: flex;
    gap: 13px;
    align-items: center;
}

#play_pause {
    min-width: 1.2rem;
}

#current_time {
    font-size: 1rem;
    min-width: calc(4 * 1rem);
}


#volume_control {
    display: flex;
    align-items: center;
    gap: 10px;
}

#volume_control > i {
    min-width: 1.5rem;
}

#volume_control_bar {
    transform: scale(0, 1);
    transform-origin: 0% 100%;
    transition: transform 0.3s ease-in;
}

#volume_control:hover #volume_control_bar {
    transform: scale(1);
}

.custom_range_slider {
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
}

#volume_control_bar {
    /* Variable for holding the height of the range bar */
    --volume-bar-height: 5px;
    display: flex;
    width: 80px;
    height: var(--volume-bar-height);
    position: relative;
    background: #c9c9c9;
    border-radius: 3px;
}

#volume_control_bar input[type = "range"] {
    margin: 0;
    position: relative;
    -webkit-appearance: none;
    width: 100%;
    outline: none;
    border-radius: 3px;
    z-index: 3;
}

#volume_control_bar input[type = "range"]::-webkit-slider-runnable-track {
    height: var(--volume-bar-height);
    border-radius: 3px;
}

#volume_control_bar input[type = "range"]::-moz-range-track {
    height: var(--volume-bar-height);
    border-radius: 3px;
}

#volume_control_bar input[type = "range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background: #05c19c;
    cursor: pointer;

    /* Formula: (track height in pixels / 2) - (thumb height in pixels /2) */
    margin-top: -5px;
}

#volume_control_bar input[type = "range"]::-moz-range-thumb {
    border: none;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background: #05c19c;
}

#vcb_selected {
    position: absolute;
    width: 100%;
    height: var(--volume-bar-height);
    background-color: #fffcfc;
    border-radius: 3px;
    z-index: 2;
}




.m_setting_box {
    position: absolute;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding: 5px 10px;
    bottom: 100%;
    right: 5%;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
}

.m_setting_box[data-setting-view= "false"] {
    display: none;
}

.ms_box_heading {
    padding: 5px 10px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-evenly;

    border-bottom: 1px solid #c9c9c9;
    border-bottom-left-radius: 1px;
    border-bottom-right-radius: 1px;
}

.ms_box_heading:hover {
    background: rgba(0, 0, 0, 0.7);
}

.ms_box_heading span {
    color: #fffcfc;
}

.more_setting_icons {
    color: #fffcfc;
    font-size: 0.9rem;
}

.ms_box_option {
    display: flex;
    gap: 30px;
    padding: 7px 5px;
    align-items: center;
    justify-content: space-between;
}

.ms_box_option:hover {
    background: rgba(0, 0, 0, 0.7);
}

.ms_box_option > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ms_box_option > div:nth-child(1) > span {
    color: #fffcfc;
}

.ms_box_option > div:nth-child(2) > span {
    color: #f1f1f1;
    font-size: 0.9rem;
}

#mso_repeat_switch {
    position: relative;
    background: #c9c9c9;
    width: 34px;
    height: 17px;
    border-radius: 10px;
    z-index: 1;
    cursor: pointer;
}

#mso_repeat_switch > div {
    position: absolute;
    background: #ffffff;
    left: 0%;
    width: 50%;
    height: 100%;
    border-radius: 100%;
    z-index: 2;
}

#mso_repeat_switch[data-enabled = "true"] {
    background-color: #05c19c;
}

#mso_repeat_switch[data-enabled = "true"] > div {
    left: 50%;
}




#mso_playback_speed i[data-selected = "false"] {
    display: none;
}




#mso_qaulity i[data-selected = "false"] {
    display: none;
}

#mso_qaulity i[data-selected = "false"] {
    display: none;
}

#mso_subtitles  i[data-selected = "false"] {
    display: none;
}

::cue {
    line-height: 100px;
}
  