:root {
    --bg: #070b18;
    --bg-2: #0f1630;
    --text: #f7fbff;
    --muted: rgba(231, 240, 255, 0.72);
    --line: rgba(255, 255, 255, 0.22);
    --line-strong: rgba(255, 255, 255, 0.36);
    --glass: rgba(255, 255, 255, 0.11);
    --glass-soft: rgba(255, 255, 255, 0.075);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --cyan: #00aeef;
    --purple: #8b5cf6;
    --green: #10b981;
    --orange: #f97316;
    --radius: 26px;
    --side-nav: 116px;
    color-scheme: dark;
}

:root.theme-light {
    --bg: #eef6ff;
    --bg-2: #f7fbff;
    --text: #101827;
    --muted: rgba(16, 24, 39, 0.68);
    --line: rgba(15, 23, 42, 0.14);
    --line-strong: rgba(0, 174, 239, 0.28);
    --glass: rgba(255, 255, 255, 0.58);
    --glass-soft: rgba(255, 255, 255, 0.42);
    --shadow: 0 22px 70px rgba(0, 64, 120, 0.16);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 12%, rgba(0, 174, 239, 0.28), transparent 30vw),
        radial-gradient(circle at 80% 8%, rgba(139, 92, 246, 0.35), transparent 34vw),
        radial-gradient(circle at 78% 84%, rgba(16, 185, 129, 0.22), transparent 32vw),
        linear-gradient(135deg, var(--bg), var(--bg-2) 46%, #160821);
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0;
}

:root.theme-light body {
    background:
        radial-gradient(circle at 12% 12%, rgba(0, 174, 239, 0.18), transparent 30vw),
        radial-gradient(circle at 82% 8%, rgba(139, 92, 246, 0.16), transparent 34vw),
        radial-gradient(circle at 78% 84%, rgba(16, 185, 129, 0.16), transparent 32vw),
        linear-gradient(135deg, #f8fcff, #eaf4ff 48%, #f9f1ff);
}

:root.theme-light body::before {
    background:
        linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 76px 76px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 78%);
}

.waves {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.42;
    mix-blend-mode: screen;
}

.waves canvas {
    width: 100%;
    height: 100%;
    opacity: 0.95;
}

:root.theme-light .waves {
    opacity: 0.24;
    mix-blend-mode: multiply;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

.ambient {
    position: fixed;
    z-index: -2;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(24px);
    opacity: 0.5;
    pointer-events: none;
}

.ambient-one {
    top: 8%;
    left: 18%;
    background: rgba(0, 174, 239, 0.42);
}

.ambient-two {
    top: 22%;
    right: 8%;
    background: rgba(139, 92, 246, 0.44);
}

.ambient-three {
    right: 26%;
    bottom: 4%;
    background: rgba(249, 115, 22, 0.24);
}

.glass-panel,
.bento-card,
.app-nav,
.story-ring {
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
}

:root.theme-light .glass-panel,
:root.theme-light .bento-card,
:root.theme-light .app-nav,
:root.theme-light .story-ring {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.36));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.app-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    bottom: 20px;
    z-index: 20;
    width: 84px;
    padding: 14px 10px;
    border-radius: 30px;
    transition: width 0.32s ease, padding 0.32s ease, border-radius 0.32s ease;
}

.nav-brand {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
    box-shadow: 0 18px 40px rgba(0, 174, 239, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: width 0.32s ease, height 0.32s ease, border-radius 0.32s ease;
}

.nav-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 174, 239, 0.18));
    transition: width 0.32s ease, height 0.32s ease;
}

.nav-list {
    display: grid;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    gap: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.nav-link span:last-child {
    font-size: 14px;
    letter-spacing: 0;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: max-width 0.28s ease, opacity 0.24s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.18), rgba(139, 92, 246, 0.15));
    box-shadow: 0 16px 36px rgba(0, 174, 239, 0.16);
    transform: translateY(-3px);
    outline: none;
}

@media (min-width: 621px) {
    .app-nav:hover,
    .app-nav:focus-within,
    .app-nav.is-open {
        width: 212px;
        padding: 18px;
        border-radius: 32px;
    }

    .app-nav:hover .nav-brand,
    .app-nav:focus-within .nav-brand,
    .app-nav.is-open .nav-brand {
        width: 78px;
        height: 78px;
        border-radius: 26px;
    }

    .app-nav:hover .nav-brand img,
    .app-nav:focus-within .nav-brand img,
    .app-nav.is-open .nav-brand img {
        width: 62px;
        height: 62px;
    }

    .app-nav:hover .nav-link,
    .app-nav:focus-within .nav-link,
    .app-nav.is-open .nav-link {
        justify-content: flex-start;
        gap: 12px;
        padding: 0 14px;
    }

    .app-nav:hover .nav-link span:last-child,
    .app-nav:focus-within .nav-link span:last-child,
    .app-nav.is-open .nav-link span:last-child {
        max-width: 120px;
        opacity: 1;
    }
}

.nav-icon {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.nav-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-icon::before,
.nav-icon::after,
.search-mark::before,
.search-mark::after {
    position: absolute;
    content: "";
}

.nav-icon::before,
.nav-icon::after {
    display: none;
}

.nav-icon-home::before {
    inset: 7px 4px 3px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.nav-icon-home::after {
    left: 4px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
}

.nav-icon-spark::before {
    inset: 2px 9px;
    border-radius: 999px;
    background: currentColor;
}

.nav-icon-spark::after {
    inset: 9px 2px;
    border-radius: 999px;
    background: currentColor;
}

.nav-icon-chip::before {
    inset: 4px;
    border: 2px solid currentColor;
    border-radius: 6px;
}

.nav-icon-chip::after {
    inset: 8px;
    border-radius: 3px;
    background: currentColor;
}

.nav-icon-play::before {
    inset: 3px;
    border: 2px solid currentColor;
    border-radius: 8px;
}

.nav-icon-play::after {
    left: 9px;
    top: 7px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid currentColor;
}

.nav-icon-search::before,
.search-mark::before {
    left: 2px;
    top: 2px;
    width: 11px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.nav-icon-search::after,
.search-mark::after {
    right: 2px;
    bottom: 2px;
    width: 8px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
}

.page-shell {
    width: min(1440px, calc(100% - var(--side-nav) - 44px));
    margin-left: var(--side-nav);
    padding: 22px 24px 56px;
}

.topbar {
    position: sticky;
    top: 18px;
    z-index: 15;
    display: none;
    grid-template-columns: auto minmax(220px, 520px);
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 74px;
    padding: 12px 16px;
    border-radius: 28px;
}

.mobile-logo {
    display: none;
    width: 170px;
    padding: 8px 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
}

.search-glass {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.72);
}

.search-mark {
    position: relative;
    width: 22px;
    height: 22px;
}

.search-glass input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
}

.search-glass input::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.stories-strip {
    display: flex;
    gap: 16px;
    margin: 22px 0 16px;
    overflow-x: auto;
    padding: 6px 4px 14px;
    scrollbar-width: none;
}

.stories-strip::-webkit-scrollbar {
    display: none;
}

.story-button {
    flex: 0 0 auto;
    width: 82px;
    color: #fff;
    background: transparent;
}

.story-ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin: 0 auto 8px;
    padding: 3px;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.story-ring::before {
    position: absolute;
    inset: -3px;
    z-index: -1;
    content: "";
    border-radius: inherit;
    background: conic-gradient(from 40deg, var(--cyan), var(--purple), var(--orange), var(--green), var(--cyan));
}

.story-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    filter: brightness(1.16) contrast(1.05) saturate(1.2);
}

.story-button:hover .story-ring {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 18px 34px rgba(0, 174, 239, 0.24);
}

.story-button.is-active-story .story-ring {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.34), 0 0 26px rgba(0, 174, 239, 0.34);
}

.story-label {
    display: block;
    overflow: hidden;
    font-size: 12px;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticker {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    min-height: 52px;
    margin-bottom: 28px;
    overflow: hidden;
    padding: 0 16px;
    border-radius: 22px;
}

.ticker-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 174, 239, 0.22);
    color: #dff8ff;
    font-size: 12px;
    text-transform: uppercase;
}

.ticker-flash {
    display: none;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

.ticker-window {
    overflow: hidden;
}

.ticker-track {
    display: inline-flex;
    min-width: max-content;
    gap: 32px;
    animation: tickerMove 34s linear infinite;
}

.ticker-track span {
    color: var(--muted);
    white-space: nowrap;
}

@keyframes tickerMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.eyebrow {
    margin: 0 0 8px;
    color: #9eefff;
    font-size: 13px;
    text-transform: uppercase;
}

.wave-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 42%);
    align-items: center;
    gap: 24px;
    min-height: 260px;
    margin: 18px 0 20px;
    overflow: hidden;
    padding: clamp(28px, 5vw, 54px);
}

.wave-hero::before {
    position: absolute;
    inset: -40% -12% auto auto;
    width: 520px;
    height: 520px;
    content: "";
    border-radius: 999px;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.3), transparent 62%);
}

.wave-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.wave-hero h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 76px);
    font-weight: 600;
    line-height: 0.98;
}

.wave-hero-copy > p:last-child {
    max-width: 620px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.wave-stack {
    position: relative;
    z-index: 1;
    min-height: 190px;
}

.wave-line {
    position: absolute;
    left: 0;
    right: -18%;
    height: 112px;
    border-radius: 999px;
    opacity: 0.92;
    filter: drop-shadow(0 22px 42px rgba(0, 174, 239, 0.22));
    transform-origin: center;
}

.wave-line::before {
    position: absolute;
    inset: 0;
    content: "";
    border: 2px solid rgba(255, 255, 255, 0.54);
    border-color: rgba(255, 255, 255, 0.54) transparent transparent transparent;
    border-radius: 50%;
}

.wave-one {
    top: 12px;
    background: linear-gradient(90deg, rgba(0, 174, 239, 0.22), rgba(139, 92, 246, 0.08));
    transform: rotate(-8deg);
}

.wave-two {
    top: 58px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.2), rgba(0, 174, 239, 0.08));
    transform: rotate(6deg) scaleX(0.96);
}

.wave-three {
    top: 102px;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.16), rgba(0, 174, 239, 0.06));
    transform: rotate(-3deg) scaleX(0.9);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.bento-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 430px;
    border-radius: var(--radius);
    isolation: isolate;
    transition: all 0.3s ease;
}

.bento-card::before {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    content: "";
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 30%, rgba(255, 255, 255, 0.05));
    opacity: 0.34;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.09));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46), 0 0 34px rgba(0, 174, 239, 0.18);
}

.card-link {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
    color: inherit;
}

.card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 18px 18px;
    background: rgba(255, 255, 255, 0.08);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.18) contrast(1.06) saturate(1.16);
    transition: transform 0.45s ease;
}

.bento-card:hover .card-image {
    transform: scale(1.06);
}

.image-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(3, 8, 21, 0.22), transparent 48%),
        radial-gradient(circle at top right, rgba(0, 174, 239, 0.08), transparent 42%);
}

.card-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 9px;
    min-height: 190px;
    padding: 16px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(7, 11, 24, 0.24), rgba(7, 11, 24, 0.4));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card-meta,
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.card-content h2 {
    display: -webkit-box;
    min-height: 78px;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: clamp(16px, 1.15vw, 20px);
    font-weight: 600;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.card-content p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.is-hidden {
    display: none;
}

.load-row {
    display: flex;
    justify-content: center;
    padding: 34px 0 14px;
}

.glass-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.32), rgba(139, 92, 246, 0.24));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
    transition: all 0.3s ease;
}

.glass-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 58px rgba(0, 174, 239, 0.22);
}

.theme-toggle {
    position: fixed;
    left: 24px;
    bottom: 30px;
    z-index: 45;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 22px 58px rgba(0, 174, 239, 0.2);
}

.theme-toggle svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle .bulb-on {
    display: none;
}

:root.theme-light .theme-toggle {
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.72);
}

:root.theme-light .theme-toggle .bulb-on {
    display: block;
}

:root.theme-light .theme-toggle .bulb-dim {
    display: none;
}

:root.theme-light .nav-link,
:root.theme-light .story-label,
:root.theme-light .ticker-track span,
:root.theme-light .wave-hero-copy > p,
:root.theme-light .card-content p,
:root.theme-light .card-meta,
:root.theme-light .card-footer {
    color: var(--muted);
}

:root.theme-light .nav-link:hover,
:root.theme-light .nav-link:focus-visible {
    color: #0f172a;
}

.story-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px;
}

.story-modal[aria-hidden="true"] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.story-view {
    position: relative;
    width: min(420px, 92vw);
    height: min(760px, 86vh);
    overflow: hidden;
    border-radius: 32px;
}

.story-progress {
    position: absolute;
    top: 12px;
    left: 14px;
    right: 64px;
    z-index: 5;
    display: flex;
    gap: 5px;
    height: 3px;
}

.story-progress-segment {
    position: relative;
    flex: 1;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.story-progress-segment::before {
    position: absolute;
    inset: 0;
    width: var(--story-progress, 0%);
    content: "";
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.94);
}

.story-progress-segment.is-complete::before {
    width: 100%;
}

.story-progress-segment.is-active::before {
    animation: storyProgressFill 5s linear forwards;
}

@keyframes storyProgressFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.story-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-darken {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent 62%);
}

.story-copy {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 3;
}

.story-copy p {
    margin: 0 0 8px;
    color: #9eefff;
    font-size: 13px;
    text-transform: uppercase;
}

.story-copy h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.08;
}

.story-copy span {
    display: block;
    color: var(--muted);
    line-height: 1.6;
}

.story-copy a {
    display: inline-flex;
    margin-top: 18px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.story-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.32);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    transform: translateY(-50%);
    transition: all 0.24s ease;
}

.story-nav:hover,
.story-nav:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.06);
}

.story-nav svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.story-nav-prev {
    left: 14px;
}

.story-nav-next {
    right: 14px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.32);
    font-size: 26px;
}

.article-page {
    overflow-x: hidden;
}

.article-shell {
    width: min(1040px, calc(100% - 28px));
    margin: 0 auto;
    padding: 26px 0 64px;
}

.back-home {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin-bottom: 18px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.article-detail {
    overflow: hidden;
    border-radius: 32px;
}

.article-hero {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.04) saturate(1.12);
}

.article-body {
    padding: clamp(22px, 5vw, 54px);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.article-meta span,
.article-tags span,
.related-card span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

.article-body h1 {
    max-width: 880px;
    margin: 0 0 16px;
    color: var(--text);
    font-size: clamp(34px, 6vw, 68px);
    font-weight: 600;
    line-height: 1;
}

.article-summary {
    max-width: 800px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.6;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.article-copy {
    max-width: 780px;
}

.article-copy p {
    margin: 0 0 20px;
    color: var(--text);
    font-size: 17px;
    line-height: 1.82;
}

.related-news {
    margin-top: 34px;
}

.related-news h2 {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 600;
}

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

.related-card {
    display: grid;
    gap: 10px;
    overflow: hidden;
    padding: 12px;
    border-radius: 22px;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 16px;
}

.related-card strong {
    color: var(--text);
    font-size: 16px;
    line-height: 1.3;
}

@media (max-width: 1100px) {
    .bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    :root {
        --side-nav: 116px;
    }

    .app-nav {
        width: 84px;
        padding: 14px 10px;
        border-radius: 30px;
    }

    .nav-brand {
        width: 58px;
        height: 58px;
        margin-bottom: 18px;
        border-radius: 20px;
    }

    .nav-brand img {
        width: 48px;
        height: 48px;
        max-width: 48px;
    }

    .nav-link {
        justify-content: center;
        min-height: 60px;
        padding: 0;
        border-radius: 20px;
    }

    .nav-link span:last-child {
        max-width: 0;
        opacity: 0;
    }

    .page-shell {
        width: min(980px, calc(100% - var(--side-nav) - 28px));
        padding: 18px 18px 52px;
    }

    .topbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .wave-hero {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wave-hero-copy > p:last-child {
        max-width: 620px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 620px) {
    :root {
        --side-nav: 0px;
    }

    .app-nav {
        top: auto;
        left: 14px;
        right: 14px;
        bottom: 12px;
        width: auto;
        height: 72px;
        padding: 8px;
        border-radius: 26px;
    }

    .nav-brand {
        display: none;
    }

    .nav-list {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }

    .nav-link {
        flex-direction: column;
        justify-content: center;
        min-height: 56px;
        gap: 4px;
        padding: 0;
        border-radius: 18px;
    }

    .nav-link span:last-child {
        display: block;
        font-size: 11px;
        max-width: 70px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        text-align: center;
        transition: max-height 0.24s ease, opacity 0.2s ease;
    }

    .nav-link:hover span:last-child,
    .nav-link:focus span:last-child,
    .nav-link:focus-visible span:last-child,
    .app-nav.is-open .nav-link span:last-child {
        max-height: 16px;
        opacity: 1;
    }

    .nav-icon {
        width: 24px;
        height: 24px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .nav-icon svg {
        width: 21px;
        height: 21px;
    }

    .page-shell {
        width: 100%;
        margin-left: 0;
        padding: 14px 12px 104px;
    }

    .theme-toggle {
        left: 18px;
        bottom: 96px;
        width: 48px;
        height: 48px;
    }

    .topbar {
        display: grid;
        grid-template-columns: minmax(92px, 170px) minmax(0, 1fr);
        min-height: 66px;
        border-radius: 24px;
    }

    .ticker {
        grid-template-columns: 42px 1fr;
    }

    .ticker-label {
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .ticker-label-text {
        display: none;
    }

    .ticker-flash {
        display: block;
    }

    .mobile-logo {
        display: block;
    }

    .wave-hero {
        grid-template-columns: 1fr;
    }

    .wave-hero-copy > p:last-child {
        max-width: 620px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .topbar {
        gap: 10px;
        padding: 10px;
    }

    .mobile-logo {
        width: 116px;
        padding: 7px;
    }

    .search-glass {
        min-height: 44px;
        padding: 0 12px;
    }

    .stories-strip {
        gap: 10px;
    }

    .story-button {
        width: 68px;
    }

    .story-ring {
        width: 62px;
        height: 62px;
    }

    .story-progress {
        left: 12px;
        right: 58px;
    }

    .story-nav {
        display: none;
    }

    .ticker {
        grid-template-columns: 42px 1fr;
        gap: 8px;
        padding: 12px;
    }

    .wave-hero h1 {
        font-size: 40px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .bento-card {
        min-height: 312px;
        border-radius: 18px;
    }

    .card-media {
        border-radius: 16px 16px 12px 12px;
    }

    .card-content {
        min-height: 160px;
        padding: 10px;
        gap: 6px;
    }

    .card-content h2 {
        min-height: 50px;
        font-size: 13px;
        line-height: 1.25;
        -webkit-line-clamp: 3;
    }

    .card-meta,
    .card-footer,
    .card-content p {
        font-size: 11px;
        line-height: 1.35;
        -webkit-line-clamp: 3;
    }

}
