.story-strip-wrapper {
    margin-top: 20px;
    overflow-x: auto;
    scrollbar-width: none !important; 
}
.story-strip-wrapper::-webkit-scrollbar {
    display: none;
}

.story-strip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.story-strip::-webkit-scrollbar {
    height: 4px;
}

.story-strip::-webkit-scrollbar-track {
    background: transparent;
}

.story-strip::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 999px;
}

.story-item {
    flex: 0 0 auto;
    border: none;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.story-avatar {
    position: relative;
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.story-avatar-border {
    width: 100%;
    height: 100%;
    padding: 2px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #ffdd55 0%, #ff4081 40%, #7c4dff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #ffffff;
    display: block;
}

.story-play-icon {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-play-icon svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
}

.story-label {
    max-width: 80px;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    color: #111111;
    white-space: normal;
}

/* Ховер/фокус для десктопа */
@media (hover: hover) {
    .story-item:hover .story-avatar-border {
        transform: scale(1.03);
        transition: transform 0.15s ease-out;
    }
}

/* Мобильная адаптация: чуть меньше кружки */
@media (max-width: 480px) {
    .story-avatar {
        width: 60px;
        height: 60px;
    }

    .story-label {
        max-width: 70px;
        font-size: 10px;
    }
}
.story-player-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.story-player-backdrop {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0.9;
}

.story-player-inner {
    position: relative;
    width: 100%;
    height: 100vh; /* ровно высота экрана */
    display: block;
}

/* Swiper внутри — тоже во весь экран */
.story-player-swiper {
    position: relative;
    width: 100%;
    height: 100vh;
}

.story-player-swiper .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.story-player-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

/* Сам слайд — просто контейнер, БЕЗ паддингов */
.story-player-slide {
    position: relative;
    overflow: hidden;
}

/* Контент сториса — абсолютный центр */
.story-player-content {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 480px; /* можешь поменять, если нужен шире */
}

/* Видео */
.story-video {
    width: 100%;
    max-height: 100vh;
    height: auto;
    object-fit: contain;
    background: #000;
    display: block;
}

/* RuTube iframe */
.story-iframe-wrapper {
    width: 100%;
    height: auto;
    max-height: 100vh;
}

.story-iframe-wrapper iframe {
    width: 100%;
    height: calc(100vh - 80px); /* можно подправить, чтобы не было впритык */
    display: block;
}

/* Кнопка закрытия поверх */
.story-player-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.story-bottom-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 12px;
    display: flex;
    justify-content: center;
    pointer-events: none; /* чтобы клики проходили только по кнопке */
}

.story-link-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.story-link-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.story-link-arrow {
    font-size: 14px;
    transform: translateY(1px);
}
html.story-player-open,
body.story-player-open {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
}  