.stories-stage {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stories-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.stories-mode-toggle {
    display: inline-flex;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 999px;
    padding: 0.25rem;
    gap: 0.25rem;
}

.stories-mode-btn {
    border: 0;
    background: transparent;
    color: #64748b;
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.stories-mode-btn.active {
    background: #0f172a;
    color: #f8fafc;
}

.stories-card {
    width: min(100%, 28rem);
    margin: 0 auto;
}

.story-screen {
    position: relative;
    min-height: 75vh;
    border-radius: 1.75rem;
    padding: 0;
    background: linear-gradient(165deg,
            color-mix(in oklab, var(--party-color), white 8%) 0%,
            var(--party-color) 48%,
            color-mix(in oklab, var(--party-color), black 10%) 100%);
    color: #f8fafc;
    overflow: hidden;
    border: 1px solid color-mix(in oklab, var(--party-color), white 75%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    will-change: transform;
}

.story-screen.is-dragging {
    transition: none;
}

.story-screen.is-snapback {
    transition: transform 260ms cubic-bezier(0.2, 0.9, 0.22, 1.08);
}

.story-screen--enter-next {
    animation: storyEnterNext 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-screen--enter-prev {
    animation: storyEnterPrev 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-screen--closing {
    animation: storyFoldClose 280ms cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
    transform-origin: top center;
}

@keyframes storyEnterNext {
    from {
        opacity: 0.62;
        transform: translateX(42px) scale(0.992);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes storyEnterPrev {
    from {
        opacity: 0.62;
        transform: translateX(-42px) scale(0.992);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes storyFoldClose {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: saturate(1);
    }

    to {
        opacity: 0;
        transform: translateY(22vh) scale(0.9);
        filter: saturate(0.88);
    }
}

.story-screen-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 8%, color-mix(in oklab, #ffffff, transparent 88%) 0%, transparent 44%),
        radial-gradient(circle at 22% 80%, color-mix(in oklab, var(--story-accent), transparent 72%) 0%, transparent 46%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(2, 6, 23, 0.28));
}

.story-swipe-onboarding {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: grid;
    place-items: center;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.48), rgba(2, 6, 23, 0.32));
    opacity: 1;
    transition: opacity 220ms ease;
}

.story-swipe-onboarding.is-hidden {
    opacity: 0;
}

.story-swipe-onboarding-inner {
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    color: #fff;
    padding: 0.7rem 0.95rem;
    border-radius: 0.9rem;
    background: rgba(2, 6, 23, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.44);
}

.story-swipe-onboarding-hand {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.36);
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.34);
    animation: storySwipeOnboardingHand 580ms ease-out infinite;
}

.story-swipe-onboarding-label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    text-shadow: 0 3px 12px rgba(2, 6, 23, 0.85);
}

@keyframes storySwipeOnboardingHand {
    0% {
        transform: translateY(-8px);
        opacity: 0.7;
    }
    70% {
        transform: translateY(22px);
        opacity: 1;
    }
    100% {
        transform: translateY(28px);
        opacity: 0.75;
    }
}

.story-screen--engagement .story-screen-overlay {
    background:
        radial-gradient(circle at 12% 14%, rgba(34, 197, 94, 0.24) 0%, transparent 42%),
        radial-gradient(circle at 82% 80%, rgba(59, 130, 246, 0.22) 0%, transparent 46%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(2, 6, 23, 0.7));
}

.story-screen--telegram .story-screen-overlay {
    background:
        radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.2) 0%, transparent 44%),
        radial-gradient(circle at 82% 82%, rgba(142, 216, 255, 0.24) 0%, transparent 46%),
        linear-gradient(180deg, rgba(10, 37, 64, 0.26), rgba(3, 21, 38, 0.66));
}

.story-top,
.story-body,
.story-actions {
    position: relative;
    z-index: 2;
}

.story-top {
    position: sticky;
    top: 0;
    padding: max(0.35rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.35rem max(1rem, env(safe-area-inset-left));
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0));
}

.story-top::before {
    content: "";
    display: block;
    width: 40px;
    height: 5px;
    margin: 0.1rem auto 0.42rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    pointer-events: none;
}

.story-actions {
    position: sticky;
    bottom: 0;
    padding: 0.45rem max(1rem, env(safe-area-inset-right)) max(1.6rem, calc(env(safe-area-inset-bottom) + 1rem)) max(1rem, env(safe-area-inset-left));
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0));
}

.story-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    overflow: hidden;
}

.story-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #ffffff;
    width: 0%;
}

body.explora-paused .story-progress-fill {
    opacity: 0.65;
}

.story-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.story-chip {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    background: rgba(15, 23, 42, 0.35);
}

.story-counter {
    font-size: 0.82rem;
    opacity: 0.85;
}

.story-video-audio-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(15, 23, 42, 0.42);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.story-video-audio-btn--floating {
    position: absolute;
    right: max(1.35rem, calc(env(safe-area-inset-right) + 0.35rem));
    bottom: max(1.6rem, calc(env(safe-area-inset-bottom) + 1rem));
    z-index: 5;
}

.story-video-audio-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.story-video-audio-btn:active {
    transform: scale(0.97);
}

.story-party-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.story-nav-zone {
    position: absolute;
    top: 34%;
    bottom: 18%;
    width: 28%;
    z-index: 4;
    border: 0;
    background: transparent;
    color: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.story-nav-zone-prev {
    left: 0;
}

.story-nav-zone-next {
    right: 0;
}

.story-party-link,
.story-party-text-link {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
}

.story-party-link:focus-visible,
.story-party-text-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
    border-radius: 0.5rem;
}

.story-party-logo-wrap {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-party-logo-wrap.is-light-bg {
    background: #ffffff;
}

.story-party-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
    display: block;
}

.story-party-name {
    font-weight: 800;
    font-size: clamp(1.55rem, 4vw, 1.95rem);
    line-height: 1;
}

.story-party-mode {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.story-body {
    padding: 1.2rem max(1rem, env(safe-area-inset-right)) 1.2rem max(1rem, env(safe-area-inset-left));
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-body--engagement {
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding-top: clamp(3.5rem, 10vh, 6rem);
    padding-bottom: 0.4rem;
}

.story-title {
    font-family: 'Bebas Neue', 'Impact', 'Arial Narrow Bold', sans-serif;
    font-size: clamp(1.8rem, 7vw, 3.8rem);
    line-height: 0.95;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 10px rgba(2, 6, 23, 0.35);
}

.story-summary {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 2.1vw, 1.2rem);
    line-height: 1.28;
    letter-spacing: 0;
    text-wrap: pretty;
    color: #ffffff;
    min-height: 5rem;
    text-shadow: 0 2px 12px rgba(2, 6, 23, 0.3);
    max-width: 48ch;
}

.story-summary-caption {
    position: static;
}

.story-caption-chunk {
    display: block;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 260ms ease, transform 260ms ease;
    margin-top: 0.18rem;
}

.story-caption-chunk:first-child {
    margin-top: 0;
}

.story-caption-chunk.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.story-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.story-actions--engagement {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin-top: -0.2rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

.stories-cta-primary--share {
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(15, 23, 42, 0.54);
    color: #ffffff;
    touch-action: manipulation;
    margin-top: 0;
}

.stories-cta-primary--share:hover {
    background: rgba(15, 23, 42, 0.74);
}

.story-body--telegram {
    gap: 1.25rem;
}

.story-screen--party-video .story-screen-overlay {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.38) 0%, rgba(2, 6, 23, 0.2) 30%, rgba(2, 6, 23, 0.46) 100%);
}

.story-candidate-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.story-video-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.96);
    font-weight: 600;
    letter-spacing: 0.01em;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.55));
    transition: opacity 0.25s ease;
}

.story-video-loading.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.story-video-loading-spinner {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: rgba(255, 255, 255, 0.95);
    animation: storyVideoSpin 0.9s linear infinite;
}

@keyframes storyVideoSpin {
    to {
        transform: rotate(360deg);
    }
}

.story-screen--party-video .story-top,
.story-screen--party-video .story-body,
.story-screen--party-video .story-actions {
    position: relative;
    z-index: 2;
}

.story-screen--party-video .story-body--engagement {
    padding: 0;
    gap: 0;
}

.story-video-subtitles-wrap {
    position: absolute;
    left: 50%;
    bottom: clamp(6.5rem, 22vh, 11rem);
    transform: translateX(-50%);
    width: min(88%, 26rem);
    margin-inline: auto;
    display: grid;
    gap: 0.65rem;
    justify-items: center;
    z-index: 4;
    pointer-events: none;
}

.story-video-subtitle-active {
    min-height: 2.5em;
    font-size: clamp(1rem, 2.9vw, 1.45rem);
    font-weight: 900;
    line-height: 1.22;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    text-wrap: balance;
    letter-spacing: 0.01em;
    text-shadow: 0 3px 18px rgba(2, 6, 23, 0.72);
    background: color-mix(in srgb, var(--party-color, #334155) 84%, #000 16%);
    border-radius: 0;
    padding: 0.68rem 1.35rem;
    width: fit-content;
    max-width: 85%;
    margin-inline: auto;
    transition: transform 0.16s ease, opacity 0.16s ease;
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.26);
}

.story-video-subtitle-active.is-refreshing {
    transform: translateY(2px);
    opacity: 0.92;
}

@media (max-width: 640px) {
    .story-video-subtitles-wrap {
        bottom: clamp(5.8rem, 20vh, 9.5rem);
        width: min(90%, 22rem);
    }

    .story-video-subtitle-active {
        font-size: clamp(1rem, 4.9vw, 1.25rem);
        padding: 0.65rem 1.25rem;
        border-radius: 0;
        max-width: 85%;
    }
}

.stories-cta-primary--telegram {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    touch-action: manipulation;
    margin-top: 0;
    box-shadow: 0 10px 30px rgba(3, 21, 38, 0.3);
}

.stories-cta-primary--telegram:hover {
    background: rgba(255, 255, 255, 0.32);
}

.story-engagement-optout {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.82rem;
    cursor: pointer;
    touch-action: manipulation;
    margin-top: 0.15rem;
}

.story-screen--engagement .story-title {
    max-width: 12ch;
    margin-left: auto;
    margin-right: auto;
}

.story-screen--engagement .story-summary {
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
}

.story-actions-icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.story-actions--single {
    grid-template-columns: 1fr;
    justify-items: center;
}

.story-action-btn {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(15, 23, 42, 0.42);
    color: #fff;
    border-radius: 999px;
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin: 0 auto;
}

.story-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.story-action-btn.is-saved {
    background: rgba(253, 224, 71, 0.2);
    border-color: rgba(253, 224, 71, 0.8);
    color: #fde047;
}

.story-save-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.97);
    opacity: 0;
    pointer-events: none;
    z-index: 180;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.story-save-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.story-save-toast .save-toast-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.stories-footer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.stories-cta-primary,
.stories-cta-secondary {
    border-radius: 999px;
    height: 2.6rem;
    padding: 0 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.stories-cta-primary {
    background: #0f172a;
    color: #f8fafc;
    border-color: #0f172a;
}

.stories-cta-secondary {
    background: #fff;
    color: #334155;
}

/* Explora vertical mode */
body.explora-layout > header,
body.explora-layout > footer {
    display: none;
}

body.explora-layout {
    background: #020617;
    overflow: hidden;
}

body.explora-layout main {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

body.explora-layout #view-explora,
body.explora-layout .explora-stage,
body.explora-layout #explora-player,
body.explora-layout #explora-player .stories-card,
body.explora-layout #explora-player .story-screen {
    width: 100vw;
    max-width: 100vw;
}

#view-explora {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100%;
}

.explora-stage {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020617;
}

.story-screen-closing-ghost {
    position: fixed;
    margin: 0;
    z-index: 140;
    pointer-events: none;
    border-radius: 0;
}

.explora-setup-card {
    position: relative;
    width: min(94vw, 34rem);
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.15);
    padding: 1.25rem;
}

.explora-setup-close-btn {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.explora-setup-close-btn:hover {
    border-color: #94a3b8;
    color: #334155;
    background: #f8fafc;
}

.explora-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #64748b;
}

.explora-setup-title {
    margin-top: 0.25rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.explora-setup-subtitle {
    margin-top: 0.25rem;
    color: #475569;
    font-size: 0.92rem;
}

.explora-choice-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

.explora-choice {
    border: 1px solid #cbd5e1;
    border-radius: 0.9rem;
    background: #f8fafc;
    height: 2.7rem;
    font-weight: 600;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.explora-choice.active {
    border-color: #334155;
    background: #e2e8f0;
    color: #0f172a;
}

.explora-picker {
    margin-top: 0.8rem;
}

.explora-picker label {
    display: block;
    font-size: 0.78rem;
    color: #475569;
    margin-bottom: 0.3rem;
}

.explora-picker select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #fff;
    color: #0f172a;
}

.explora-toggle-row {
    margin-top: 0.9rem;
}

.explora-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.explora-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #0f172a;
}

.explora-party-pill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.explora-party-pill {
    border: 1px solid #cbd5e1;
    border-radius: 0.85rem;
    background: #f8fafc;
    color: #334155;
    min-height: 3rem;
    padding: 0.35rem 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-align: left;
    transition: all 0.2s ease;
}

.explora-party-pill:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.explora-party-pill.is-active {
    border-color: #334155;
    background: #e2e8f0;
    color: #0f172a;
}

.explora-party-pill-logo-wrap {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.explora-party-pill-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.explora-party-pill-name {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.15;
}

.explora-start-btn {
    width: 100%;
    margin-top: 1rem;
    border-radius: 0.9rem;
    height: 2.8rem;
    background: #0f172a;
    color: #f8fafc;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.explora-start-btn:disabled,
.explora-start-btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}

#explora-player {
    width: 100%;
    height: 100vh;
    height: 100dvh;
}

#explora-player .stories-card {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
}

#explora-player .story-screen {
    border-radius: 0;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100%;
    border: 0;
}

@media (min-width: 900px) {
    body.explora-layout #explora-player:not(.hidden) {
        display: flex;
        justify-content: center;
        align-items: center;
        background: #000000;
    }

    body.explora-layout #explora-player .stories-card {
        width: min(calc(100dvh * 9 / 16), 100vw);
        max-width: calc(100dvh * 9 / 16);
        height: 100dvh;
        max-height: 100dvh;
    }

    body.explora-layout #explora-player .story-screen {
        width: 100%;
        max-width: none;
        min-height: 100%;
        height: 100%;
    }

    body.explora-layout .story-body {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}


/* Premium suggestion interstitials */
.story-screen--suggestion-premium {
    background: #1a1b34;
    isolation: isolate;
}

.story-screen--suggestion-premium .story-mesh {
    position: absolute;
    inset: -10% -8%;
    z-index: 0;
    overflow: hidden;
}

.story-screen--suggestion-premium .story-mesh-blob {
    position: absolute;
    width: clamp(18rem, 72vw, 33rem);
    aspect-ratio: 1;
    border-radius: 999px;
    filter: blur(64px);
    opacity: 0.82;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.story-screen--suggestion-premium .story-mesh-blob-a {
    top: -6%;
    left: -10%;
    background: color-mix(in oklab, var(--mesh-1), white 6%);
    animation: storyBlobDriftA 16s ease-in-out infinite alternate;
}

.story-screen--suggestion-premium .story-mesh-blob-b {
    top: 8%;
    right: -14%;
    background: color-mix(in oklab, var(--mesh-2), white 12%);
    animation: storyBlobDriftB 18s ease-in-out infinite alternate;
}

.story-screen--suggestion-premium .story-mesh-blob-c {
    bottom: -12%;
    left: -8%;
    background: color-mix(in oklab, var(--mesh-3), black 8%);
    animation: storyBlobDriftC 20s ease-in-out infinite alternate;
}

.story-screen--suggestion-premium .story-mesh-blob-d {
    bottom: -14%;
    right: -10%;
    background: color-mix(in oklab, var(--mesh-4), black 4%);
    animation: storyBlobDriftD 22s ease-in-out infinite alternate;
}

.story-screen--suggestion-premium .story-screen-overlay {
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.16) 0%, transparent 42%),
        linear-gradient(180deg, rgba(8, 12, 28, 0.12), rgba(8, 12, 28, 0.32));
}

.story-screen--suggestion-premium .story-top {
    background: linear-gradient(180deg, rgba(8, 12, 28, 0.2), rgba(8, 12, 28, 0));
    padding-top: max(0.6rem, env(safe-area-inset-top));
}

.story-screen--suggestion-premium .story-body--engagement {
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1.4rem;
    padding: clamp(2.5rem, 9vh, 5.2rem) clamp(1.45rem, 5.8vw, 2.3rem) clamp(1.4rem, 5vh, 2.7rem);
}

.story-screen--suggestion-premium .story-title--premium {
    font-family: 'Inter', sans-serif;
    text-transform: none;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.015em;
    max-width: 12ch;
    margin: 0;
    font-size: clamp(2.2rem, 11vw, 3.75rem);
    animation: storyTitlePop 560ms cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: 0 6px 24px rgba(7, 12, 30, 0.38);
}


.story-screen--suggestion-premium .story-suggestion-content {
    width: min(92%, 27rem);
    margin: 0 auto;
    padding: 1.65rem 1.45rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.story-screen--suggestion-premium .story-summary--suggestion {
    display: grid;
    gap: 0.68rem;
    min-height: 0;
    max-width: 28ch;
    margin: 0 auto;
    font-size: clamp(1.03rem, 4.6vw, 1.34rem);
    line-height: 1.52;
    letter-spacing: 0;
    text-wrap: balance;
    text-shadow: 0 3px 14px rgba(6, 10, 28, 0.3);
}


.story-screen--suggestion-premium .story-summary--suggestion strong {
    font-weight: 800;
}

.story-screen--suggestion-premium .story-suggestion-line {
    display: block;
    opacity: 0;
    transform: translateY(10px);
    animation: storyLineReveal 540ms ease forwards;
    animation-delay: calc(180ms * var(--line-index));
}

.story-screen--suggestion-premium .stories-cta-primary--suggestion {
    margin-top: 0.45rem;
    border-radius: 999px;
    border: 0;
    background: var(--cta-bg, #ffffff);
    color: var(--cta-color, #020617);
    font-weight: 800;
    min-height: 3.55rem;
    min-width: min(88vw, 19.5rem);
    padding: 0 1.55rem;
    font-size: 1.02rem;
    justify-content: center;
    box-shadow: var(--cta-shadow, 0 20px 38px rgba(2, 6, 23, 0.42), 0 0 0 4px rgba(255, 255, 255, 0.18));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: storyCtaPulse 1.8s ease-in-out infinite;
}

.story-screen--suggestion-premium .stories-cta-primary--suggestion i {
    font-size: 1.24rem;
}

.story-screen--suggestion-premium .story-actions--engagement {
    align-items: center;
    padding-bottom: max(2.2rem, env(safe-area-inset-bottom));
}


.story-screen--suggestion-premium .story-engagement-optout {
    margin-bottom: clamp(1.75rem, 5vh, 2.6rem);
}

@keyframes storyBlobDriftA {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(12%, 8%, 0) scale(1.08); }
}

@keyframes storyBlobDriftB {
    from { transform: translate3d(0, 0, 0) scale(1.02); }
    to { transform: translate3d(-10%, 10%, 0) scale(0.96); }
}

@keyframes storyBlobDriftC {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(10%, -12%, 0) scale(1.06); }
}

@keyframes storyBlobDriftD {
    from { transform: translate3d(0, 0, 0) scale(1.04); }
    to { transform: translate3d(-8%, -10%, 0) scale(0.98); }
}

@keyframes storyTitlePop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    70% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes storyLineReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes storyCtaPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-screen--suggestion-premium .story-mesh-blob,
    .story-screen--suggestion-premium .story-title--premium,
    .story-screen--suggestion-premium .story-suggestion-line,
    .story-screen--suggestion-premium .stories-cta-primary--suggestion {
        animation: none;
    }

    
.story-screen--suggestion-premium .story-summary--suggestion strong {
    font-weight: 800;
}

.story-screen--suggestion-premium .story-suggestion-line {
        opacity: 1;
        transform: none;
    }
}
