/* BM Viral Story Engine V2 — frontend */
.bm-story-progress {
    margin: 34px 0 18px;
    padding: 14px 16px;
    border: 1px solid rgba(17, 24, 39, .10);
    border-radius: 10px;
    background: rgba(17, 24, 39, .025);
}

.bm-story-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 9px;
    font-size: 13px;
    line-height: 1.3;
}

.bm-story-progress-top strong {
    white-space: nowrap;
}

.bm-story-progress-track {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(17, 24, 39, .10);
}

.bm-story-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #111827;
}

.bm-story-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin: 20px 0 34px;
    clear: both;
}

.bm-story-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 24px;
    border-radius: 8px;
    background: #111827;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: transform .15s ease, opacity .15s ease;
}

.bm-story-nav a:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.bm-story-nav a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.bm-story-arrow {
    margin-left: 7px;
}

@media (max-width: 640px) {
    .bm-story-progress {
        margin-top: 28px;
    }

    .bm-story-nav {
        gap: 10px;
        margin-bottom: 28px;
    }

    .bm-story-nav a {
        flex: 1 1 0;
        min-height: 48px;
        padding: 12px 13px;
        font-size: 14px;
        text-align: center;
    }
}
