.lv-stories {
    background: var(--lv-bg);
    border-bottom: 1px solid var(--lv-border);
    transition: background .35s ease, border-color .35s ease;
}

.lv-stories__container {
    padding-top: 14px;
    padding-bottom: 14px;
    display: flex;
    justify-content: safe center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.lv-stories__container::-webkit-scrollbar { display: none; }

.lv-stories__track {
    display: flex;
    flex: 0 0 auto;
    gap: 16px;
    scroll-snap-type: x proximity;
    padding: 2px 2px 4px;
}

.lv-story {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 72px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.lv-story__ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(135deg, var(--lv-gold), var(--lv-pink) 55%, var(--lv-pink-dark));
    transition: transform .15s ease, background .25s ease;
}
.lv-story:active .lv-story__ring { transform: scale(.94); }

.lv-story.is-seen .lv-story__ring {
    background: var(--lv-border);
}

.lv-story__avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--lv-surface-2);
    border: 2.5px solid var(--lv-bg);
}
.lv-story__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.lv-story__title {
    font-size: 11px;
    line-height: 1.3;
    color: var(--lv-muted);
    text-align: center;
    max-width: 72px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lv-story.is-seen .lv-story__title { color: var(--lv-muted); opacity: .8; }

.lv-story-viewer {
    position: fixed;
    inset: 0;
    z-index: 9200;
    display: none;
    align-items: center;
    justify-content: center;
}
.lv-story-viewer.is-open { display: flex; }

.lv-story-viewer__backdrop {
    position: absolute;
    inset: 0;
    background: #000;
}

.lv-story-viewer__stage {
    --lv-story-footer-bottom: 16px;
    --lv-story-footer-h: 44px;
    --lv-story-footer-gap: 5px;
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 430px;
    max-height: 100dvh;
    background: #000;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

@media (min-width: 560px) {
    .lv-story-viewer__stage {
        height: min(92vh, 860px);
        max-height: 92vh;
        border-radius: var(--lv-radius-lg);
        box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    }
}

.lv-story-viewer__bars {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    gap: 4px;
}
.lv-story-viewer__bar {
    flex: 1 1 0;
    height: 2.5px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .35);
    overflow: hidden;
}
.lv-story-viewer__bar-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: #fff;
}
.lv-story-viewer__bar.is-filled .lv-story-viewer__bar-fill { width: 100%; }

.lv-story-viewer__head {
    position: absolute;
    top: 22px;
    left: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.lv-story-viewer__user {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.lv-story-viewer__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    border: 1.5px solid rgba(255, 255, 255, .5);
}
.lv-story-viewer__avatar img { width: 100%; height: 100%; object-fit: cover; }
.lv-story-viewer__name {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.lv-story-viewer__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    background: rgba(0, 0, 0, .25);
    flex: 0 0 auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.lv-story-viewer__media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(var(--lv-story-footer-bottom) + var(--lv-story-footer-h) + var(--lv-story-footer-gap));
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}
.lv-story-viewer__media img,
.lv-story-viewer__media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.lv-story-viewer__zone {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 32%;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}
.lv-story-viewer__zone--prev { left: 0; }
.lv-story-viewer__zone--next { left: 32%; right: 0; width: auto; }

.lv-story-viewer__footer {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: var(--lv-story-footer-bottom);
    height: var(--lv-story-footer-h);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
}
.lv-story-viewer__footer-text {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: 0 16px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}
.lv-story-viewer__footer-cta {
    flex: 0 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--lv-gold), var(--lv-pink) 55%, var(--lv-pink-dark));
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.lv-story-viewer__footer-cta svg { width: 15px; height: 15px; flex-shrink: 0; }

@media (max-width: 380px) {
    .lv-story { width: 66px; }
    .lv-story__ring { width: 60px; height: 60px; }
}