/* Small Video */
#smallBottomVideo {
    z-index: 999;
    box-sizing: border-box;
    position: relative;
/*     bottom: 15px;
right: 15px; */
    transition: .3s;
    opacity: 0;
    display:none;
}
#smallBottomVideo.is-active {
    display: flex;
}
#smallBottomVideo.visible {
    opacity: 1;
}
/* Делаем элементы «кликабельными» для iOS */
#smallBottomVideo .play_start,
#smallBottomVideo .videoInner,
#smallBottomVideo .play-pause-btn,
#smallBottomVideo .mute-unmute-btn,
#smallBottomVideo .close-video,
#smallBottomVideo .fancybox-close-small,
#smallBottomVideo .custom-progress-wrapper {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

#smallBottomVideo video {
    width: 100%;
    height: 100%;
    cursor: pointer;
    -webkit-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
    z-index: 100;
    box-sizing: border-box;
    object-fit: cover;
}
#smallBottomVideo .fancybox-close-small {
    right: 0;
    top: -4rem;
    background: rgb(201 201 201 / 50%);
    border-radius: 5rem;
    width: 3rem;
    height: 3rem;
    color: var(--grey-txt);
    padding: 0.6rem;
    transition: .3s;
}
#smallBottomVideo.enlarged .fancybox-close-small {
    display: none;
}

#smallBottomVideo.enlarged .videoInner {
    width: 322px;
    height: 560px;
}

#smallBottomVideo .videoInner {
    width: 130px;
    min-width:13rem;
    height: 221px;
    min-height:22rem;
    transition: 0.3s ease-in-out;
    position: relative;
    border: 3px solid rgb(169 102 49 / 30%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    overflow: hidden;
    background-color: rgb(169 102 49 / 30%);
}
#smallBottomVideo .play_start {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
#smallBottomVideo.enlarged .play_start{
    display:none;
}
#smallBottomVideo .play_btn {
    opacity: .3;
    width: 30px;
    height: 30px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

#smallBottomVideo .play_btn svg {
    width: 60%;
    height: 60%;
}

#smallBottomVideo.small:hover .play_btn {
    opacity: .7;
}

#smallBottomVideo.enlarged .play_btn {
    display: none;
}

/* Кастомный плеер */
#smallBottomVideo .custom-player-controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: none;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    z-index: 300;
}

#smallBottomVideo .play-pause-btn,
#smallBottomVideo .mute-unmute-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: .5rem .8rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: .4rem;
}

/* Прогресс-бар */
#smallBottomVideo .custom-progress-wrapper {
    flex: 1;
    height: .5rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: .3rem;
    overflow: hidden;
    position: relative;
}

#smallBottomVideo .custom-progress-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent;
}

#smallBottomVideo .custom-progress-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background-color: #fff;
    transition: width 0.1s linear;
}

/* Кнопка закрытия */
#smallBottomVideo .close-video {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 15px;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    z-index: 400;
    display: none;
}

#smallBottomVideo .close-video:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Скрываем стандартные контролы */
#smallBottomVideo video::-webkit-media-controls {
    display: none !important;
}

#smallBottomVideo video::media-controls {
    display: none !important;
}

/* Скрываем нативные controls */
#smallBottomVideo video::-webkit-media-controls-enclosure {
    display: none !important;
}

#smallBottomVideo video:-webkit-full-screen {
    display: none !important;
}

#smallBottomVideo .greenBtn {
    position: absolute;
    bottom: 50px;
    font-size: 16px;
    padding: 1px 16px;
    left: 0;
    right: 0;
    margin: 0 auto;
    opacity: 0;
    visibility: hidden;
    height: auto;
    display: flex;
    text-align:center;
    z-index:999;
    min-height: 36px;
    max-width: 240px;
}
#smallBottomVideo .greenBtn.visible {
    opacity:1;
    visibility:visible;
}
@media(max-width:767px){
    #smallBottomVideo{
        right: auto;
        left: 1rem;
    }
    #smallBottomVideo.enlarged .videoInner {
        width: 200px;
        height: 345px;
    }
    #smallBottomVideo .fancybox-close-small {
        right: auto;
        left: 0;
        background: rgb(201 201 201 / 80%);
    }
    #smallBottomVideo .greenBtn {
        font-size: 1.3rem;
        padding: 0 10px;
        font-weight: 500;
        max-width: 170px;
        min-height: 30px;
    }
}