/* Public stories row and full-screen stories viewer. */
.ftb-story-viewer-head {
    position: absolute;
    z-index: 6;
    top: 34px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none
}

.ftb-story-viewer-head img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .9)
}

.ftb-story-viewer-details {
    position: absolute;
    z-index: 6;
    right: 18px;
    left: 18px;
    bottom: 22px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, .68);
    color: #fff;
    backdrop-filter: blur(8px)
}

.ftb-story-viewer-details.d-none {
    display: none
}

.ftb-story-viewer-details strong {
    display: block;
    font-size: 20px
}

.ftb-story-viewer-details p {
    margin: 7px 0
}

.ftb-story-viewer-details ul {
    margin: 8px 0;
    padding-right: 18px
}

.ftb-story-profile-cta {
    display: inline-block;
    margin-top: 6px;
    padding: 9px 15px;
    border-radius: 999px;
    background: #ec4b78;
    color: #fff;
    text-decoration: none;
    font-weight: 700
}

.tb-story-media-input-field input[type="file"] {
    display: none
}

.tb-stories-list[data-stories-groups] {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 10px 2px;
}

.tb-story-item {
    width: 86px;
    flex: 0 0 86px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #063b5c;
    cursor: pointer;
    text-align: center;
}

.tb-story-ring {
    display: flex;
    width: 82px;
    height: 82px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #ec4b78, #ff9bb7);
}

.tb-story-seen .tb-story-ring {
    background: #d0d5dd
}

.tb-story-avatar {
    display: block;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #eef6fb;
}

.tb-story-avatar img,
.tb-story-avatar video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tb-story-name {
    display: block;
    overflow: hidden;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ftb-story-viewer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(0, 0, 0, .92);
}

.ftb-story-viewer.d-none {
    display: none
}

.ftb-story-viewer-progress {
    position: absolute;
    z-index: 7;
    top: 14px;
    right: 14px;
    left: 14px;
    display: flex;
    gap: 5px;
}

.ftb-story-viewer-progress span {
    height: 3px;
    flex: 1;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .3);
}

.ftb-story-viewer-progress i {
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
}

.ftb-story-viewer-close {
    position: absolute;
    z-index: 7;
    top: 54px;
    left: 18px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
}

.ftb-story-viewer-media {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.ftb-story-viewer-media img,
.ftb-story-viewer-media video {
    display: block;
    max-width: min(100vw, 560px);
    max-height: 100vh;
    object-fit: contain;
}

.ftb-workout-story {
    position: relative;
    width: min(100vw, 560px);
    height: 100vh;
    overflow: hidden;
    background: #071b2b;
    color: #fff;
}

.ftb-story-viewer-media .ftb-workout-story-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.ftb-workout-story-avatar-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b3756 0%, #ec4b78 100%);
}

.ftb-workout-story-avatar-stage img {
    width: 168px;
    height: 168px;
    border: 6px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
}

.ftb-workout-story-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 14, 24, .38) 0%, rgba(2, 14, 24, .28) 30%, rgba(2, 14, 24, .92) 78%, #02101b 100%);
}

.ftb-workout-story-content {
    position: absolute;
    right: 22px;
    bottom: 26px;
    left: 22px;
    z-index: 2;
}

.ftb-workout-story-business {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin-bottom: 14px;
}

.ftb-workout-story-business img {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, .18);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

.ftb-workout-story-business strong {
    min-width: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .38);
}

.ftb-workout-story-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-size: 13px;
    font-weight: 800;
}

.ftb-workout-story h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 7vw, 44px);
    line-height: 1.02;
}

.ftb-workout-story p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 15px;
    line-height: 1.45;
}

.ftb-workout-story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.ftb-workout-story-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .17);
    font-size: 13px;
    font-weight: 700;
}

.ftb-workout-story-sessions {
    display: grid;
    gap: 7px;
    margin-top: 14px;
}

.ftb-workout-story-session {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border-right: 3px solid #ec4b78;
    border-radius: 8px;
    background: rgba(255, 255, 255, .13);
    font-size: 14px;
}

.ftb-workout-story-session strong {
    color: #fff
}

.ftb-workout-story-more {
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 700;
}

.ftb-story-nav {
    position: absolute;
    z-index: 4;
    top: 96px;
    bottom: 0;
    width: 35%;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.ftb-story-prev {
    right: 0
}

.ftb-story-next {
    left: 0
}

.ftb-board button {
    background-color: #e43f78;
    border: 1px solid #c36;
    border-radius: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    padding: .5rem 1rem;
    text-align: center;
    transition: all .3s;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    white-space: nowrap;
}

.ftb-board button:hover {
    background: #d9366d !important;
}

button.tb-story-item.tb-story-seen,
button.tb-story-item.tb-story-seen:hover {
    background: transparent;
    border: 1px solid transparent;
    color: #d9366d;
}

button.ftb-story-nav {
    background: transparent;
    border: 1px solid transparent;
    color: #d9366d;
}

