:root {
    --ink: #f7f4ed;
    --muted: #aaa8a4;
    --dim: #747572;
    --panel: #111316;
    --panel-soft: #17191d;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #e7c36d;
    --accent-strong: #f4d47d;
    --danger: #eb5d5d;
    --success: #68d391;
    --page-x: clamp(20px, 4.5vw, 78px);
    --display: "Bodoni MT", "Bodoni 72", Didot, Georgia, serif;
    --body: Bahnschrift, "Trebuchet MS", sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    background: #08090b;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 90% 38%, rgba(160, 115, 35, 0.08), transparent 28%),
        #08090b;
    font-family: var(--body);
}

body.modal-open {
    overflow: hidden;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 20;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(24px, 4vw, 68px);
    height: 86px;
    padding: 0 var(--page-x);
    transition: background 220ms ease, height 220ms ease, border-color 220ms ease;
    border-bottom: 1px solid transparent;
    background: linear-gradient(to bottom, rgba(5, 6, 8, 0.88), transparent);
}

.topbar.scrolled {
    height: 68px;
    border-color: var(--line);
    background: rgba(7, 8, 10, 0.92);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 31px;
    height: 35px;
    color: #08090b;
    background: var(--accent);
    font-family: var(--display);
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}

.brand-name {
    letter-spacing: 0.26em;
    font-size: 15px;
    font-weight: 700;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.2vw, 38px);
}

.nav-link,
.auth-tabs button,
.footer button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.63);
    font-size: 14px;
    transition: color 180ms ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    transform: scaleX(1);
}

.adult-nav-entry {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    color: #ffe7bd;
    border: 1px solid rgba(236, 92, 100, 0.38);
    background: rgba(236, 92, 100, 0.08);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.adult-nav-entry:hover {
    color: #fff;
    border-color: rgba(236, 92, 100, 0.68);
    background: rgba(236, 92, 100, 0.16);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-shell {
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 42px;
    height: 40px;
    padding: 0 11px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: text;
    transition: width 260ms ease, border-color 180ms ease, background 180ms ease;
}

.search-box:focus-within,
.search-box:hover,
.search-shell.open .search-box,
.search-shell.has-query .search-box {
    width: clamp(150px, 17vw, 230px);
    border-color: var(--line);
    background: rgba(0, 0, 0, 0.55);
}

.search-box svg,
.icon-button svg,
.account-button svg {
    flex: 0 0 auto;
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.search-box input {
    flex: 1 1 auto;
    min-width: 0;
    width: 175px;
    padding: 9px 0;
    color: #fff;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
}

.search-box > svg {
    pointer-events: none;
}

.search-box input::-webkit-search-cancel-button {
    display: none;
}

.search-box input::placeholder {
    color: #8f9090;
}

.search-clear {
    display: grid;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    padding: 0;
    place-items: center;
    color: rgba(255, 255, 255, 0.7);
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 20px;
    line-height: 1;
    transition: color 160ms ease, background 160ms ease;
}

.search-clear:hover,
.search-clear:focus-visible {
    color: #fff;
    outline: 0;
    background: rgba(255, 255, 255, 0.1);
}

.search-panel {
    position: absolute;
    top: calc(100% + 13px);
    right: 0;
    width: min(430px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 2px solid var(--accent);
    background:
        linear-gradient(135deg, rgba(231, 195, 109, 0.06), transparent 34%),
        rgba(10, 11, 14, 0.98);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(22px);
    animation: searchPanelIn 180ms ease both;
}

.search-panel[hidden] {
    display: none;
}

.search-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 17px 11px;
    color: var(--dim);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.search-panel-head span:last-child {
    color: var(--accent);
    letter-spacing: 0.06em;
}

.search-result-list {
    display: grid;
    max-height: min(430px, 62vh);
    margin: 0;
    padding: 0 8px 8px;
    overflow-y: auto;
    list-style: none;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
    scrollbar-width: thin;
}

.search-result {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 8px;
    color: var(--ink);
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background 150ms ease, transform 150ms ease;
}

.search-result:hover,
.search-result.active,
.search-result:focus-visible {
    outline: 0;
    background: rgba(255, 255, 255, 0.075);
    transform: translateX(2px);
}

.search-result-image {
    position: relative;
    height: 63px;
    overflow: hidden;
    background: var(--panel-soft);
}

.search-result-image::after {
    position: absolute;
    inset: 0;
    content: "";
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-copy {
    min-width: 0;
}

.search-result-copy strong,
.search-result-copy span {
    display: block;
}

.search-result-copy strong {
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-copy span {
    margin-top: 6px;
    color: var(--dim);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.search-result-play {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
}

.search-result-play svg {
    width: 11px;
    fill: currentColor;
    stroke: none;
}

.search-empty {
    padding: 28px 22px 30px;
    color: var(--muted);
    text-align: center;
}

.search-empty strong {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-family: var(--display);
    font-size: 22px;
    font-weight: 500;
}

.search-empty span {
    font-size: 11px;
}

.search-empty.search-loading {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.search-empty.search-loading .spinner {
    display: block;
    color: var(--accent);
}

.search-show-all {
    width: 100%;
    padding: 14px 17px;
    color: var(--accent-strong);
    border: 0;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 160ms ease, background 160ms ease;
}

.search-show-all:hover,
.search-show-all:focus-visible {
    color: #090a0c;
    outline: 0;
    background: var(--accent);
}

.icon-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.notification-dot {
    position: absolute;
    top: 7px;
    right: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 2px #111;
}

.account-button {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
}

.account-button > svg {
    width: 12px;
    transition: transform 180ms ease;
}

.account-button:hover > svg {
    transform: translateY(2px);
}

.avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 2px;
    color: #121212;
    background: linear-gradient(135deg, var(--accent-strong), #9e7227);
    font-family: var(--display);
    font-size: 18px;
    font-weight: 900;
}

.avatar[data-avatar-tone="mono"] {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.hero {
    --hero-image: url("/assets/images/hero.jpg");
    --hero-progress: 0.25;
    position: relative;
    display: flex;
    min-height: min(860px, 92vh);
    align-items: center;
    overflow: hidden;
    padding: 118px var(--page-x) 80px;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 6, 8, 0.98) 0%, rgba(5, 6, 8, 0.72) 35%, rgba(5, 6, 8, 0.12) 70%),
        var(--hero-image) 70% center / cover no-repeat;
    transform: scale(1.025);
    animation: heroReveal 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    will-change: transform, opacity, filter;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, transparent 65%, #08090b 100%),
        radial-gradient(circle at 70% 50%, transparent 0, rgba(7, 8, 10, 0.08) 45%, rgba(7, 8, 10, 0.62) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(720px, 100%);
    max-width: 720px;
    padding-top: 24px;
    animation: contentReveal 900ms 250ms ease both;
}

.hero.is-switching .hero-content {
    animation: heroTextSwap 680ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.hero.is-switching .hero-backdrop {
    animation: heroBackdropSwap 960ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.eyebrow,
.section-kicker {
    margin: 0 0 18px;
    color: var(--accent);
    letter-spacing: 0.2em;
    font-size: 11px;
    font-weight: 700;
}

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

.eyebrow span {
    width: 32px;
    height: 1px;
    background: currentColor;
}

.hero h1 {
    max-width: 100%;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(52px, 7.7vw, 112px);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 0.84;
    overflow-wrap: break-word;
}

.hero.long-title h1 {
    max-width: 850px;
    font-size: clamp(42px, 5.9vw, 86px);
    line-height: 0.9;
}

.hero h1 em {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.86);
    font-weight: 400;
}

.hero-copy {
    max-width: 560px;
    margin: 31px 0 18px;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(15px, 1.35vw, 19px);
    font-weight: 300;
    line-height: 1.65;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 17px;
    color: #d2d1cd;
    font-size: 12px;
}

.hero-meta span:not(:last-child)::after {
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-left: 17px;
    border-radius: 50%;
    vertical-align: middle;
    content: "";
    background: #626360;
}

.hero-meta .match {
    color: var(--success);
}

.hero-meta .age {
    padding: 2px 5px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 33px;
}

.hero-controls {
    position: absolute;
    z-index: 3;
    right: var(--page-x);
    bottom: 126px;
    display: flex;
    gap: 10px;
}

.hero-arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(8, 9, 11, 0.48);
    backdrop-filter: blur(14px);
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.hero-arrow:hover {
    color: #0d0e10;
    border-color: var(--accent-strong);
    background: var(--accent-strong);
    transform: translateY(-2px);
}

.hero-arrow svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 23px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.button-primary {
    color: #0d0e10;
    background: var(--accent-strong);
}

.button-primary svg:first-child {
    fill: currentColor;
    stroke: none;
}

.button-primary:hover {
    background: #ffe29a;
}

.button-glass {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.button-glass:hover {
    background: rgba(255, 255, 255, 0.17);
}

.button-outline {
    color: var(--ink);
    border-color: var(--line);
    background: transparent;
}

.button-outline:hover {
    border-color: var(--accent);
}

.hero-index {
    position: absolute;
    z-index: 2;
    right: var(--page-x);
    bottom: 84px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
}

.hero-index div {
    width: 80px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-index i {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: scaleX(var(--hero-progress));
    transform-origin: left;
    transition: transform 420ms ease;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    right: var(--page-x);
    bottom: 52px;
    display: flex;
    max-width: min(340px, calc(100vw - 2 * var(--page-x)));
    gap: 9px;
}

.hero-dot {
    width: 28px;
    height: 3px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    cursor: pointer;
    transition: width 240ms ease, background 240ms ease, transform 180ms ease;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.52);
    transform: translateY(-1px);
}

.hero-dot.active {
    width: 48px;
    background: var(--accent);
}

.catalog-shell {
    position: relative;
    z-index: 3;
    min-height: 640px;
    margin-top: -44px;
    padding: 60px var(--page-x) 90px;
}

.catalog-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px;
}

.catalog-heading h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(31px, 3vw, 48px);
    font-weight: 500;
    letter-spacing: -0.035em;
}

.catalog-heading .section-kicker {
    margin-bottom: 9px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    padding: 8px 12px;
    color: var(--muted);
    border: 1px solid var(--line);
    font-size: 11px;
}

.status-pill span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.status-pill.connected span {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.status-pill.loading span {
    background: var(--accent);
    box-shadow: 0 0 12px rgba(231, 195, 109, 0.72);
    animation: statusPulse 1s ease-in-out infinite;
}

.catalog-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 35px;
}

.genre-list {
    display: flex;
    gap: 9px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.genre-list::-webkit-scrollbar {
    display: none;
}

.genre-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 99px;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    transition: 180ms ease;
}

.genre-chip:hover,
.genre-chip.active {
    color: #0d0e10;
    border-color: var(--accent);
    background: var(--accent);
}

.genre-chip.asa-category {
    border-color: rgba(255, 184, 72, 0.42);
}

.genre-chip.tmdb-category {
    border-color: rgba(90, 186, 255, 0.45);
}

.genre-chip.french-category {
    border-color: rgba(255, 255, 255, 0.52);
}

.genre-chip.adult-category {
    border-color: rgba(235, 93, 93, 0.52);
}

.addon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 220, 151, 0.55);
    border-radius: 3px;
    color: #171006;
    background: linear-gradient(135deg, #ffd77e, #f2a72f);
    box-shadow: 0 4px 14px rgba(242, 167, 47, 0.28);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.12em;
}

.addon-badge-inline {
    padding: 4px 5px 4px 6px;
}

.tmdb-badge {
    color: #06131d;
    border-color: rgba(145, 211, 255, 0.65);
    background: linear-gradient(135deg, #99dcff, #55a7ff);
    box-shadow: 0 4px 14px rgba(85, 167, 255, 0.24);
}

.french-badge {
    color: #111319;
    border-color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(90deg, #3166f6 0 30%, #f7f8fb 30% 68%, #ec4054 68% 100%);
    box-shadow: 0 4px 16px rgba(236, 64, 84, 0.28), 0 0 0 1px rgba(49, 102, 246, 0.14);
}

.adult-badge {
    color: #fff7f2;
    border-color: rgba(235, 93, 93, 0.65);
    background: linear-gradient(135deg, #e23f4f, #2b0e13);
    box-shadow: 0 4px 16px rgba(226, 63, 79, 0.28);
}

.catalog-selectors,
.catalog-select {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.catalog-selectors {
    gap: 16px;
}

.catalog-select[hidden] {
    display: none;
}

.catalog-select > span {
    color: var(--dim);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.catalog-select select {
    min-width: 174px;
    padding: 10px 38px 10px 14px;
    color: var(--ink);
    border: 1px solid rgba(231, 195, 109, 0.38);
    border-radius: 2px;
    outline: 0;
    background:
        linear-gradient(45deg, transparent 50%, var(--accent) 50%) calc(100% - 17px) 50% / 5px 5px no-repeat,
        linear-gradient(135deg, var(--accent) 50%, transparent 50%) calc(100% - 12px) 50% / 5px 5px no-repeat,
        #111316;
    cursor: pointer;
    appearance: none;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.catalog-select select:hover,
.catalog-select select:focus-visible,
.catalog-select.active select {
    border-color: var(--accent);
    background-color: #181a1e;
}

.catalog-select.active > span {
    color: var(--accent);
}

.catalog-select option {
    color: var(--ink);
    background: #111316;
}

.catalog-rows {
    display: grid;
    gap: 34px;
}

.catalog-loading-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 13px 16px;
    color: var(--muted);
    border: 1px solid rgba(231, 195, 109, 0.24);
    background:
        linear-gradient(90deg, rgba(231, 195, 109, 0.12), transparent 42%),
        rgba(255, 255, 255, 0.025);
    font-size: 12px;
}

.catalog-loading-strip .spinner {
    display: block;
    flex: 0 0 auto;
    color: var(--accent);
}

.catalog-loading-strip strong {
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
}

.catalog-loading-strip span:last-child {
    min-width: 0;
}

.watch-showcase {
    position: relative;
    min-width: 0;
    margin: -4px calc(var(--page-x) * -1) 38px;
    padding: 0 var(--page-x) 12px;
    overflow: hidden;
}

.watch-showcase::before,
.watch-showcase::after {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    width: var(--page-x);
    pointer-events: none;
    content: "";
}

.watch-showcase::before {
    left: 0;
    background: linear-gradient(90deg, #08090b, rgba(8, 9, 11, 0));
}

.watch-showcase::after {
    right: 0;
    background: linear-gradient(270deg, #08090b, rgba(8, 9, 11, 0));
}

.watch-showcase-heading {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.watch-showcase-heading .section-kicker {
    margin-bottom: 8px;
    color: #ff3045;
}

.watch-showcase-heading h3 {
    margin: 0;
    font-family: var(--body);
    font-size: clamp(23px, 2.4vw, 31px);
    font-weight: 800;
    letter-spacing: 0;
}

.watch-showcase-more {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 0;
    color: #fff;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
}

.watch-showcase-controls {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    margin-left: auto;
}

.watch-showcase-more svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform 180ms ease;
}

.watch-showcase-more:hover svg,
.watch-showcase-more:focus-visible svg {
    transform: translateX(4px);
}

.watch-poster-rail,
.watch-orbit-rail {
    position: relative;
    z-index: 1;
    display: grid;
    grid-auto-flow: column;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.watch-poster-rail::-webkit-scrollbar,
.watch-orbit-rail::-webkit-scrollbar {
    height: 8px;
}

.watch-poster-rail::-webkit-scrollbar-thumb,
.watch-orbit-rail::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.watch-poster-rail {
    grid-auto-columns: 168px;
    gap: 24px;
    padding: 0 0 22px;
    scroll-padding-inline: var(--page-x);
}

.watch-poster-card {
    position: relative;
    display: grid;
    min-width: 0;
    padding: 0;
    grid-template-rows: 252px 18px 43px 23px;
    gap: 6px;
    color: var(--ink);
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.watch-poster-card img {
    width: 100%;
    height: 252px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--panel-soft);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
    transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.watch-poster-card:hover img,
.watch-poster-card:focus-visible img {
    filter: saturate(1.12) contrast(1.05);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.16);
    transform: translateY(-5px);
}

.card-remove-action {
    position: absolute;
    z-index: 6;
    top: 8px;
    left: 8px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(9, 10, 12, 0.82);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.watch-poster-card:hover .card-remove-action,
.watch-poster-card:focus-within .card-remove-action,
.media-card:hover .card-remove-action,
.media-card:focus-within .card-remove-action,
.card-remove-action:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.card-remove-action:hover,
.card-remove-action:focus-visible {
    color: #111;
    outline: 0;
    background: var(--accent);
}

.watch-poster-card:focus-visible,
.watch-orbit-card:focus-visible,
.watch-showcase-more:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.watch-poster-year {
    color: #8d8e92;
    font-size: 13px;
    font-weight: 800;
}

.watch-poster-card strong {
    display: -webkit-box;
    overflow: hidden;
    color: #f4f4f5;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.watch-poster-card small {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #9d9fa5;
    font-size: 13px;
    font-weight: 700;
}

.watch-poster-card small span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watch-poster-card small b {
    flex: 0 0 auto;
    padding: 4px 8px;
    color: #f1f1f3;
    border-radius: 6px;
    background: #2b2d31;
    font-size: 11px;
    font-weight: 800;
}

.watch-orbit-rail {
    grid-auto-columns: 128px;
    gap: 22px;
    margin-top: 38px;
    padding-bottom: 14px;
    scroll-padding-inline: var(--page-x);
}

.watch-orbit-card {
    display: grid;
    min-width: 0;
    padding: 0;
    justify-items: center;
    gap: 8px;
    color: var(--ink);
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: center;
}

.watch-orbit-card > span {
    display: grid;
    width: 116px;
    height: 116px;
    padding: 6px;
    place-items: center;
    overflow: hidden;
    border: 5px solid #f0182b;
    border-radius: 50%;
    background: #121317;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
    transition: transform 200ms ease, border-color 200ms ease;
}

.watch-orbit-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.watch-orbit-card:hover > span,
.watch-orbit-card:focus-visible > span {
    border-color: #ff4b59;
    transform: translateY(-5px) scale(1.03);
}

.watch-orbit-card strong {
    display: block;
    width: 100%;
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watch-orbit-card small {
    color: #c7d7f0;
    font-size: 13px;
    font-weight: 700;
}

.content-row {
    min-width: 0;
}

.content-row-recent {
    position: relative;
    padding-top: 4px;
}

.content-row-recent .row-heading-copy h3 {
    color: #ffffff;
}

.content-row-recent .row-heading-copy span {
    color: #d9b85d;
}

.content-row-recent .poster-media-card img {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(231, 195, 109, 0.12);
}

.row-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 8px;
}

.row-heading-copy {
    min-width: 0;
}

.row-heading-copy h3 {
    margin: 0;
    overflow: hidden;
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-heading-copy span {
    display: block;
    margin-top: 5px;
    color: var(--dim);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.row-navigation {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    opacity: 0.66;
    transition: opacity 180ms ease;
}

.row-see-more {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 12px;
    color: #f4f4f5;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.row-see-more:hover,
.row-see-more:focus-visible {
    color: #08090b;
    border-color: var(--accent);
    outline: 0;
    background: var(--accent);
}

.content-row:hover .row-navigation,
.row-navigation:focus-within {
    opacity: 1;
}

.row-arrow {
    display: grid;
    width: 38px;
    height: 32px;
    padding: 0;
    place-items: center;
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 3px;
    background: rgba(18, 20, 24, 0.84);
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.row-arrow:hover,
.row-arrow:focus-visible {
    color: #111;
    border-color: var(--accent);
    outline: 0;
    background: var(--accent);
}

.row-arrow svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.card-track {
    display: grid;
    grid-auto-columns: clamp(238px, 24vw, 326px);
    grid-auto-flow: column;
    gap: 10px;
    padding: 8px 2px 24px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.card-track::-webkit-scrollbar {
    display: none;
}

.poster-card-track {
    grid-auto-columns: clamp(142px, 13vw, 188px);
    gap: 18px;
    align-items: start;
}

.media-card {
    position: relative;
    min-height: 155px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 0;
    border-radius: 5px;
    background: #17191c;
    cursor: pointer;
    scroll-snap-align: start;
    text-align: left;
    transition: transform 230ms ease, box-shadow 230ms ease;
}

.poster-media-card {
    display: grid;
    min-height: 0;
    aspect-ratio: auto;
    grid-template-rows: clamp(214px, 19vw, 282px) 58px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.poster-media-card::after,
.poster-media-card .card-content {
    display: none;
}

.poster-media-card img {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 7px;
    background: #17191c;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}

.poster-media-card:hover,
.poster-media-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: none;
}

.poster-media-card:hover img,
.poster-media-card:focus-visible img {
    filter: saturate(1.12) contrast(1.05);
    transform: scale(1.025);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.poster-card-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
    padding-top: 8px;
}

.poster-card-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: #f4f4f5;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.poster-card-copy span {
    overflow: hidden;
    color: #9d9fa5;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shelf-more-card {
    display: grid;
    min-height: 155px;
    aspect-ratio: 16 / 9;
    padding: 18px;
    place-content: center;
    gap: 8px;
    color: #f5f5f6;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 5px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        #15171c;
    cursor: pointer;
    scroll-snap-align: start;
    text-align: center;
    transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.poster-card-track .shelf-more-card {
    min-height: 0;
    aspect-ratio: auto;
    grid-template-rows: auto auto auto;
    height: clamp(214px, 19vw, 282px);
}

.shelf-more-card:hover,
.shelf-more-card:focus-visible {
    border-color: var(--accent);
    outline: 0;
    background-color: #1b1d22;
    transform: translateY(-4px);
}

.shelf-more-card span {
    color: #a8abb3;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.shelf-more-card strong {
    font-size: 18px;
    font-weight: 850;
}

.shelf-more-card svg {
    width: 22px;
    margin: 4px auto 0;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.media-card:hover,
.media-card:focus-visible {
    z-index: 2;
    outline: 0;
    transform: translateY(-4px) scale(1.025);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.52);
}

.media-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(to top, rgba(6, 7, 9, 0.94), transparent 68%);
}

.addon-badge-card {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    padding: 6px 7px 6px 8px;
}

.media-card img {
    width: 100%;
    height: 100%;
    min-height: 155px;
    object-fit: cover;
    transition: transform 600ms ease, filter 230ms ease;
}

.media-card:hover img {
    transform: scale(1.06);
    filter: saturate(1.15);
}

.poster-media-card::after {
    display: none;
}

.poster-media-card img {
    min-height: 0;
    border-radius: 7px;
}

.poster-media-card:hover,
.poster-media-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: none;
}

.poster-media-card:hover img,
.poster-media-card:focus-visible img {
    filter: saturate(1.12) contrast(1.05);
    transform: scale(1.025);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.card-content {
    position: absolute;
    z-index: 1;
    right: 15px;
    bottom: 13px;
    left: 15px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.card-copy {
    min-width: 0;
}

.card-copy strong,
.card-copy span {
    display: block;
}

.card-copy strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-copy span {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.compact-catalog .card-track {
    grid-auto-columns: minmax(190px, 22vw);
}

body.compact-catalog .media-card,
body.compact-catalog .media-card img {
    min-height: 118px;
}

body.compact-catalog .card-copy strong {
    font-size: 12px;
}

.catalog-more {
    justify-self: center;
    margin-top: -10px;
}

.card-play {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(4, 5, 7, 0.62);
    backdrop-filter: blur(8px);
}

.card-play svg {
    width: 13px;
    margin-left: 2px;
    fill: #fff;
}

.media-card.series .card-play svg {
    width: 15px;
    margin-left: 0;
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-width: 1.7;
}

.live-label {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 4px 7px;
    color: #fff;
    background: #c93c3c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.empty-state {
    padding: 85px 20px;
    border: 1px solid var(--line);
    text-align: center;
}

.empty-state.loading-state {
    border-color: rgba(231, 195, 109, 0.24);
    background:
        radial-gradient(circle at 50% 0, rgba(231, 195, 109, 0.11), transparent 34%),
        rgba(255, 255, 255, 0.018);
}

.empty-state > span {
    display: inline-grid;
    justify-items: center;
    gap: 12px;
    color: var(--accent);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.empty-state.loading-state > span .spinner {
    color: var(--accent);
}

.empty-state h3 {
    margin: 12px 0 8px;
    font-family: var(--display);
    font-size: 35px;
    font-weight: 500;
}

.empty-state p {
    margin: 0 auto 24px;
    color: var(--muted);
}

.footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 52px var(--page-x);
    color: var(--dim);
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.footer p {
    margin: 0;
}

.footer nav {
    display: flex;
    grid-column: 3;
    grid-row: 1;
    gap: 20px;
}

.footer a,
.footer button {
    color: var(--muted);
    text-decoration: none;
}

.footer a:hover,
.footer button:hover {
    color: var(--accent);
}

.footer small {
    grid-column: 2 / 4;
}

.modal[hidden],
.toast[hidden] {
    display: none;
}

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

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 4, 5, 0.82);
    backdrop-filter: blur(12px);
    animation: fadeIn 180ms ease both;
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 470px);
    max-height: calc(100vh - 40px);
    padding: clamp(28px, 5vw, 50px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 35%),
        #111316;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
    animation: modalIn 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modal-close {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.22);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

#authModal {
    place-items: start center;
    padding: clamp(70px, 9vh, 108px) 20px 40px;
}

#authModal .modal-backdrop {
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.34) 46%, rgba(0, 0, 0, 0.92)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.36) 56%, rgba(0, 0, 0, 0.82)),
        url("/assets/images/hero.jpg") center / cover;
    backdrop-filter: none;
}

.auth-card {
    width: min(100%, 450px);
    padding: clamp(34px, 5vw, 48px);
    border: 0;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.78);
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.72);
}

.auth-card .modal-close {
    top: 14px;
    right: 14px;
    color: rgba(255, 255, 255, 0.62);
    border: 0;
    background: transparent;
}

.auth-card .modal-brand {
    margin-bottom: 36px;
}

.auth-card .brand-mark {
    width: 36px;
    height: 36px;
    color: #fff;
    background: #e50914;
    clip-path: none;
    font-family: var(--body);
    font-size: 25px;
}

.auth-card .section-kicker {
    color: #e50914;
    letter-spacing: 0.2em;
}

.auth-card h2 {
    font-family: var(--body);
    font-size: clamp(32px, 7vw, 40px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
}

.auth-card > p:not(.section-kicker, .auth-switch) {
    max-width: 330px;
    margin: 13px 0 28px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
}

.auth-card .field span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.auth-card .field input {
    height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    background: rgba(22, 22, 22, 0.9);
}

.auth-card .field input:focus {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.35);
}

.auth-card .submit-button {
    min-height: 50px;
    margin-top: 12px;
    border-color: #e50914;
    border-radius: 4px;
    background: #e50914;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.auth-card .submit-button:hover,
.auth-card .submit-button:focus-visible {
    border-color: #f40612;
    background: #f40612;
}

.auth-switch {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
    line-height: 1.45;
}

.auth-switch a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.auth-switch a:hover,
.auth-switch a:focus-visible {
    text-decoration: underline;
}

.auth-inline-actions {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 12px;
}

.auth-inline-actions button {
    padding: 0;
    color: rgba(255, 255, 255, 0.78);
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.auth-inline-actions button:hover,
.auth-inline-actions button:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.series-card {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #0d0f12;
    box-shadow: 0 35px 110px rgba(0, 0, 0, 0.78);
    animation: modalIn 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
    scrollbar-width: thin;
}

.series-overview {
    position: relative;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: end;
    gap: 28px;
    min-height: 330px;
    padding: 50px 54px 34px;
    overflow: hidden;
}

.series-backdrop {
    position: absolute;
    inset: -12%;
    width: 124%;
    height: 124%;
    object-fit: cover;
    opacity: 0.42;
    filter: blur(12px) saturate(0.85);
    transform: scale(1.05);
}

.series-overview-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 8, 10, 0.95), rgba(7, 8, 10, 0.45) 60%, rgba(7, 8, 10, 0.78)),
        linear-gradient(to top, #0d0f12 0%, transparent 72%);
}

.series-poster {
    position: relative;
    z-index: 1;
    width: 190px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--panel-soft);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.62);
}

.series-copy {
    position: relative;
    z-index: 1;
    padding-bottom: 8px;
}

.series-copy h2 {
    max-width: 650px;
    margin: 10px 0 12px;
    font-family: var(--display);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.series-copy > p:not(.section-kicker) {
    max-width: 580px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.6;
}

.series-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.series-meta span {
    padding: 6px 9px;
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.34);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.series-body {
    min-height: 250px;
    padding: 18px 54px 48px;
}

.series-loading {
    display: grid;
    min-height: 210px;
    place-content: center;
    justify-items: center;
    gap: 16px;
    color: var(--muted);
    font-size: 12px;
}

.series-loading[hidden],
#seriesContent[hidden],
.series-error[hidden] {
    display: none;
}

.season-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.season-toolbar .section-kicker {
    margin-bottom: 6px;
}

.season-toolbar h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 34px;
    font-weight: 500;
}

.season-select {
    display: grid;
    gap: 6px;
}

.season-select span {
    color: var(--dim);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.season-select select {
    min-width: 140px;
    height: 40px;
    padding: 0 36px 0 12px;
    color: var(--ink);
    border: 1px solid var(--line);
    outline: 0;
    background: #15171b;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

.season-select select:focus {
    border-color: var(--accent);
}

.episode-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.episode-row {
    display: grid;
    grid-template-columns: 42px 150px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 14px 8px;
    color: var(--ink);
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background 160ms ease, transform 160ms ease;
}

.episode-row:hover,
.episode-row:focus-visible {
    outline: 0;
    background: rgba(255, 255, 255, 0.055);
    transform: translateX(3px);
}

.episode-number {
    color: var(--dim);
    font-family: var(--display);
    font-size: 28px;
    text-align: center;
}

.episode-thumb {
    position: relative;
    height: 84px;
    overflow: hidden;
    background: var(--panel-soft);
}

.episode-thumb::after {
    position: absolute;
    inset: 0;
    content: "";
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-copy {
    min-width: 0;
}

.episode-copy strong,
.episode-copy span {
    display: block;
}

.episode-copy strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.episode-copy span {
    margin-top: 7px;
    color: var(--dim);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.episode-copy p {
    display: -webkit-box;
    max-width: 620px;
    margin: 8px 0 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.54);
    font-size: 11px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.episode-play {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.episode-row:hover .episode-play {
    color: #090a0c;
    border-color: var(--accent);
    background: var(--accent);
}

.episode-play svg {
    width: 12px;
    margin-left: 2px;
    fill: currentColor;
}

.series-error {
    margin: 30px 0;
    padding: 18px;
    color: #ffd9d9;
    border: 1px solid rgba(235, 93, 93, 0.35);
    background: rgba(235, 93, 93, 0.1);
    font-size: 12px;
}

.series-close {
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
}

.detail-card {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
    max-height: calc(100vh - 40px);
    min-height: 610px;
    overflow: hidden auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #0d0f12;
    box-shadow: 0 35px 110px rgba(0, 0, 0, 0.78);
    animation: modalIn 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
    scrollbar-width: thin;
}

.detail-backdrop {
    position: absolute;
    inset: -8% -4% auto;
    width: 108%;
    height: 620px;
    object-fit: cover;
    opacity: 0.48;
    filter: saturate(0.82);
}

.detail-shade {
    position: absolute;
    inset: 0;
    height: 640px;
    background:
        linear-gradient(90deg, rgba(7, 8, 10, 0.97) 4%, rgba(7, 8, 10, 0.67) 48%, rgba(7, 8, 10, 0.48)),
        linear-gradient(to top, #0d0f12 2%, transparent 74%);
}

.detail-layout {
    position: relative;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: end;
    gap: clamp(28px, 5vw, 64px);
    min-height: 610px;
    padding: 72px 68px 58px;
}

.detail-poster {
    width: 230px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--panel-soft);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.72);
}

.detail-copy {
    min-width: 0;
    padding-bottom: 8px;
}

.detail-copy h2 {
    max-width: 690px;
    margin: 10px 0 16px;
    font-family: var(--display);
    font-size: clamp(46px, 6.5vw, 78px);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    min-height: 25px;
}

.detail-meta span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    letter-spacing: 0.04em;
}

.detail-meta span:not(:last-child)::after {
    margin-left: 9px;
    color: var(--accent);
    content: "◆";
    font-size: 6px;
    vertical-align: 2px;
}

.detail-summary {
    max-width: 650px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.75;
}

.detail-facts,
.series-credits {
    display: grid;
    gap: 9px;
    margin: 22px 0 0;
}

.detail-facts[hidden],
.series-credits[hidden] {
    display: none;
}

.detail-facts div,
.series-credits div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
}

.detail-facts dt,
.series-credits dt {
    color: var(--dim);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.detail-facts dd,
.series-credits dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    line-height: 1.45;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.detail-loading {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 15px;
    color: var(--muted);
    background: rgba(9, 10, 12, 0.82);
    backdrop-filter: blur(10px);
    font-size: 12px;
}

.detail-loading[hidden] {
    display: none;
}

.detail-close {
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
}

.series-credits {
    max-width: 620px;
    margin-top: 18px;
}

.series-credits div {
    grid-template-columns: 74px minmax(0, 1fr);
}

.modal-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 28px;
}

.modal-brand .section-kicker {
    margin: 0;
}

.modal-card h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(36px, 6vw, 50px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.modal-card > p:not(.section-kicker, .demo-hint) {
    margin: 15px 0 25px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--line);
}

.auth-tabs button {
    padding: 12px 5px;
    color: var(--dim);
    border-bottom: 2px solid transparent;
    font-size: 12px;
}

.auth-tabs button.active {
    color: var(--ink);
    border-color: var(--accent);
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.field span {
    color: var(--muted);
    font-size: 11px;
}

.field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 2px;
    outline: 0;
    background: rgba(0, 0, 0, 0.22);
    transition: border-color 180ms ease;
}

.field select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 2px;
    outline: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: border-color 180ms ease;
}

.field input:focus,
.field select:focus {
    border-color: var(--accent);
}

.form-error {
    margin: 0 0 15px;
    padding: 10px 12px;
    color: #ffb0b0;
    border-left: 2px solid var(--danger);
    background: rgba(235, 93, 93, 0.08);
    font-size: 12px;
}

.submit-button {
    width: 100%;
    margin-top: 5px;
}

.submit-button.loading .spinner {
    display: block;
}

.submit-button.loading {
    pointer-events: none;
    opacity: 0.75;
}

.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 650ms linear infinite;
}

.spinner.large {
    display: block;
    width: 32px;
    height: 32px;
}

.demo-hint {
    margin: 18px 0 0;
    color: var(--dim);
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

.demo-hint strong {
    color: var(--muted);
}

.account-settings-card {
    width: min(1180px, calc(100% - 48px));
    max-height: min(92vh, 920px);
    overflow: auto;
    padding: 0;
    border-color: rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(229, 9, 20, 0.12), transparent 210px),
        #080808;
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.72);
}

.profile-card > .section-kicker {
    margin: 0;
    padding: 30px 44px 0;
    color: #e50914;
}

.profile-card > h2 {
    margin: 8px 0 0;
    padding: 0 44px;
    font-family: var(--body);
    font-size: 46px;
    font-weight: 600;
    line-height: 1.04;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 20px 44px 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
}

.avatar-large {
    width: 76px;
    height: 76px;
    border-radius: 4px;
    font-size: 44px;
}

.profile-identity > div > strong,
.profile-identity > div > span {
    display: block;
}

.profile-identity > div > strong {
    margin-bottom: 6px;
    font-size: 24px;
}

.profile-identity > div > span {
    color: #b3b3b3;
    font-size: 14px;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 44px 24px;
}

.profile-details div {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: #141414;
}

.profile-details dt {
    color: #777;
    font-size: 11px;
}

.profile-details dd {
    margin: 0;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 26px;
    margin: 0;
    padding: 0 44px 42px;
}

.settings-nav {
    display: grid;
    align-content: start;
    gap: 6px;
}

.settings-nav button {
    min-height: 48px;
    padding: 0 16px;
    color: #a7a7a7;
    text-align: left;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.settings-nav button:hover,
.settings-nav button.active {
    color: #fff;
    border-color: #e50914;
    background: rgba(255, 255, 255, 0.08);
}

.settings-panels {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: #101010;
}

.settings-panel {
    display: none;
    min-height: 0;
    padding: 24px 36px 20px;
}

.settings-panel.active {
    display: block;
}

.panel-heading {
    margin-bottom: 18px;
}

.panel-heading .section-kicker {
    margin: 0 0 9px;
    color: #e50914;
}

.panel-heading h3 {
    margin: 0;
    font-family: var(--body);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.08;
}

.settings-grid {
    display: grid;
    gap: 14px;
}

.settings-grid.two-columns,
.password-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.password-grid .button {
    grid-column: 1 / -1;
    justify-self: start;
}

.avatar-studio {
    display: grid;
    grid-template-columns: repeat(6, minmax(78px, 1fr));
    gap: 16px;
    margin: 16px 0 18px;
}

.avatar-option {
    display: grid;
    gap: 9px;
    justify-items: center;
    color: #9f9f9f;
    cursor: pointer;
}

.avatar-studio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.avatar-choice {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border: 3px solid transparent;
    border-radius: 4px;
    color: #111;
    font-family: var(--display);
    font-size: 42px;
    font-weight: 900;
    overflow: hidden;
    position: relative;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.avatar-choice::after {
    position: absolute;
    inset: 10px auto auto 10px;
    width: 18px;
    height: 18px;
    content: "";
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.avatar-choice-gold {
    background: linear-gradient(135deg, #f7d77f, #c18b2f);
}

.avatar-choice-red {
    background: linear-gradient(135deg, #ff7777, #b31217);
}

.avatar-choice-green {
    background: linear-gradient(135deg, #59d68f, #0a6f4b);
}

.avatar-choice-blue {
    background: linear-gradient(135deg, #6eb6ff, #145c99);
}

.avatar-choice-violet {
    background: linear-gradient(135deg, #b987ff, #4b1d8f);
}

.avatar-choice-mono {
    color: #fff;
    background: linear-gradient(135deg, #f4f4f4, #171717);
}

.avatar-option small {
    font-size: 12px;
}

.avatar-option:hover .avatar-choice,
.avatar-studio input:checked + .avatar-choice {
    transform: translateY(-3px);
    border-color: #fff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

.avatar-studio input:checked ~ small {
    color: #fff;
}

.toggle-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-height: 52px;
    margin-bottom: 12px;
    color: var(--ink);
    cursor: pointer;
}

.toggle-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-row span {
    position: relative;
    width: 44px;
    height: 24px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 160ms ease, border-color 160ms ease;
}

.toggle-row span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    content: "";
    border-radius: 50%;
    background: #fff;
    transition: transform 160ms ease;
}

.toggle-row input:checked + span {
    border-color: rgba(231, 195, 109, 0.65);
    background: rgba(231, 195, 109, 0.34);
}

.toggle-row input:checked + span::after {
    transform: translateX(20px);
}

.settings-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.settings-actions .button {
    min-height: 44px;
}

.profile-card > .submit-button {
    width: auto;
    min-height: 46px;
    margin: 0 44px 14px;
}

.profile-card > #logoutButton {
    margin-bottom: 42px;
}

.split-actions {
    justify-content: space-between;
}

.billing-summary {
    display: grid;
    gap: 10px;
    margin: 0;
}

.billing-summary div {
    display: grid;
    grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr);
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.billing-summary dt {
    color: var(--dim);
    font-size: 11px;
}

.billing-summary dd {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-card {
    position: relative;
    z-index: 1;
    width: min(1100px, 96vw);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #030405;
    box-shadow: 0 30px 100px #000;
    animation: modalIn 260ms ease both;
}

.player-card video,
.player-card iframe,
.embed-launch-panel {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #000;
}

.player-card:fullscreen,
.player-card:-webkit-full-screen {
    display: flex;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    border: 0;
}

.player-card:fullscreen video,
.player-card:fullscreen iframe,
.player-card:fullscreen .embed-launch-panel,
.player-card:-webkit-full-screen video,
.player-card:-webkit-full-screen iframe,
.player-card:-webkit-full-screen .embed-launch-panel {
    flex: 1;
    min-height: 0;
    aspect-ratio: auto;
}

.player-card iframe[hidden],
.player-card video[hidden],
.embed-launch-panel[hidden],
.player-embed-open[hidden],
.player-embed-retry[hidden] {
    display: none;
}

.embed-launch-panel {
    display: grid;
    min-height: 220px;
    place-content: center;
    justify-items: center;
    gap: 18px;
    padding: 28px;
    color: var(--ink);
    background:
        linear-gradient(145deg, rgba(231, 195, 109, 0.12), transparent 44%),
        #040506;
    text-align: center;
}

.embed-launch-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.embed-launch-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.embed-launch-actions .button {
    min-height: 42px;
    padding: 0 18px;
    font-size: 11px;
}

.player-placeholder {
    position: absolute;
    inset: 0 0 92px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 16px;
    color: var(--muted);
    background:
        radial-gradient(circle, rgba(231, 195, 109, 0.1), transparent 35%),
        #050607;
    font-size: 12px;
}

.player-placeholder[hidden] {
    display: none;
}

.player-placeholder.error .spinner {
    display: none;
}

.player-placeholder.error p {
    max-width: 440px;
    padding: 0 20px;
    text-align: center;
}

.player-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 92px;
    padding: 18px 24px;
    background: var(--panel);
}

.player-title-group,
.player-tools {
    display: flex;
    align-items: center;
    gap: 13px;
}

.player-title-group {
    min-width: 0;
}

.player-caption h2 {
    margin: 0;
    font-family: var(--body);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
}

.player-caption p {
    margin: 0;
    color: var(--dim);
    font-size: 11px;
}

.player-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

.player-quality {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dim);
    font-size: 10px;
    text-transform: uppercase;
}

.player-quality select {
    min-width: 104px;
    height: 34px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: #0a0d0b;
    font: inherit;
    text-transform: none;
}

.player-fullscreen,
.player-embed-open,
.player-embed-retry {
    display: inline-flex;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: var(--ink);
    border: 0;
    background: var(--accent-strong);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.player-embed-open,
.player-embed-retry {
    color: #fff;
    border: 1px solid var(--line);
    background: transparent;
}

.player-fullscreen:hover,
.player-fullscreen:focus-visible,
.player-embed-open:hover,
.player-embed-open:focus-visible,
.player-embed-retry:hover,
.player-embed-retry:focus-visible {
    filter: brightness(1.08);
}

.live-badge {
    padding: 5px 7px;
    color: #fff;
    background: #c93c3c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.player-close {
    color: #fff;
    background: rgba(0, 0, 0, 0.66);
}

.toast {
    position: fixed;
    z-index: 120;
    right: 24px;
    bottom: 24px;
    max-width: min(360px, calc(100vw - 48px));
    padding: 14px 17px;
    color: #101113;
    border-left: 3px solid #fff;
    background: var(--accent-strong);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    font-size: 12px;
    animation: toastIn 240ms ease both;
}

.toast.error {
    color: #fff;
    background: #a83737;
}

@keyframes heroReveal {
    from { opacity: 0; transform: scale(1.08); }
    to { opacity: 1; transform: scale(1.025); }
}

@keyframes contentReveal {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroTextSwap {
    0% { opacity: 0; transform: translateY(22px); filter: blur(6px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes heroBackdropSwap {
    0% { opacity: 0.5; transform: scale(1.07) translateX(14px); filter: saturate(0.75) blur(4px); }
    100% { opacity: 1; transform: scale(1.025) translateX(0); filter: saturate(1) blur(0); }
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 0.65; }
    50% { transform: scale(1.8); opacity: 1; }
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes searchPanelIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1020px) {
    .topbar {
        gap: 24px;
    }

    .main-nav {
        gap: 18px;
    }

    .account-button #accountLabel {
        display: none;
    }

    .card-track {
        grid-auto-columns: minmax(230px, 40vw);
    }

    .watch-poster-rail {
        grid-auto-columns: 152px;
        gap: 18px;
    }

    .watch-poster-card {
        grid-template-rows: 228px 18px 43px 23px;
    }

    .watch-poster-card img {
        height: 228px;
    }

    .watch-orbit-rail {
        grid-auto-columns: 116px;
        gap: 18px;
    }

    .watch-orbit-card > span {
        width: 104px;
        height: 104px;
    }
}

@media (max-width: 760px) {
    .topbar {
        grid-template-columns: auto 1fr;
        height: 72px;
    }

    .topbar.scrolled {
        height: 62px;
    }

    .brand-name,
    .notification-button {
        display: none;
    }

    .main-nav {
        position: fixed;
        right: 12px;
        bottom: 12px;
        left: 12px;
        z-index: 40;
        justify-content: space-around;
        gap: 0;
        height: 58px;
        padding: 0 8px;
        border: 1px solid var(--line);
        border-radius: 4px;
        background: rgba(12, 13, 16, 0.94);
        backdrop-filter: blur(18px);
    }

    .nav-link {
        padding: 18px 8px;
        font-size: 11px;
    }

    .nav-link::after {
        bottom: 9px;
    }

    .topbar-actions {
        justify-content: end;
    }

    .search-box,
    .search-box:hover,
    .search-box:focus-within,
    .search-shell.open .search-box,
    .search-shell.has-query .search-box {
        width: min(52vw, 220px);
        border-color: var(--line);
        background: rgba(0, 0, 0, 0.42);
    }

    .search-panel {
        right: -52px;
    }

    .hero {
        min-height: 780px;
        align-items: end;
        padding-bottom: 110px;
    }

    .hero-backdrop {
        background:
            linear-gradient(to top, #08090b 7%, rgba(5, 6, 8, 0.2) 58%, rgba(5, 6, 8, 0.55) 100%),
            var(--hero-image) 64% center / cover no-repeat;
    }

    .hero-content {
        width: calc(100vw - 2 * var(--page-x));
        max-width: calc(100vw - 2 * var(--page-x));
        padding-top: 0;
    }

    .hero h1 {
        font-size: clamp(42px, 13vw, 62px);
        line-height: 0.92;
    }

    .hero.long-title h1 {
        font-size: clamp(34px, 10.5vw, 54px);
        line-height: 0.96;
    }

    .hero-copy {
        width: calc(100vw - 2 * var(--page-x));
        max-width: 100%;
        font-size: 14px;
        overflow-wrap: break-word;
    }

    .hero-index {
        display: none;
    }

    .hero-controls {
        display: none;
    }

    .hero-dots {
        right: auto;
        bottom: 72px;
        left: var(--page-x);
        max-width: calc(100vw - 2 * var(--page-x));
    }

    .catalog-shell {
        margin-top: -56px;
        padding-top: 42px;
    }

    .watch-showcase {
        margin-bottom: 30px;
    }

    .watch-showcase-heading {
        align-items: flex-start;
        margin-bottom: 14px;
    }

    .watch-showcase-heading h3 {
        max-width: 250px;
        font-size: 23px;
        line-height: 1.15;
    }

    .watch-showcase-more {
        min-height: 30px;
        font-size: 12px;
    }

    .watch-showcase-controls {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .watch-poster-rail {
        grid-auto-columns: 138px;
        gap: 16px;
    }

    .watch-poster-card {
        grid-template-rows: 207px 18px 40px 22px;
    }

    .watch-poster-card img {
        height: 207px;
        border-radius: 7px;
    }

    .watch-poster-card strong {
        font-size: 14px;
    }

    .watch-poster-card small {
        font-size: 12px;
    }

    .watch-poster-card small b {
        padding: 4px 7px;
        font-size: 10px;
    }

    .watch-orbit-rail {
        grid-auto-columns: 104px;
        gap: 16px;
        margin-top: 28px;
    }

    .watch-orbit-card > span {
        width: 92px;
        height: 92px;
        padding: 5px;
        border-width: 4px;
    }

    .row-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .row-see-more {
        min-height: 30px;
        padding-inline: 10px;
        font-size: 11px;
    }

    .poster-card-track {
        grid-auto-columns: 138px;
        gap: 16px;
    }

    .poster-media-card {
        grid-template-rows: 207px 56px;
    }

    .poster-card-track .shelf-more-card {
        height: 207px;
    }

    .watch-orbit-card strong {
        font-size: 13px;
    }

    .watch-orbit-card small {
        font-size: 11px;
    }

    .catalog-heading {
        align-items: start;
    }

    .catalog-controls {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .catalog-selectors,
    .catalog-select {
        justify-content: space-between;
    }

    .catalog-selectors {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .catalog-select select {
        min-width: min(58vw, 210px);
    }

    .status-pill {
        display: none;
    }

    .card-track {
        grid-auto-columns: minmax(220px, 76vw);
        gap: 9px;
    }

    .catalog-rows {
        gap: 28px;
    }

    .row-heading {
        align-items: end;
    }

    .row-heading-copy h3 {
        font-size: 18px;
    }

    .row-navigation {
        display: none;
    }

    .footer {
        display: flex;
        align-items: start;
        flex-direction: column;
        padding-bottom: 100px;
    }

    .footer nav {
        flex-wrap: wrap;
    }

    .account-settings-card {
        width: 100%;
        max-height: 100vh;
        padding: 0;
    }

    .profile-card > .section-kicker {
        padding: 30px 22px 0;
    }

    .profile-card > h2 {
        padding: 0 22px;
        font-size: 36px;
    }

    .profile-identity {
        margin: 22px 22px 0;
        padding: 14px;
    }

    .profile-details {
        margin: 14px 22px 24px;
    }

    .settings-layout {
        padding: 0 22px 32px;
    }

    .profile-details,
    .settings-layout,
    .settings-grid.two-columns,
    .password-grid {
        grid-template-columns: 1fr;
    }

    .settings-layout {
        gap: 14px;
    }

    .settings-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .settings-nav::-webkit-scrollbar {
        display: none;
    }

    .settings-nav button {
        flex: 0 0 auto;
        min-width: 116px;
        text-align: center;
    }

    .settings-panel {
        min-height: 0;
        padding: 24px 18px;
    }

    .profile-card > .submit-button {
        width: calc(100% - 44px);
        margin-right: 22px;
        margin-left: 22px;
    }

    .avatar-studio {
        grid-template-columns: repeat(3, minmax(74px, 1fr));
        gap: 13px;
    }

    .avatar-choice {
        width: 74px;
        height: 74px;
        font-size: 34px;
    }

    .player-caption {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .player-tools {
        align-items: flex-start;
        justify-content: space-between;
    }

    .player-tools #playerMessage {
        flex: 1 1 100%;
        line-height: 1.45;
    }

    .player-placeholder {
        inset: 0 0 128px;
    }

    #playerModal.is-embed-player {
        place-items: stretch;
        padding: 0;
    }

    #playerModal.is-embed-player .modal-backdrop {
        background: #030405;
        backdrop-filter: none;
    }

    #playerModal.is-embed-player .player-card {
        display: flex;
        width: 100vw;
        max-width: none;
        height: 100vh;
        height: 100svh;
        flex-direction: column;
        border: 0;
        box-shadow: none;
    }

    #playerModal.is-embed-player .player-card iframe,
    #playerModal.is-embed-player .embed-launch-panel {
        flex: 1 1 auto;
        min-height: calc(100vh - 132px);
        min-height: min(72vh, calc(100vh - 132px));
        min-height: min(72svh, calc(100svh - 132px));
        aspect-ratio: auto;
    }

    #playerModal.is-embed-player .player-placeholder {
        inset: 0 0 132px;
    }

    #playerModal.is-embed-player .player-caption {
        flex: 0 0 auto;
        min-height: 0;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    }

    #playerModal.is-embed-player .player-quality {
        display: none;
    }

    #playerModal.is-embed-player .player-fullscreen,
    #playerModal.is-embed-player .player-embed-open,
    #playerModal.is-embed-player .player-embed-retry {
        height: 38px;
    }

    .series-overview {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 18px;
        min-height: 260px;
        padding: 46px 22px 28px;
    }

    .series-poster {
        width: 120px;
    }

    .series-copy h2 {
        font-size: clamp(32px, 9vw, 48px);
    }

    .series-copy > p:not(.section-kicker) {
        display: -webkit-box;
        overflow: hidden;
        font-size: 11px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .series-body {
        padding: 16px 22px 34px;
    }

    .episode-row {
        grid-template-columns: 28px 100px minmax(0, 1fr) 32px;
        gap: 10px;
        padding-right: 0;
        padding-left: 0;
    }

    .episode-thumb {
        height: 58px;
    }

    .episode-number {
        font-size: 22px;
    }

    .episode-play {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 430px) {
    .account-button > svg {
        display: none;
    }

    .search-box,
    .search-box:hover,
    .search-box:focus-within,
    .search-shell.open .search-box,
    .search-shell.has-query .search-box {
        width: 47vw;
    }

    .search-panel {
        position: fixed;
        top: 68px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .search-result {
        grid-template-columns: 92px minmax(0, 1fr) 28px;
    }

    .search-result-image {
        height: 52px;
    }

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

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

    .profile-identity {
        align-items: start;
    }

    .profile-identity h2 {
        font-size: 34px;
    }

    .settings-actions,
    .settings-actions .button,
    .settings-actions a {
        width: 100%;
    }

    .billing-summary div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .hero-meta span:nth-child(3) {
        display: none;
    }

    .series-overview {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 14px;
        min-height: 220px;
        padding: 44px 16px 22px;
    }

    .series-poster {
        width: 88px;
    }

    .series-copy h2 {
        margin-top: 6px;
        font-size: 31px;
    }

    .series-meta {
        margin-top: 12px;
    }

    .series-body {
        padding: 14px 16px 28px;
    }

    .season-toolbar {
        align-items: start;
        flex-direction: column;
        gap: 14px;
    }

    .season-select,
    .season-select select {
        width: 100%;
    }

    .episode-row {
        grid-template-columns: 24px 78px minmax(0, 1fr);
    }

    .episode-thumb {
        height: 48px;
    }

    .episode-play {
        display: none;
    }

    .episode-copy strong {
        font-size: 12px;
    }

    .episode-copy span {
        font-size: 8px;
    }
}

@media (max-width: 760px) {
    .detail-card {
        min-height: min(680px, calc(100vh - 24px));
    }

    .detail-backdrop,
    .detail-shade {
        height: 100%;
    }

    .detail-layout {
        grid-template-columns: 118px minmax(0, 1fr);
        align-items: start;
        gap: 18px;
        min-height: 0;
        padding: 58px 22px 34px;
    }

    .detail-poster {
        width: 118px;
    }

    .detail-copy h2 {
        margin-top: 7px;
        font-size: clamp(34px, 10vw, 52px);
    }

    .detail-summary,
    .detail-facts,
    .detail-actions {
        grid-column: 1 / -1;
    }

    .detail-copy {
        display: contents;
    }

    .detail-copy > .section-kicker,
    .detail-copy > h2,
    .detail-copy > .detail-meta {
        grid-column: 2;
    }

    .detail-summary {
        margin-top: 4px;
    }
}

@media (max-width: 430px) {
    .detail-layout {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 14px;
        padding: 52px 16px 28px;
    }

    .detail-poster {
        width: 86px;
    }

    .detail-copy h2 {
        font-size: 30px;
    }

    .detail-meta span {
        font-size: 9px;
    }

    .detail-facts div {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .detail-actions .button {
        width: 100%;
    }

    .series-credits {
        display: none;
    }
}

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