:root {
    --sf-bg: #141414;
    --sf-black: #000000;
    --sf-panel: #181818;
    --sf-red: #e50914;
    --sf-text: #ffffff;
    --sf-muted: #b3b3b3;
    --sf-link: #808080;
    --sf-card: #2f2f2f;
    --sf-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html,
body.sf-browse,
body.page-sf {
    margin: 0;
    min-height: 100%;
    background: var(--sf-bg);
    color: var(--sf-text);
    font-family: var(--sf-sans);
    -webkit-font-smoothing: antialiased;
}

body.sf-browse,
body.page-sf {
    overflow-x: hidden;
}

.no-select {
    -webkit-user-select: none;
    user-select: none;
}

input,
textarea {
    -webkit-user-select: text;
    user-select: text;
}

body.page-sf.page-tv,
body.page-sf.home-page {
    background: var(--sf-bg) !important;
    color: var(--sf-text);
}

body.page-sf,
body.page-sf button,
body.page-sf input,
body.page-sf a,
body.page-sf h1,
body.page-sf h2,
body.page-sf h3,
body.page-sf p,
body.page-sf .tv-hud,
body.page-sf .tv-hud__title,
body.page-sf .tv-hud__kicker,
body.page-sf .tv-empty-state,
body.page-sf .tv-caption,
body.page-sf .link-split__title,
body.page-sf .link-split__eyebrow {
    font-family: var(--sf-sans) !important;
    font-style: normal;
}

body.page-sf .link-split__title {
    text-transform: none;
    letter-spacing: -0.03em;
    font-weight: 800;
}

body.page-sf .link-split__eyebrow {
    color: var(--sf-red) !important;
}

body.page-sf main > section.sf-home,
body.page-sf.page-tv main > section.sf-home.tv-gate,
body[class*="page-"].page-sf main > section.sf-home:not(.hero) {
    padding: 0 !important;
    margin: 0 !important;
}

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

.sf-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    min-height: 68px;
    padding: 0 3.5vw;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 10%, transparent);
    transition: background 200ms ease;
}

.sf-nav.is-scrolled {
    background: #141414;
}

.sf-logo {
    flex: 0 0 auto;
    color: var(--sf-red);
    text-decoration: none;
    font-family: var(--sf-sans);
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.sf-nav__links {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    font-size: 0.875rem;
}

.sf-nav__links a {
    color: #e5e5e5;
    text-decoration: none;
    font-weight: 400;
}

.sf-nav__links a[aria-current="page"] {
    color: #fff;
    font-weight: 700;
}

.sf-nav__links a:hover {
    color: #b3b3b3;
}

.sf-nav__tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.sf-search {
    position: relative;
}

.sf-search input {
    width: 16rem;
    max-width: 38vw;
    height: 2.1rem;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border-radius: 0;
    padding: 0 0.7rem;
    font: inherit;
    font-size: 0.875rem;
}

.sf-search input::placeholder {
    color: #b3b3b3;
}

.sf-account-btn {
    border: 0;
    background: var(--sf-red);
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.38rem 0.85rem;
    border-radius: 2px;
    cursor: pointer;
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sf-hero {
    position: relative;
    min-height: 80vh;
    max-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 8rem 3.5vw 7rem;
    overflow: hidden;
    background: #000;
}

.sf-hero__media,
.sf-hero__shade {
    position: absolute;
    inset: 0;
}

.sf-hero__media {
    background: #111 center/cover no-repeat;
}

.sf-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-hero__shade {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 42%, transparent 68%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 22%, transparent 52%, var(--sf-bg) 96%);
}

.sf-hero__copy {
    position: relative;
    z-index: 1;
    max-width: 38rem;
}

.sf-kicker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.7rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.sf-kicker::before {
    content: "S";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    background: var(--sf-red);
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0;
    border-radius: 2px;
}

.sf-hero__copy h1 {
    margin: 0 0 0.85rem;
    font-family: var(--sf-sans);
    font-size: clamp(2rem, 5.2vw, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-hero__meta {
    margin: 0 0 0.55rem;
    color: #46d369;
    font-size: 0.95rem;
    font-weight: 600;
}

.sf-hero__desc {
    margin: 0;
    color: #fff;
    line-height: 1.45;
    font-size: 1.05rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 34rem;
}

.sf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.25rem;
}

.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 8.25rem;
    padding: 0.62rem 1.55rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-size: 1.1rem;
}

.sf-btn svg {
    width: 1.35rem;
    height: 1.35rem;
}

.sf-btn--play {
    background: #fff;
    color: #000;
}

.sf-btn--play:hover {
    background: #e6e6e6;
}

.sf-btn--play:disabled {
    opacity: 0.55;
    cursor: wait;
}

.sf-btn--ghost {
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.sf-btn--ghost:hover {
    background: rgba(109, 109, 110, 0.4);
}

.sf-status,
.sf-more {
    padding: 1.5rem 3.5vw;
    min-height: 3.5rem;
    color: var(--sf-muted);
}

.sf-status.is-error {
    color: #ffb3b3;
}

.sf-rows {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    padding: 0 0 3rem;
    margin-top: -4.5rem;
    position: relative;
    z-index: 2;
}

.sf-row {
    padding: 0 3.5vw;
}

.sf-row h2 {
    margin: 0 0 0.55rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e5e5e5;
}

.sf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 0.45rem;
}

.sf-row--stack .sf-card {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    scroll-snap-align: unset;
}

.sf-row--stack .sf-card:hover,
.sf-row--stack .sf-card:focus-visible {
    transform: scale(1.03);
}

@media (min-width: 600px) {
    .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 860px) {
    .sf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
    .sf-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1400px) {
    .sf-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.sf-rail-wrap {
    position: relative;
}

.sf-rail {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.35rem 0 0.55rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.sf-rail::-webkit-scrollbar {
    display: none;
}

.sf-rail__nav {
    position: absolute;
    top: 0;
    bottom: 0.55rem;
    z-index: 3;
    width: 3vw;
    min-width: 1.6rem;
    border: 0;
    background: rgba(20, 20, 20, 0.5);
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 140ms ease;
}

.sf-rail-wrap:hover .sf-rail__nav,
.sf-rail__nav:focus-visible {
    opacity: 1;
}

.sf-rail__nav--prev { left: -3.5vw; }
.sf-rail__nav--next { right: -3.5vw; }

.sf-card {
    position: relative;
    flex: 0 0 16.5vw;
    min-width: 160px;
    max-width: 280px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    background: var(--sf-card);
    border-radius: 3px;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.sf-card:hover,
.sf-card:focus-visible {
    transform: scale(1.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
    z-index: 2;
}

.sf-card__poster {
    aspect-ratio: 16 / 9;
    background: #222 center/cover no-repeat;
    display: block;
    width: 100%;
}

.sf-card__poster--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.sf-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 0.55rem 0.6rem 0.65rem;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.88));
    opacity: 0;
    transition: opacity 160ms ease;
}

.sf-card:hover .sf-card__overlay,
.sf-card:focus-visible .sf-card__overlay,
.sf-card.is-unread .sf-card__overlay {
    opacity: 1;
}

.sf-card__play {
    display: none;
}

.sf-card__body {
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.55rem;
    padding: 0;
    pointer-events: none;
}

.sf-card__kind {
    margin: 0 0 0.15rem;
    color: #46d369;
    font-size: 0.68rem;
    font-weight: 700;
}

.sf-card__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-card__meta {
    display: none;
}

.sf-card.is-unread .sf-card__kind::after {
    content: " • New";
}

.sf-footer {
    padding: 3.5rem 3.5vw 4rem;
    color: var(--sf-link);
    font-size: 0.82rem;
    background: #141414;
    border-top: 0;
}

.sf-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.6rem;
    margin: 0 0 1.2rem;
    padding: 0;
    list-style: none;
}

.sf-footer a {
    color: var(--sf-link);
    text-decoration: none;
}

.sf-footer a:hover {
    text-decoration: underline;
}

.sf-account {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(420px, 100%);
    background: #000;
    color: #fff;
    padding: 1.6rem 1.5rem 2rem;
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
    font-family: var(--sf-sans);
}

.sf-account[hidden] {
    display: none !important;
}

.sf-account h2,
.sf-account #gateTitle,
.sf-account #gateLede,
.sf-account .tv-session-meta,
.sf-account .tv-session-user,
.sf-account .tv-fine-print,
.sf-account .tv-manage,
.sf-account label,
.sf-account .tv-gate-message,
.sf-account .tv-consent,
.sf-account .tv-field label {
    color: #fff !important;
    font-family: var(--sf-sans) !important;
}

.sf-account #gateTitle {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 800;
}

.sf-account #gateLede,
.sf-account .tv-session-meta,
.sf-account .tv-manage,
.sf-account .tv-consent {
    margin: 0;
    color: #b3b3b3 !important;
    line-height: 1.45;
}

.sf-account__close {
    align-self: flex-end;
    border: 0;
    background: transparent;
    color: #b3b3b3;
    cursor: pointer;
    font: inherit;
}

.sf-account .tv-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0 0 0.75rem;
}

.sf-account .tv-field label {
    font-size: 0.82rem;
    color: #b3b3b3 !important;
}

.sf-account .tv-field input,
.sf-account .tv-password input {
    width: 100%;
    background: #333;
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 0.7rem 0.8rem;
    font: inherit;
}

.sf-account .tv-password {
    display: flex;
    gap: 0.4rem;
}

.sf-account .tv-password input {
    flex: 1;
}

.sf-account .tv-password__toggle {
    border: 0;
    background: #333;
    color: #fff;
    border-radius: 4px;
    padding: 0 0.7rem;
    cursor: pointer;
}

.sf-account .tv-auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 0.4rem 0 0.9rem;
}

.sf-account .tv-auth-tab {
    flex: 1;
    border: 0;
    background: #333;
    color: #ddd;
    padding: 0.55rem 0.7rem;
    cursor: pointer;
    border-radius: 4px;
    font: inherit;
}

.sf-account .tv-auth-tab.is-active {
    background: #fff;
    color: #000;
    font-weight: 700;
}

.sf-account .cta-button,
.sf-account .cta-button.primary,
.sf-account .cta-button.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.35rem;
    border: 0;
    border-radius: 4px;
    padding: 0.7rem 1rem;
    background: var(--sf-red);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.sf-account .cta-button.secondary {
    background: #333;
}

.sf-account .tv-consent {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin: 0.6rem 0 0.8rem;
    font-size: 0.82rem;
}

.sf-account .tv-consent a,
.sf-account .tv-manage a {
    color: #fff;
}

.sf-account .tv-share-preview {
    background: #181818;
    padding: 0.8rem;
    border-radius: 4px;
}

.sf-account .tv-gate-state[hidden],
.sf-account .tv-features[hidden],
.sf-account .tv-share-preview[hidden] {
    display: none !important;
}

.sf-account .tv-gate-divider {
    border: 0;
    border-top: 1px solid #333;
    margin: 0.4rem 0;
}

body.sf-account-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .sf-nav {
        flex-wrap: wrap;
        gap: 0.65rem;
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }

    .sf-nav__tools,
    .sf-search,
    .sf-search input {
        width: 100%;
        max-width: none;
        margin-left: 0;
    }

    .sf-card {
        flex-basis: 42vw;
        min-width: 140px;
    }

    .sf-hero {
        min-height: 78vh;
        padding: 6.5rem 4vw 5rem;
    }

    .sf-rail__nav {
        opacity: 1;
    }
}
