:root {
    color-scheme: light;
    --st-ink: #0f1419;
    --st-ink-soft: #1c2430;
    --st-slate: #3d4a5c;
    --st-muted: #5c6b7e;
    --st-line: #d8dee8;
    --st-surface: #ffffff;
    --st-bg: #f3f5f8;
    --st-lime: #f54253;
    --st-lime-deep: #c92f3e;
    --st-accent: #f54253;
    --st-danger: #c0392b;
    --st-warn: #b7791f;
    --st-radius: 14px;
    --st-radius-sm: 10px;
    --st-shadow: 0 18px 50px rgba(15, 20, 25, 0.12);
    --st-font: "Manrope", system-ui, sans-serif;
    --st-display: "DM Sans", "Manrope", system-ui, sans-serif;
    --st-header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--st-font);
    color: var(--st-ink);
    background: var(--st-bg);
    line-height: 1.5;
    min-height: 100vh;
}

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

a { color: var(--st-lime-deep); text-decoration: none; }
a:hover { text-decoration: none; }

button, input, select {
    font: inherit;
    color: inherit;
}

.st-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.st-hidden { display: none !important; }

/* ---------- Header ---------- */
.st-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(243, 245, 248, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--st-line);
}

.st-page-landing .st-header {
    background: rgba(15, 20, 25, 0.72);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.st-page-landing .st-logo__text,
.st-page-landing .st-nav__link,
.st-page-landing .st-header__hint { color: #f5f7fa; }

.st-page-landing .st-nav__link:hover { color: var(--st-lime); }

.st-header__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: var(--st-header-h);
    display: flex;
    align-items: center;
    gap: 20px;
}

.st-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.st-logo__text {
    font-family: var(--st-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--st-ink);
}

.st-nav {
    display: flex;
    gap: 18px;
    margin-left: 12px;
}

.st-nav__link {
    color: var(--st-slate);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.st-nav__link:hover { color: var(--st-ink); text-decoration: none; }

.st-header__aside {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.st-header__account {
    flex: 0 0 auto;
    margin-left: 8px;
}

.st-header__logout { margin: 0; }

.st-header__account-btn {
    background: none;
    border: 0;
    padding: 0;
    min-height: 0;
    font: inherit;
}

.st-page-landing .st-header__account-btn { color: #f5f7fa; }
.st-page-landing .st-header__account .st-nav__link { color: #f5f7fa; }
.st-page-landing .st-header__account .st-nav__link:hover { color: var(--st-lime); }

.st-header__hint {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--st-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .st-header__aside { display: none; }
    .st-header__account { margin-left: auto; }
}

@media (min-width: 821px) and (max-width: 960px) {
    .st-header__inner { gap: 12px; }
    .st-nav { gap: 10px; margin-left: 4px; }
    .st-nav__link { font-size: .86rem; }
}

.st-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--st-line);
    border-radius: 10px;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.st-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.st-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 20px 16px;
    border-top: 1px solid var(--st-line);
}

.st-mobile-nav a {
    font-weight: 600;
    color: inherit;
    padding: 8px 0;
}

/* ---------- Search ---------- */
.st-search-wrap { position: relative; width: 100%; }

.st-search-wrap--header { width: min(260px, 32vw); }

.st-search-icon {
    position: absolute;
    z-index: 1;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: var(--st-muted);
    pointer-events: none;
}
.st-search-icon svg { display: block; width: 100%; height: 100%; }
.st-search-wrap--icon .st-search-input { padding-left: 42px; }

.st-search-input {
    width: 100%;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid var(--st-line);
    border-radius: 999px;
    background: var(--st-surface);
    outline: none;
}

.st-search-input:focus {
    border-color: var(--st-ink);
    box-shadow: 0 0 0 3px rgba(245, 66, 83, 0.35);
}

.st-search-input--lg {
    min-height: 52px;
    border-radius: var(--st-radius);
    font-size: 1.05rem;
}

.st-page-landing .st-search-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.st-page-landing .st-search-input::placeholder { color: rgba(255, 255, 255, 0.55); }

.st-ac {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 40;
    max-height: 360px;
    overflow: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--st-surface);
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius-sm);
    box-shadow: var(--st-shadow);
    color: var(--st-ink);
}

.st-ac[hidden] { display: none; }

.st-ac-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    border: 0;
    width: 100%;
    background: transparent;
    text-align: left;
}

.st-ac-item:hover,
.st-ac-item[aria-selected="true"],
.st-ac li[aria-selected="true"] .st-ac-item { background: rgb(188 188 188 / 22%); }

.st-ac-item img,
.st-ac-ph {
    width: 40px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--st-bg);
}

.st-ac-title { display: block; font-weight: 600; }
.st-ac-meta { display: block; color: var(--st-muted); font-size: 12px; margin-top: 2px; }
.st-ac-status { padding: 14px; color: var(--st-muted); font-size: 13px; text-align: center; }

/* ---------- Buttons / chips ---------- */
.st-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.st-btn:hover { text-decoration: none; transform: translateY(-1px); }

.st-btn:disabled {
    cursor: default;
    opacity: 0.65;
    transform: none;
}

.st-btn--primary {
    background: var(--st-ink);
    color: #fff;
}

.st-btn--primary:hover { background: var(--st-ink-soft); }

.st-btn--lime {
    background: var(--st-lime);
    color: #fff;
}

.st-btn--lime:hover { background: #ff6977; }

.st-btn--ghost,
.st-btn--ghost-light {
    background: transparent;
    border-color: var(--st-line);
    color: var(--st-ink);
}

.st-btn--ghost-light {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.st-btn--sm { min-height: 36px; padding: 6px 12px; font-size: 0.875rem; }

.st-chip-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--st-line);
    background: var(--st-surface);
    color: var(--st-ink);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.st-chip-link:hover,
.st-chip-link.is-active {
    border-color: var(--st-ink);
    background: var(--st-lime);
    color: #fff;
    text-decoration: none;
}

.st-window-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.st-page-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 4px;
    border: 1px solid var(--st-line);
    border-radius: 12px;
    background: var(--st-surface);
}

.st-page-tab {
    position: relative;
    padding: 9px 16px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--st-muted);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.st-page-tab:hover,
.st-page-tab:focus-visible {
    background: rgba(15, 20, 25, 0.05);
    color: var(--st-ink);
}

.st-page-tab.is-active {
    background: var(--st-ink);
    color: var(--st-surface);
    box-shadow: 0 1px 3px rgba(15, 20, 25, 0.18);
}

.st-tonight-custom {
    max-width: 220px;
    margin-top: 12px;
}

/* ---------- Landing ---------- */
.st-hero {
    position: relative;
    min-height: calc(100vh - var(--st-header-h));
    display: flex;
    align-items: flex-end;
    padding: 48px 20px 72px;
    background:
        radial-gradient(1200px 600px at 80% 10%, rgb(188 188 188 / 18%), transparent 55%),
        linear-gradient(160deg, #0f1419 0%, #1a2433 45%, #101820 100%);
    color: #f7f8fa;
    overflow: hidden;
}

.st-hero__veil {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.015) 40px,
            rgba(255, 255, 255, 0.015) 41px
        );
    pointer-events: none;
}

.st-hero__content {
    position: relative;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    animation: st-rise 0.8s ease both;
}

.st-hero__brand {
    font-family: var(--st-display);
    font-weight: 800;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin: 0 0 20px;
    color: var(--st-lime);
}

.st-hero__headline {
    margin: 0 0 14px;
    max-width: 16ch;
    font-family: var(--st-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.st-hero__lead {
    margin: 0 0 28px;
    max-width: 42ch;
    color: rgba(247, 248, 250, 0.78);
    font-size: 1.1rem;
}

.st-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.st-pitch {
    background: var(--st-surface);
    border-bottom: 1px solid var(--st-line);
}

.st-pitch__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 20px;
}

.st-pitch__text {
    max-width: 58ch;
    color: var(--st-slate);
    font-size: 1.1rem;
}

.st-pitch__stats { margin-top: 36px; }

.st-pitch__stat strong {
    display: block;
    font-family: var(--st-display);
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

.st-pitch__stat span {
    color: var(--st-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

@keyframes st-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- App shell ---------- */
.st-app {
    max-width: 960px;
    margin: 0 auto;
    padding: 36px 20px;
    display: grid;
    gap: 28px;
}

.st-app-hero__title {
    margin: 6px 0 8px;
    font-family: var(--st-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.st-app-hero__label {
    display: block;
    font-size: 0.85rem;
    font-family: var(--st-font);
    font-weight: 600;
    color: var(--st-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.st-app-hero__title strong {
    color: var(--st-ink);
}

.st-section-title {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--st-muted);
}

.st-section-title {
    font-size: 0.9rem;
    color: var(--st-ink);
    letter-spacing: 0.06em;
}

.st-next-code,
.st-field-label {
    display: block;
    margin: 0 0 8px;
    color: var(--st-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.st-section__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.st-next-watch .st-section__head {
    margin-bottom: 0;
}

.st-section__head .st-section-title { margin: 0; }

.st-muted { color: var(--st-muted); }

.st-panel {
    padding: 18px;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-surface);
}

.st-panel__title {
    margin: 0 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.st-workspace {
    display: grid;
    min-width: 0;
    gap: 18px;
}

.st-show-page { max-width: 1120px; }

.st-show-page > *,
.st-workspace > * {
    min-width: 0;
    max-width: 100%;
}

.st-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.st-field {
    display: grid;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--st-slate);
}

.st-field input,
.st-field select {
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--st-line);
    border-radius: 10px;
    background: #fff;
}

.st-field--inline {
    margin-top: 16px;
    max-width: 220px;
}

.st-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

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

.st-metric {
    text-align: center;
    padding: 16px 10px;
    border-radius: var(--st-radius-sm);
    background: var(--st-surface);
    border: 1px solid var(--st-line);
}

.st-metric--accent {
    background: rgb(188 188 188 / 20%);
    border-color: rgba(201, 47, 62, 0.45);
}

.st-metric strong {
    display: block;
    font-family: var(--st-display);
    font-size: 1.45rem;
    line-height: 1.15;
}

.st-metric span {
    display: block;
    margin-top: 4px;
    color: var(--st-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.st-runtime-insights {
    max-width: 760px;
    margin: 20px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--st-line);
    text-align: left;
}

.st-runtime-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.st-show-about .st-runtime-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.st-runtime-facts div {
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--st-bg);
}

.st-runtime-facts dt {
    color: var(--st-muted);
    font-size: .78rem;
    font-weight: 700;
}

.st-runtime-facts dd {
    margin: 4px 0 0;
    color: var(--st-ink);
    font: 800 1.05rem/1.25 var(--st-display);
}

.st-runtime-pace {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px 12px;
    align-items: center;
    margin-top: 14px;
}

.st-runtime-pace label { color: var(--st-slate); font-weight: 800; }
.st-runtime-pace input {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--st-line);
    border-radius: 10px;
    background: #fff;
    color: var(--st-ink);
    font: inherit;
    font-weight: 800;
}
.st-runtime-pace p {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    color: var(--st-ink);
    font-weight: 700;
    line-height: 1.5;
}

.st-trailer { overflow: hidden; }
.st-trailer-preview {
    position: relative;
    display: block;
    width: min(100%, 840px);
    aspect-ratio: 16 / 9;
    margin-top: 16px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: #0f1419;
    cursor: pointer;
}
.st-trailer-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .55));
}
.st-trailer-preview img { width: 100%; height: 100%; object-fit: cover; }
.st-trailer-play {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 18px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(15, 20, 25, .9);
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}
.st-trailer-player { width: min(100%, 840px); aspect-ratio: 16 / 9; margin-top: 16px; }
.st-trailer-player iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; }
.st-trailer-meta { margin: 10px 0 0; color: var(--st-muted); font-size: .84rem; }
.st-trailer-fallback { margin-top: 14px; }
.st-trailer-fallback p { margin: 0 0 12px; color: var(--st-muted); }

.st-progress { margin-top: 12px; }
.st-show-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 4px;
}
.st-show-controls > .st-field { min-width: 0; }
.st-show-controls .st-field select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}
.st-metric .st-metric__label-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    margin-top: 4px;
}
.st-metric .st-metric__label-row #stTotalLabel {
    display: block;
    color: var(--st-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.st-finish-plan__body { margin-top: 16px; }
.st-finish-plan__pace {
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    width: fit-content;
}
.st-finish-plan__pace input { width: 110px; }
.st-estimate-dialog {
    width: min(32rem, calc(100% - 2rem));
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--st-line);
    border-radius: 16px;
    background: var(--st-surface);
    color: var(--st-ink);
}
.st-estimate-dialog::backdrop {
    background: rgba(15, 20, 25, 0.45);
}
.st-estimate-dialog__form {
    display: grid;
    gap: 12px;
}
.st-estimate-dialog h2 {
    margin: 0;
    font-family: var(--st-display);
    font-size: 1.2rem;
}
.st-estimate-dialog .st-estimate-breakdown { margin-top: 0; }
button.st-badge {
    appearance: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}
/* Same shape/metrics as #stPublicEstimateDetails (.st-btn--ghost.st-btn--sm),
   but carries its own fill so Active/Paused stays readable at a glance. */
.st-status-btn {
    border-color: transparent;
    background: var(--st-lime);
    color: #fff;
}
.st-status-btn:hover:not(:disabled) { background: #ff6977; }
.st-status-btn.is-paused { background: #efe4d4; color: var(--st-ink); }
.st-next-runtime {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.st-dashboard-progress { max-width: 440px; margin: 14px 0 12px; }
.st-progress__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--st-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.st-progress__track {
    height: 10px;
    border-radius: 999px;
    background: #e4e9f0;
    overflow: hidden;
}

.st-progress__fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--st-ink);
    transition: width 0.25s ease;
}

.st-real-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.st-real-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--st-muted);
}
.st-real-list li strong { color: var(--st-ink); }
.st-real-list li.is-accent strong { color: var(--st-lime-deep); }

.st-stepper { display: flex; align-items: center; gap: 8px; }
.st-stepper button {
    min-height: 36px;
    width: 36px;
    border-radius: 10px;
    border: 1px solid var(--st-line);
    background: #fff;
    cursor: pointer;
}
.st-stepper input { text-align: center; max-width: 90px; min-height: 36px; border-radius: 10px; border: 1px solid var(--st-line); }

.st-scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st-scenario {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--st-line);
    background: var(--st-bg);
    text-align: center;
}
.st-scenario strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.st-scenario span { color: var(--st-muted); font-size: 0.8rem; }

.st-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--st-slate);
    cursor: pointer;
}

.st-inline-checks { display: flex; flex-wrap: wrap; gap: 14px; }
.st-inline-checks label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--st-slate);
    cursor: pointer;
}

.st-ep-tools { display: grid; grid-template-columns: 1fr 160px; gap: 12px; margin-bottom: 12px; }
.st-ep-list {
    width: 100%;
    max-width: 100%;
    max-height: 420px;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.st-ep-rows { display: grid; gap: 6px; }

.st-ep-more {
    position: sticky;
    left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    width: min-content;
    min-width: 100%;
    padding-top: 10px;
}

.st-ep-more__count { color: var(--st-muted); font-size: 12px; white-space: nowrap; }

.st-spinner {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid rgba(15, 20, 25, 0.18);
    border-top-color: var(--st-lime-deep);
    animation: st-spin 0.7s linear infinite;
}

.st-spinner[hidden] { display: none; }

@keyframes st-spin {
    to { transform: rotate(360deg); }
}
.st-ep-row {
    display: grid;
    min-width: 620px;
    grid-template-columns: auto 64px 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: var(--st-bg);
}
.st-ep-row.is-start {
    border-color: rgba(201, 47, 62, 0.55);
    background: rgb(188 188 188 / 18%);
}
.st-ep-row.is-watched { opacity: 0.72; }
.st-ep-code { color: var(--st-lime-deep); font-size: 12px; font-weight: 700; }
.st-ep-title { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-ep-runtime { color: var(--st-muted); font-size: 12px; white-space: nowrap; }
.st-ep-row button {
    min-height: 30px;
    padding: 4px 10px;
    font-size: 11px;
    background: transparent;
    border: 1px solid var(--st-line);
    border-radius: 8px;
    cursor: pointer;
}

.st-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.st-detail { color: var(--st-muted); font-size: 0.92rem; line-height: 1.6; }
.st-detail strong { color: var(--st-ink); }

.st-show-hero {
    position: relative;
    display: none;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: start;
    padding: 18px;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-surface);
}
.st-show-hero.is-visible { display: grid; }
.st-show-hero.has-no-poster { grid-template-columns: minmax(0, 1fr); }
.st-show-hero__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    background: var(--st-bg);
}
.st-show-hero__title {
    margin: 0 0 6px;
    font-family: var(--st-display);
    font-size: 1.8rem;
    letter-spacing: -0.02em;
}
.st-show-hero__body {
    min-width: 0;
}
.st-show-hero__library-status {
    position: absolute;
    top: 18px;
    right: 18px;
}
.st-show-hero__meta { margin: 0; color: var(--st-muted); font-size: 0.92rem; }
.st-show-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.st-chip {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgb(188 188 188 / 20%);
    border: 1px solid rgba(201, 47, 62, 0.35);
    color: var(--st-ink);
    font-size: 12px;
    font-weight: 700;
}
.st-show-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.st-watchlist-status {
    appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--st-muted);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.st-watchlist-status:disabled {
    cursor: default;
    text-decoration: none;
}
.st-auth-dialog .st-inline-actions { margin-top: 4px; }

.st-prompt,
.st-empty,
.st-error,
.st-warn {
    text-align: center;
    padding: 18px;
    border-radius: 10px;
    font-size: 0.95rem;
}
.st-prompt, .st-empty {
    color: var(--st-muted);
    border: 1px dashed var(--st-line);
    background: var(--st-surface);
}
.st-empty__title {
    margin: 0 0 8px;
    font-family: var(--st-display);
    font-size: 1.3rem;
    color: var(--st-ink);
}
.st-empty__text { margin: 0 0 16px; }
.st-empty::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    margin: 0 auto 12px;
    border-radius: 4px;
    background: var(--st-lime);
    box-shadow: 4px 4px 0 var(--st-ink);
}
.st-error {
    color: var(--st-danger);
    border: 1px solid rgba(192, 57, 43, 0.35);
    background: rgba(192, 57, 43, 0.06);
}

.st-cache-notice {
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  border: 1px solid rgba(130, 153, 168, .28);
  border-radius: 12px;
  color: var(--st-muted);
  background: rgba(130, 153, 168, .08);
  font-size: .9rem;
}

.st-runtime-source {
  margin-top: .75rem;
  color: var(--st-muted);
  font-size: .88rem;
}

.st-runtime-source p {
  margin: .55rem 0 0;
  max-width: 72ch;
}

.st-runtime-source details {
  max-width: 40rem;
  margin-top: .7rem;
  padding: .65rem .8rem;
  border: 1px solid var(--st-line);
  border-radius: 10px;
  background: var(--st-bg);
}

.st-runtime-source summary {
  cursor: pointer;
  color: var(--st-slate);
  font-weight: 800;
}

.st-runtime-source strong { color: var(--st-ink); }

.st-estimate-basis {
  color: var(--st-slate);
  line-height: 1.55;
}

.st-estimate-breakdown {
  display: grid;
  gap: .45rem;
  margin: .65rem 0 0;
}

.st-estimate-breakdown div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
}

.st-estimate-breakdown dt { color: var(--st-muted); }
.st-estimate-breakdown dd { margin: 0; color: var(--st-ink); font-weight: 800; text-align: right; }
.st-warn {
    color: var(--st-warn);
    border: 1px solid rgba(183, 121, 31, 0.3);
    background: rgba(183, 121, 31, 0.08);
    text-align: left;
}

.st-skeleton { display: none; gap: 10px; }
.st-skeleton.is-visible { display: grid; }
.st-skel {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e8edf3, #f7f9fb, #e8edf3);
    background-size: 200% 100%;
    animation: st-shimmer 1.2s ease infinite;
}
.st-skel--lg { height: 160px; }
.st-skel--sm { width: 60%; }
@keyframes st-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Dashboard lists */
.st-watchlist { display: grid; gap: 12px; }
.st-watchlist-row {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-surface);
    color: inherit;
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.st-watchlist-row.is-completed,
.st-watchlist-row.is-archived { background: #dfdfdf; }
.st-watchlist-row.is-caught-up { background: #e2f4e0; }
.st-watchlist-row.is-paused { background: #efe4d4; }
.st-watchlist-row__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}
.st-watchlist-row__heading .st-watchlist-row__title { margin: 0; }
.st-watchlist-row__badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e4d3b8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.st-watchlist-row:hover { border-color: var(--st-slate); box-shadow: var(--st-shadow); transform: translateY(-1px); text-decoration: none; }
.st-watchlist-row:focus-visible { outline: 3px solid var(--st-lime-deep); outline-offset: 3px; }
.st-watchlist-row__link { position: absolute; z-index: 1; inset: 0; border-radius: inherit; }
.st-watchlist-row__link:focus-visible { outline: 3px solid var(--st-lime-deep); outline-offset: 3px; }
.st-watchlist-row__poster {
    width: 56px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--st-bg);
}
.st-watchlist-row__title {
    margin: 0 0 4px;
    font-family: var(--st-display);
    font-size: 1.1rem;
}
.st-watchlist-row__meta,
.st-watchlist-row__time {
    margin: 0;
    color: var(--st-muted);
    font-size: 0.88rem;
}
.st-watchlist-row__time { font-weight: 700; color: var(--st-ink); margin-top: 4px; }
.st-watchlist-row__catch {
    margin: 4px 0 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--st-lime-deep);
}
.st-watchlist-row__actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; }

.st-ww-list,
.st-schedule-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.st-ww-list li,
.st-schedule-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius-sm);
    background: var(--st-surface);
    font-size: 0.95rem;
}

.st-forecast__head { margin-bottom: 12px; }

.st-forecast-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.st-forecast-tab {
    padding: 9px 16px;
    border: 1px solid var(--st-line);
    border-radius: 999px;
    background: var(--st-surface);
    color: var(--st-muted);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.st-forecast-tab:hover,
.st-forecast-tab:focus-visible {
    border-color: var(--st-ink);
    color: var(--st-ink);
}

.st-forecast-tab.is-active {
    border-color: var(--st-ink);
    background: var(--st-ink);
    color: var(--st-surface);
}

.st-forecast-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(110px, 1fr));
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.st-forecast-list { display: none; }

.st-forecast-list__day {
    padding: 14px;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius-sm);
    background: var(--st-surface);
}

.st-forecast-list__day.is-today { box-shadow: inset 0 0 0 2px var(--st-ink); }
.st-forecast-list__day h3 { margin: 0 0 9px; font: 800 .78rem/1.3 var(--st-display); text-transform: uppercase; letter-spacing: .05em; }
.st-forecast-list__day ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.st-forecast-list__day li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--st-line); }
.st-forecast-list__day li span { min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.st-forecast-list__day li strong { color: var(--st-muted); font-size: .76rem; white-space: nowrap; }

.st-forecast-day {
    min-height: 112px;
    padding: 9px;
    border-radius: var(--st-radius-sm);
    border: 1px solid var(--st-line);
    background: var(--st-surface);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.st-forecast-day.is-empty { border-color: transparent; background: transparent; }
.st-forecast-day.is-today { box-shadow: inset 0 0 0 2px var(--st-ink); }

.st-forecast-weekday {
    padding: 0 4px 4px;
    color: var(--st-muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.st-forecast-day.has-eps {
    border-color: rgba(201, 47, 62, 0.5);
    background: rgb(188 188 188 / 12%);
}

.st-forecast-day__number {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--st-muted);
}

.st-forecast-day__episodes {
    width: 100%;
    margin: 2px 0 0;
    padding: 0;
    display: grid;
    gap: 5px;
    list-style: none;
}

.st-forecast-day__episodes li {
    min-width: 0;
    padding-top: 5px;
    border-top: 1px solid rgba(201, 47, 62, 0.3);
    display: grid;
    gap: 1px;
}

.st-forecast-day__episodes span {
    overflow: hidden;
    color: var(--st-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.st-forecast-day__episodes strong {
    color: var(--st-ink);
    font-size: 0.7rem;
}

.st-ww-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
}

.st-ww-list__meta { color: var(--st-muted); font-size: 0.85rem; }

.st-window-chips--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}

.st-window-chips--scroll .st-chip-link {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-height: 44px;
}

.st-next-ep__main { margin: 0 0 6px; font-size: 1.05rem; }
.st-next-ep__meta { margin: 0; color: var(--st-muted); font-size: 0.92rem; }

.st-nav__link.is-active,
.st-mobile-nav a.is-active {
    color: var(--st-ink);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.st-page-landing .st-nav__link.is-active { color: var(--st-lime); }

.st-hero__search {
    max-width: 520px;
    margin-bottom: 20px;
}

.st-value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.st-value-card {
    padding: 20px;
    border-radius: var(--st-radius);
    border: 1px solid var(--st-line);
    background: var(--st-bg);
}

.st-value-card h2 {
    margin: 0 0 8px;
    font-family: var(--st-display);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.st-value-card p {
    margin: 0;
    color: var(--st-muted);
    font-size: 0.95rem;
}

.st-pitch__cta { margin-top: 36px; }

.st-advanced {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-surface);
    padding: 0;
}

.st-advanced > summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--st-slate);
    min-height: 48px;
    display: flex;
    align-items: center;
}

.st-advanced > summary::-webkit-details-marker { display: none; }

.st-advanced > summary::after {
    content: "+";
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--st-muted);
}

.st-advanced[open] > summary::after { content: "–"; }

.st-advanced__body {
    display: grid;
    min-width: 0;
    gap: 14px;
    padding: 0 14px 16px;
}

.st-advanced__body > *,
.st-advanced .st-panel {
    min-width: 0;
    max-width: 100%;
}

.st-panel--nested {
    box-shadow: none;
    background: var(--st-bg);
}

/* Nested panels that sit between siblings inside a parent panel, which has no gap. */
.st-panel--spaced { margin: 14px 0; }

.st-panel--primary {
    box-shadow: 0 1px 0 rgba(15, 20, 25, 0.03);
}

.st-release-episode,
.st-release-date,
.st-release-when,
.st-release-channel,
.st-release-note {
    margin: 0;
}

.st-release-when {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: var(--st-muted);
}

.st-release-date {
    margin-top: 6px;
    font-weight: 700;
}

.st-release-countdown {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgb(188 188 188 / 24%);
    color: var(--st-ink);
    font-size: 0.78rem;
    font-weight: 800;
}

.st-release-channel { margin-top: 10px; }
.st-release-note { margin-top: 4px; }
#stNextRelease { margin-bottom: 18px; }

.st-seo {
    margin-top: 28px;
}

.st-seo__wrap {
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-surface);
}

.st-seo__summary {
    margin: 0;
    padding: 16px 18px;
    font-family: var(--st-display);
    font-weight: 700;
    font-size: 1.05rem;
    min-height: 48px;
}

.st-seo__body {
    padding: 0 18px 20px;
    display: grid;
    gap: 20px;
    color: var(--st-slate);
    font-size: 0.95rem;
}

.st-seo__block h2,
.st-seo__block h3 {
    font-family: var(--st-display);
    color: var(--st-ink);
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.st-seo__block h2 { font-size: 1.2rem; }
.st-seo__block h3 { font-size: 1rem; margin-top: 12px; }
.st-seo__block p,
.st-seo__block li { line-height: 1.65; }
.st-seo__block ul,
.st-seo__block ol { padding-left: 1.2rem; }

.st-faq {
    margin-top: 24px;
    display: grid;
    gap: 8px;
}

.st-faq > .st-section-title { margin-bottom: 4px; }

.st-faq-item {
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius-sm);
    background: var(--st-surface);
    padding: 14px;
}

.st-faq-item h3 {
    margin: 0 0 8px;
    font-weight: 700;
    color: var(--st-ink);
}

.st-faq-item p {
    margin: 0;
    color: var(--st-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.st-search-wrap--mobile {
    margin-bottom: 8px;
}

.st-search-page .st-section {
    display: grid;
    gap: 22px;
}

.st-search-page .st-search-wrap,
.st-search-idle {
    max-width: 760px;
}

.st-search-idle {
    display: grid;
    gap: 14px;
}

.st-search-discovery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.st-search-discovery > section {
    padding: 16px;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-surface);
}

.st-search-discovery h2 {
    margin: 0 0 11px;
    font-family: var(--st-display);
    font-size: 0.95rem;
}

.st-search-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.st-search-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #e7ebf1;
    color: var(--st-slate);
    font-size: 0.82rem;
    font-weight: 700;
}

.st-search-links a:hover {
    background: var(--st-lime);
    color: #fff;
    text-decoration: none;
}

.st-search-hint {
    margin: 0;
    padding: 14px 16px;
    border-radius: var(--st-radius-sm);
    background: rgba(26, 92, 255, 0.07);
    color: var(--st-slate);
    font-size: 0.9rem;
}

.st-btn:focus-visible,
.st-icon-btn:focus-visible,
.st-ac-actions button:focus-visible,
.st-chip-link:focus-visible,
.st-search-links a:focus-visible,
.st-search-input:focus-visible,
.st-field input:focus-visible,
.st-field select:focus-visible,
.st-runtime-pace input:focus-visible,
.st-nav-toggle:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(245, 66, 83, 0.65);
    outline-offset: 2px;
}

.st-icon-btn { border: 0; background: transparent; font-size: 1.35rem; cursor: pointer; }
.st-time-equivalents { margin-top: 10px; color: var(--st-slate); font-size: .84rem; font-weight: 700; }
.st-runtime-scope { margin-top: 14px; }
@media (max-width: 820px) {
    .st-nav,
    .st-header__aside { display: none; }
    .st-header__account { margin-left: auto; }
    .st-nav-toggle { display: inline-flex; margin-left: auto; min-height: 44px; min-width: 44px; }
    .st-show-hero.is-visible { grid-template-columns: 1fr; }
    .st-search-discovery { grid-template-columns: 1fr; }
    .st-show-hero__poster { width: 100px; height: 145px; }
    .st-grid-2,
    .st-grid-4,
    .st-metrics,
    .st-scenarios,
    .st-ep-tools,
    .st-value-grid,
    .st-value-grid.article-grid,
    .st-show-controls {
        grid-template-columns: 1fr;
    }
    .st-runtime-facts,
    .st-runtime-pace { grid-template-columns: 1fr; }
    .st-runtime-pace p { grid-column: auto; }
    .st-forecast-days { display: none; }
    .st-forecast-list { display: grid; gap: 10px; }
    .st-hero { padding-bottom: 56px; align-items: flex-end; min-height: calc(100svh - var(--st-header-h)); }
    .st-hero__cta { flex-direction: column; align-items: stretch; }
    .st-hero__cta .st-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

[hidden] {
    display: none;
}

/* ---------- Product refresh ---------- */
.st-bottom-nav { display: none; }

.st-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 36px;
    border-top: 1px solid var(--st-line);
    display: grid;
    gap: 18px;
    color: var(--st-muted);
    font-size: .78rem;
}
.st-footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.st-footer__nav > div { display: grid; align-content: start; gap: 6px; }
.st-footer__nav strong { margin-bottom: 3px; color: var(--st-ink); }
.st-footer__nav a { color: var(--st-slate); }
.st-footer__nav a:hover { color: var(--st-blue); }
.st-footer__meta { display: flex; justify-content: space-between; gap: 18px; padding-top: 16px; border-top: 1px solid var(--st-line); }

/* ---------- Legal pages ---------- */
.st-legal { max-width: 960px; gap: 24px; }
.st-legal__hero { max-width: 760px; padding: 34px 0 12px; }
.st-legal__eyebrow { margin: 0 0 10px; color: var(--st-lime-deep); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.st-legal__hero h1 { margin: 0; font: 800 clamp(2.5rem, 7vw, 4.6rem)/1 var(--st-display); letter-spacing: -.045em; }
.st-legal__updated { margin: 16px 0 0; color: var(--st-muted); font-size: .82rem; font-weight: 700; }
.st-legal__intro { margin: 22px 0 0; color: var(--st-slate); font-size: clamp(1.02rem, 2vw, 1.18rem); line-height: 1.7; }
.st-legal__contents { padding: 20px; border: 1px solid var(--st-line); border-radius: var(--st-radius); background: var(--st-surface); }
.st-legal__contents > strong { display: block; margin-bottom: 12px; font: 800 .92rem/1.2 var(--st-display); }
.st-legal__contents > div { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.st-legal__contents a { color: var(--st-slate); font-size: .82rem; font-weight: 700; }
.st-legal__contents a:hover { color: var(--st-lime-deep); }
.st-legal__body { padding: 8px 0 24px; }
.st-legal__body section { max-width: 760px; padding: 28px 0; border-bottom: 1px solid var(--st-line); scroll-margin-top: calc(var(--st-header-h) + 20px); }
.st-legal__body section:last-child { border-bottom: 0; }
.st-legal__body h2 { margin: 0 0 16px; font: 800 clamp(1.35rem, 3vw, 1.75rem)/1.2 var(--st-display); letter-spacing: -.025em; }
.st-legal__body h3 { margin: 24px 0 8px; font: 800 1rem/1.35 var(--st-display); }
.st-legal__body p { margin: 0 0 14px; color: var(--st-slate); line-height: 1.75; }
.st-legal__body p:last-child { margin-bottom: 0; }
.st-legal__body ul { display: grid; gap: 12px; margin: 0; padding-left: 22px; color: var(--st-slate); }
.st-legal__body li { padding-left: 4px; line-height: 1.7; }
.st-legal__body a { text-decoration: underline; text-decoration-color: rgba(201, 47, 62, .35); text-underline-offset: 3px; }
.st-legal__body a:hover { text-decoration-color: currentColor; }
.st-legal__purpose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.st-legal__purpose-grid article { padding: 18px; border: 1px solid var(--st-line); border-radius: var(--st-radius-sm); background: var(--st-surface); }
.st-legal__purpose-grid h3 { margin-top: 0; }
.st-legal__purpose-grid p { font-size: .88rem; line-height: 1.65; }
.st-legal__contact { padding: 28px !important; border: 1px solid var(--st-line) !important; border-radius: var(--st-radius); background: rgb(188 188 188 / 10%); }
.st-legal__contact address { color: var(--st-slate); font-style: normal; line-height: 1.7; }


.st-landing {
    min-height: calc(100vh - var(--st-header-h));
}

.st-home { max-width: 1120px; }
.st-home .st-landing { display: grid; gap: 72px; }
.st-home-hero { max-width: 780px; margin: 28px auto 0; text-align: center; }

.st-landing h1 {
    margin: 0 0 18px;
    max-width: 820px;
    font-family: var(--st-display);
    font-size: 2.3rem;
    letter-spacing: -.055em;
    line-height: 1.2;
}

.st-landing h1 span { color: var(--st-accent); }
.st-landing__lead { max-width: 620px; margin: 0 0 28px; color: var(--st-slate); font-size: 1.12rem; }
.st-home-hero .st-landing__lead { max-width: 680px; margin: 0 auto 26px; }
.st-home-hero .st-search-wrap { max-width: 680px; margin: 0 auto; text-align: left; }
.st-home-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 18px; margin: 14px 0 0; color: var(--st-muted); font-size: .78rem; font-weight: 700; }
.st-home-proof__item { display: inline-flex; align-items: center; gap: 6px; }
.st-home-proof__icon { display: inline-flex; width: 24px; height: 24px; flex: 0 0 auto; align-items: center; justify-content: center; color: var(--st-lime-deep); }
.st-home-proof__icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.st-home-demo {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) minmax(320px, .9fr);
    gap: 28px;
    align-items: center;
    padding: 40px;
    overflow: hidden;
    border: 1px solid var(--st-line);
    border-radius: 22px;
    background: var(--st-surface);
    color: var(--st-ink);
    box-shadow: var(--st-shadow);
}
.st-home-demo__preview { position: relative; display: block; min-width: 0; overflow: hidden; border-radius: 14px; aspect-ratio: 2 / 3; background: var(--st-bg); color: #fff; }
.st-home-demo__preview > img,
.st-home-demo__preview > .st-poster-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-poster-placeholder { display: block; background: linear-gradient(145deg, #dfe4eb, #bdc6d3); }
.st-home-demo__preview::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, rgba(15,20,25,.88)); }
.st-home-demo__preview-label { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 2px; }
.st-home-demo__preview-label strong { font: 800 .9rem/1.2 var(--st-display); }
.st-home-demo__preview-label small { color: rgba(255,255,255,.75); font-size: .66rem; }
.st-home-demo__copy h2,
.st-home-section__head h2,
.st-home-trust h2,
.st-home-final h2 {
    margin: 0;
    font-family: var(--st-display);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    letter-spacing: -.035em;
    line-height: 1.12;
}
.st-home-demo__copy > p { max-width: 48ch; margin: 14px 0 22px; color: var(--st-muted); }
.st-home-demo__copy .st-btn--primary { background: var(--st-lime); color: #fff; }
.st-home-demo__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--st-line); border-radius: 14px; background: var(--st-line); }
.st-home-demo__metrics div { padding: 18px; background: var(--st-bg); }
.st-home-demo__metrics dt { color: var(--st-muted); font-size: .72rem; font-weight: 700; }
.st-home-demo__metrics dd { margin: 5px 0 0; color: var(--st-lime-deep); font: 800 1.3rem/1.2 var(--st-display); }
.st-home-section { display: grid; gap: 24px; }
.st-home-section__head { max-width: 680px; }
.st-home-section__head--row { display: flex; max-width: none; align-items: end; justify-content: space-between; gap: 20px; }
.st-home-section__head--row > a { flex: 0 0 auto; color: var(--st-lime-deep); font-size: .82rem; font-weight: 800; }
.st-home-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.st-home-benefits article { padding: 22px; border: 1px solid var(--st-line); border-radius: var(--st-radius); background: var(--st-surface); }
.st-home-benefits h3 { margin: 0 0 8px; font: 800 1.05rem/1.25 var(--st-display); }
.st-home-benefits p { margin: 0; color: var(--st-muted); font-size: .9rem; }
.st-home-popular { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.st-home-popular__card { display: grid; grid-template-columns: 88px minmax(0, 1fr); min-width: 0; overflow: hidden; border: 1px solid var(--st-line); border-radius: var(--st-radius); background: var(--st-surface); color: var(--st-ink); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.st-home-popular__card:hover { transform: translateY(-2px); border-color: #a9b3c2; box-shadow: 0 10px 24px rgba(15,20,25,.07); }
.st-home-popular__media { position: relative; min-height: 124px; overflow: hidden; background: var(--st-bg); }
.st-home-popular__media > img,
.st-home-popular__media > .st-poster-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-home-popular__body { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 7px; padding: 16px; }
.st-home-popular__body strong { font: 800 1rem/1.25 var(--st-display); }
.st-home-popular__body small { color: var(--st-lime-deep); font-size: .75rem; font-weight: 800; }
.st-home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.st-home-steps li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 20px; border-top: 1px solid var(--st-line); }
.st-home-step-icon { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 12px; background: var(--st-lime); color: #fff; }
.st-home-step-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-home-steps h3 { margin: 3px 0 6px; font: 800 1rem/1.25 var(--st-display); }
.st-home-steps p { margin: 0; color: var(--st-muted); font-size: .88rem; }
.st-home-trust { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; padding: 30px; border: 1px solid var(--st-line); border-radius: var(--st-radius); background: rgb(188 188 188 / 10%); }
.st-home-trust__copy { display: grid; gap: 10px; }
.st-home-trust__copy p { margin: 0; color: var(--st-slate); }
.st-home-faq { display: grid; gap: 24px; margin: 0; }
.st-home-faq__list { display: grid; gap: 8px; }
.st-home-faq .st-faq-item { padding: 0; }
.st-home-faq summary { display: flex; align-items: center; min-height: 54px; padding: 14px 16px; cursor: pointer; font-weight: 800; list-style: none; }
.st-home-faq summary::-webkit-details-marker { display: none; }
.st-home-faq summary::after { content: "+"; margin-left: auto; color: var(--st-muted); font-size: 1.25rem; line-height: 1; }
.st-home-faq details[open] summary::after { content: "−"; }
.st-home-faq .st-faq-item p { margin: 0; padding: 0 16px 16px; }
.st-home-final { padding: 42px; border: 1px solid var(--st-line); border-radius: 20px; background: var(--st-surface); text-align: center; }
.st-home-final p { margin: 10px 0 20px; color: var(--st-slate); }
.st-home-final .st-btn--primary { background: var(--st-lime); color: #fff; }

.st-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.st-value-grid.article-grid { grid-template-columns: repeat(2, 1fr); }
.st-value-grid article {
    display: grid;
    gap: 6px;
    padding: 20px;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-surface);
    box-shadow: 0 1px 0 rgba(15, 20, 25, 0.03);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.st-value-grid article:hover {
    transform: translateY(-2px);
    border-color: #a9b3c2;
    box-shadow: 0 10px 24px rgba(15, 20, 25, 0.07);
}
.st-value-grid article strong { font-family: var(--st-display); font-size: 1.02rem; letter-spacing: -.01em; }
.st-value-grid article span { color: var(--st-muted); font-size: .86rem; }
.st-value-grid__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
    border-radius: 12px;
    background: rgb(188 188 188 / 28%);
    color: var(--st-ink);
}
.st-value-grid__icon svg { width: 20px; height: 20px; }

.st-dashboard { display: grid; gap: 28px; }
.st-next-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}
.st-next-watch h3 { margin: 3px 0; font-family: var(--st-display); font-size: 1.35rem; }
.st-next-title-row .st-next-code {
    display: inline;
    margin: 0;
}
.st-inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 12px; }
.st-empty-inline { display: grid; gap: 5px; padding: 18px; border: 1px solid var(--st-line); border-radius: var(--st-radius); background: var(--st-surface); }
.st-empty-inline span { color: var(--st-muted); }

.st-badge {
    display: inline-flex;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e6ebf3;
    color: var(--st-slate);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.st-ac-item { grid-template-columns: 40px minmax(0, 1fr) auto; }
.st-ac-actions { display: flex; gap: 5px; }
.st-ac-actions button { min-height: 34px; padding: 5px 9px; border: 1px solid var(--st-line); border-radius: 999px; background: white; cursor: pointer; font-size: .72rem; font-weight: 800; }
.st-ac-actions button:last-child { background: var(--st-lime); border-color: var(--st-lime-deep); color: #fff; }

.st-tonight-until { max-width: 540px; margin-top: 14px; }
.st-field-error { color: var(--st-danger); font-weight: 700; }

.st-auth-card {
    max-width: 440px;
    margin: 24px auto;
    display: grid;
    gap: 12px;
    text-align: center;
}

.st-auth-card label {
    text-align: left;
}

.st-auth-card p.st-muted {
    margin: 0;
}

.st-auth-card h1 { margin: 0; font-family: var(--st-display); letter-spacing: -0.03em; }

.st-auth-card form { display: grid; gap: 12px; }

.st-auth-banner {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
    padding: 16px 18px;
    border: 1px solid var(--st-lime-deep);
    border-radius: var(--st-radius);
    background: rgb(188 188 188 / 13%);
}

.st-auth-banner__title {
    margin: 0;
    font-weight: 800;
}

.st-auth-banner__text {
    margin: 4px 0 0;
    color: var(--st-slate);
    font-size: 0.92rem;
}

.st-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.st-panel--accent { border-color: var(--st-lime-deep); background: rgb(188 188 188 / 13%); }
.st-runtime-quality { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--st-muted); font-size: .78rem; }
.st-toggle-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .84rem; font-weight: 700; color: var(--st-slate); }
.st-runtime-mode { align-items: flex-start; }
.st-runtime-mode input { margin-top: 4px; }
.st-runtime-mode > span { display: grid; gap: 2px; }
.st-runtime-mode small { color: var(--st-muted); font-size: .76rem; font-weight: 500; }
.st-runtime-mode input:disabled + span { color: var(--st-muted); }
.st-report textarea { width: 100%; min-height: 110px; padding: 10px; border: 1px solid var(--st-line); border-radius: 10px; resize: vertical; font: inherit; }
.st-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }
.st-seo--compact { padding: 16px 18px; border: 1px solid var(--st-line); border-radius: var(--st-radius); background: white; }
.st-seo--compact summary { cursor: pointer; font-weight: 800; }
.st-seo--compact p { color: var(--st-muted); }

.st-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--st-muted);
    font-size: .8rem;
    font-weight: 700;
}
.st-breadcrumbs a { color: var(--st-slate); }

.st-catalog-page { display: grid; gap: 36px; }
.st-catalog-hero h1 { margin: 0 0 12px; font-family: var(--st-display); font-size: 2.3rem; letter-spacing: -.045em; line-height: 1; }
.st-catalog-hero > p { max-width: 760px; margin: 0 0 22px; color: var(--st-slate); font-size: 1.02rem; }

.st-catalog-featured,
.st-catalog-results { display: grid; gap: 16px; }
.st-catalog-featured .st-section__head,
.st-catalog-results .st-section__head { margin: 0; }
.st-catalog-featured .st-section__head h2,
.st-catalog-results .st-section__head h2 { margin: 0; font-family: var(--st-display); }
.st-catalog-featured .st-section__head a { color: var(--st-blue); font-weight: 800; }

.st-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.st-catalog-grid--featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.st-catalog-card { min-width: 0; overflow: hidden; border: 1px solid var(--st-line); border-radius: var(--st-radius); background: var(--st-surface); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.st-catalog-card:hover { border-color: #a9b3c2; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20, 28, 40, .08); }
.st-catalog-card__link { display: grid; height: 100%; color: inherit; text-decoration: none; }
.st-catalog-card__media { aspect-ratio: 210 / 295; overflow: hidden; background: #e4e8ee; }
.st-catalog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.st-catalog-card__poster-placeholder { width: 100%; height: 100%; background: linear-gradient(145deg, #e8ebf0, #cfd6df); }
.st-catalog-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; }
.st-catalog-card__body h3 { margin: 0 0 2px; font-family: var(--st-display); font-size: 1.05rem; line-height: 1.2; }
.st-catalog-card__body p { margin: 0; color: var(--st-muted); font-size: .76rem; line-height: 1.35; }
.st-catalog-card__runtime { font-size: 1rem; }
.st-runtime-badge { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: #e8edf4; color: var(--st-slate); font-size: .62rem; font-weight: 800; }
.st-runtime-badge--published { background: #e2f4e0; color: #275329; }
.st-runtime-badge--estimated,
.st-runtime-badge--mixed { background: #fff2d2; color: #684a00; }
.st-catalog-card__next { color: #275329; font-size: .72rem; font-weight: 800; }
.st-catalog-card__action { margin-top: auto; padding-top: 7px; color: var(--st-blue); font-size: .76rem; font-weight: 800; }

.st-catalog-browse { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.st-catalog-browse > div { padding: 18px; border: 1px solid var(--st-line); border-radius: var(--st-radius); background: var(--st-surface); }
.st-catalog-browse h2 { margin: 0 0 10px; font-size: .9rem; }
.st-link-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.st-link-chips a { padding: 6px 9px; border-radius: 999px; background: #edf0f5; color: var(--st-slate); font-size: .72rem; font-weight: 800; }
.st-link-chips a:hover { background: var(--st-ink); color: white; }
.st-link-chips--letters a { min-width: 30px; text-align: center; }

.st-catalog-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 16px; border: 1px solid var(--st-line); border-radius: var(--st-radius); background: var(--st-surface); }
.st-catalog-filters label { display: grid; gap: 5px; color: var(--st-muted); font-size: .68rem; font-weight: 800; }
.st-catalog-filters select,
.st-catalog-filters input { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid var(--st-line); border-radius: 10px; background: white; color: var(--st-ink); font: inherit; }
.st-catalog-filter-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    align-items: end;
    gap: 7px;
}
.st-catalog-filter-actions .st-btn { min-height: 42px; }

.st-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.st-pagination__pages { display: flex; gap: 5px; }
.st-pagination a,
.st-pagination span { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; padding: 7px 10px; border: 1px solid var(--st-line); border-radius: 999px; color: var(--st-slate); font-size: .76rem; font-weight: 800; }
.st-pagination span[aria-current="page"] { border-color: var(--st-ink); background: var(--st-ink); color: white; }
.st-pagination span[aria-disabled="true"] { opacity: .45; }
.st-catalog-secondary { max-width: 850px; color: var(--st-muted); }
.st-related-shows { display: grid; gap: 14px; }
.st-related-shows .st-section__head { margin: 0; }
.st-related-shows .st-section__head h2 { margin: 0; font-family: var(--st-display); }
.st-related-shows .st-section__head a { color: var(--st-blue); font-weight: 800; }

@media (max-width: 820px) {
    .st-header__inner { min-height: 58px; }
    .st-header { position: static; }
    .st-bottom-nav {
        position: fixed;
        z-index: 80;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.97);
        border-top: 1px solid var(--st-line);
        backdrop-filter: blur(12px);
    }
    .st-bottom-nav svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
    .st-bottom-nav a { display: grid; justify-items: center; gap: 1px; color: var(--st-muted); font-size: .68rem; font-weight: 800; }
    .st-bottom-nav a span { font-size: 1.1rem; line-height: 1; }
    .st-bottom-nav a.is-active { color: var(--st-ink); }
    /* Clears the fixed .st-bottom-nav, which is mobile-only. */
    .st-app { padding-bottom: 92px; }
    .st-footer { margin-bottom: 58px; }
    .st-footer__nav { grid-template-columns: 1fr 1fr; gap: 24px; }
    .st-footer__meta { flex-direction: column; }
    .st-page-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }
    .st-page-tab { flex: 0 0 auto; }
    .st-value-grid.article-grid, .st-value-grid, .st-grid-3 { grid-template-columns: 1fr; }
    .st-ac-item { grid-template-columns: 40px minmax(0, 1fr); }
    .st-ac-actions { grid-column: 2; }
    .st-runtime-quality { flex-direction: column; }
    .st-catalog-page { gap: 28px; }
    .st-catalog-grid,
    .st-catalog-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .st-catalog-browse { grid-template-columns: 1fr; }
    .st-catalog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
    .st-catalog-filter-actions { grid-column: 1 / -1; }
    .st-catalog-card__body { padding: 10px; }
    .st-catalog-card__body h3 { font-size: .94rem; }
    .st-pagination { gap: 7px; }
    .st-pagination a,
    .st-pagination span { min-width: 34px; min-height: 34px; padding: 5px 8px; }
    .st-home .st-landing { gap: 46px; }
    .st-home-hero { margin-top: 4px; }
    .st-home-demo { grid-template-columns: 100px minmax(0, 1fr); gap: 22px; padding: 22px; }
    .st-home-demo__preview { grid-row: 1; grid-column: 1; }
    .st-home-demo__copy { grid-row: 1; grid-column: 2; align-self: center; }
    .st-home-demo__metrics { grid-row: 2; grid-column: 1 / -1; }
    .st-home-benefits,
    .st-home-steps { grid-template-columns: 1fr; }
    .st-home-popular { grid-template-columns: 1fr; }
    .st-home-steps { gap: 0; }
    .st-home-trust { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
    .st-home-final { padding: 30px 22px; }
    .st-legal__purpose-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .st-catalog-filters { grid-template-columns: 1fr; }
    .st-catalog-filter-actions { grid-column: 1 / -1; }
    .st-footer__nav { grid-template-columns: 1fr; }
    .st-landing h1 { text-align: center; }
    .st-home-demo__metrics { grid-template-columns: 1fr; }
    .st-home-proof { gap: 8px 12px; }
    .st-home-section__head--row { align-items: start; flex-direction: column; gap: 8px; }
    .st-window-chips { gap: 0; }
}
