.lia-slider {
    position: relative;
    width: 100%;
    margin: 0 0 30px 0;
}

.lia-slider__track {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
}

.lia-slider__slide {
    display: none;
    width: 100%;
}

.lia-slider__slide.is-active {
    display: block;
    animation: liaFade 0.4s ease-in-out;
}

.lia-slider__link {
    display: block;
    width: 100%;
    line-height: 0;
}

.lia-slider__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Стрелки слайдера */
.lia-slider__arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    font-size: 28px;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lia-slider__arrow:hover {
    background: rgba(0, 0, 0, 0.85);
}

.lia-slider__arrow--prev { left: 15px; }
.lia-slider__arrow--next { right: 15px; }

/* Блок Stories под слайдером */
.lia-stories-nav {
    margin-top: 15px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* скрываем scrollbar Firefox */
}

.lia-stories-nav::-webkit-scrollbar {
    display: none; /* скрываем scrollbar Chrome/Safari */
}

.lia-stories-nav__scroll {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 5px;
}

@media (max-width: 768px) {
    .lia-stories-nav__scroll {
        justify-content: flex-start;
    }
}

/* Элемент Story */
.lia-story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    width: 76px;
    text-align: center;
    user-select: none;
}

.lia-story-item__ring {
    position: relative;
    width: 72px;
    height: 72px;
}

.lia-story-item__svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* старт анимации строго сверху */
}

/* Фоновое кольцо сторис */
.lia-story-item__circle-bg {
    fill: none;
    stroke: #e6e6e6;
    stroke-width: 2.5;
}

/* Кольцо прогресса (длина окружности 2 * PI * 35 ≈ 220) */
.lia-story-item__circle-progress {
    fill: none;
    stroke: url(#lia-gradient); /* fallback ниже */
    stroke: #e1306c; /* Инста-стиль: можно задать цвет бренда */
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
}

/* Активное и просмотренные состояния */
.lia-story-item.is-active .lia-story-item__circle-bg {
    stroke: #ffd4e5;
}

/* Иконка внутри кольца */
.lia-story-item__thumb {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.lia-story-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.lia-story-item:hover .lia-story-item__thumb img {
    transform: scale(1.08);
}

.lia-story-item__title {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.2;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 72px;
}

.lia-story-item.is-active .lia-story-item__title {
    font-weight: 600;
    color: #000;
}

@keyframes liaFade {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

.lia-slider__video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.lia-slider__pic {
    display: block;
    width: 100%;
}