.video-container {
    /* max-width: 100%; */
    margin: 0 auto;
    height: 88%;
    background: black;
    position: relative;
}

.vjs-big-play-button {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.progress-bar {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 20;
}

.progress-fill {
    height: 100%;
    background: red;
    width: 0%;
}

.video-js .vjs-progress-control {
    cursor: pointer;
    flex: auto;
    display: flex;
    align-items: center;
    touch-action: none;
    top: -15px;
    position: inherit;
    left: -10px;
    width: calc(100% + 20px);
}

.video-js .vjs-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.video-js .vjs-control-bar .vjs-button {
    white-space: nowrap;
    width: 25px;
    cursor: pointer;
}

.video-js .vjs-volume-panel,
.video-js .vjs-fullscreen-control {
    margin-left: auto;
}

.video-js .vjs-volume-panel {
    margin-right: 5px;
    /* Reduce default space */
    flex: none;
    /* Prevent volume from expanding */
}

.video-js .vjs-volume-panel .vjs-volume-control {
    max-width: 60px;
    /* Or reduce this further */
}

.video-js .vjs-fullscreen-control {
    margin-left: 0px;
    /* Remove unwanted gap */
}

.video-js .vjs-play-progress,
.video-js .vjs-slider {
    transition: width 0.1s linear;
}

.seek-hold-forward {
    position: absolute;
    top: 25%;
    left: 0;
    width: 25%;
    height: 50%;
    z-index: 10;
    cursor: pointer;
}

.seek-hold-forward::after {
    content: "";
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin-left: -30px;
    margin-top: -30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: ripple 0.6s linear infinite;
}

.seek-hold-forward.holding::after {
    display: block;
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.video-js {
    touch-action: none;
    /* Disables all native gestures */
    overscroll-behavior: contain;
    /* Prevents scroll bounce */
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: black;
    overflow: hidden;
}

.video-container.custom-fullscreen {
    /* position: fixed; */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    max-width: 380px;
}
.video-detail-wraper .left:has(.custom-fullscreen){
    padding: 20px 0px;
}
 @media screen and (max-width: 767px) {
          .video-detail-wraper .left{
            padding: 20px 50px;
          } 
}
.video-container.custom-fullscreen video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.custom-fullscreen-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.video-js.vjs-fluid:not(.vjs-audio-only-mode),
.video-js.vjs-16-9:not(.vjs-audio-only-mode),
.video-js.vjs-4-3:not(.vjs-audio-only-mode),
.video-js.vjs-9-16:not(.vjs-audio-only-mode),
.video-js.vjs-1-1:not(.vjs-audio-only-mode) {
    height: calc(100% - 40px);
}

.vjs-http-source-selector {
    right: 0;
}

.showEpisodes,
.likeVideo,
.mute,
.zoomOut {
    position: absolute;
    background-color: transparent;
    width: 50px !important;
    height: 50px;
    border: none;
    display: none;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    z-index: 99;
}

.showEpisodes {
    bottom: 165px;
}

.likeVideo {
    bottom: 297px
}

.zoomOut {
    bottom: 100px;
}

.mute {
    bottom: 230px;
}
.likeVideo.liked svg path {
    fill: url(#gradient);
    stroke: transparent;
}

/* .likeVideo.liked svg path {
    fill: #ea224a;
    stroke: transparent;
} */
/* .likeVideo.liked {
    background: linear-gradient(to right, #FF823980, #FF009980);
} */

.showEpisodes img {
    width: 100%;
    height: 100%;
}

#custom-progress-bar-range {
    display: none;
}

#custom-progress-bar-range::-webkit-slider-runnable-track {
    border-radius: 0;
}

.playPauseScreen {
    display: none;
}

.topup_popup {
    position: absolute;
    height: 100%;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.7);
    gap: 15px;
    opacity: 0;
    pointer-events: none;
}

.topup_popup.active {
    opacity: 1;
    pointer-events: all;
    z-index: 99;
}

.topup_popup  button {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    background: linear-gradient(to right, #fe7940, #ff0893);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
}

.topup_popup p {
    color: #ffffff90;
}
.video_duration_container {
    display: none;
    padding-inline: 4px;
}
.video_duration_container span {
    font-size: 10px;
    color: #fff;
    display: block;
    background-color: #00000030;
    padding: 2px 4px;
    backdrop-filter: blur(5px);
    border-radius: 2px;
}
.video_updown_control {
    display: none;
}
/* .vjs-progress-control.vjs-control{
    display: none;
} */
@media screen and (min-width: 1200px) {
    /* .vjs-control-bar * {
        display: none !important;
    } */

    .vjs-control-bar .vjs-progress-control.vjs-control,  .vjs-control-bar .vjs-progress-control.vjs-control * {
        display: flex !important;
    }

    /* .video-js .vjs-progress-control {
        top: 5px;
    } */

    .video-js .vjs-play-progress {
        background: linear-gradient(87.39deg, #9A43D3 1.02%, #F75B88 98.54%);
    }

    .video-js .vjs-play-progress::before {
        color: #d051a7;
    }

    .video_updown_control {
        display: flex;
        flex-direction: column;
        gap: 20px;
        position: absolute;
        right: 50px;
        top: 35%;
    }

    .video_updown_control * {
        cursor: pointer;
        border: 1px solid #ffffff29;
        border-radius: 50%;
    }
}
@media screen and (max-width: 900px) {
    .video-container.custom-fullscreen {
        position: fixed;
        left: 0;
        right: 0;
        max-width: 100vw;
    }

    /* .video-js.vjs-fluid:not(.vjs-audio-only-mode),
    .video-js.vjs-16-9:not(.vjs-audio-only-mode),
    .video-js.vjs-4-3:not(.vjs-audio-only-mode),
    .video-js.vjs-9-16:not(.vjs-audio-only-mode),
    .video-js.vjs-1-1:not(.vjs-audio-only-mode) {
        height: 100%;
    } */

    /* .showEpisodes.show, .likeVideo.show {
        display: block;
    } */
}
@media screen and (max-width: 768px) {
    .video-container.custom-fullscreen {
        max-width: 75vw!important;
    }
     .video-container.custom-fullscreen::after {
        content: "";
        width: 114vw;
        height: 100dvh;
        background: #000;
        position: absolute;
        top: 0;
        left: -160px;
        z-index: -1;
    }
}
@media screen and (max-width: 767px) {
    .video-container.custom-fullscreen {
        max-width: 100vw!important;
    }

    /* .showEpisodes {
        bottom: 100px;
    } */
    .tab-container.scrollToTop .tab-menu ul li {
        width: fit-content;
    }

    .tab-container.scrollToTop .tab-menu a {
        white-space: nowrap;
    }

    .custom-fullscreen .mute {
        position: absolute;
        right: 6px;
        background-color: rgba(0, 0, 0, 0.6);
        border-radius: 50%;
        height: 50px;
        width: 50px !important;
        z-index: 99;
        border: none;
        display: none;
    }

    .custom-fullscreen .mute.show,
    .custom-fullscreen .zoomOut.show,
    .custom-fullscreen .showEpisodes.show,
    .custom-fullscreen .likeVideo.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* .custom-fullscreen .video-js.vjs-has-started.vjs-user-inactive .vjs-control-bar {
        opacity: 1 !important;
        visibility: visible !important;
        transition: none !important;
    } */

    .custom-fullscreen .vjs-control-bar {
        opacity: 0 !important;
    }

    .custom-fullscreen #custom-progress-container {
        width: 100%;
        height: 4px;
        background-color: #ddd;
        position: absolute;
        top: 0px;
    }

    .custom-fullscreen .video_duration_container.show {
        display: flex;
        justify-content: space-between;
        width: 100%;
        position: absolute;
        top: 10px;
        left: 0;
    }
    /* .custom-fullscreen #custom-progress-bar {
        height: 100%;
        width: 0%;
        background: linear-gradient(to right, #FF8239 0%, #FF0099 100%);
        transition: width 0.1s linear;
    } */

    .custom-fullscreen #custom-progress-bar-range {
        -webkit-appearance: none;
        width: 100%;
        height: 6px;
        background: transparent;
        cursor: pointer;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
        display: initial;

    }

    .custom-fullscreen #custom-progress-bar-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        height: 14px;
        width: 14px;
        background: transparent;
        border-radius: 50%;
        margin-top: -4px;
        cursor: pointer;
        border: none;
    }

    .custom-fullscreen #custom-progress-bar-range::-webkit-slider-runnable-track {
        height: 6px;
        background: linear-gradient(to right, #FF8239 0%, #FF0099 var(--progress), #ccc var(--progress), #ccc 100%);
        border-radius: 3px;
    }

    .custom-fullscreen .playPauseScreen {
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 1;
        top: 0;
        left: 0;
    }
}

.vjs-error-display.vjs-modal-dialog > .vjs-modal-dialog-content, .vjs-error-display.vjs-modal-dialog::before {
    display: none !important;
}