:root {
    color-scheme: dark;
    font-family: Inter, system-ui, sans-serif;
    --background: #141414;
    --surface: #181818;
    --text: #fafafa;
    --muted: #bbb;
    --red: #e50914;
    --edge: clamp(1rem, 3.1vw, 4.5rem);
    --save-size: 2.6rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body { margin: 0; color: var(--text); background: var(--background); }
.content-excluded .poster-card__image > img { filter: grayscale(1); opacity: .3; }
.content-excluded .poster-card__preview, .content-excluded .poster-card__synopsis { display: none; }
.poster-content-overlay { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .65rem; padding: .8rem; color: #ddd; text-align: center; background: #1115; }
.poster-content-overlay strong { font-size: .85rem; }
.poster-content-overlay > span { color: #aaa; font-size: .7rem; line-height: 1.45; }
.modal-loading { min-height: 24rem; padding: 3rem 2rem 2rem; }
.modal-loading h1 { font-size: clamp(1.5rem,4vw,2.6rem); }
.modal-loading__art { height: 12rem; margin-bottom: 1.5rem; border-radius: .4rem; background: linear-gradient(110deg,#222 20%,#333 40%,#222 60%); background-size: 200% 100%; animation: modal-loading 1.4s linear infinite; }
.modal-scroll[aria-busy="true"] { cursor: progress; }
@keyframes modal-loading { to { background-position: -200% 0; } }
@media(prefers-reduced-motion:reduce) { .modal-loading__art { animation: none; } }
a { color: inherit; text-underline-offset: .22em; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.shell { width: calc(100% - 2 * var(--edge)); max-width: 110rem; margin-inline: auto; }
.site-header { position: relative; z-index: 5; background: linear-gradient(#090909, #141414); }
.site-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "browse brand account"; align-items: center; gap: clamp(.65rem, 2vw, 1.8rem); min-height: 4.45rem; }
.brand {
    grid-area: brand;
    justify-self: center;
    display: inline-flex;
    text-decoration: none;
}
.brand__image { display: block; width: clamp(10rem, 17vw, 13rem); height: auto; }
.auth-card-brand .brand__image { width: 10rem; }
.site-footer { margin-top: 3rem; padding-block: 2rem; border-top: 1px solid #ffffff1c; background: #101010; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.site-footer__name { margin: 0; font-size: 1.2rem; letter-spacing: .01em; }
.site-footer p { margin-block: .4rem; }
.site-footer__tagline, .site-footer__note { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.site-footer__note { color: #929292; }
.site-footer nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-content: start; gap: .4rem 1.2rem; width: min(100%,35rem); }
.site-footer nav a { display: block; }
.site-footer nav a { padding-block: .45rem; color: #ccc; font-size: .85rem; text-decoration: none; }
.site-footer nav a:hover { color: white; text-decoration: underline; }
.site-footer__rta { display: inline-flex; margin-top: .65rem; }
.site-footer__rta img { width: 81px; height: 30px; }
.site-footer__intro { flex: 1 1 18rem; max-width: 34rem; }
.home-about { max-width: 50rem; margin: 2.5rem auto 0; padding: 1.75rem 0 .5rem; border-top: 1px solid #ffffff12; }
.home-about__label { display: inline-block; margin-bottom: .75rem; padding: .25rem .5rem; border-radius: .25rem; background: #e5091414; color: #ed777d; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.home-about h2 { margin: 0 0 1rem; color: var(--text); font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.home-about p { margin: 0 0 .875rem; color: var(--muted); font-size: .95rem; line-height: 1.75; }
.home-about p:last-child { margin-bottom: 0; }
.home-about a { color: #ddd; text-underline-offset: .2em; }
.home-about a:hover { color: #ed777d; }
.home-about__links { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #ffffff12; }
.home-about__links h3 { margin: 0 0 .4rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
.home-about__links ul { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.home-about__links a { display: inline-block; padding-block: .4rem; font-size: .9rem; }
@media (max-width: 600px) { .home-about { margin-top: 1.75rem; padding-top: 1.375rem; } .home-about h2 { font-size: 1.3rem; } .home-about p { font-size: .875rem; } }
.static-page { max-width: 48rem; padding-block: 1.5rem 2rem; }
.static-page h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.15; }
.static-page h2 { margin-top: 2rem; font-size: 1.2rem; }
.static-page p, .static-page li { color: #ccc; line-height: 1.7; }
.static-page li + li { margin-top: .5rem; }
.static-page__intro { font-size: 1.05rem; }
.static-page__updated { padding: .65rem .85rem; border: 1px solid #ffffff24; border-radius: .4rem; color: var(--muted); font-size: .8rem; }
.browse-nav, .account-nav { display: flex; align-items: center; gap: clamp(.5rem, 1.65vw, 1.5rem); font-size: .9rem; }
.browse-nav { grid-area: browse; }
.browse-nav a, .account-nav--guest > a:not(.button) { color: var(--muted); text-decoration: none; white-space: nowrap; }
.browse-nav a:hover, .account-nav > a:hover { color: white; }
.category-menu summary { display: flex; align-items: center; gap: .45rem; color: var(--muted); cursor: pointer; list-style: none; }
.category-menu summary::-webkit-details-marker { display: none; }
.category-menu summary:hover, .category-menu[open] summary { color: white; }
.category-menu summary span { width: .43rem; height: .43rem; margin-top: -.2rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.category-menu[open] summary span { margin-top: .2rem; transform: rotate(225deg); }
.category-menu__panel { position: absolute; top: calc(100% - .15rem); left: 50%; width: min(100% - 2 * var(--edge), 56rem); max-height: 72vh; overflow: hidden auto; overscroll-behavior: contain; padding: clamp(.9rem, 2.8vw, 1.7rem); border: 1px solid #ffffff26; border-radius: .65rem; background: #1c1c1c; box-shadow: 0 1.2rem 2.8rem #0009; transform: translateX(-50%); }
.category-menu__panel p { margin: 0 0 .95rem; color: #fff; font-size: 1.2rem; font-weight: 750; }
.category-menu__panel ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .55rem; margin: 0; padding: 0; list-style: none; }
.category-menu__panel li { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: .4rem; min-width: 0; padding: .75rem .85rem; border: 1px solid #ffffff15; border-radius: .45rem; background: #242424; }
.category-menu__panel .category-name { min-width: 0; white-space: normal; overflow-wrap: anywhere; color: #fafafa; line-height: 1.35; }
.category-name { font-weight: 700; }
.category-menu__panel li { position: relative; }
.category-menu__panel a.category-name::after { position: absolute; inset: 0; content: ""; border-radius: .45rem; }
.category-menu__panel li:has(a:hover), .category-menu__panel li:has(a:focus-visible) { border-color: #ffffff60; background: #303030; }
.category-menu__panel a.category-name:focus-visible { outline: none; }
.category-menu__panel a.category-name:focus-visible::after { outline: 2px solid white; outline-offset: 2px; }
.category-menu__panel li:not(:has(a)) { opacity: .55; }
.category-count { color: #ddd; font-size: .72rem; white-space: nowrap; }
.discover-menu-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; }
.category-menu__panel .discover-menu-genres ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-menu__panel .discover-menu-themes ul { grid-template-columns: minmax(0, 1fr); }
.discover-menu-themes .category-name { display: grid; gap: .3rem; }
.discover-theme-description { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; line-height: 1.45; }
.discover-menu-filters { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid #ffffff26; }
.category-menu__panel .discover-menu-filters ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 650px) {
    .discover-menu-columns { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .category-menu__panel .discover-menu-filters ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.catalogue-search summary { display: grid; place-items: center; width: 2rem; min-height: 2.3rem; color: var(--muted); cursor: pointer; list-style: none; }
.catalogue-search summary::-webkit-details-marker { display: none; }
.catalogue-search summary:hover, .catalogue-search[open] summary { color: white; }
.search-icon { position: relative; width: .82rem; height: .82rem; margin: 0 .17rem .17rem 0; border: 1.6px solid currentColor; border-radius: 50%; }
.search-icon::after { position: absolute; top: 100%; left: 90%; width: .4rem; height: 1.6px; background: currentColor; content: ""; transform: rotate(45deg); transform-origin: left; }
.catalogue-search__panel { position: absolute; top: calc(100% - .15rem); left: 50%; width: min(100% - 2 * var(--edge), 33rem); padding: .65rem; border: 1px solid #ffffff26; border-radius: .55rem; background: #1c1c1c; box-shadow: 0 .7rem 1.6rem #0009; transform: translateX(-50%); }
.catalogue-search__results { max-width: 75rem; margin-top: .75rem; }
.catalogue-search-form { display: flex; align-items: center; gap: .45rem; }
.catalogue-search-form label { flex: 1; min-width: 0; }
.catalogue-search-form input, .catalogue-search-form select { width: 100%; min-height: 2.65rem; padding: .55rem .72rem; border: 1px solid #ffffff38; border-radius: .35rem; background: #171717; color: white; font: inherit; }
.catalogue-search-form .button { min-height: 2.65rem; padding-inline: .8rem; }
.catalogue-search-form--filtered { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(10rem, 1fr) minmax(12rem, 1.2fr) minmax(8rem, .8fr) auto; align-items: end; gap: .85rem; padding: 1.1rem; border: 1px solid #ffffff0c; border-radius: 1.1rem; background: #0e0e0e; }
.catalogue-search-form--filtered input,.catalogue-search-form--filtered select { min-height: 2.9rem; padding: .7rem 1rem; border-color: #ffffff18; border-radius: 2rem; background: #1b1b1b; font-size: .9rem; }
.catalogue-search-form--filtered select { padding-right: 2.3rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23aaa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 1rem; background-position: right .9rem center; }
.catalogue-search-form--filtered input:hover,.catalogue-search-form--filtered select:hover { border-color: #ffffff40; }
.catalogue-search-form--filtered input:focus-visible,.catalogue-search-form--filtered select:focus-visible { outline: 2px solid #aaa; outline-offset: 2px; }
.catalogue-search-form--filtered .button { min-height: 2.9rem; padding-inline: 1.4rem; border: 1px solid #ffffff18; border-radius: 2rem; color: #fafafa; background: #333; font-size: .9rem; }
.catalogue-search-form--filtered .button:hover { background: #444; }
.search-clear { display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; margin-top: .85rem; padding: .5rem 1rem; border: 1px solid #ffffff18; border-radius: 2rem; color: #ccc; background: #1b1b1b; font-size: .8rem; font-weight: 600; text-decoration: none; }
.search-clear:hover { color: #fff; background: #303030; border-color: #ffffff40; }
.catalogue-search-form--filtered .search-field-label { margin: 0 0 .45rem .8rem; color: #aaa; font-size: .72rem; font-weight: 600; }
.search-field-label { display: block; margin-bottom: .25rem; color: var(--muted); font-size: .8rem; }
@media (max-width: 65rem) {
    .catalogue-search-form--filtered { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .catalogue-search-form--filtered .catalogue-search-query { grid-column: 1 / 3; }
    .catalogue-search-form--filtered .button { grid-column: 3; grid-row: 1; justify-self: end; }
}
@media (max-width: 43rem) {
    .catalogue-search-form--filtered { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem .65rem; padding: 1rem .8rem; }
    .catalogue-search-form--filtered .catalogue-search-query { grid-column: 1 / -1; }
    .catalogue-search-form--filtered label:has(select[name="studio"]),.catalogue-search-form--filtered label:has(select[name="category"]) { grid-column: 1 / -1; }
    .catalogue-search-form--filtered .button { grid-column: auto; grid-row: auto; justify-self: stretch; }
    .catalogue-search-form--filtered input,.catalogue-search-form--filtered select { font-size: 1rem; }
}
.browse-nav a[aria-current] { padding: .62rem .95rem; border-radius: 2rem; color: white; background: #ffffff25; font-weight: 700; }
.account-nav { grid-area: account; justify-self: end; }
.account-nav form { margin: 0; }
.account-menu { position: relative; }
.account-menu summary { gap: .4rem; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu__chevron { width: .4rem; height: .4rem; margin-top: -.2rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.account-menu[open] .account-menu__chevron { margin-top: .2rem; transform: rotate(225deg); }
.account-menu__panel { position: absolute; z-index: 1; top: calc(100% + .4rem); right: 0; min-width: 9rem; padding: .3rem; border: 1px solid #ffffff26; border-radius: .55rem; background: #1c1c1c; box-shadow: 0 .7rem 1.6rem #0009; }
.account-menu__panel a, .account-menu__panel button { display: block; width: 100%; padding: .6rem .7rem; border: 0; border-radius: .3rem; color: #eee; background: transparent; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.account-menu__panel a:hover, .account-menu__panel button:hover { background: #333; }
.account-alerts { position: static; }
.account-nav .account-alerts > summary { color: var(--text); background: transparent; }
.account-nav .account-alerts > summary:hover, .account-nav .account-alerts--current > summary { background: #333; }
.account-alerts__icon { position: relative; display: grid; place-items: center; width: 1.15rem; height: 1.15rem; }
.account-alerts__icon svg { width: 100%; height: 100%; }
.account-alerts__badge { position: absolute; inset: -.45rem -.5rem auto auto; display: grid; place-items: center; min-width: 1rem; height: 1rem; padding-inline: .15rem; border-radius: 1rem; color: white; background: #ba1430; font-size: .6rem; font-weight: 800; line-height: 1; }
.account-alerts__panel { position: absolute; z-index: 1; top: 100%; right: var(--edge); width: min(22rem, 100% - 2 * var(--edge)); padding: .85rem; border: 1px solid #ffffff26; border-radius: .65rem; background: #1c1c1c; box-shadow: 0 .7rem 1.6rem #0009; }
.account-alerts__heading, .followed-studios li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.account-alerts__list, .followed-studios { margin: .65rem 0; padding: 0; list-style: none; }
.account-alerts__list { max-height: min(55vh, 23rem); overflow-y: auto; overscroll-behavior: contain; }
.account-alerts__list a { display: grid; grid-template-columns: 4rem minmax(0, 1fr); align-items: center; gap: .65rem; padding: .65rem; border-radius: .4rem; text-decoration: none; }
.account-alerts__thumbnail { display: block; width: 4rem; height: 3rem; object-fit: cover; object-position: center 30%; border-radius: .25rem; background: #303030; }
.account-alerts__text { display: grid; min-width: 0; gap: .3rem; overflow-wrap: anywhere; }
.account-alerts__text strong { line-height: 1.35; }
.account-alerts__list a:hover, .account-alerts__list a:focus-visible { background: #333; }
.account-alerts__list small, .account-alerts__following { color: var(--muted); }
.studio-follow { margin: 0; }
.studio-follow .button { min-height: 2.25rem; padding: .45rem .75rem; font-size: .8rem; }
.followed-studios { max-width: 28rem; }
.followed-studios li { padding: .55rem 0; border-bottom: 1px solid #ffffff20; }
.button {
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .65rem 1.2rem;
    border: 1px solid transparent;
    border-radius: .32rem;
    font: inherit;
    font-weight: 740;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease;
}
.button--primary, .account-form button { color: #101010; background: #fff; }
.button--primary:hover, .account-form button:hover { background: #dedede; }
.button--quiet { background: #666a; color: white; }
.button--quiet:hover { background: #888b; }
.account-nav .button { min-height: 2.2rem; padding: .46rem .75rem; border-radius: 2rem; background: #333; }
.info-icon { display: grid; place-items: center; width: 1.2rem; height: 1.2rem; border: 1.5px solid; border-radius: 50%; font-size: .8rem; }
.muted { color: var(--muted); }

.catalogue-main { padding-block: .9rem 4rem; }
.hero-carousel { position: relative; }
.hero-featured {
    position: absolute;
    z-index: 3;
    top: clamp(.9rem, 2.5vw, 2rem);
    left: clamp(.9rem, 3vw, 3rem);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.featured-label {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    padding: .43rem .68rem;
    border: 1px solid #ffffff28;
    border-radius: 2rem;
    background: #160e12c9;
    font-size: .74rem;
    font-weight: 750;
}
.featured-label span { color: #ff6971; font-size: .98rem; animation: featured-spark 2.6s ease-in-out 3; }
@keyframes featured-spark { 50% { transform: scale(1.27) rotate(15deg); color: #ffd4d7; } }
.hero-controls { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-countdown { display: grid; place-items: center; width: 2.25rem; aspect-ratio: 1; padding: 0; border: 1px solid #fff5; border-radius: 50%; background: #141414dc; color: #fff; font: 700 .82rem/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; cursor: pointer; }
.hero-countdown:hover { background: #343434; }
.hero-spinner { width: .87rem; aspect-ratio: 1; border: 2px solid #ffffff57; border-top-color: #fff; border-radius: 50%; animation: hero-spin .65s linear infinite; }
@keyframes hero-spin { to { transform: rotate(360deg); } }
.hero-controls .hero-arrow { top: 50%; pointer-events: auto; }
.hero-controls .row-arrow--prev { left: .65rem; }
.hero-controls .row-arrow--next { right: .65rem; }
.hero-dots { position: absolute; right: clamp(.85rem, 3vw, 3rem); bottom: clamp(1rem, 3vw, 3rem); display: flex; gap: .12rem; padding: .12rem .3rem; border-radius: 3rem; background: #101010c9; pointer-events: auto; }
.hero-dot { display: grid; place-items: center; width: 1.5rem; height: 1.65rem; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.hero-dot:hover { background: #fff2; }
.hero-dot::after { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: #b1b1b1; }
.hero-dot[aria-current]::after { background: white; box-shadow: 0 0 0 2px #fff4; }
.home-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: clamp(27rem, 45vw, 47rem);
    overflow: hidden;
    padding: clamp(1.25rem, 3vw, 3rem);
    border: 1px solid #ffffff15;
    border-radius: clamp(.8rem, 1.6vw, 1.6rem);
    background: #171717;
    box-shadow: 0 1.1rem 2.4rem #0006;
}
@media (min-width: 43.01rem) {
    .hero-carousel .home-hero { padding-inline-start: max(4.6rem, 4.1vw); }
}
.home-hero::after, .hero__backdrop, .series-masthead--wide::after, .series-masthead__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero__backdrop, .series-masthead__image { z-index: -2; object-fit: cover; object-position: 50% 32%; }
.home-hero .hero__backdrop { object-position: var(--hero-position, 50% 32%); }
.home-hero::after {
    z-index: -1;
    content: "";
    background: linear-gradient(0deg, #000d, transparent 65%), linear-gradient(90deg, #000b, #0006 37%, transparent 68%);
}
.hero__copy { max-width: 40rem; }
h1, h2 { margin: 0; line-height: 1.06; letter-spacing: -.035em; }
h1, .hero-title { font-size: clamp(2.2rem, 5.8vw, 6rem); font-weight: 850; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.3rem, 2vw, 2rem); }
.hero-meta { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin: .85rem 0 0; padding: 0; list-style: none; font-size: .88rem; font-weight: 650; }
.hero-meta li + li::before { content: "•"; margin-right: .55rem; color: #aaa; }
.hero-synopsis { max-width: 49ch; margin: .8rem 0 0; font-size: clamp(.83rem, 1.25vw, 1rem); line-height: 1.48; text-shadow: 0 1px 4px #000; }
.rating { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 1.5px solid; border-radius: 50%; font-size: .74rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-top: 1.4rem; }
.home-hero .button { border-radius: 2rem; }
.button.save-series { display: inline-grid; place-items: center; flex: none; width: var(--save-size); height: var(--save-size); min-height: 0; padding: 0; border: 1px solid #fff6; border-radius: 50%; background: #151515dc; }
.button.save-series:hover { background: #383838; }
.button.save-series[aria-pressed="true"] { background: #eee; color: #151515; }
.save-icon { display: grid; place-items: center; width: 1rem; height: 1rem; }
.save-icon::before, .save-icon::after { grid-area: 1 / 1; width: 100%; height: 2px; border-radius: 1px; background: currentColor; content: ""; }
.save-icon::after { transform: rotate(90deg); }
.save-series[aria-pressed="true"] .save-icon::before { width: .5rem; height: .78rem; border: solid currentColor; border-width: 0 2px 2px 0; border-radius: 0; background: transparent; transform: translateY(-.12rem) rotate(45deg); }
.save-series[aria-pressed="true"] .save-icon::after { display: none; }
.back-link { display: inline-block; margin-bottom: 1rem; color: var(--muted); font-size: .9rem; text-decoration: none; }
.back-link:hover { color: white; text-decoration: underline; }
.collection { margin-top: clamp(1.65rem, 3.2vw, 3rem); scroll-margin-top: 1rem; }
.collection h2 { margin-bottom: .8rem; }
.collection-header { display: flex; align-items: end; justify-content: space-between; gap: .85rem; margin-bottom: .8rem; }
.collection-header h1, .collection-header h2 { margin: 0; font-size: 1.5rem; font-weight: 750; }
.collection-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .7rem; }
.collection-count { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.collection-description { max-width: 64ch; margin: .32rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.collection-all { flex: none; color: #eee; font-size: .84rem; font-weight: 700; text-decoration: none; }
.collection-all:hover { text-decoration: underline; }
.collection-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; margin-top: 1.5rem; color: var(--muted); font-size: .88rem; }
.collection-pagination .button { min-height: 2.6rem; padding-inline: .85rem; }

.poster-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(8.5rem, 16.7vw, 15rem);
    gap: clamp(.55rem, 1.2vw, 1rem);
    margin: 0 -.3rem;
    padding: .3rem .3rem .9rem;
    overflow-x: auto;
    list-style: none;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.poster-row::-webkit-scrollbar { display: none; }
.poster-row--grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); overflow: visible; }
.poster-row--grid.poster-row--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(6rem,10vw,8.5rem)),1fr)); gap: clamp(.65rem,1vw,1rem); }
.poster-row--compact .poster-card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .84rem; line-height: 1.35; }
.poster-row--compact .poster-card__meta { font-size: .72rem; }
.poster-carousel { position: relative; }
.row-arrow { position: absolute; z-index: 2; top: 39%; display: grid; place-items: center; width: clamp(2.6rem, 4vw, 3.4rem); aspect-ratio: 1; padding: 0 0 .2rem; border: 1px solid #fff4; border-radius: 50%; color: white; background: #151515ea; font: inherit; font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1; transform: translateY(-50%); cursor: pointer; }
.row-arrow--prev { left: .25rem; }
.row-arrow--next { right: .25rem; }
.row-arrow:hover { background: #333; }
.row-arrow:disabled { opacity: 0; pointer-events: none; }
.poster-row > li { min-width: 0; scroll-snap-align: start; }
.poster-card { display: block; border-radius: .38rem; text-decoration: none; }
.poster-card__image {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: .38rem;
    background: #252525;
}
.poster-card__image img { width: 100%; height: 100%; object-fit: cover; }
.poster-item.is-clipped .poster-card__image::after { position: absolute; inset: 0; z-index: 2; content: ""; background: #0009; pointer-events: none; }
.poster-item.is-clipped .poster-card { cursor: ew-resize; }
.poster-card__image > span { padding: .6rem; text-align: center; }
.poster-card__image > .artwork-rating {
    position: absolute;
    z-index: 4;
    top: .55rem;
    left: .55rem;
    display: none;
    place-items: center;
    width: var(--save-size);
    height: var(--save-size);
    padding: 0;
    border: 1px solid #fff6;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font: 750 .78rem/1 Inter, system-ui, sans-serif;
    pointer-events: none;
}
.poster-card:focus-visible .artwork-rating { display: grid; }
@media (hover: hover) and (pointer: fine) { .poster-card:hover .artwork-rating { display: grid; } }
.poster-item { position: relative; }
.poster-save { position: absolute; z-index: 3; top: .55rem; right: .55rem; opacity: 0; pointer-events: none; }
.poster-item.is-clipped .poster-save { display: none; }
.poster-item:focus-within .poster-save { opacity: 1; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) { .poster-item:hover .poster-save { opacity: 1; pointer-events: auto; } }
.poster-card__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.poster-card__preview.is-playing { opacity: 1; }
.poster-card__image > .poster-card__synopsis {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    width: 100%;
    padding: 2.65rem clamp(.65rem, 1vw, .9rem) .85rem;
    background: linear-gradient(transparent, #0d0d0de8 44%, #0d0d0df7);
    color: #fff;
    font-size: clamp(.75rem, 1vw, .9rem);
    line-height: 1.45;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.poster-card__synopsis > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.poster-item:not(.is-clipped) .poster-card:focus-visible .poster-card__synopsis { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .poster-item:not(.is-clipped):hover .poster-card__synopsis { opacity: 1; } }
.poster-card__title, .poster-card__meta { display: block; }
.poster-card__title { margin-top: .52rem; font-size: .9rem; font-weight: 700; line-height: 1.35; }
.poster-card__meta { margin-top: .2rem; color: var(--muted); font-size: .78rem; }
.new-episodes-label { display: inline-block; padding: .14rem .42rem; border-radius: .25rem; color: #142433; background: #dceaf7; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.poster-card > .new-episodes-label { margin-top: .35rem; }
.poster-card__reason { display: block; margin-top: .3rem; color: #ddd; font-size: .76rem; line-height: 1.35; overflow-wrap: anywhere; }
.recommendation-feedback button, .recommendation-notice button { min-height: 2.4rem; border: 0; color: var(--muted); background: transparent; font-family: inherit; font-size: .75rem; font-weight: 650; line-height: 1.25; text-align: left; cursor: pointer; }
.recommendation-feedback button { padding: .35rem .6rem; border: 1px solid #454545; border-radius: .45rem; background: #252525; }
.recommendation-notice { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .8rem; margin-bottom: .75rem; color: var(--muted); font-size: .85rem; }
.recommendation-notice button { padding-inline: .35rem; text-decoration: underline; }
.recommendation-feedback button:hover, .recommendation-notice button:hover { color: white; text-decoration: underline; }
.poster-card__heading { position: relative; display: flex; align-items: start; justify-content: space-between; gap: .45rem; margin-top: .52rem; }
.poster-card__heading .poster-card__title { flex: 1; min-width: 0; margin: 0; text-decoration: none; }
.poster-card__heading .poster-card__title:hover { text-decoration: underline; }
.card-menu { position: static; z-index: 4; flex: 0 0 2rem; margin-top: -.2rem; }
.card-menu summary { display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent; color: #bbb; cursor: pointer; list-style: none; }
.card-menu summary::-webkit-details-marker { display: none; }
.card-menu summary span { font-size: .8rem; letter-spacing: .06em; line-height: 1; }
.card-menu summary:hover, .card-menu[open] summary { background: #363636; }
.card-menu__panel { position: absolute; bottom: calc(100% + .35rem); right: 0; width: max-content; max-width: min(13rem, 100%); margin: 0; padding: .3rem; border: 1px solid #ffffff2b; border-radius: .45rem; background: #242424; box-shadow: 0 .4rem 1rem #0008; }
.card-menu .card-menu__panel--floating { position: fixed; inset: auto; margin: 0; max-width: min(13rem, calc(100vw - 1rem)); max-height: none; overflow: visible; z-index: 20; }
.card-menu__panel--floating::backdrop { background: transparent; pointer-events: none; }
.card-menu__panel button, .card-menu__panel > a { display: flex; align-items: center; gap: .45rem; width: 100%; min-height: 2.75rem; padding: .5rem .65rem; border: 0; border-radius: .25rem; background: transparent; color: #ddd; font-family: inherit; font-size: .78rem; font-weight: 500; line-height: 1.3; text-align: left; cursor: pointer; }
.card-menu__panel button svg { flex: 0 0 .9rem; width: .9rem; height: .9rem; fill: none; stroke: currentColor; stroke-width: 1.2; }
.card-menu__panel > a { text-decoration: none; }
.card-menu__panel button:hover, .card-menu__panel > a:hover { background: #ffffff12; color: white; }
.poster-item.is-clipped .card-menu { display: none; }

.detail-page { max-width: 66rem; }
.series-panel { overflow: hidden; border-radius: .55rem; background: var(--surface); }
.series-masthead { position: relative; isolation: isolate; display: flex; align-items: end; padding: clamp(1.1rem, 4.2vw, 2.85rem); }
.series-masthead--wide { aspect-ratio: 16 / 9; }
.series-masthead--wide::after { z-index: -1; content: ""; background: linear-gradient(0deg, #181818 1%, #181818c9 22%, transparent 70%), linear-gradient(90deg, #1118, transparent 70%); }
.series-masthead--poster { min-height: calc(clamp(14rem, 28vw, 20rem) + clamp(4rem, 10vw, 6rem)); overflow: hidden; }
.series-masthead__poster-backdrop { position: absolute; z-index: -2; inset: -1rem; width: calc(100% + 2rem); height: calc(100% + 2rem); object-fit: cover; object-position: 50% 28%; filter: blur(12px) saturate(.7); opacity: .44; pointer-events: none; }
.series-masthead--poster h1 { text-shadow: 0 2px 18px #0008; }
@media (max-width: 600px) {
    .series-masthead__poster-backdrop { filter: blur(8px) saturate(.7); opacity: .4; }
}
.series-masthead--poster::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(0deg, #181818 0%, #181818b8 28%, #18181818 100%), linear-gradient(90deg, #1118, transparent 85%); pointer-events: none; }
.series-masthead h1 { font-size: clamp(1.9rem, 4vw, 4.1rem); }
.series-masthead:not(.series-masthead--wide) { padding-top: 6rem; }
.series-panel__body { padding: 0 clamp(1.1rem, 4.2vw, 2.85rem) 2.4rem; }
.series-overview { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: 2rem; }
.series-overview .hero-meta { margin-top: 0; color: var(--muted); }
.series-synopsis { margin: .9rem 0 0; line-height: 1.6; }
.series-facts { display: grid; gap: .6rem; margin: 0; font-size: .9rem; line-height: 1.45; }
.series-facts dt, .series-facts dd { display: inline; margin: 0; }
.series-facts dt { color: #aaa; margin-right: .4rem; }
.episodes { margin: 0; padding: 0; list-style: none; }
.episodes li { border-bottom: 1px solid #3a3a3a; }
.episode-row { display: flex; align-items: center; gap: .9rem; min-height: 4rem; padding: 1rem .65rem; border-radius: .35rem; color: inherit; text-decoration: none; }
.episode-row:hover { background: #2d2d2d; text-decoration: none; }
.episode-row:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.episode-number { flex: 0 0 1.6rem; color: #c8c8c8; text-align: center; font-size: 1.22rem; font-variant-numeric: tabular-nums; }
.episode-thumb { width: clamp(5.25rem, 15vw, 9rem); flex-shrink: 0; aspect-ratio: 16 / 9; border-radius: .24rem; object-fit: cover; }
.episode-thumb--placeholder { position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #373737, #171717); }
.episode-thumb--placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .35; }
.episode-thumb--placeholder > span { position: relative; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-shadow: 0 1px 4px #000; }
.episode-text { display: grid; flex: 1; min-width: 0; align-items: start; gap: .25rem; }
.episode-duration { margin-left: auto; color: var(--muted); font-size: .78rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.episode-title { font-weight: 700; }
.cc-icon.cc-icon--expected { border-style: dashed; }
.episode-access { color: var(--muted); font-size: .83rem; }
.episode-description { margin: .22rem 0 0; color: #ddd; font-size: .9rem; line-height: 1.5; }
.episode-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .55rem; }
.episode-action { justify-self: start; min-height: 2.75rem; margin-top: .25rem; padding: .4rem .65rem; font-size: .78rem; }
.episode-disclosure { margin-top: .8rem; }
.episode-disclosure summary { width: fit-content; padding: .6rem .9rem; border: 1px solid #666; border-radius: .35rem; color: #eee; font-size: .88rem; cursor: pointer; }
.episode-disclosure summary:hover { background: #333; }
.episode-disclosure:not([open]) .episode-disclosure__collapse,
.episode-disclosure[open] .episode-disclosure__expand { display: none; }
.episode-disclosure[open] > .episodes { margin-top: .7rem; }
.episodes .episode-current > .episode-row { background: #343434; }
.watch-panel {
    --watch-height: min(69vh, 44rem);
    --watch-ratio: .5625;
    --watch-width: calc(var(--watch-height) * var(--watch-ratio));
    display: grid;
    grid-template-columns: minmax(0, calc(var(--watch-width) + 4rem)) minmax(0, 1fr);
    max-width: 55rem;
    margin-inline: auto;
}
.watch-panel--landscape { grid-template-columns: minmax(0, 1fr) minmax(15rem, 34%); max-width: 83rem; }
.watch-main, .watch-guide { padding: clamp(1rem, 2.4vw, 2rem); min-width: 0; }
.watch-info { margin-bottom: 1.5rem; padding-right: 1.85rem; }
.watch-info h1 { font-size: clamp(1.6rem, 2.7vw, 2.5rem); }
.watch-mobile-only { display: none; }
.watch-screen { position: relative; isolation: isolate; container-type: inline-size; width: min(100%, var(--watch-width)); aspect-ratio: var(--watch-ratio); margin-inline: auto; overflow: hidden; border-radius: .45rem; background: #000; }
.watch-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.watch-studio { display: grid; align-items: end; justify-items: center; text-align: left; }
.watch-studio__poster, .watch-studio::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.watch-studio__poster { z-index: -2; object-fit: cover; }
.watch-studio::after { z-index: -1; content: ""; background: linear-gradient(180deg, #0001 15%, #09090966 45%, #090909ed 75%, #090909 100%); }
.watch-studio__action { width: 100%; max-width: 24rem; padding: clamp(1.1rem, 3vw, 1.75rem); }
.watch-studio__eyebrow { color: #ccc; font-size: .68rem; font-weight: 600; letter-spacing: .06em; }
.watch-studio__action h2 { margin: .55rem 0; font-size: clamp(1.3rem, 3vw, 1.85rem); line-height: 1.15; }
.watch-studio__action .button { min-height: 2.75rem; margin-top: 1rem; padding: .65rem .9rem; border-radius: .4rem; font-size: .8rem; white-space: normal; }
.watch-studio__action p { max-width: 30ch; margin: .65rem 0 0; color: #ccc; font-size: .8rem; line-height: 1.55; }
.watch-studio__action small { display: block; margin-top: .75rem; color: #aaa; font-size: .65rem; line-height: 1.5; }
.watch-screen:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.watch-controls { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.watch-control-row { display: flex; align-items: center; gap: .45rem; }
.watch-top-controls { position: absolute; inset: 0 0 auto; justify-content: flex-end; padding: .65rem .7rem 1.25rem; background: linear-gradient(#0d0b0ebd, transparent); }
.watch-progress { position: absolute; inset: auto 0 0; max-width: 40rem; margin-inline: auto; padding: 1.5rem .7rem .65rem; background: linear-gradient(transparent, #0d0b0ee8 40%); }
.watch-control-row button { display: inline-flex; align-items: center; gap: .28rem; min-height: 2rem; padding: .32rem .5rem; border: 0; border-radius: .35rem; color: white; background: #181818d9; font: 650 .75rem/1 system-ui, sans-serif; cursor: pointer; pointer-events: auto; }
.watch-control-row button:hover { background: #363636; }
@container (max-width: 12rem) {
    .watch-top-controls button { justify-content: center; width: 2.5rem; min-height: 2.5rem; }
    .watch-top-controls button span { display: none; }
}
.watch-control-row svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.watch-center-play:not(.is-playing) .watch-icon-pause, .watch-center-play.is-playing .watch-icon-play,
[data-watch-sound][aria-pressed="false"] .watch-icon-sound, [data-watch-sound][aria-pressed="true"] .watch-icon-muted { display: none; }
.watch-progress input { flex: 1; min-width: 0; margin: 0; accent-color: #eee; pointer-events: auto; }
.watch-progress input:enabled { cursor: pointer; }
.watch-progress > span { color: #eee; font: .73rem/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.cc-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 1.55rem; height: 1.05rem; padding: 0 .16rem; border: 1.5px solid currentColor; border-radius: .2rem; font: 750 .62rem/1 system-ui, sans-serif; letter-spacing: -.04em; vertical-align: middle; }
.watch-subtitles { position: relative; flex: none; pointer-events: auto; }
.watch-subtitles summary { display: grid; place-items: center; width: 2.2rem; min-height: 2.2rem; border-radius: .45rem; color: #fff; background: #000e; list-style: none; cursor: pointer; }
.watch-subtitles summary .cc-icon { min-width: 1.15rem; height: .85rem; padding: 0 .12rem; border-width: 1px; border-radius: .15rem; font-size: .5rem; }
.watch-subtitles summary::-webkit-details-marker { display: none; }
.watch-subtitles[data-active] summary { color: #fff; background: #000; }
@media (pointer: coarse) { .watch-subtitles summary { width: 2.75rem; min-height: 2.75rem; } }
.watch-subtitles summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.watch-subtitles__menu { position: absolute; z-index: 6; bottom: calc(100% + .5rem); left: 0; width: min(13rem, 70vw); max-height: min(16rem, 45vh); overflow-y: auto; padding: .3rem; border: 1px solid #555; border-radius: .5rem; background: #181818f5; box-shadow: 0 .3rem 1.2rem #0008; }
.watch-subtitles .watch-subtitles__menu button { display: flex; width: 100%; min-height: 2.5rem; padding: .55rem .7rem; border-radius: .3rem; text-align: left; font-size: .8rem; }
.watch-subtitles__menu button[aria-pressed="true"] { color: #181818; background: #fff; }
.watch-subtitle-error { position: absolute; inset: auto .75rem 4.5rem; padding: .5rem; border-radius: .35rem; color: #fff; background: #181818e6; font-size: .75rem; pointer-events: none; }
.watch-video::cue { color: #fff; background: #000c; font-family: system-ui, sans-serif; }
.watch-center-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
.watch-center-play { display: grid; place-items: center; width: clamp(2.75rem, 8vw, 3.7rem); aspect-ratio: 1; padding: 0; border: 2px solid #fffd; border-radius: 50%; color: #fff; background: #141414cc; cursor: pointer; }
.watch-center-play:hover { background: #363636; }
.watch-center-play.is-playing:not(:focus-visible) { opacity: 0; pointer-events: none; }
.watch-center-play svg { width: 48%; height: 48%; fill: currentColor; }
.watch-center-play .watch-icon-pause { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.watch-error { position: absolute; z-index: 3; inset: 35% .8rem auto; margin: 0; padding: .75rem; border-radius: .4rem; background: #151515ed; text-align: center; }
.watch-error p { margin: 0 0 .75rem; font-size: inherit; }
.watch-error .button { max-width: 100%; font-size: .9rem; }
.watch-up-next { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; padding: .8rem; background: #000; }
.watch-up-next .button { padding: .7rem 1.2rem; border-radius: 2rem; font-size: .9rem; white-space: normal; }
.watch-episode { margin-bottom: .3rem; font-weight: 750; }
.watch-guide { border-left: 1px solid #393939; background: #202020; }
.watch-guide h2 { margin: 0 0 .75rem; }
@media (min-width: 43.01rem) {
    .watch-guide { max-height: calc(var(--watch-height) + 2 * clamp(1rem, 2.4vw, 2rem)); overflow-y: auto; }
}
.watch-guide .episode-row { gap: .5rem; }
.watch-guide .episode-thumb { width: 4.5rem; }
.watch-guide .episode-title { font-size: .9rem; }
.watch-guide .episode-description { font-size: .78rem; }
.watch-panel .episode-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; max-height: 4.5em; overflow: hidden; }

html.modal-open { overflow: hidden; }
.series-modal {
    position: fixed;
    inset: 1.6rem 0 0;
    width: min(54rem, calc(100% - 2.5rem));
    max-width: none;
    height: calc(100% - 1.6rem);
    max-height: none;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: .7rem .7rem 0 0;
    color: var(--text);
    background: var(--surface);
    box-shadow: 0 1rem 4rem #0009;
    overflow: hidden;
}
.series-modal::backdrop { background: #000b; }
.series-modal--watch { inset: 0; width: min(55rem, calc(100% - 2.5rem)); height: fit-content; max-height: calc(100dvh - 2.5rem); margin: auto; border-radius: .7rem; }
.series-modal--watch .modal-scroll { height: auto; max-height: calc(100dvh - 2.5rem); }
.series-modal--watch:has(.watch-panel--landscape) { width: min(83rem, calc(100% - 2.5rem)); }
.series-modal--watch:has(.watch-screen--expanded) { inset: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; }
.series-modal--watch:has(.watch-screen--expanded) .modal-scroll { height: 100%; max-height: none; }
.watch-screen--expanded { position: fixed; z-index: 4; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.series-modal[open] { animation: modal-in .18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(.55rem) scale(.99); } }
.modal-scroll { height: 100%; overflow: auto; overscroll-behavior: contain; }
.modal-scroll .series-panel { border-radius: 0; }
.modal-close { position: absolute; z-index: 2; top: .85rem; right: .85rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0 0 .14rem; border: 1px solid #ffffff15; border-radius: 50%; color: #fff; background: #090909e6; font: 1.85rem/1 sans-serif; cursor: pointer; }
.modal-close:hover { background: #484848; }
.series-modal .modal-close { border: 0; background: #181818; }
.series-modal .modal-close:hover { background: #484848; }
.episode-report-modal { width: min(34rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: clamp(1.25rem,4vw,2rem); border: 1px solid #ffffff12; border-radius: 1rem; background: #0c0c0c; color: #f5f5f5; overflow-y: auto; box-sizing: border-box; box-shadow: 0 1rem 4rem #0006; }
.episode-report-modal::backdrop { background: #000b; backdrop-filter: blur(5px); }
.episode-report-modal h1 { margin: 0 2.6rem .7rem 0; font-size: 1.5rem; line-height: 1.2; }
.episode-report-modal p { color: #ccc; font-size: .9rem; line-height: 1.5; }
.episode-report-modal .account-form { max-width: none; margin-top: 1rem; font-size: .9rem; }
.episode-report-modal .account-form textarea { min-height: 7rem; }
.episode-report-modal .error { color: #f4b9bf; }

.episode-season { border-top: 1px solid #383838; margin-top: .65rem; }
.episode-season > summary { display: list-item; cursor: pointer; padding: 1rem .4rem; font-size: 1rem; font-weight: 700; }
.episode-season > summary span { color: #aaa; margin-left: .7rem; font-size: .8rem; font-weight: 400; }
.episode-season > summary:focus-visible { outline: 2px solid #eee; outline-offset: 2px; }
.account-main { padding-block: clamp(2rem, 8vw, 6rem); }
.account-main h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
.account-main p { color: var(--muted); }
.account-form { display: grid; gap: .9rem; max-width: 24rem; margin-top: 1.5rem; }
.members-area { padding-block: 1.5rem 3rem; min-height: 60vh; }
.members-heading { max-width: 52rem; margin-bottom: 1.25rem; }
.members-heading h1 { margin: .2rem 0 .65rem; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; }
.members-logout { margin: 0 0 1rem; }
.members-eyebrow { color: #aaa; font-size: .8rem; overflow-wrap: anywhere; }
.members-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #333; }
.members-nav a { padding: .65rem .9rem; border-radius: 2rem; color: #ccc; text-decoration: none; font-size: .85rem; }
.members-nav a:hover { background: #282828; color: #fff; }
.members-nav a[aria-current="page"] { background: #eee; color: #171717; font-weight: 700; }
.members-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; margin: 0 0 1.5rem; }
.members-shortcuts a { display: grid; gap: .65rem; padding: 1.25rem; border: 1px solid #373737; border-radius: .6rem; color: #eee; background: linear-gradient(145deg,#262626,#191919); text-decoration: none; }
.members-shortcuts a:hover { border-color: #777; background: #292929; }
.members-shortcuts strong { font-size: 1.15rem; }
.members-shortcuts span { color: #d1d1d1; font-size: .9rem; }
.members-shortcuts small { color: #aaa; font-size: .8rem; }
.members-settings { max-width: 50rem; padding: clamp(1rem,3vw,1.5rem); margin-bottom: 1rem; border: 1px solid #373737; border-radius: .6rem; background: #1c1c1c; }
.members-settings h2 { margin-top: 0; font-size: 1.25rem; }
.members-settings > form + form { margin-top: 1rem; }
.viewing-history { max-width: 58rem; }
.new-series-feed { max-width: 75rem; }
.new-series-feed > .collection-header { margin-block: 1.5rem 2rem; }
.new-series-item .history-episode { padding-right: 3rem; }
.new-series-image { object-position: center 25%; }
.new-series-item.content-excluded .new-series-image { filter: grayscale(1); opacity: .25; }
.new-series-menu { position: absolute; right: .2rem; top: calc(50% - 1rem); }
.new-series-menu .card-menu__panel:not(.card-menu__panel--floating) { width: 13rem; max-width: calc(100vw - 2rem); }
.new-series-item .new-series-hidden { position: static; display: block; padding: 0; background: none; color: #aaa; text-align: left; font-size: .75rem; }
.watch-later-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.watch-later-item { position: relative; min-width: 0; min-height: 10rem; border-radius: 1.1rem; background: #303030; }
.watch-later-info { display: grid; grid-template-columns: 10rem minmax(0,1fr); align-items: stretch; height: 100%; min-height: 10rem; padding-right: 5.3rem; border-radius: inherit; overflow: hidden; color: white; text-decoration: none; }
.watch-later-art { display: block; width: 10rem; height: 100%; min-height: 10rem; max-height: 10rem; object-fit: cover; object-position: center 25%; }
.watch-later-art--placeholder { display: grid; place-items: center; background: #242424; font-size: 3rem; color: #aaa; }
.watch-later-copy { display: flex; flex-direction: column; justify-content: center; gap: .55rem; min-width: 0; padding: 1rem 1.1rem; }
.watch-later-studio { color: #ddd; font-size: .75rem; }
.watch-later-copy strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.25; font-size: 1.15rem; }
.watch-later-meta { color: #bdbdbd; font-size: .8rem; }
.watch-later-play { display: grid; place-items: center; position: absolute; top: 50%; right: 1rem; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%; background: #eee; color: #111; }
.watch-later-play svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.watch-later-menu { position: absolute; right: .65rem; top: .5rem; }
.watch-later-menu .card-menu__panel:not(.card-menu__panel--floating) { top: 2.3rem; bottom: auto; width: 13rem; max-width: none; }
.watch-later-item:has(.card-menu[open]) { z-index: 5; }
.watch-later-item.content-excluded .watch-later-art { filter: grayscale(1); opacity: .25; }
.watch-later-hidden { color: #bbb; font-size: .7rem; }
.watch-later-info:hover { background: #373737; }
.watch-later-play:hover { background: white; }
.watch-later-item a:focus-visible,.watch-later-item button:focus-visible { outline: 2px solid white; outline-offset: -3px; }
@media (max-width: 1000px) { .watch-later-list { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .watch-later-info { grid-template-columns: 6.5rem minmax(0,1fr); min-height: 9rem; padding-right: 3.6rem; }
    .watch-later-item { min-height: 9rem; border-radius: .85rem; }
    .watch-later-art { width: 6.5rem; min-height: 9rem; max-height: 9rem; }
    .watch-later-copy { padding: .8rem .7rem; gap: .45rem; }
    .watch-later-copy strong { font-size: .95rem; }
    .watch-later-studio,.watch-later-meta { font-size: .7rem; }
    .watch-later-play { width: 2.5rem; height: 2.5rem; right: .6rem; }
    .watch-later-menu { right: .5rem; top: .3rem; }
}
.history-day { margin: 1.5rem 0; }
.history-day h2 { font-size: 1.05rem; color: #ccc; }
.history-day ol { list-style: none; margin: 0; padding: 0; }
.history-episode { display: grid; grid-template-columns: 96px minmax(0,1fr); align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #333; text-decoration: none; color: inherit; }
.history-episode:hover { background: #1c1c1c; }
.history-episode img,.history-placeholder { width: 96px; height: 54px; object-fit: cover; border-radius: .3rem; }
.history-placeholder { display: grid; place-items: center; background: #292929; color: #aaa; }
.history-episode > span:last-child { display: grid; gap: .3rem; overflow-wrap: anywhere; }
.history-episode > span > span { font-size: .85rem; color: #ccc; }
.history-episode small { font-size: .75rem; color: #aaa; }
.history-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-block: 1rem; }
@media (max-width: 600px) {
    .members-shortcuts { grid-template-columns: 1fr; }
    .members-shortcuts a { gap: .4rem; padding: 1rem; }
    .members-nav { gap: .2rem; }
    .members-nav a { padding: .65rem .75rem; font-size: .8rem; }
}
.account-form input:not([type=hidden]), .account-form textarea, .account-form select, .account-form button { width: 100%; border-radius: .35rem; padding: .75rem; font: inherit; }
.account-form input:not([type=hidden]), .account-form textarea, .account-form select { margin-top: .35rem; border: 1px solid #666; background: var(--surface); color: inherit; }
.account-form textarea { display: block; min-height: 7rem; resize: vertical; }
.account-form input[type=checkbox] { width: 1.1rem; height: 1.1rem; padding: 0; margin: .15rem .3rem 0 0; accent-color: #eee; vertical-align: top; }
.account-form button { border: 1px solid transparent; font-weight: 680; cursor: pointer; }
.form-captcha { width: 100%; min-width: 0; margin-block: .2rem; }
.form-captcha > div { overflow: hidden; border-radius: .6rem; outline: 1px solid #ffffff18; outline-offset: -1px; }
.form-captcha iframe { display: block; border: 0; color-scheme: light; }
.auth-main { display: grid; place-items: center; min-height: 74svh; padding-block: clamp(2rem,6vh,5rem); }
.auth-card { width: 100%; max-width: 36rem; padding: clamp(1.4rem,4vw,2.5rem); border: 1px solid #ffffff08; border-radius: 1rem; background: #0c0c0c; box-shadow: 0 1rem 3rem #0003; }
.auth-card-brand { display: inline-block; margin-bottom: 1.3rem; color: #fff; font-size: 1.35rem; text-decoration: none; }
.google-signin { display: flex; align-items: center; justify-content: center; gap: .65rem; min-height: 2.9rem; margin-top: 1.3rem; padding: .7rem 1rem; border: 1px solid #ddd; border-radius: 2rem; color: #151515; background: #fff; font-size: 1rem; font-weight: 650; text-decoration: none; }
.google-signin:hover { background: #eee; }
.google-signin:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.google-signin svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.auth-alternatives { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 1.2rem 0 0; color: #999; font-size: .78rem; line-height: 1.5; }
.auth-alternatives a { color: #bbb; text-underline-offset: .2em; }
.auth-method-divider, .auth-google-notice { margin: 1.2rem 0 0; color: #999; font-size: .8rem; line-height: 1.5; }
.auth-method-divider { text-align: center; }
.auth-card h1 { margin: 0 0 .8rem; font-size: clamp(1.55rem,3.6vw,2rem); line-height: 1.2; }
.auth-card p { color: #bbb; font-size: .95rem; line-height: 1.6; overflow-wrap: anywhere; }
.auth-card .auth-intro { margin: 0 0 1.8rem; }
.auth-card .account-form { max-width: none; margin-top: 1.5rem; gap: 1.15rem; }
.auth-card .account-form label,.episode-report-modal .account-form label { color: #ddd; font-size: .9rem; }
.auth-card .account-form input:not([type=hidden]):not([type=checkbox]),.auth-card .account-form select,
.episode-report-modal .account-form input:not([type=hidden]):not([type=checkbox]),.episode-report-modal .account-form select { min-height: 2.8rem; padding: .65rem 1rem; border: 1px solid #414141; border-radius: 2rem; background: #0c0c0c; color: white; }
.auth-card .account-form textarea,.episode-report-modal .account-form textarea { border: 1px solid #414141; border-radius: .8rem; background: #0c0c0c; }
.auth-card .account-form button,.episode-report-modal .account-form button { justify-self: start; width: auto; min-height: 2.8rem; padding: .7rem 1.3rem; border-radius: 2rem; }
.auth-card .auth-card-footer { margin: 2rem 0 0; padding-top: 1.1rem; border-top: 1px solid #383838; font-size: .8rem; }
.auth-card .error { color: #f4b9bf; }
.account-main .error { color: #ffaebd; }
.discovery-form { display: grid; gap: 1rem; justify-items: start; }
.discovery-form fieldset { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; border: 0; }
.discovery-form label { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .55rem .85rem; border: 1px solid #494949; border-radius: .45rem; background: #232323; cursor: pointer; }
.discovery-form label:has(input:checked) { border-color: #aaa; background: #363636; }
.discovery-form input { accent-color: #eee; }

@media (max-width: 43rem) {
    .site-header__inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand brand" "browse account"; column-gap: .4rem; row-gap: .7rem; padding-block: .8rem .35rem; }
    .browse-nav { gap: .3rem; padding: .2rem 0 .3rem; font-size: .78rem; }
    .browse-nav a { padding: .4rem .45rem; }
    .browse-nav a[aria-current] { padding: .4rem .65rem; }
    .category-menu summary { padding: .4rem .45rem; }
    .account-nav { font-size: .76rem; }
    .account-nav .button { min-height: 1.8rem; padding: .35rem .45rem; }
    .home-hero { min-height: 25.5rem; padding: 9.5rem 1rem 1rem; }
    .home-hero .hero__copy { width: 100%; }
    .hero-controls { position: static; display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .8rem; }
    .hero-controls .hero-arrow { position: static; transform: none; }
    .hero-dots { display: none; }
    .home-hero .hero__backdrop { object-position: var(--hero-mobile-position, 62% 50%); }
    .home-hero::after { background: linear-gradient(0deg, #090909f2, #09090970 50%, transparent 86%); }
    .home-hero .button, .series-masthead .button { min-height: 2.35rem; padding: .55rem .7rem; font-size: .78rem; }
    :root { --save-size: 2.35rem; }
    .home-hero .button.save-series, .series-masthead .button.save-series { min-height: 0; padding: 0; }
    .home-hero .hero__actions { margin-top: .8rem; }
    .hero-synopsis { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
    .hero-meta { gap: .35rem; font-size: .8rem; }
    .hero-meta li + li::before { margin-right: .35rem; }
    .collection-header:has(.collection-description) { row-gap: .5rem; }
    .collection-header:has(.collection-description) > .collection-tools { flex-basis: 100%; justify-content: start; margin-left: 0; }
    .poster-row:not(.poster-row--grid) { --poster-gap: .55rem; grid-auto-columns: calc((100% + .6rem - 2 * var(--poster-gap)) * 3 / 7); gap: var(--poster-gap); }
    .rating { width: 1.7rem; height: 1.7rem; }
    .series-overview { grid-template-columns: 1fr; gap: .9rem; }
    .series-masthead--wide { min-height: 15rem; }
    .series-modal, .series-modal--watch:has(.watch-panel--landscape) { inset: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; }
    .series-modal--watch .modal-scroll { height: 100%; max-height: none; }
    .episode-row { gap: .6rem; padding: .75rem .45rem; }
    .watch-panel, .watch-panel--landscape { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'info' 'video' 'episodes'; }
    .watch-guide { display: contents; }
    .watch-info { grid-area: info; margin: 0; padding: 1.2rem 3.6rem .2rem 1.2rem; }
    .watch-main { grid-area: video; padding: .75rem .75rem 0; }
    .watch-main > .watch-screen { width: 100%; }
    .watch-episode-list { grid-area: episodes; padding: 1.2rem; }
    .watch-mobile-only { display: block; }
    .watch-series-meta { margin: 0 0 .55rem; color: var(--muted); font-size: .8rem; }
    .watch-browse .button { width: 100%; border-radius: 2rem; }
    .watch-episode-list [data-episode-report] { display: block; width: fit-content; margin-inline: auto; }
}

@media (max-width: 23.5rem) {
    .browse-nav { gap: .15rem; font-size: .72rem; }
    .browse-nav a, .browse-nav a[aria-current], .category-menu summary { padding-inline: .24rem; }
    .category-menu summary { gap: .3rem; }
    .catalogue-search summary { width: 1.5rem; }
    .account-nav { gap: .2rem; }
    .account-nav .button { padding-inline: .35rem; }
    .account-nav .account-alerts summary { padding-inline: .12rem; }
    .account-nav .account-menu:not(.account-alerts) summary { padding-inline: .25rem; }
    .account-alerts__badge { right: -.32rem; }
    .home-hero .hero__actions { gap: .45rem; }
    .home-hero .hero__actions .button:not(.save-series) { padding-inline: .5rem; }
    .home-hero .info-icon { display: none; }
}

@media (pointer: coarse) {
    .watch-control-row button { min-height: 2.65rem; }
    .watch-progress input { min-height: 1.8rem; }
    .modal-close { width: 2.75rem; height: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .button, .poster-card__preview, .poster-card__synopsis { transition: none; }
    .series-modal[open] { animation: none; }
    .featured-label span { animation: none; }
    .hero-spinner { animation: none; }
}
.member-watching { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.member-watching a { display: flex; align-items: center; gap: .8rem; height: 100%; box-sizing: border-box; padding: .65rem; border: 1px solid #3b3b3b; border-radius: .4rem; text-decoration: none; }
.member-watching a:hover { background: #272727; }
.member-watching li { position: relative; }
.member-watching a { padding-right: 3rem; }
.member-watching__remove { position: absolute; top: .4rem; right: .4rem; margin: 0; }
.member-watching__remove button { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: .55rem; border: 1px solid #ffffff26; border-radius: 50%; color: #ccc; background: #202020; cursor: pointer; }
.member-watching__remove button:hover { color: #fff; background: #383838; }
.member-watching__remove button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.member-watching__remove svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (pointer: coarse) { .member-watching__remove button { width: 2.75rem; height: 2.75rem; } .member-watching a { padding-right: 3.5rem; } }
.member-watching img { flex: none; width: 6rem; height: 3.375rem; object-fit: cover; border-radius: .25rem; }
.member-watching a > span { min-width: 0; }
.member-watching strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.25; min-height: 2.5em; }
.member-watching small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.series-panel { position: relative; }
.series-admin-edit { position: absolute; top: .85rem; left: .85rem; z-index: 4; border: 1px solid #555; border-radius: .4rem; padding: .55rem .8rem; background: #181818ed; color: #eee; font-size: .8rem; text-decoration: none; }
.series-admin-edit:hover { background: #303030; }
.series-panel:has(> .series-admin-edit) .series-masthead__copy { padding-top: 3.5rem; }
.content-preference-status { color: var(--muted); font-size: .75rem; }
.member-watching small { display: block; margin-top: .25rem; color: var(--muted); }

.collection-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:end; gap:.7rem 1rem; margin-left:auto; }
.collection-header { flex-wrap: wrap; }
.collection-header > :first-child { min-width: 0; }
.content-visibility { display:flex; flex-wrap:wrap; justify-content:end; align-items:center; gap:.3rem .65rem; color:#aaa; font-size:.7rem; }
.content-visibility label { display:inline-flex; align-items:center; gap:.2rem; white-space:nowrap; }
.content-visibility input { accent-color:#ddd; }
.content-visibility button { border:1px solid #555; border-radius:1rem; padding:.3rem .6rem; background:#252525; color:#eee; font:inherit; cursor:pointer; }
.homepage-genre-form { display:grid; gap:.8rem; max-width:40rem; }
.category-menu__panel ul + p, .category-studios-link { margin-top:1.3rem; }
.studio-sort select { padding:.5rem; background:#252525; color:white; border:1px solid #555; border-radius:.3rem; }

.studio-sort-buttons, .studio-alphabet { display:flex; flex-wrap:wrap; gap:.5rem; margin:1rem 0; }
.studio-sort-buttons a, .studio-alphabet a { padding:.55rem .9rem; border:1px solid #ffffff30; border-radius:2rem; background:#202020; color:#bbb; font-size:.85rem; text-decoration:none; }
.studio-sort-buttons a[aria-current] { background:#eee; color:#171717; border-color:#eee; }
.studio-alphabet a { padding:.4rem .65rem; }
.studio-letter { scroll-margin-top:1rem; }
.studio-letter > h2 { font-size:1.6rem; border-bottom:1px solid #ffffff20; padding-bottom:.6rem; }
.studio-support-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:1.5rem; margin:1.5rem 0; }
.studio-support-grid h3 { margin:0 0 .6rem; font-size:1.05rem; }
.studio-support-grid a { display:block; width:fit-content; padding:.3rem 0; color:#ccc; font-size:.9rem; }

.discovery-open { overflow: hidden; }
.discovery-modal { box-sizing: border-box; width: min(92vw, 76rem); max-width: none; height: 92dvh; max-height: 92dvh; margin: 4dvh auto; padding: clamp(1.1rem,3vw,2.5rem); border: 1px solid #ffffff12; border-radius: .8rem; background: #090909; color: #f5f5f5; overflow: auto; overscroll-behavior: contain; }
.discovery-modal::backdrop { background: #000b; backdrop-filter: blur(7px); }
.discovery-modal [hidden] { display: none !important; }
.discovery-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.discovery-top h2 { margin: 0; font-size: .85rem; color: #aaa; font-weight: 500; }
.discovery-top button { display: flex; align-items: center; gap: .6rem; padding: .6rem; border: 0; background: none; color: white; font: inherit; cursor: pointer; }
.discovery-top button span { font-size: 1.8rem; line-height: 1; font-weight: 300; }
.discovery-modal .header-search-shell { width: 100%; }
.discovery-modal .header-search-form { padding: .35rem .95rem; border: 1px solid transparent; border-radius: .8rem; background: #303030; }
.discovery-modal .header-search-form:focus-within { border-color: #aaa; }
.discovery-modal .header-search-form input { padding: .35rem 0; font-size: clamp(1.1rem,2.2vw,1.65rem); line-height: 1.3; }
.discovery-modal .header-search-form [data-search-close] { display: none; }
.discovery-tabs { display: flex; flex-wrap: wrap; gap: clamp(.7rem,2vw,1.4rem); margin: 1.8rem 0 1.25rem; }
.discovery-tabs button { padding: 0 0 .4rem; border: 0; border-bottom: 3px solid transparent; background: none; color: #888; font: inherit; font-size: clamp(1rem,2vw,1.35rem); font-weight: 700; cursor: pointer; }
.discovery-tabs button:hover { color: #ccc; }
.discovery-tabs button[aria-pressed="true"] { color: white; border-bottom-color: white; }
.discovery-tabs button { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.discovery-tab-count { min-width: 1.4em; padding: .15em .4em; border-radius: 1rem; background: #ffffff12; color: #aaa; font-size: .65em; font-weight: 500; font-variant-numeric: tabular-nums; text-align: center; }
.discovery-tabs button[aria-pressed="true"] .discovery-tab-count { color: #eee; background: #ffffff20; }
.discovery-modal .live-search-results { position: static; min-width: 0; max-height: none; overflow: visible; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.discovery-modal .live-search-results h3 { margin: 1.4rem 0 .8rem; color: #ccc; font-size: .85rem; letter-spacing: 0; text-transform: none; }
.discovery-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.discovery-result { min-width: 0; }
.discovery-modal a.discovery-card { position: relative; display: flex; min-width: 0; align-items: end; margin: 0; padding: 0; border-radius: .8rem; overflow: hidden; background: radial-gradient(at top right,#414141,#191919); color: white; text-decoration: none; isolation: isolate; }
.discovery-modal a.discovery-card--visual { aspect-ratio: 1; }
.discovery-modal a.discovery-card--category { aspect-ratio: 2; }
.discovery-card--category .discovery-card__info strong { -webkit-line-clamp: 2; }
.discovery-card--visual::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(180deg,#0003,transparent 30%,#0002 45%,#000c 100%); pointer-events: none; }
.discovery-modal a.discovery-card img { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; border-radius: 0; }
.discovery-card__info { display: grid; gap: .25rem; min-width: 0; width: 100%; padding: 1rem; }
.discovery-card__info strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: clamp(.95rem,1.6vw,1.2rem); line-height: 1.2; font-weight: 750; overflow-wrap: anywhere; text-shadow: 0 1px 5px #0008; }
.discovery-card__subtitle { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #ddd; font-size: .78rem; line-height: 1.35; }
.discovery-card__studio { position: absolute; top: .7rem; left: .7rem; max-width: calc(100% - 1.4rem); padding: .3rem .5rem; border: 1px solid #ffffff20; border-radius: 2rem; background: #0008; color: #eee; font-size: .65rem; line-height: 1.3; backdrop-filter: blur(5px); }
.discovery-modal a.discovery-card--text { min-height: 5rem; background: #202020; border: 1px solid #ffffff15; }
.discovery-modal a.discovery-card:hover { box-shadow: inset 0 0 0 1px #ffffff60; }
.discovery-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.discovery-modal .discovery-chips a { display: block; padding: .3rem .6rem; border: 1px solid #ffffff10; border-radius: 2rem; background: #292929; color: #ccc; font-size: .7rem; line-height: 1.3; }
.discovery-modal .discovery-chips a:hover { background: #414141; color: white; }
.discovery-modal a:focus-visible, .discovery-modal button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.discovery-modal .live-search-all { display: block; width: fit-content; margin: 1.5rem 0; color: #ddd; padding: .75rem 0; }
.discovery-modal .category-menu__panel { position: static; transform: none; width: 100%; max-height: none; overflow: visible; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.discovery-modal .category-menu__panel ul { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.category-preview { display: none; }
.discovery-modal .category-menu__panel li { aspect-ratio: 2; padding: 0; overflow: hidden; border: 0; border-radius: .8rem; background: radial-gradient(at top right,#414141,#191919); isolation: isolate; }
.discovery-modal .category-preview { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; border-radius: 0; }
.discovery-modal .category-menu__panel li::before { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(180deg,#0001,transparent 30%,#000c); pointer-events: none; }
.discovery-modal .category-menu__panel .category-name { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: end; align-items: start; gap: .3rem; padding: 1rem; font-size: clamp(.95rem,1.6vw,1.2rem); text-decoration: none; }
.discovery-modal .category-menu__panel .category-name::after { content: none; }
.discovery-modal .category-menu__panel .category-name:hover { background: #0002; }
.discovery-modal .category-menu__panel .category-count { font-weight: 400; font-size: .78rem; }
.discovery-modal .category-menu__panel a.category-name:focus-visible { outline: 2px solid white; outline-offset: -3px; }
.discovery-modal .category-menu__panel .discover-menu-genres ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.discovery-modal .category-menu__panel .discover-menu-themes ul { grid-template-columns: minmax(0, 1fr); }
.discovery-modal .discover-menu-themes li { aspect-ratio: auto; min-height: 7rem; background: #242424; border: 1px solid #ffffff26; }
.discovery-modal .discover-menu-themes li::before { content: none; }
.discovery-modal .discover-menu-themes .category-name { position: relative; justify-content: center; }
.discovery-modal .discover-menu-filters li { aspect-ratio: auto; min-height: 4.5rem; background: #242424; }
.discover-new { margin-left: .5rem; color: #ed777d; font-size: .65rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.discover-menu-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #ffffff26; color: var(--muted); font-size: .85rem; }
.discover-menu-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.discover-menu-footer nav:last-child { gap: 1.2rem; }
.discover-menu-footer a { color: inherit; text-decoration: none; padding-block: .4rem; }
.discover-menu-footer a:hover { color: white; text-decoration: underline; }
.discovery-browse [data-discovery-search], .discovery-browse .discovery-tabs { display: none; }
.discovery-browse .discovery-top { margin-bottom: 2rem; }
.discovery-browse .discovery-top h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
.discovery-browse [data-discovery-close] { font-size: 0; }
.discovery-browse [data-discovery-close] span { font-size: 2rem; }
.discovery-modal .category-menu__panel .discover-menu-genres li { aspect-ratio: auto; min-height: 3.5rem; border-radius: .3rem; background: #242424; }
.discovery-modal .category-menu__panel .discover-menu-genres li::before { content: none; }
.discovery-modal .category-menu__panel .discover-menu-genres .category-name { position: relative; justify-content: center; min-height: 3.5rem; padding: .85rem; font-size: 1rem; font-weight: 400; }
.discovery-modal .category-menu__panel .discover-menu-themes li { min-height: 5rem; border-radius: .3rem; }
.discovery-modal .category-menu__panel .discover-menu-themes .category-name { min-height: 5rem; padding: .85rem 1rem; font-size: 1rem; font-weight: 500; }
.discovery-modal .discover-theme-description { font-size: .85rem; font-weight: 400; }
.discovery-message { color: #aaa; padding-block: 1rem; }
@media (max-width: 760px) {
    .discovery-grid,.discovery-modal .category-menu__panel ul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
    .discovery-modal { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; padding: 1rem; }
    .discovery-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .6rem; margin-block: 1.3rem 1rem; }
    .discovery-tabs button { justify-self: start; font-size: .85rem; gap: .3rem; }
    .discovery-card__info, .discovery-modal .category-menu__panel .category-name { padding: .7rem; }
    .discovery-card__studio { top: .5rem; left: .5rem; font-size: .6rem; }
    .discovery-card__subtitle, .discovery-modal .category-menu__panel .category-count { font-size: .7rem; }
    .discovery-card--category .discovery-card__info, .discovery-modal .category-menu__panel .category-name { padding: .5rem; gap: .25rem; }
    .discovery-card--category .discovery-card__info strong, .discovery-modal .category-menu__panel .category-name { font-size: .9rem; line-height: 1.15; }
    .discovery-card--category .discovery-card__subtitle { line-height: 1.15; }
}
@media (max-width: 360px) {
    .discovery-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.catalogue-search { position:relative; }
.catalogue-search[open] { flex:1; min-width:0; }
.catalogue-search[open] > summary { display:none; }
.header-search-shell { position:relative; width:clamp(14rem,30vw,28rem); max-width:100%; }
.header-search-form { display:flex; align-items:center; min-width:0; border:1px solid #ffffff50; border-radius:2rem; background:#242424; padding:.2rem .4rem .2rem .85rem; }
.header-search-form input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:#fff; font:inherit; padding:.5rem 0; }
.header-search-form:focus-within { border-color:#ddd; }
.header-search-form button { flex:0 0 2rem; min-height:2rem; border:0; background:transparent; color:#ccc; font-size:1.1rem; cursor:pointer; }
.live-search-results { position:absolute; inset:calc(100% + .6rem) 0 auto; min-width:min(24rem,80vw); max-height:65vh; overflow:auto; padding:.5rem; border:1px solid #ffffff25; border-radius:.7rem; background:#1c1c1c; box-shadow:0 1rem 2rem #0009; }
.live-search-results h3 { margin:.6rem .6rem .3rem; color:#999; font-size:.65rem; letter-spacing:.08em; text-transform:uppercase; }
.live-search-results a { display:flex; align-items:center; gap:.65rem; padding:.55rem .6rem; border-radius:.35rem; color:#eee; text-decoration:none; white-space:normal; font-size:.8rem; }
.live-search-results a:hover, .live-search-results a:focus { background:#333; }
.live-search-results img { width:2rem; height:3rem; object-fit:cover; border-radius:.2rem; }
.live-search-all { border-top:1px solid #ffffff20; margin-top:.4rem; }
.studio-link-settings { display:grid; gap:1rem; max-width:55rem; }
.studio-link-settings fieldset { border:1px solid #444; border-radius:.5rem; padding:1rem; }
.studio-link-settings label { display:block; margin-bottom:.8rem; color:#bbb; }
.studio-link-settings input { display:block; width:100%; margin-top:.4rem; padding:.65rem; border:1px solid #555; border-radius:.3rem; background:#202020; color:white; }
.studio-destinations { display:flex; gap:1rem; flex-wrap:wrap; font-size:.8rem; color:#bbb; }
@media(max-width:70rem) {
 .site-header__inner:has(.catalogue-search[open]) { grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"browse account"; }
 .site-header:has(.catalogue-search[open]) .brand { display:none; }
}
@media(max-width:19rem) {
 .site-header__inner:has(.account-nav--guest) { grid-template-columns:minmax(0,1fr); grid-template-areas:"brand" "browse" "account"; row-gap:.3rem; }
}
@media(max-width:43rem) {
 .site-header__inner:has(.catalogue-search[open]) { grid-template-columns:1fr; grid-template-areas:"browse"; padding-block:.8rem; }
 .site-header:has(.catalogue-search[open]) .account-nav, .browse-nav:has(.catalogue-search[open]) > a, .browse-nav:has(.catalogue-search[open]) > .category-menu { display:none; }
 .header-search-shell { width:100%; }
 .live-search-results { min-width:0; width:100%; }
}
