@font-face {
    font-family: dana;
    src: url('../font/DanaFaNum-Regular.woff2') format('woff2'), url('../font/DanaFaNum-Regular.woff') format('woff');
}

@font-face {
    font-family: vazir;
    src: url('../font/VAZIRMATN.TTF');
}

.font-dana{
    font-family: dana;
}

.font-vazir{
    font-family: vazir;
}

.vjs-progress-control.vjs-control{
    direction: ltr !important;
    width: 100% !important;
}

.vjs-progress-holder{
    height: 6px !important;
    transition: all 0.2s ease-in-out !important;
}
.vjs-progress-holder:hover {
    height: 12px !important;
}
.vjs-load-progress {
    height: 100% !important;
    background-color: #999999AA;
    position: absolute !important;
    transition: all 0.2s ease-in-out !important;
}
.vjs-mouse-display {
    position: absolute !important;
}
.vjs-play-progress.vjs-slider-bar {
    height: 100% !important;
    position: relative !important;
    background-color: #F6B828 !important;
    transition: all 0.2s ease-in-out !important;
}
.vjs-play-progress.vjs-slider-bar:before{
    content: '' !important;
}
.vjs-play-progress.vjs-slider-bar .vjs-time-tooltip {
    position: absolute !important;
    top: -40px !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #000000AA !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    color: #FFFFFF !important;
    font-size: 12px !important;
    font-family: dana !important;
}
.vjs-current-time.vjs-time-control.vjs-control, .vjs-duration.vjs-time-control.vjs-control{
    display: block !important;
    font-size: 12px !important;
}
.vjs-progress-holder .vjs-play-progress.vjs-slider-bar::after {
    content: '';
    position: absolute !important;
    top: -6px !important;
    right: -8px !important;
    width: 16px !important;
    height: 16px !important;
    background-color: #F6B828 !important;
    border-radius: 50% !important;
    transition: all 0.2s ease-in-out !important;

}
.vjs-text-track-cue{
    font-size: inherit !important;
    line-height: inherit !important;
    font-family: inherit !important;
}
.vjs-text-track-cue div{
    line-height: 0 !important;
}
.vjs-progress-holder:hover .vjs-play-progress.vjs-slider-bar::after {
    top: -6px !important;
    right: -16px !important;
    width: 24px !important;
    height: 24px !important;
}
.vjs-progress-control.vjs-control {
    direction: ltr !important;
}
.vjs-progress-holder.vjs-slider.vjs-slider-horizontal {
    position: relative !important;
}
.vjs-time-tooltip{
    background-color: #F6B828 !important;
    color: #000 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
}
.vjs-mouse-display{
    transition: opacity 0.5s ease-in-out !important;
}
.vjs-mouse-display.hide{
    opacity: 0 !important;
}
#top-bar, #bottom-bar{
    transition: all 0.5s ease-in-out !important;
}
#top-bar.hide {
    top: -200px !important;
}
#bottom-bar.hide {
    bottom: -200px !important;
}
#player{
    padding: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

.sub-transparent-bg > div > div > div{
    background-color: #00000000 !important;
}
.sub-light-bg > div > div > div{
    background-color: #000000AA !important;
}
.sub-dark-bg > div > div > div{
    background-color: #000000 !important;
}
.sub-text-white > div > div > div{
    color: #FFFFFF !important;
}
.sub-text-yellow > div > div > div{
    color: #F5C518 !important;
}
.sub-text-blue > div > div > div{
    color: #2D9AFF !important;
}
.sub-font-vazir > div > div > div{
    font-family: vazir !important;
}
.sub-font-dana > div > div > div{
    font-family: dana !important;
}
.sub-font-iransans > div > div > div{
    font-family: iransans_medium !important;
}

.text-size-small > div > div > div{
    font-size: 23px !important;
    line-height: 1.8 !important;
}
.text-size-medium > div > div > div{
    font-size: 30px !important;
    line-height: 1.8 !important;
}
.text-size-large > div > div > div{
    font-size: 40px !important;
    line-height: 1.8 !important;
}

@media (min-width: 1024px) {
    .text-size-small > div > div > div{
        font-size: 24px !important;
        line-height: 1.5 !important;
    }
    .text-size-medium > div > div > div{
        font-size: 34px !important;
        line-height: 1.8 !important;
    }
    .text-size-large > div > div > div{
        font-size: 45px !important;
        line-height: 1.8 !important;
    }

    .vjs-text-track-display{
        bottom: 56px !important;
    }
}

html, body, .main {
    height: 100vh;
    height: 100dvh;
    height: calc(var(--vh, 1vh) * 100);
}


.landscape-error {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background-color: #1f3440;
    color: #fff;
    align-content: center;
    justify-items: center;
    padding: 1rem;
    text-align: center;
}

.landscape-error #landscape-icon {
    height: 100px;
    width: 100px;
    margin-bottom: 3rem;
}

.vjs-text-track-display {
    transition: all 0.5s ease-in-out !important;
}

@media (min-width: 1024px) {
    body.show-bars .vjs-text-track-display {
        transform: translateY(-40px) !important;
    }
}

.video-js video.ratio-cover{
    object-fit: cover !important;
}
.video-js video.ratio-contain{
    object-fit: contain !important;
}
.video-js video.ratio-fill{
    object-fit: fill !important;
}
.video-js video.ratio-none{
    object-fit: none !important;
}