:root {
    --nf-bg: #09090d;
    --nf-surface: #111116;
    --nf-panel: #15151b;
    --nf-panel-2: #1a1a22;
    --nf-text: #f5f2ff;
    --nf-muted: #9b98aa;
    --nf-faint: #6f6c7d;
    --nf-line: rgba(255, 255, 255, 0.1);
    --nf-line-strong: rgba(255, 255, 255, 0.18);
    --nf-accent: #9f8cff;
    --nf-accent-rgb: 159, 140, 255;
    --nf-accent-soft: #ddd6ff;
    --nf-signal: #d4ff69;
    --nf-danger: #ff7086;
    --nf-radius: 20px;
    --nf-radius-sm: 12px;
    --nf-shell: min(1440px, calc(100% - 48px));
    --nf-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

:root[data-accent="cyan"] {
    --nf-accent: #58d9ff;
    --nf-accent-rgb: 88, 217, 255;
    --nf-accent-soft: #c8f4ff;
    --nf-signal: #bfff72;
}

:root[data-accent="ember"] {
    --nf-accent: #ff8a5b;
    --nf-accent-rgb: 255, 138, 91;
    --nf-accent-soft: #ffd6c7;
    --nf-signal: #ffe26a;
}

html {
    color-scheme: dark;
    background: var(--nf-bg);
    scrollbar-color: rgba(var(--nf-accent-rgb), 0.5) transparent;
}

body {
    color: var(--nf-text);
    background:
        linear-gradient(rgba(255, 255, 255, 0.017) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.017) 1px, transparent 1px),
        var(--nf-bg);
    background-size: 48px 48px;
    font-family: "Manrope", "Segoe UI", sans-serif;
}

body::before {
    z-index: -2;
    background:
        radial-gradient(circle at 72% -10%, rgba(var(--nf-accent-rgb), 0.18), transparent 30%),
        radial-gradient(circle at 5% 65%, rgba(212, 255, 105, 0.05), transparent 22%);
    filter: none;
    animation: none;
}

body::after {
    display: none;
}

::selection {
    color: #0b0a0f;
    background: var(--nf-accent-soft);
}

:focus-visible {
    outline: 2px solid var(--nf-accent);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

/* Content must remain readable even when observers, media, or animation timing fail. */
.reveal,
.reveal.in-view {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
}

[class*="nf-anim-"] {
    animation: none !important;
}

.page-shell {
    width: var(--nf-shell);
    margin: 0 auto 110px;
}

.page-shell::before,
.page-shell::after {
    display: none;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid var(--nf-line);
    background: rgba(9, 9, 13, 0.9);
    backdrop-filter: blur(24px);
}

.site-nav::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 112px;
    height: 2px;
    background: linear-gradient(90deg, var(--nf-accent), var(--nf-signal));
}

.nav-inner {
    width: var(--nf-shell);
    min-height: 76px;
    padding: 0;
    gap: clamp(18px, 3vw, 42px);
}

.brand {
    gap: 12px;
}

.brand-logo {
    display: none;
}

.public-brand-mark {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    overflow: hidden;
    border: 1px solid rgba(var(--nf-accent-rgb), 0.55);
    border-radius: 13px;
    background: rgba(var(--nf-accent-rgb), 0.1);
    transform: rotate(-5deg);
}

.public-brand-mark::before,
.public-brand-mark::after,
.public-brand-mark i {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.public-brand-mark::before {
    width: 27px;
    height: 27px;
    top: 6px;
    left: 6px;
    border: 5px solid var(--nf-accent);
}

.public-brand-mark::after {
    width: 26px;
    height: 26px;
    top: 0;
    left: -1px;
    background: #101015;
}

.public-brand-mark i {
    width: 4px;
    height: 4px;
    top: 6px;
    right: 6px;
    background: var(--nf-signal);
    box-shadow: 0 0 10px var(--nf-signal);
}

.brand-text {
    gap: 2px;
}

.brand-title {
    color: var(--nf-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.brand-sub {
    color: var(--nf-faint);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-links {
    margin-left: auto;
    gap: 3px;
}

.nav-link {
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    color: var(--nf-muted);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.76rem;
    font-weight: 700;
    transition: 160ms ease;
}

.nav-link > span {
    color: var(--nf-faint);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.55rem;
}

.nav-link:hover {
    color: var(--nf-text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--nf-text);
    border: 0;
    background: rgba(var(--nf-accent-rgb), 0.12);
}

.nav-link.active > span {
    color: var(--nf-signal);
}

.status-link::after {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #78e6b1;
    box-shadow: 0 0 9px rgba(120, 230, 177, 0.7);
}

.nav-actions {
    gap: 8px;
}

.nav-search {
    min-width: 74px;
    min-height: 38px;
    padding: 6px 8px;
    border: 1px solid var(--nf-line);
    border-radius: 10px;
    color: var(--nf-muted);
    background: rgba(255, 255, 255, 0.025);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
}

.nav-search:hover {
    color: var(--nf-text);
    border-color: rgba(var(--nf-accent-rgb), 0.45);
}

.nav-search > span {
    color: var(--nf-accent);
    font-size: 1.1rem;
}

.nav-search kbd {
    color: var(--nf-faint);
    font-size: 0.58rem;
}

.nav-ghost {
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid var(--nf-line);
    border-radius: 10px;
    color: var(--nf-muted);
    background: transparent;
    font-size: 0.7rem;
    font-weight: 800;
}

.nav-ghost:hover {
    color: var(--nf-text);
    border-color: var(--nf-line-strong);
    background: rgba(255, 255, 255, 0.045);
}

.user-cluster {
    border-color: var(--nf-line);
    border-radius: 10px;
    background: var(--nf-panel);
}

.user-name {
    color: var(--nf-text);
}

.user-role {
    color: var(--nf-faint);
}

.hero-grid {
    min-height: min(790px, calc(100vh - 76px));
    padding: clamp(70px, 9vw, 136px) 0 70px;
    gap: clamp(38px, 6vw, 90px);
    align-items: center;
}

.hero-grid-wide {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
}

.hero-grid-centered {
    max-width: 980px;
    margin-inline: auto;
    text-align: center;
}

.hero-copy {
    max-width: 750px;
}

.kicker,
.section-kicker,
.card-eyebrow {
    color: var(--nf-accent-soft);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.kicker::before,
.section-kicker::before,
.card-eyebrow::before {
    content: "";
    width: 16px;
    height: 2px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
    background: var(--nf-signal);
}

.hero-title {
    max-width: 900px;
    margin-top: 18px;
    color: var(--nf-text);
    font-size: clamp(3.3rem, 7.1vw, 7.7rem);
    line-height: 0.91;
    letter-spacing: -0.075em;
    text-wrap: balance;
}

.hero-text {
    max-width: 680px;
    margin-top: 25px;
    color: var(--nf-muted);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.8;
}

.hero-actions {
    margin-top: 30px;
    gap: 10px;
}

.button {
    min-height: 46px;
    padding: 11px 17px;
    border: 1px solid var(--nf-accent);
    border-radius: 11px;
    color: #0c0b10;
    background: var(--nf-accent);
    box-shadow: none;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.button:hover {
    color: #0c0b10;
    border-color: var(--nf-accent-soft);
    background: var(--nf-accent-soft);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(var(--nf-accent-rgb), 0.16);
}

.button-secondary {
    color: var(--nf-text);
    border-color: var(--nf-line-strong);
    background: transparent;
}

.button-secondary:hover {
    color: var(--nf-text);
    border-color: rgba(var(--nf-accent-rgb), 0.55);
    background: rgba(var(--nf-accent-rgb), 0.09);
}

.button-warm {
    color: #151007;
    border-color: var(--nf-signal);
    background: var(--nf-signal);
}

.button-warm:hover {
    color: #151007;
    border-color: #e6ff9d;
    background: #e6ff9d;
}

.showcase-stack {
    gap: 14px;
}

.glass-card,
.deck-card,
.profile-panel,
.timeline-card,
.content-card,
.player-note,
.library-tools {
    border: 1px solid var(--nf-line);
    border-radius: var(--nf-radius);
    color: var(--nf-text);
    background: var(--nf-panel);
    box-shadow: none;
}

.glass-card::before,
.deck-card::before,
.profile-panel::before,
.content-card::before {
    display: none;
}

.glass-card:hover,
.deck-card:hover,
.content-card:hover,
.profile-panel:hover,
.timeline-card:hover {
    border-color: var(--nf-line-strong);
    box-shadow: 0 20px 65px rgba(0, 0, 0, 0.24);
}

.tilt-card {
    transform: none;
}

.tilt-card:hover {
    transform: translateY(-3px);
}

.showcase-panel {
    padding: 10px;
    border-radius: 24px;
    background: #121217;
}

.hero-preview {
    min-height: 530px;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #08080b;
}

.hero-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 55%, rgba(8, 8, 12, 0.82)),
        linear-gradient(90deg, rgba(8, 8, 12, 0.26), transparent 40%);
    pointer-events: none;
}

.hero-preview img,
.hero-preview video {
    filter: saturate(0.9) contrast(1.06);
}

.preview-overlay {
    background: none;
}

.preview-hud {
    z-index: 2;
    top: 18px;
    left: 18px;
    right: 18px;
}

.hud-chip,
.pill {
    border: 1px solid var(--nf-line);
    border-radius: 8px;
    color: var(--nf-muted);
    background: rgba(11, 11, 15, 0.75);
    backdrop-filter: blur(10px);
    font-size: 0.64rem;
    font-weight: 700;
}

.hud-chip.live,
.pill.live,
.pill-live {
    color: #e9ffc0;
    border-color: rgba(212, 255, 105, 0.28);
    background: rgba(212, 255, 105, 0.1);
}

.preview-play {
    z-index: 3;
    right: 18px;
    bottom: 18px;
}

.preview-meta {
    padding: 16px 8px 7px;
}

.signal-board {
    padding: 7px;
    border-radius: 17px;
    background: #101015;
}

.signal-grid {
    gap: 1px;
    overflow: hidden;
    border-radius: 11px;
    background: var(--nf-line);
}

.signal-card {
    padding: 17px;
    background: var(--nf-panel);
}

.signal-label {
    color: var(--nf-accent);
    font-size: 0.61rem;
    letter-spacing: 0.13em;
}

.signal-value {
    color: var(--nf-text);
    font-size: 0.92rem;
}

.signal-copy,
.card-copy,
.deck-copy,
.bio-copy,
.timeline-copy,
.creator-copy p,
.craft-card p,
.player-note {
    color: var(--nf-muted);
    line-height: 1.7;
}

.stat-grid {
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--nf-line);
    border-radius: 13px;
    background: var(--nf-line);
}

.stat-grid-wide {
    margin-top: 32px;
}

.stat-card {
    min-height: 90px;
    padding: 17px;
    border: 0;
    border-radius: 0;
    background: rgba(13, 13, 18, 0.95);
}

.stat-label {
    color: var(--nf-faint);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stat-value {
    color: var(--nf-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.15rem, 2.3vw, 1.75rem);
    letter-spacing: -0.04em;
}

.section {
    margin-top: clamp(88px, 11vw, 160px);
}

.page-builder-block + .page-builder-block .section {
    margin-top: clamp(76px, 9vw, 130px);
}

.page-shell > .nf-block:first-child .section {
    margin-top: clamp(54px, 6vw, 90px);
}

.section-head {
    margin-bottom: 32px;
    gap: 30px;
}

.section-title {
    max-width: 900px;
    margin-top: 10px;
    color: var(--nf-text);
    font-size: clamp(2.2rem, 4.6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.section-text {
    max-width: 580px;
    color: var(--nf-muted);
    font-size: 0.93rem;
    line-height: 1.75;
}

.cards-grid,
.news-grid,
.episode-grid,
.creator-grid,
.craft-grid,
.watch-modes,
.timeline-grid,
.studio-guide-grid,
.studio-sort-grid,
.studio-library-grid {
    gap: 16px;
}

.cards-grid--featured,
.episode-grid-rich {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-grid,
.creator-grid,
.craft-grid,
.watch-modes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card {
    overflow: hidden;
    background: var(--nf-surface);
}

.card-media {
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 0;
    background: #08080b;
}

.card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 14, 0.75));
    pointer-events: none;
}

.card-media img {
    filter: saturate(0.9);
    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), filter 300ms ease;
}

.content-card:hover .card-media img {
    filter: saturate(1.08);
    transform: scale(1.035);
}

.card-body {
    padding: 24px;
}

.card-title,
.deck-title,
.timeline-title,
.creator-copy h3,
.craft-card h3 {
    color: var(--nf-text);
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.035em;
}

.card-title {
    margin-top: 11px;
    font-size: clamp(1.45rem, 2.6vw, 2.25rem);
}

.card-meta {
    padding-top: 14px;
    border-top: 1px solid var(--nf-line);
    color: var(--nf-faint);
    font-size: 0.65rem;
}

.card-actions {
    margin-top: 20px;
}

.studio-callout {
    padding: clamp(26px, 4vw, 44px);
    background:
        radial-gradient(circle at 90% 10%, rgba(var(--nf-accent-rgb), 0.18), transparent 35%),
        var(--nf-panel);
}

.builder-cta-card {
    padding: clamp(34px, 7vw, 90px);
    border-radius: 24px;
    background:
        radial-gradient(circle at 85% 15%, rgba(var(--nf-accent-rgb), 0.22), transparent 34%),
        linear-gradient(145deg, #17171e, #101015);
}

.builder-cta-gradient {
    border: 1px solid rgba(var(--nf-accent-rgb), 0.3);
    background:
        radial-gradient(circle at 85% 15%, rgba(var(--nf-accent-rgb), 0.24), transparent 38%),
        var(--nf-panel);
}

.library-tools {
    padding: 12px;
    border-radius: 14px;
    background: var(--nf-surface);
}

.library-search input,
.field input,
.field select,
.field textarea,
.studio-form-card input,
.studio-form-card select,
.studio-form-card textarea {
    min-height: 46px;
    border: 1px solid var(--nf-line);
    border-radius: 10px;
    color: var(--nf-text);
    background: #0c0c11;
    box-shadow: none;
}

.library-search input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.studio-form-card input:focus,
.studio-form-card select:focus,
.studio-form-card textarea:focus {
    border-color: var(--nf-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--nf-accent-rgb), 0.1);
}

.filter-chip {
    min-height: 37px;
    border: 1px solid var(--nf-line);
    border-radius: 9px;
    color: var(--nf-muted);
    background: transparent;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: var(--nf-text);
    border-color: rgba(var(--nf-accent-rgb), 0.42);
    background: rgba(var(--nf-accent-rgb), 0.11);
}

.library-count {
    color: var(--nf-faint);
}

.episode-hero {
    min-height: auto;
    padding-bottom: 30px;
}

.episode-grid-rich .episode-card.is-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
}

.episode-grid-rich .episode-card.is-featured .card-media {
    min-height: 100%;
}

.deck-side {
    gap: 14px;
}

.deck-card {
    padding: clamp(24px, 3vw, 34px);
}

.playlist-stack {
    gap: 6px;
}

.playlist-item {
    padding: 13px;
    border: 1px solid var(--nf-line);
    border-radius: 10px;
    color: var(--nf-muted);
    background: #0d0d12;
}

.playlist-item:hover,
.playlist-item.is-active {
    color: var(--nf-text);
    border-color: rgba(var(--nf-accent-rgb), 0.42);
    background: rgba(var(--nf-accent-rgb), 0.1);
}

.player-note {
    border-color: rgba(212, 255, 105, 0.2);
    background: rgba(212, 255, 105, 0.055);
}

.creator-switcher {
    padding: 7px;
    border: 1px solid var(--nf-line);
    border-radius: 15px;
    background: var(--nf-surface);
}

.creator-switch-button {
    min-height: 64px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--nf-muted);
}

.creator-switch-button:hover,
.creator-switch-button.is-active {
    border-color: rgba(var(--nf-accent-rgb), 0.34);
    color: var(--nf-text);
    background: rgba(var(--nf-accent-rgb), 0.1);
}

.creator-switch-thumb {
    border-radius: 9px;
}

.profile-grid {
    gap: 16px;
}

.profile-panel {
    overflow: hidden;
    background: var(--nf-surface);
}

.profile-media {
    border-radius: 0;
}

.bio-panel {
    padding: clamp(30px, 5vw, 65px);
}

.profile-title {
    color: var(--nf-text);
    font-size: clamp(2.7rem, 5.5vw, 6rem);
    line-height: 0.94;
    letter-spacing: -0.07em;
}

.profile-subtitle {
    color: var(--nf-accent-soft);
}

.creator-card,
.craft-card,
.timeline-card,
.watch-mode-card {
    padding: 22px;
    background: var(--nf-panel);
}

.creator-avatar {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
}

.social-chip {
    border: 1px solid var(--nf-line);
    border-radius: 9px;
    color: var(--nf-muted);
    background: #0d0d12;
}

.social-chip:hover {
    color: var(--nf-text);
    border-color: rgba(var(--nf-accent-rgb), 0.45);
    background: rgba(var(--nf-accent-rgb), 0.09);
}

.auth-grid {
    min-height: calc(100vh - 210px);
    gap: 16px;
    align-items: center;
}

.auth-copy,
.auth-panel {
    padding: clamp(30px, 5vw, 58px);
}

.auth-panel {
    background: var(--nf-panel);
}

.auth-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.field > span {
    color: var(--nf-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.studio-form-card,
.studio-guide-card,
.studio-sort-card,
.studio-list {
    border-color: var(--nf-line);
    background: var(--nf-panel);
}

.studio-form-card {
    padding: clamp(24px, 4vw, 42px);
}

.studio-list-row,
.studio-sort-item {
    border-color: var(--nf-line);
    border-radius: 11px;
    background: #0d0d12;
}

.cinema-modal {
    background: rgba(4, 4, 7, 0.88);
    backdrop-filter: blur(18px);
}

.cinema-card {
    width: min(1500px, calc(100% - 28px));
    max-height: none;
    overflow: visible;
    margin: 0;
    border: 1px solid var(--nf-line-strong);
    border-radius: 22px;
    background: #0d0d12;
    box-shadow: 0 40px 130px rgba(0, 0, 0, 0.7);
}

.cinema-topbar {
    position: sticky;
    top: -1px;
    z-index: 25;
    margin: 0 0 14px;
    padding: 11px 12px;
    border-bottom: 1px solid var(--nf-line);
    border-radius: 12px;
    background: #111116;
}

.modal-close,
.player-button {
    border: 1px solid var(--nf-line);
    border-radius: 9px;
    color: var(--nf-muted);
    background: var(--nf-panel);
}

.modal-close:hover,
.player-button:hover {
    color: var(--nf-text);
    border-color: var(--nf-line-strong);
    background: var(--nf-panel-2);
}

.player-button-primary {
    color: #0b0a0f;
    border-color: var(--nf-accent);
    background: var(--nf-accent);
}

.player-button-primary:hover {
    color: #0b0a0f;
    background: var(--nf-accent-soft);
}

.cinema-frame,
.player-surface,
.filmstrip,
.cinema-aside,
.player-controls {
    border-color: var(--nf-line);
    background: #09090d;
}

.timeline-range,
.volume-range {
    accent-color: var(--nf-accent);
}

.footer {
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--nf-line);
    color: var(--nf-faint);
    background: #0b0b0f;
}

.footer-inner {
    width: var(--nf-shell);
    min-height: 190px;
    margin: 0 auto;
    padding: 38px 0;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: start;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand > div {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    color: var(--nf-text);
    font-family: "Space Grotesk", sans-serif;
}

.footer-brand span:not(.public-brand-mark) {
    color: var(--nf-faint);
    font-size: 0.65rem;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: var(--nf-muted);
    font-size: 0.73rem;
}

.footer-links a:hover {
    color: var(--nf-text);
}

.footer-display {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--nf-line);
    border-radius: 10px;
    color: var(--nf-muted);
    background: transparent;
}

.footer-display:hover {
    color: var(--nf-text);
    border-color: rgba(var(--nf-accent-rgb), 0.45);
}

.footer-display span {
    color: var(--nf-accent);
}

.footer-inner > p {
    grid-column: 1 / -1;
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--nf-line);
    font-size: 0.66rem;
}

.public-scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: 2px;
    background: linear-gradient(90deg, var(--nf-accent), var(--nf-signal));
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 45;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--nf-line-strong);
    border-radius: 12px;
    color: var(--nf-text);
    background: rgba(20, 20, 26, 0.9);
    box-shadow: var(--nf-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 180ms ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.public-command-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(3, 3, 6, 0.72);
    backdrop-filter: blur(10px);
}

.public-command {
    position: fixed;
    z-index: 120;
    top: 12vh;
    left: 50%;
    width: min(630px, calc(100% - 32px));
    max-height: 76vh;
    overflow: hidden;
    border: 1px solid var(--nf-line-strong);
    border-radius: 20px;
    background: #121218;
    box-shadow: 0 38px 120px rgba(0, 0, 0, 0.65);
    transform: translateX(-50%);
}

.public-command-head,
.public-customizer-head {
    padding: 21px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.public-command-head h2,
.public-customizer-head h2 {
    margin: 5px 0 0;
    color: var(--nf-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
}

.public-icon-button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--nf-line);
    border-radius: 10px;
    color: var(--nf-muted);
    background: var(--nf-panel);
    display: grid;
    place-items: center;
}

.public-command-search {
    position: relative;
    margin: 0 20px 14px;
    display: flex;
    align-items: center;
}

.public-command-search > span {
    position: absolute;
    left: 14px;
    z-index: 1;
    color: var(--nf-accent);
    font-size: 1.25rem;
}

.public-command-search input {
    width: 100%;
    min-height: 54px;
    padding: 12px 14px 12px 43px;
    border: 1px solid var(--nf-line);
    border-radius: 11px;
    color: var(--nf-text);
    background: #0d0d12;
}

.public-command-results {
    max-height: 410px;
    padding: 0 10px;
    overflow-y: auto;
}

.public-command-results a {
    min-height: 63px;
    padding: 10px 12px;
    border-radius: 11px;
    color: var(--nf-muted);
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 8px;
}

.public-command-results a > span {
    color: var(--nf-faint);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.68rem;
}

.public-command-results strong {
    color: var(--nf-text);
    font-size: 0.86rem;
}

.public-command-results small {
    color: var(--nf-faint);
    font-size: 0.7rem;
}

.public-command-results a:hover,
.public-command-results a.is-selected {
    background: rgba(var(--nf-accent-rgb), 0.12);
}

.public-command-results a.is-selected > span {
    color: var(--nf-signal);
}

.public-command-hint {
    margin: 13px 20px 19px;
    color: var(--nf-faint);
    font-size: 0.67rem;
    text-align: right;
}

.public-command-hint kbd {
    margin-left: 4px;
    padding: 2px 5px;
    border: 1px solid var(--nf-line);
    border-radius: 5px;
}

.public-customizer {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 105;
    width: min(330px, calc(100% - 36px));
    padding: 0 18px 20px;
    border: 1px solid var(--nf-line-strong);
    border-radius: 18px;
    background: #15151b;
    box-shadow: var(--nf-shadow);
}

.public-customizer-head {
    padding: 18px 0 9px;
}

.public-customizer > p {
    color: var(--nf-muted);
    font-size: 0.76rem;
}

.public-swatch-row {
    margin-top: 18px;
    display: flex;
    gap: 11px;
}

.public-swatch {
    width: 31px;
    height: 31px;
    padding: 0;
    border: 3px solid #15151b;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--nf-line-strong);
}

.public-swatch.is-active {
    box-shadow: 0 0 0 2px var(--nf-text);
}

.public-swatch-violet {
    background: #9f8cff;
}

.public-swatch-cyan {
    background: #58d9ff;
}

.public-swatch-ember {
    background: #ff8a5b;
}

.public-overlay-open {
    overflow: hidden;
}

.flash-stack {
    width: var(--nf-shell);
    margin: 16px auto 0;
}

.flash {
    border: 1px solid var(--nf-line);
    border-radius: 11px;
    color: var(--nf-text);
    background: var(--nf-panel);
    box-shadow: var(--nf-shadow);
}

@media (max-width: 1120px) {
    .hero-grid-wide {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: auto;
    }

    .showcase-stack {
        width: 100%;
        max-width: 850px;
    }

    .hero-preview {
        min-height: min(66vw, 560px);
    }

    .nav-links {
        display: none;
    }

    .cards-grid--featured,
    .episode-grid-rich {
        grid-template-columns: 1fr;
    }

    .episode-grid-rich .episode-card.is-featured {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .episode-grid-rich .episode-card.is-featured .card-media {
        min-height: auto;
    }
}

@media (max-width: 820px) {
    :root {
        --nf-shell: min(100% - 28px, 1440px);
    }

    .nav-inner {
        min-height: 68px;
    }

    .brand-sub,
    .nav-search,
    .nav-actions > .user-cluster,
    .nav-actions > .logout-form {
        display: none;
    }

    .mobile-toggle {
        width: 40px;
        height: 40px;
        border: 1px solid var(--nf-line);
        border-radius: 10px;
        background: var(--nf-panel);
    }

    .mobile-menu {
        border-top: 1px solid var(--nf-line);
        background: rgba(11, 11, 15, 0.98);
    }

    .mobile-link {
        min-height: 48px;
        padding: 12px 16px;
        border-radius: 9px;
        color: var(--nf-muted);
    }

    .mobile-link:hover,
    .mobile-link.active {
        color: var(--nf-text);
        background: rgba(var(--nf-accent-rgb), 0.11);
    }

    .hero-grid {
        padding-top: 70px;
    }

    .hero-title {
        font-size: clamp(3.2rem, 14vw, 5.7rem);
    }

    .news-grid,
    .creator-grid,
    .craft-grid,
    .watch-modes,
    .studio-guide-grid,
    .studio-sort-grid,
    .studio-library-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .footer-display {
        width: fit-content;
    }

    .footer-inner > p {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    :root {
        --nf-shell: min(100% - 22px, 1440px);
    }

    .brand-title {
        font-size: 0.9rem;
    }

    .public-brand-mark {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .hero-grid {
        padding: 54px 0 32px;
    }

    .hero-title {
        font-size: clamp(3rem, 16vw, 4.8rem);
    }

    .hero-text {
        font-size: 0.96rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
        flex: 0 0 auto;
    }

    .hero-preview {
        min-height: 76vw;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .section {
        margin-top: 82px;
    }

    .section-title {
        font-size: clamp(2.15rem, 11vw, 3.4rem);
    }

    .card-body,
    .creator-card,
    .craft-card,
    .timeline-card,
    .watch-mode-card {
        padding: 19px;
    }

    .library-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .library-filter-row {
        width: 100%;
    }

    .filter-chip {
        flex: 1;
    }

    .public-command {
        top: 4vh;
        max-height: 92vh;
    }

    .public-command-results a {
        grid-template-columns: 28px 1fr;
    }

    .public-command-results small,
    .public-command-hint {
        display: none;
    }

    .cinema-card {
        width: calc(100% - 12px);
        max-height: none;
        border-radius: 15px;
    }

    .cinema-topbar {
        align-items: center;
        flex-direction: row;
        gap: 10px;
    }

    .cinema-topbar-actions {
        width: auto;
        margin-left: auto;
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        flex: 0 0 auto;
    }

    .cinema-topbar-copy {
        flex: 1 1 auto;
    }

    .cinema-topbar-actions .button,
    .cinema-topbar-actions .modal-close {
        width: auto;
        min-height: 38px;
        padding: 8px 11px;
    }

    .player-surface {
        aspect-ratio: auto;
        overflow: visible;
        border-radius: 14px;
        display: grid;
        gap: 8px;
        background: transparent;
    }

    .modal-video,
    .modal-embed {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 12px;
        background: #000;
    }

    .player-controls {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        margin: 0;
        padding: 12px;
        border-radius: 13px;
        transform: none;
    }

    .control-cluster-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .control-cluster-right {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .control-cluster-right .volume-shell {
        grid-column: 1 / -1;
    }

    .back-to-top {
        right: 12px;
        bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
