body.story-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(16, 37, 58, 0.42), transparent 34%),
        linear-gradient(180deg, #02060c 0%, #07111d 32%, #03070c 100%);
    color: #edf4ff;
    font-family: 'Cormorant Garamond', serif;
}

body.story-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 6, 12, 0.18) 0%, rgba(2, 6, 12, 0.7) 76%, rgba(2, 6, 12, 0.92) 100%),
        var(--story-backdrop, none) center top / cover no-repeat;
    opacity: 0.18;
    pointer-events: none;
    z-index: -2;
}

body.story-page main,
body.story-page section,
body.story-page article,
body.story-page aside {
    box-sizing: border-box;
}

body.story-page a {
    color: inherit;
}

body.story-page #console-launcher-shell,
body.story-page #bottom-console,
body.story-page #publish-launcher,
body.story-page #floating-hud,
body.story-page #hud-right,
body.story-page #sections,
body.story-page #floating-logo,
body.story-page .plane-right-rail,
body.story-page .plane-left-rail,
body.story-page #floating-hud .hud-actions-mini {
    display: none !important;
}

body.story-page #watch-live-btn {
    top: 14px !important;
    right: 18px !important;
    z-index: 1302 !important;
}

.story-shell {
    position: relative;
    z-index: 3;
    width: min(1700px, calc(100vw - 56px));
    margin: 0 auto;
    padding: 116px 0 96px;
}

.story-masthead,
.story-article,
.story-side-card,
.story-related-card,
.story-form-card,
.story-callout,
.story-comment,
.story-empty,
.story-modal__dialog {
    border: 1px solid rgba(157, 187, 218, 0.15);
    background: rgba(5, 13, 23, 0.9);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(16px);
}

.story-masthead {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.6fr);
    gap: 28px;
    padding: 42px;
    border-radius: 28px;
}

.story-masthead::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 28%),
        linear-gradient(90deg, rgba(2, 6, 12, 0.92) 0%, rgba(2, 6, 12, 0.68) 44%, rgba(2, 6, 12, 0.82) 100%),
        var(--story-backdrop, none) center center / cover no-repeat;
    opacity: 1;
}

.story-masthead::after {
    content: '';
    position: absolute;
    inset: auto -12% -26% auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--story-accent, #22c55e) 26%, transparent) 0%, transparent 64%);
    filter: blur(18px);
    opacity: 0.9;
}

.story-masthead__content,
.story-masthead__rail {
    position: relative;
    z-index: 1;
}

.story-masthead__content {
    max-width: 880px;
}

.story-masthead__eyebrow,
.story-chip,
.story-toolbar__meta,
.story-share__label,
.story-share__link,
.story-rail-card__eyebrow,
.story-section-head__eyebrow,
.story-section-head__count,
.story-side-card__eyebrow,
.story-related-card__tag,
.story-mini-list,
.story-button {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.story-masthead__eyebrow,
.story-section-head__eyebrow,
.story-side-card__eyebrow,
.story-rail-card__eyebrow {
    margin: 0 0 14px;
    color: var(--story-accent-soft, #b2f7c5);
    font-size: 0.74rem;
}

.story-masthead__chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.story-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(182, 205, 231, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #dce8fb;
    font-size: 0.69rem;
    text-decoration: none;
}

.story-chip--accent {
    border-color: color-mix(in srgb, var(--story-accent, #22c55e) 48%, transparent);
    background: color-mix(in srgb, var(--story-accent, #22c55e) 14%, rgba(255, 255, 255, 0.05));
    color: #f5fffb;
}

.story-masthead h1 {
    margin: 0;
    max-width: 14ch;
    color: #f8fbff;
    font: 600 clamp(3.2rem, 5vw, 5.7rem)/0.92 'Cormorant Garamond', serif;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.story-masthead__dek {
    margin: 18px 0 0;
    max-width: 52rem;
    color: #dce8fb;
    font-size: 1.5rem;
    line-height: 1.36;
}

.story-masthead__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.story-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(182, 205, 231, 0.2);
    font-size: 0.72rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.story-button:hover {
    transform: translateY(-1px);
    border-color: rgba(222, 234, 250, 0.42);
}

.story-button--primary {
    border-color: color-mix(in srgb, var(--story-accent, #22c55e) 48%, transparent);
    background: linear-gradient(90deg, color-mix(in srgb, var(--story-accent-soft, #b2f7c5) 28%, #ffffff), color-mix(in srgb, var(--story-accent, #22c55e) 74%, #0d1a10));
    color: #04110b;
}

.story-button--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: #eff5ff;
}

.story-masthead__rail {
    display: grid;
    gap: 14px;
    align-content: end;
}

.story-rail-card {
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(182, 205, 231, 0.14);
    background: rgba(6, 15, 26, 0.72);
}

.story-rail-card strong,
.story-side-card strong,
.story-callout strong {
    display: block;
    color: #f7fbff;
    font-size: 1.15rem;
    line-height: 1.2;
}

.story-rail-card span,
.story-side-card span,
.story-callout p {
    display: block;
    margin-top: 8px;
    color: #cddbed;
    font-size: 1rem;
    line-height: 1.45;
}

.story-mini-list {
    display: grid;
    gap: 10px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    color: #dce8fb;
    font-size: 0.74rem;
}

.story-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
    gap: 26px;
    align-items: start;
    margin-top: 28px;
}

.story-article {
    padding: 28px 34px 36px;
    border-radius: 26px;
}

.story-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(182, 205, 231, 0.12);
}

.story-toolbar__meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: #afc2da;
    font-size: 0.72rem;
}

.story-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.story-share__label {
    color: #91a8c6;
    font-size: 0.7rem;
}

.story-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(182, 205, 231, 0.16);
    background: rgba(255, 255, 255, 0.035);
    color: #eff5ff;
    font-size: 0.68rem;
    text-decoration: none;
}

.story-share__link--button {
    cursor: pointer;
}

.story-share__link--danger {
    border-color: rgba(248, 113, 113, 0.3);
    color: #ffb0b0;
}

.story-lead-media {
    margin: 28px 0 30px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(182, 205, 231, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.story-lead-media img {
    display: block;
    width: 100%;
    height: auto;
}

.story-content {
    color: #f1f5fc;
    font-size: 1.42rem;
    line-height: 1.58;
}

.story-content > *:first-child {
    margin-top: 0;
}

.story-content > *:last-child {
    margin-bottom: 0;
}

.story-content p,
.story-content ul,
.story-content ol,
.story-content blockquote {
    margin: 0 0 1.35rem;
}

.story-content strong {
    color: #ffffff;
    font-weight: 600;
}

.story-content a {
    color: var(--story-accent-soft, #b2f7c5);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.12em;
}

.story-content ul,
.story-content ol {
    padding-left: 1.3em;
}

.story-content blockquote {
    padding: 0.2rem 0 0.2rem 1rem;
    border-left: 2px solid color-mix(in srgb, var(--story-accent, #22c55e) 55%, transparent);
    color: #dce8fb;
}

.story-discussion {
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid rgba(182, 205, 231, 0.12);
}

.story-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.story-section-head h2 {
    margin: 0;
    color: #f8fbff;
    font: 600 clamp(2rem, 3vw, 2.6rem)/0.96 'Cormorant Garamond', serif;
    letter-spacing: -0.04em;
}

.story-section-head__count {
    color: #9fb4d0;
    font-size: 0.72rem;
}

.story-callout,
.story-form-card,
.story-empty,
.story-comment,
.story-side-card,
.story-related-card {
    border-radius: 22px;
}

.story-callout,
.story-form-card,
.story-empty {
    padding: 22px 24px;
}

.story-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.story-empty p,
.story-form-card p {
    margin: 0;
    color: #dce8fb;
    font-size: 1.08rem;
    line-height: 1.45;
}

.story-comments {
    display: grid;
    gap: 14px;
}

.story-comment {
    padding: 18px 22px;
}

.story-comment__meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 10px;
    color: #afc2da;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.story-comment__body {
    color: #eef4fe;
    font-size: 1.08rem;
    line-height: 1.6;
}

.story-comment-form {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.story-comment-form textarea,
.story-report-form textarea,
.story-report-form select {
    width: 100%;
    border: 1px solid rgba(182, 205, 231, 0.16);
    border-radius: 18px;
    background: rgba(2, 8, 15, 0.82);
    color: #eef4fe;
    font: 500 1rem/1.5 'Cormorant Garamond', serif;
    padding: 16px 18px;
    outline: none;
}

.story-comment-form textarea:focus,
.story-report-form textarea:focus,
.story-report-form select:focus {
    border-color: color-mix(in srgb, var(--story-accent, #22c55e) 46%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--story-accent, #22c55e) 30%, transparent);
}

.story-form-card h3,
.story-modal__dialog h3 {
    margin: 0;
    color: #f7fbff;
    font: 600 1.9rem/1 'Cormorant Garamond', serif;
}

.story-form-card--centered {
    text-align: center;
}

.story-form-card a {
    color: var(--story-accent-soft, #b2f7c5);
}

.story-sidebar {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 14px;
}

.story-side-card {
    padding: 20px 22px;
}

.story-side-card--ad {
    background:
        linear-gradient(135deg, rgba(10, 20, 36, 0.92), rgba(4, 11, 20, 0.92)),
        radial-gradient(circle at top right, color-mix(in srgb, var(--story-accent, #22c55e) 22%, transparent), transparent 42%);
}

.story-side-link {
    display: block;
    margin-top: 12px;
    color: #eff5ff;
    font-size: 1.05rem;
    text-decoration: none;
}

.story-side-link:hover {
    color: var(--story-accent-soft, #b2f7c5);
}

.story-related {
    margin-top: 30px;
}

.story-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.story-related-card {
    overflow: hidden;
}

.story-related-card a {
    display: block;
    padding: 24px 22px;
    text-decoration: none;
}

.story-related-card h3 {
    margin: 12px 0 10px;
    color: #f8fbff;
    font: 600 1.8rem/1.02 'Cormorant Garamond', serif;
    letter-spacing: -0.04em;
}

.story-related-card p {
    margin: 0;
    color: #cddbed;
    font-size: 1.06rem;
    line-height: 1.45;
}

.story-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(1, 4, 8, 0.74);
    z-index: 9500;
}

.story-modal.is-open {
    display: flex;
}

.story-modal__dialog {
    width: min(460px, 100%);
    padding: 26px;
    border-radius: 24px;
}

.story-report-form {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.story-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 1220px) {
    .story-shell {
        width: min(1500px, calc(100vw - 32px));
        padding-top: 110px;
    }

    .story-masthead,
    .story-layout,
    .story-related__grid {
        grid-template-columns: 1fr;
    }

    .story-masthead h1 {
        max-width: none;
    }

    .story-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .story-shell {
        width: calc(100vw - 20px);
        padding-top: 104px;
        padding-bottom: 72px;
    }

    .story-masthead,
    .story-article {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .story-masthead__dek,
    .story-content {
        font-size: 1.2rem;
    }

    .story-masthead h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .story-toolbar,
    .story-callout,
    .story-section-head,
    .story-masthead__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .story-share {
        gap: 8px;
    }

    .story-share__link {
        font-size: 0.64rem;
    }

    .story-content p[style] {
        font-size: 1rem !important;
    }
}
