﻿.tp-stories {
    padding: 10px 0 14px 0;
}

.tp-stories__rail {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    overflow-x: auto;
    padding: 0 2px 10px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .tp-stories__rail::-webkit-scrollbar {
        height: 0;
    }

.tp-story {
    flex: 0 0 auto;
    text-decoration: none;
    color: var(--tp-text);
    width: 92px;
    text-align: center;
}

.tp-story__ring {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#f43f5e,#fb923c);
    padding: 3px;
    box-shadow: 0 10px 24px rgba(17,24,39,.12);
}

.tp-story__img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    display: block;
    background: #fff;
    padding: 6px;
    object-fit: cover;
}

.tp-story__title {
    display: -webkit-box;
    margin-top: 8px;
    font-family: var(--tp-font-display), var(--tp-font-body), system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    line-height: 1.15;
    color: #0b1220;
    opacity: .92;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.3em;
}

.tp-storyview {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1200;
}

    .tp-storyview.is-open {
        display: block;
    }

.tp-storyview__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.tp-storyview__panel {
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    width: min(520px, calc(100% - 28px));
    background: #111;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.tp-storyview__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    z-index: 6;
}

.tp-storyview__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: rgba(255,255,255,.12);
    color: #fff;
    display: grid;
    place-items: center;
    z-index: 6;
    transition: transform .12s ease, background .12s ease, opacity .12s ease;
    opacity: .9;
}

    .tp-storyview__nav span {
        font-size: 28px;
        line-height: 1;
        transform: translateY(-1px);
    }

.tp-storyview__nav--prev {
    left: 10px;
}

.tp-storyview__nav--next {
    right: 10px;
}

.tp-storyview__nav:hover {
    background: rgba(255,255,255,.18);
    transform: translateY(-50%) scale(1.03);
    opacity: 1;
}

.tp-storyview__stage {
    padding: 22px 18px 14px 18px;
    display: flex;
    justify-content: center;
}

.tp-storyview__ring {
    width: 360px;
    height: 360px;
    border-radius: 999px;
    padding: 8px;
    background: linear-gradient(135deg,#f43f5e,#fb923c);
    box-shadow: 0 18px 55px rgba(0,0,0,.38);
    display: grid;
    place-items: center;
}

.tp-storyview__img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #fff;
    padding: 10px;
    object-fit: cover;
    display: block;
}

.tp-storyview__ctaWrap {
    padding: 10px 12px 16px 12px;
    background: #111;
    display: flex;
    justify-content: center;
}

.tp-storyview__cta {
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--tp-font-display), var(--tp-font-body), system-ui, sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: #111;
    background: #fff;
    box-shadow: 0 14px 30px rgba(0,0,0,.35);
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

    .tp-storyview__cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 38px rgba(0,0,0,.40);
    }

.tp-storyview__ctaIc {
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 520px) {
    .tp-storyview__ring {
        width: 300px;
        height: 300px;
    }
}
