.tf-shorts-slider__view-count.tf-shorts-slider__view-count-preview{
    opacity: 1;
}

.tf-shorts-slider {
    overflow: hidden;
}

.tf-shorts-slider-wrap {
    overflow: hidden;
}

.tf-shorts-slider .swiper-wrapper {
    align-items: flex-start;
}

.tf-shorts-slider__item.swiper-slide {
    display: flex;
    flex: 0 0 258px;
    flex-direction: column;
    gap: 4px;
    min-width: 258px;
    width: 258px !important;
    max-width: 258px;
    cursor: pointer;
}

.tf-shorts-slider__view {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    min-width: 100%;
    width: 100%;
    min-height: 460px;
    height: 460px;
    margin-bottom: 4px;
    overflow: hidden;
    border-radius: 8px;
}

.tf-shorts-slider__view .image {
    position: absolute;
    inset: 0;
    display: block;
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-shorts-slider__view::before {
    content: "";
    z-index: 1;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 45%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
}

.tf-shorts-slider__view-count {
    z-index: 2;
    position: absolute;
    right: 7px;
    bottom: 6px;
    left: 7px;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 17px;
    height: 17px;
}

.tf-shorts-slider__view-count .icon,
.tf-shorts-slider__view-count .image {
    min-width: 14px;
    width: 14px;
    min-height: 14px;
    height: 14px;
}

.tf-shorts-slider__view-count .icon {
    fill: var(--white-color);
    stroke: var(--white-color);
}

.tf-shorts-slider__view-count .text-content {
    color: var(--white-color);
    font-size: 14px;
    line-height: 1.2;
}

.tf-shorts-slider__title,
.tf-shorts-slider__subtitle {
    max-width: 100%;
    overflow-wrap: break-word;
}

.tf-shorts-slider__title {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
}

.tf-shorts-slider__subtitle {
    font-size: 17px;
    line-height: 1.1;
}

.tf-shorts-modal {
    z-index: 1010;
    position: fixed;
    inset: 0;
    opacity: 1;
    transition: 0.3s ease-in-out;
}

.tf-shorts-modal::before {
    content: "";
    z-index: 0;
    position: absolute;
    inset: 0;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.8);
    transition: 0.5s ease-in-out;
}

.tf-shorts-modal:not(.show) {
    display: none;
    z-index: -1000;
    opacity: 0;
    user-select: none;
    pointer-events: none;
}

.tf-shorts-modal:not(.show)::before {
    opacity: 0;
}

.tf-shorts-modal:not(.show) .tf-shorts-modal__content {
    transform: scale(0.75) translate3d(0, 0, 0);
    opacity: 0;
}

.tf-shorts-modal__content {
    z-index: 10;
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2vh;
    padding-bottom: calc(56px + 2vh);
    overflow: auto;
    opacity: 1;
    transition: 0.3s ease-in-out;
}

.tf-shorts-modal-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
}

.tf-shorts-modal-slider {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
}

.tf-shorts-modal-slider__item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.tf-shorts-modal-slider__item:not(.swiper-slide-active)::before {
    content: "";
    z-index: 100;
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    transition: var(--transition);
}

.tf-shorts-modal-slider__item video {
    min-height: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.tf-shorts-modal-slider__view-count {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(15px);
    opacity: 0;
    transition: var(--transition);
}

.tf-shorts-modal-slider__item.swiper-slide-active .tf-shorts-modal-slider__view-count {
    transform: translateY(0);
    opacity: 1;
}

.tf-shorts-modal-slider__view-count .icon {
    min-width: 24px;
    width: 24px;
    min-height: 24px;
    height: 24px;
    fill: var(--white-color);
    stroke: var(--white-color);
}

.tf-shorts-modal-slider__view-count .text-content {
    color: var(--white-color);
    font-size: 16px;
    line-height: 1.2;
}

.tf-shorts-modal-slider-wrap .swiper-navigation {
    display: flex;
    position: relative;
    top: unset;
    bottom: 0;
    left: 50%;
    justify-content: center;
    gap: 11px;
    min-width: 336px;
    width: 336px;
    min-height: 43px;
    height: 43px;
    transform: translateX(-50%);
    margin-top: unset;
}

.tf-shorts-modal-slider-wrap .swiper-button-next,
.tf-shorts-modal-slider-wrap .swiper-button-prev {
    position: relative;
    inset: unset;
    min-width: 43px;
    width: 43px;
    min-height: 43px;
    height: 43px;
    border-radius: 50%;
    background-color: #E7EBF4;
}

.tf-shorts-modal-slider-wrap .swiper-button-next {
    order: 2;
}

.tf-shorts-modal-slider-wrap .swiper-button-prev {
    order: 1;
}

.tf-shorts-modal-slider-wrap .swiper-button-disabled {
    opacity: 1;
}

.tf-shorts-modal-slider-wrap .swiper-button-next .image,
.tf-shorts-modal-slider-wrap .swiper-button-prev .image {
    min-width: 20px;
    width: 20px;
    min-height: 20px;
    height: 20px;
}

.tf-shorts-modal-slider__action {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4px;
}

.tf-shorts-modal-slider__action .btn {
    min-width: 336px;
    width: 336px;
    min-height: 43px;
    height: 43px;
    box-shadow: none;
    background: #EB6124;
    font-size: 17px;
}

.tf-shorts-modal__close {
    z-index: 50;
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 46px;
    width: 46px;
    min-height: 46px;
    height: 46px;
    transition: var(--transition);
}

.tf-shorts-modal__close::before {
    content: "";
    z-index: 1;
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 26px;
    width: 26px;
    min-height: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
}

.tf-shorts-modal__close .image {
    z-index: 2;
    min-width: 26px;
    width: 26px;
    min-height: 26px;
    height: 26px;
    user-select: none;
    pointer-events: none;
}

.tf-shorts-modal__close:hover,
.tf-shorts-modal__close.active {
    transform: scale(1.1);
}

.main_category .gap-md{
    max-width: 100%;
    width: 100%;
}
.tf-shorts-play-button {
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 51px;
    background: url("/local/templates/rtf2024/img/icons/play-button.png") no-repeat center center;
    background-size: contain;
    transform: translate(-50%, -50%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: none; /* чтобы не мешала клику */
}

.tf-shorts-slider__item:hover .tf-shorts-play-button {
    opacity: 1;
}

/* Мобилка: уменьшаем в 2 раза */
@media (max-width: 768px) {
    .tf-shorts-play-button {
        width: 24px;
        height: 28px;
    }
}

@media (min-width: 992px) and (max-width: 1439px) {
    .tf-shorts-slider__item.swiper-slide {
        flex-basis: 185px;
        min-width: 185px;
        width: 185px !important;
        max-width: 185px;
    }

    .tf-shorts-slider__view {
        min-height: 330px;
        height: 330px;
    }
}

@media (min-width: 992px) {
    .tf-shorts-modal-slider {
        padding-bottom: 83px;
    }

    .tf-shorts-modal-slider__item {
        min-width: 418px;
        width: 418px !important;
        border-radius: 16px;
    }

    .tf-shorts-modal-slider .swiper-navigation {
        min-width: 356px;
        width: 356px;
        min-height: 58px;
        height: 58px;
    }

    .tf-shorts-modal-slider .swiper-button-next,
    .tf-shorts-modal-slider .swiper-button-prev {
        min-width: 58px;
        width: 58px;
        min-height: 58px;
        height: 58px;
    }

    .tf-shorts-modal-slider__action .btn {
        min-width: 356px;
        width: 356px;
        min-height: 63px;
        height: 63px;
        font-size: 19px;
    }
}

@media (max-width: 991px) {
    .tf-shorts-slider__item.swiper-slide {
        flex-basis: 124px;
        min-width: 124px;
        width: 124px !important;
        max-width: 124px;
    }

    .tf-shorts-slider__view {
        min-height: 220px;
        height: 220px;
    }

    .tf-shorts-slider__title {
        font-size: 15px;
    }

    .tf-shorts-slider__subtitle {
        font-size: 11px;
    }

    .tf-shorts-modal-slider__item {
        min-width: 336px;
        width: 336px !important;
    }

    .tf-shorts-modal-slider__action .btn {
        min-width: 336px;
        width: 336px;
        min-height: 43px;
        height: 43px;
        font-size: 17px;
    }
}
