:root {
    color-scheme: light;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top,0px);
    padding-bottom: env(safe-area-inset-bottom,0px)
}

html {
    scroll-padding-top: env(safe-area-inset-top,0px)
}

body {
    margin: 0;
    padding: 0;
    font: 14px -apple-system,BlinkMacSystemFont,sans-serif;
    background: #fff;
    color: #000
}

img {
    max-width: 100%
}

[hidden]:not([hidden=until-found i]) {
    display: none!important
}

/* Layout: full-bleed streaming home; sticky nav over a key-art hero, horizontal rails, overlays for details, search and the player.
   Tokens come from the MORIL design system (night theme): bg-000 #05070d, ink #f2f4f8, royal #0046ea, sky #00a0fc, live #ff4d5e.
   Type: Unbounded (display), Figtree (text); per-title lockup faces for key art. */
:root, [data-theme="night"] {
    --bg-000: #05070d;
    --surface-100: #0c111c;
    --surface-200: #141b2b;
    --surface-300: #1d2539;
    --line: #2a344d;
    --line-strong: #66728f;
    --ink: #f2f4f8;
    --ink-muted: #a9b2c7;
    --ink-faint: #7f89a3;
    --royal: #0046ea;
    --electric: #1660ff;
    --sky: #00a0fc;
    --navy: #001850;
    --on-brand: #ffffff;
    --live: #ff4d5e;
    --live-fill: #d91f34;
    --gold: #ffc24b;
    --on-gold: #1a1200;
    --glass-fill: rgba(242, 244, 248, 0.14);
    --glass-line: rgba(242, 244, 248, 0.32);
    --scrim: rgba(3, 5, 10, 0.82);
    --shadow-tile: 0 14px 32px rgba(0, 0, 0, 0.55);
    --shadow-pop: 0 24px 64px rgba(0, 0, 0, 0.6);
}

:root {
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;
    --size-nav: 68px;
    --size-control: 44px;
    --size-poster: 176px;
    --size-poster-lg: 232px;
    --size-wide: 312px;
    --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
    --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.display-numeral {
    font-family: var(--font-display);
    font-size: 120px;
    line-height: 96px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.display-hero {
    font-family: var(--font-display);
    font-size: 56px;
    line-height: 56px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.display-page {
    font-family: var(--font-display);
    font-size: 36px;
    line-height: 40px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.display-rail {
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 24px;
    font-weight: 600;
    letter-spacing: 0em;
}

.text-heading {
    font-family: var(--font-text);
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
}

.text-body-lg {
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 26px;
    font-weight: 400;
}

.text-body {
    font-family: var(--font-text);
    font-size: 15px;
    line-height: 22px;
    font-weight: 400;
}

.text-button {
    font-family: var(--font-text);
    font-size: 15px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.text-meta {
    font-family: var(--font-text);
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
}

.text-label {
    font-family: var(--font-text);
    font-size: 11px;
    line-height: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

/* MORIL components. Reads the custom properties compiled from tokens.json. */
.ml-root {
    background: var(--bg-000);
    color: var(--ink);
    font-family: var(--font-text);
    -webkit-font-smoothing: antialiased;
}

.ml-root *, .ml-root *::before, .ml-root *::after {
    box-sizing: border-box;
}

.ml-ico {
    width: 22px;
    height: 22px;
    flex: none;
    display: block;
}

:where(.ml-btn, .ml-chip, .ml-tile, .ml-nav__link, .ml-guide__prog, .ml-guide__ch, .ml-avatar, .ml-iconbtn):focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 2px;
}

/* ---------- Button ---------- */
.ml-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: var(--size-control);
    padding: 0 22px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font: 700 15px/20px var(--font-text);
    letter-spacing: .01em;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease, color .16s ease;
}

.ml-btn:active {
    transform: scale(.97);
}

.ml-btn .ml-ico {
    width: 20px;
    height: 20px;
}

.ml-btn--primary {
    background: var(--royal);
    color: var(--on-brand);
}

.ml-btn--primary:hover {
    background: var(--electric);
}

.ml-btn--glass {
    background: var(--glass-fill);
    border-color: var(--glass-line);
    color: var(--ink);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.ml-btn--glass:hover {
    background: rgba(242, 244, 248, .24);
}

.ml-btn--quiet {
    background: var(--surface-200);
    color: var(--ink);
    border-color: var(--line);
}

.ml-btn--quiet:hover {
    background: var(--surface-300);
}

.ml-btn--ghost {
    background: transparent;
    color: var(--ink-muted);
    padding: 0 12px;
}

.ml-btn--ghost:hover {
    color: var(--ink);
}

.ml-btn--sm {
    min-height: 36px;
    padding: 0 16px;
    font-size: 14px;
}

.ml-btn[aria-pressed="true"] .ml-ico--off, .ml-btn:not([aria-pressed="true"]) .ml-ico--on {
    display: none;
}

.ml-iconbtn {
    display: inline-grid;
    place-items: center;
    width: var(--size-control);
    height: var(--size-control);
    flex: none;
    border-radius: 50%;
    border: 1px solid var(--glass-line);
    background: var(--glass-fill);
    color: var(--ink);
    cursor: pointer;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: background-color .16s ease, transform .16s ease;
}

.ml-iconbtn:hover {
    background: rgba(242, 244, 248, .24);
}

.ml-iconbtn:active {
    transform: scale(.94);
}

.ml-iconbtn--bare {
    background: transparent;
    border-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.ml-iconbtn--bare:hover {
    background: var(--glass-fill);
}

/* ---------- Badge ---------- */
.ml-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 22px;
    padding: 0 8px;
    border-radius: var(--radius-xs);
    font: 800 11px/14px var(--font-text);
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ml-badge--live {
    background: var(--live-fill);
    color: var(--on-brand);
}

.ml-badge--live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: ml-pulse 1.6s ease-in-out infinite;
}

.ml-badge--new {
    background: var(--ink);
    color: var(--bg-000);
}

.ml-badge--rating {
    border: 1px solid var(--line-strong);
    color: var(--ink-muted);
    letter-spacing: .06em;
}

.ml-badge--premium {
    background: var(--gold);
    color: var(--on-gold);
}

.ml-badge--original {
    height: auto;
    padding: 0;
    gap: 8px;
    color: var(--ink);
}

.ml-badge--original img {
    width: 20px;
    height: 20px;
}

.ml-badge--soon {
    background: var(--surface-300);
    color: var(--ink);
}

@keyframes ml-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

/* ---------- Chip ---------- */
.ml-chip {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--ink-muted);
    font: 600 14px/1 var(--font-text);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .16s, color .16s, border-color .16s;
}

.ml-chip:hover {
    color: var(--ink);
    border-color: var(--ink-muted);
}

.ml-chip[aria-pressed="true"], .ml-chip[aria-selected="true"] {
    background: var(--ink);
    color: var(--bg-000);
    border-color: var(--ink);
}

/* ---------- NavBar ---------- */
.ml-nav {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: var(--space-6);
    min-height: var(--size-nav);
    padding-left: var(--gl, max(16px, env(safe-area-inset-left, 0px)));
    padding-right: var(--gr, max(16px, env(safe-area-inset-right, 0px)));
    background: linear-gradient(to bottom, rgba(5, 7, 13, .94) 0%, rgba(5, 7, 13, .6) 60%, rgba(5, 7, 13, 0) 100%);
    transition: background-color .24s ease, box-shadow .24s ease;
}

.ml-nav.is-solid {
    background: var(--bg-000);
    box-shadow: 0 1px 0 var(--line);
}

.ml-nav__logo {
    display: block;
    flex: none;
    line-height: 0;
    border-radius: var(--radius-xs);
}

.ml-nav__logo img {
    height: 42px;
    width: auto;
}

.ml-nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.ml-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    color: var(--ink-muted);
    font: 700 15px/20px var(--font-text);
    text-decoration: none;
    white-space: nowrap;
    background: none;
    border: 0;
    cursor: pointer;
}

.ml-nav__link:hover {
    color: var(--ink);
}

.ml-nav__link[aria-current="page"] {
    color: var(--ink);
}

.ml-nav__link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 3px;
    border-radius: 2px;
    background: var(--sky);
}

.ml-nav__tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.ml-avatar {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex: none;
    border: 2px solid transparent;
    background: var(--av, var(--royal));
    color: var(--av-ink, var(--on-brand));
    font: 800 15px/1 var(--font-display);
    cursor: pointer;
    padding: 0;
}

.ml-avatar:hover {
    border-color: var(--ink);
}

/* ---------- Title tile ---------- */
.ml-tile {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-200);
    container-type: inline-size;
    isolation: isolate;
    color: var(--ink);
    text-decoration: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: transform .24s cubic-bezier(.2, .7, .2, 1), box-shadow .24s ease;
    font: inherit;
    text-align: left;
}

.ml-tile--wide {
    aspect-ratio: 16 / 9;
}

.ml-tile__art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.ml-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(5, 7, 13, .82) 0%, rgba(5, 7, 13, .2) 42%, rgba(5, 7, 13, 0) 60%);
}

.ml-tile:hover, .ml-tile:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 0 0 2px var(--sky), var(--shadow-tile);
    outline: none;
}

.ml-tile:hover .ml-tile__art {
    transform: scale(1.04);
}

.ml-tile__mark {
    position: absolute;
    top: 6cqw;
    left: 6cqw;
    z-index: 2;
    width: max(18px, 13cqw);
    height: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5));
}

.ml-tile__badges {
    position: absolute;
    top: 6cqw;
    right: 6cqw;
    z-index: 2;
    display: flex;
    gap: 4px;
}

.ml-tile--wide .ml-tile__badges {
    left: 4cqw;
    right: auto;
    top: 4cqw;
}

.ml-tile__play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(5, 7, 13, .55);
    border: 2px solid var(--ink);
    color: var(--ink);
    opacity: 0;
    transform: scale(.85);
    transition: opacity .2s ease, transform .2s ease;
}

.ml-tile:hover .ml-tile__play, .ml-tile:focus-visible .ml-tile__play {
    opacity: 1;
    transform: none;
}

.ml-tile__info {
    position: absolute;
    left: 5cqw;
    right: 5cqw;
    bottom: 5cqw;
    z-index: 2;
    display: grid;
    gap: 2px;
}

.ml-tile__kicker {
    font: 800 10px/14px var(--font-text);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.ml-tile__name {
    font: 700 15px/19px var(--font-text);
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-tile__sub {
    font: 600 12px/16px var(--font-text);
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

.ml-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    height: 4px;
    background: rgba(242, 244, 248, .22);
}

.ml-progress > i {
    display: block;
    height: 100%;
    width: var(--p, 0%);
    background: var(--sky);
}

.ml-caption {
    display: grid;
    gap: 2px;
    padding-top: 10px;
    min-width: 0;
}

.ml-caption__title {
    font: 700 15px/20px var(--font-text);
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-caption__sub {
    font: 600 13px/18px var(--font-text);
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Title lockups: each title sets its own face; size follows the tile (container units). */
.ml-lockup {
    position: absolute;
    z-index: 2;
    left: 7cqw;
    right: 7cqw;
    bottom: 8cqw;
    margin: 0;
    text-align: center;
    font-size: calc(13.5cqw * var(--lk, 1) * var(--len, 1));
    line-height: .95;
    color: var(--lk-color, var(--ink));
    text-wrap: balance;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .55);
    overflow-wrap: break-word;
    hyphens: manual;
}

.ml-tile--wide .ml-lockup {
    text-align: left;
    left: 6cqw;
    right: 30cqw;
    bottom: 7cqw;
    font-size: calc(8cqw * var(--lk, 1) * var(--len, 1));
}

.lk-unb {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -.01em;
    --lk: .72;
}

.lk-bebas {
    font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
    font-weight: 400;
    letter-spacing: .03em;
    --lk: 1.3;
    line-height: .9;
}

.lk-cinzel {
    font-family: "Cinzel", Georgia, serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    --lk: .82;
}

.lk-playfair {
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-weight: 800;
    --lk: 1;
}

.lk-bungee {
    font-family: "Bungee", Impact, sans-serif;
    font-weight: 400;
    --lk: .8;
}

.lk-monoton {
    font-family: "Monoton", "Bungee", Impact, sans-serif;
    font-weight: 400;
    --lk: .86;
    --lk-color: var(--lk-accent, var(--ink));
    text-shadow: 0 0 18px var(--lk-accent, transparent), 0 2px 12px rgba(0, 0, 0, .6);
}

.lk-fredoka {
    font-family: "Fredoka", "Arial Rounded MT Bold", sans-serif;
    font-weight: 700;
    --lk: 1.02;
}

.lk-syne {
    font-family: "Syne", var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .01em;
    --lk: .6;
}

.lk-dmserif {
    font-family: "DM Serif Display", Georgia, serif;
    font-weight: 400;
    --lk: 1.05;
}

/* Top 10 */
.ml-top10 {
    display: grid;
    grid-template-columns: 38% 62%;
    align-items: end;
}

.ml-top10__num {
    justify-self: end;
    font: 800 calc(var(--tile-w, 252px) * .5)/.78 var(--font-display);
    letter-spacing: -.05em;
    color: var(--bg-000);
    -webkit-text-stroke: 2px var(--line-strong);
    paint-order: stroke;
    margin-right: -.16em;
    position: relative;
    z-index: 0;
    user-select: none;
    white-space: nowrap;
}

.ml-top10__num--2 {
    font-size: calc(var(--tile-w, 252px) * .4);
    letter-spacing: -.1em;
}

.ml-top10 .ml-tile {
    position: relative;
    z-index: 1;
}

/* ---------- Rail ---------- */
.ml-rail {
    position: relative;
    display: grid;
    gap: var(--space-2);
}

.ml-rail__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    padding-left: var(--gl, 16px);
    padding-right: var(--gr, 16px);
}

.ml-rail__title {
    margin: 0;
    font: 600 19px/24px var(--font-display);
    color: var(--ink);
}

.ml-rail__more {
    font: 700 14px/20px var(--font-text);
    color: var(--sky);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px 0;
}

.ml-rail__more:hover {
    text-decoration: underline;
}

.ml-rail__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--tile-w, var(--size-poster));
    gap: var(--space-3);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 8px var(--gr, 16px) 14px var(--gl, 16px);
    scroll-padding-inline: var(--gl, 16px);
}

.ml-rail__track::-webkit-scrollbar {
    display: none;
}

.ml-rail__track > * {
    scroll-snap-align: start;
    min-width: 0;
}

.ml-rail__arrow {
    position: absolute;
    z-index: 5;
    top: 40px;
    bottom: 14px;
    width: calc(var(--gl, 16px) + 8px);
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s ease;
}

.ml-rail__arrow--prev {
    left: 0;
    background: linear-gradient(to right, rgba(5, 7, 13, .92), rgba(5, 7, 13, 0));
}

.ml-rail__arrow--next {
    right: 0;
    background: linear-gradient(to left, rgba(5, 7, 13, .92), rgba(5, 7, 13, 0));
}

.ml-rail:hover .ml-rail__arrow:not([disabled]), .ml-rail__arrow:focus-visible {
    opacity: 1;
}

.ml-rail__arrow[disabled] {
    pointer-events: none;
}

@media (hover: none) {
    .ml-rail__arrow {
        display: none;
    }
}

/* ---------- Hero ---------- */
.ml-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    height: min(56.25vw, 760px);
    background: var(--bg-000);
}

.ml-hero__slide {
    position: absolute;
    inset: 0;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease, visibility .8s;
}

.ml-hero__slide.is-on {
    opacity: 1;
    visibility: visible;
}

.ml-hero__art {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.ml-hero__art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: 70% 50%;
}

.ml-hero__slide.is-on .ml-hero__art img {
    animation: ml-drift 26s ease-in-out infinite alternate;
}

.ml-hero__art .is-tall {
    display: none;
}

.ml-hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(5, 7, 13, .9) 0%, rgba(5, 7, 13, .62) 34%, rgba(5, 7, 13, 0) 66%), linear-gradient(to top, var(--bg-000) 0%, rgba(5, 7, 13, .5) 22%, rgba(5, 7, 13, 0) 48%);
}

.ml-hero__body {
    position: relative;
    display: grid;
    gap: var(--space-4);
    justify-items: start;
    width: min(640px, 100%);
    padding: 0 var(--gr, 16px) var(--space-16) var(--gl, 16px);
}

.ml-hero__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

.ml-hero__lockup {
    position: static;
    margin: 0;
    text-align: left;
    font-size: calc(clamp(44px, 6.4vw, 92px) * var(--lk, 1) * var(--len, 1));
    line-height: .92;
    text-wrap: balance;
    color: var(--lk-color, var(--ink));
    text-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}

.ml-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font: 600 14px/20px var(--font-text);
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

.ml-meta > .m + .m::before {
    content: "\00b7";
    margin-right: 10px;
    color: var(--ink-faint);
}

.ml-hero__desc {
    margin: 0;
    font: 400 17px/26px var(--font-text);
    color: #d7dce7;
    max-width: 52ch;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ml-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding-top: var(--space-2);
}

.ml-hero__dots {
    position: absolute;
    right: var(--gr, 16px);
    bottom: var(--space-16);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.ml-hero__dot {
    position: relative;
    width: 34px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.ml-hero__dot::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 10px;
    height: 4px;
    border-radius: 2px;
    background: rgba(242, 244, 248, .28);
}

.ml-hero__dot i {
    position: absolute;
    left: 0;
    top: 10px;
    height: 4px;
    border-radius: 2px;
    width: 0;
    background: var(--ink);
}

.ml-hero__dot[aria-current="true"] i {
    width: 100%;
    animation: ml-fill var(--hero-ms, 8000ms) linear;
}

.ml-hero.is-paused .ml-hero__dot[aria-current="true"] i {
    animation-play-state: paused;
}

.ml-hero__dot:focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 2px;
    border-radius: 4px;
}

@keyframes ml-fill {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes ml-drift {
    from {
        transform: scale(1.02) translate3d(0, 0, 0);
    }

    to {
        transform: scale(1.1) translate3d(-1.5%, -1%, 0);
    }
}

@media (max-width: 699px) {
    .ml-hero {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 5.2;
        max-height: 88svh;
    }

    .ml-hero__art .is-wide {
        display: none;
    }

    .ml-hero__art .is-tall {
        display: block;
    }

    .ml-hero__slide::before {
        background: linear-gradient(to top, var(--bg-000) 0%, rgba(5, 7, 13, .78) 34%, rgba(5, 7, 13, 0) 66%);
    }

    .ml-hero__body {
        justify-items: center;
        text-align: center;
        padding-bottom: var(--space-12);
        width: 100%;
    }

    .ml-hero__eyebrow, .ml-hero__actions, .ml-meta {
        justify-content: center;
    }

    .ml-hero__lockup {
        text-align: center;
        font-size: calc(46px * var(--lk, 1) * var(--len, 1));
    }

    .ml-hero__desc {
        font-size: 15px;
        line-height: 22px;
        -webkit-line-clamp: 2;
    }

    .ml-hero__dots {
        left: 0;
        right: 0;
        bottom: 16px;
        justify-content: center;
    }
}

/* ---------- Channel guide ---------- */
.ml-guide {
    --ppm: 6px;
    --ch-w: 132px;
    --row-h: 78px;
    position: relative;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-000);
    scrollbar-color: var(--line-strong) transparent;
}

.ml-guide__inner {
    position: relative;
    width: max-content;
}

.ml-guide__times {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    height: 40px;
    background: var(--surface-100);
    border-bottom: 1px solid var(--line);
}

.ml-guide__corner {
    position: sticky;
    left: 0;
    z-index: 5;
    width: var(--ch-w);
    flex: none;
    background: var(--surface-100);
    border-right: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 12px;
    font: 800 11px/14px var(--font-text);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.ml-guide__slot {
    flex: none;
    width: calc(var(--ppm) * 30);
    display: flex;
    align-items: center;
    padding-left: 10px;
    font: 600 13px/18px var(--font-text);
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
    border-left: 1px solid var(--line);
}

.ml-guide__row {
    display: flex;
    height: var(--row-h);
    border-bottom: 1px solid var(--line);
}

.ml-guide__row:last-child {
    border-bottom: 0;
}

.ml-guide__ch {
    position: sticky;
    left: 0;
    z-index: 3;
    width: var(--ch-w);
    flex: none;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 0 12px;
    background: var(--surface-100);
    border: 0;
    border-right: 1px solid var(--line);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.ml-guide__ch:hover, .ml-guide__ch[aria-pressed="true"] {
    background: var(--surface-200);
}

.ml-guide__ch[aria-pressed="true"] {
    box-shadow: inset 3px 0 0 var(--sky);
}

.ml-bug {
    display: inline-block;
    font: 800 11px/1.1 var(--font-display);
    letter-spacing: .02em;
    color: var(--bug, var(--sky));
    text-transform: uppercase;
}

.ml-guide__chname {
    font: 600 12px/16px var(--font-text);
    color: var(--ink-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-guide__progs {
    position: relative;
    flex: none;
}

.ml-guide__prog {
    position: absolute;
    top: 6px;
    bottom: 6px;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 2px;
    padding: 0 12px;
    overflow: hidden;
    overflow: clip;
    border-radius: var(--radius-sm);
    border: 0;
    background: var(--surface-200);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.ml-guide__prog:hover {
    background: var(--surface-300);
}

.ml-guide__prog.is-now {
    background: var(--surface-300);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

.ml-guide__prog.is-past {
    background: var(--surface-100);
}

.ml-guide__prog.is-past .ml-guide__ptitle {
    color: var(--ink-muted);
}

.ml-guide__ptitle {
    font: 700 14px/18px var(--font-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-guide__ptitle, .ml-guide__ptime {
    position: sticky;
    left: calc(var(--ch-w) + 12px);
    max-width: 100%;
}

.ml-guide__ptime {
    font: 600 12px/16px var(--font-text);
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ml-guide__prog.is-now .ml-guide__ptime {
    color: var(--ink-muted);
}

.ml-guide__prog .ml-progress {
    height: 3px;
}

.ml-guide__now {
    position: absolute;
    top: 40px;
    bottom: 0;
    z-index: 2;
    width: 2px;
    margin-left: -1px;
    background: var(--live);
    pointer-events: none;
}

.ml-guide__nowtag {
    position: absolute;
    top: 11px;
    z-index: 1;
    transform: translateX(-50%);
    padding: 1px 6px;
    border-radius: var(--radius-xs);
    background: var(--live-fill);
    color: var(--on-brand);
    font: 800 10px/16px var(--font-text);
    letter-spacing: .1em;
    pointer-events: none;
}

/* ---------- Player bar ---------- */
.ml-player {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #000;
    color: var(--ink);
    overflow: hidden;
}

.ml-player--inline {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
}

.ml-player__chrome {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity .3s ease;
}

.ml-player.is-idle .ml-player__chrome {
    opacity: 0;
    cursor: none;
}

.ml-player__top {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gr, 16px) 40px var(--gl, 16px);
    background: linear-gradient(to bottom, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
}

.ml-player__title {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.ml-player__show {
    font: 700 18px/22px var(--font-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-player__ep {
    font: 600 14px/18px var(--font-text);
    color: var(--ink-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-player__bar {
    display: grid;
    gap: 10px;
    padding: 48px var(--gr, 16px) calc(18px + env(safe-area-inset-bottom, 0px)) var(--gl, 16px);
    background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0));
}

.ml-player__row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ml-player__time {
    font: 600 14px/20px var(--font-text);
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    padding: 0 10px;
    white-space: nowrap;
}

.ml-player__spacer {
    flex: 1;
}

.ml-scrub {
    position: relative;
    height: 22px;
    display: flex;
    align-items: center;
    cursor: pointer;
    touch-action: none;
}

.ml-scrub__track {
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: var(--radius-xs);
    background: rgba(242, 244, 248, .25);
    transition: height .15s ease;
}

.ml-scrub:hover .ml-scrub__track, .ml-scrub.is-drag .ml-scrub__track {
    height: 6px;
}

.ml-scrub__buf {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: rgba(242, 244, 248, .35);
}

.ml-scrub__fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: var(--sky);
}

.ml-scrub__thumb {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    background: var(--ink);
    box-shadow: 0 0 0 4px rgba(0, 160, 252, .35);
    transform: scale(0);
    transition: transform .15s ease;
}

.ml-scrub:hover .ml-scrub__thumb, .ml-scrub.is-drag .ml-scrub__thumb, .ml-scrub:focus-visible .ml-scrub__thumb {
    transform: scale(1);
}

.ml-scrub:focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 4px;
    border-radius: 4px;
}

.ml-scrub__tip {
    position: absolute;
    bottom: 26px;
    transform: translateX(-50%);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    background: var(--surface-200);
    font: 700 12px/18px var(--font-text);
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    white-space: nowrap;
}

.ml-scrub:hover .ml-scrub__tip, .ml-scrub.is-drag .ml-scrub__tip {
    opacity: 1;
}

.ml-scrub--live .ml-scrub__fill {
    background: var(--live);
}

@media (prefers-reduced-motion: reduce) {
    .ml-hero__slide.is-on .ml-hero__art img {
        animation: none;
    }

    .ml-badge--live::before {
        animation: none;
    }

    .ml-tile, .ml-tile__art {
        transition: none;
    }
}

/* MORIL app layer: layout, pages and overlays. Components live in bundle.css. */
:root {
    color-scheme: dark;
    --g: 16px;
    --gl: max(var(--g), env(safe-area-inset-left, 0px));
    --gr: max(var(--g), env(safe-area-inset-right, 0px));
    --ppm: 6px;
}

@media (min-width: 700px) {
    :root {
        --g: 32px;
    }
}

@media (min-width: 1100px) {
    :root {
        --g: 48px;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    background: var(--bg-000);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg-000);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 15px;
    line-height: 22px;
    overflow-x: hidden;
}

body.is-locked {
    overflow: hidden;
}

button {
    font: inherit;
    color: inherit;
}

img {
    max-width: 100%;
}

.sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 8px;
    top: -60px;
    border: 0;
    cursor: pointer;
    z-index: 400;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--bg-000);
    font-weight: 700;
    text-decoration: none;
}

.skip:focus {
    top: 8px;
}

/* Nav */
.ml-nav {
    margin-bottom: calc(-1 * var(--size-nav));
}

.nav__menuwrap {
    position: relative;
}

.menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 60;
    width: 272px;
    display: grid;
    gap: 2px;
    padding: 8px;
    background: var(--surface-200);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-pop);
}

.menu__label {
    padding: 8px 10px 4px;
    font: 800 11px/14px var(--font-text);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.menu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 6px 10px;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    font: 600 15px/20px var(--font-text);
}

.menu__item:hover, .menu__item:focus-visible {
    background: var(--surface-300);
    outline: none;
}

.menu__item .ml-avatar {
    width: 30px;
    height: 30px;
    font-size: 13px;
    pointer-events: none;
}

.menu__item[aria-current="true"]::after {
    content: "Watching";
    margin-left: auto;
    font: 700 12px/16px var(--font-text);
    color: var(--sky);
}

.menu__item .ml-ico {
    color: var(--ink-muted);
}

.menu__sep {
    height: 1px;
    margin: 6px 4px;
    background: var(--line);
}

.menu__plan {
    margin-left: auto;
}

@media (max-width: 999px) {
    .ml-nav {
        flex-wrap: wrap;
        gap: 0 var(--space-4);
        padding-top: 8px;
        background: var(--bg-000);
        box-shadow: 0 1px 0 var(--line);
        margin-bottom: 0;
    }

    .ml-nav.is-solid {
        background: var(--bg-000);
    }

    .ml-nav__logo img {
        height: 36px;
    }

    .ml-nav__links {
        order: 3;
        flex: 1 0 100%;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 4px calc(-1 * var(--gr)) 0 calc(-1 * var(--gl));
        padding: 0 var(--gr) 6px var(--gl);
    }

    .ml-nav__links::-webkit-scrollbar {
        display: none;
    }

    .ml-nav__link {
        padding: 0 12px;
        height: 38px;
        font-size: 14px;
    }

    .ml-nav__link:first-child {
        margin-left: -12px;
    }
}

/* Main */
main {
    display: block;
    min-height: 70vh;
    outline: none;
}

.rails {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    padding: var(--space-4) 0 var(--space-12);
}

@media (min-width: 1100px) {
    .rails {
        gap: 40px;
    }
}

.page-head {
    display: grid;
    gap: var(--space-2);
    padding: calc(var(--size-nav) + 28px) var(--gr) var(--space-4) var(--gl);
}

@media (max-width: 999px) {
    .page-head {
        padding-top: 24px;
    }
}

.page-head h1 {
    margin: 0;
}

.page-head p {
    margin: 0;
    color: var(--ink-muted);
    font-weight: 600;
}

.page-sub {
    padding: 0 var(--gr) 0 var(--gl);
    display: grid;
    gap: var(--space-4);
}

.section-title {
    margin: 0;
    font: 600 19px/24px var(--font-display);
}

.chips {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px var(--gr) 4px var(--gl);
}

.chips::-webkit-scrollbar {
    display: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--min, 150px), 1fr));
    gap: 20px 12px;
    padding: 0 var(--gr) 0 var(--gl);
}

@media (min-width: 1100px) {
    .grid {
        --min: 168px;
        gap: 28px 16px;
    }
}

.grid--wide {
    --min: 260px;
}

.count {
    font: 600 13px/18px var(--font-text);
    color: var(--ink-faint);
}

:root {
    --tile-poster: 128px;
    --tile-poster-lg: 180px;
    --tile-wide: 240px;
    --tile-top: 196px;
}

@media (min-width: 700px) {
    :root {
        --tile-poster: 150px;
        --tile-poster-lg: 200px;
        --tile-wide: 272px;
        --tile-top: 220px;
    }
}

@media (min-width: 1100px) {
    :root {
        --tile-poster: var(--size-poster);
        --tile-poster-lg: var(--size-poster-lg);
        --tile-wide: var(--size-wide);
        --tile-top: 252px;
    }
}

.cw {
    position: relative;
    min-width: 0;
}

.cw__x {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 6;
    width: 32px;
    height: 32px;
    opacity: 0;
    transition: opacity .2s;
}

.cw:hover .cw__x, .cw__x:focus-visible {
    opacity: 1;
}

@media (hover: none) {
    .cw__x {
        opacity: 1;
    }
}

.cw__x .ml-ico {
    width: 16px;
    height: 16px;
}

@media (max-width: 699px) {
    .ml-hero .ml-btn--glass {
        width: var(--size-control);
        padding: 0;
    }

    .ml-hero .ml-btn--glass .lbl {
        display: none;
    }
}

/* Genre tiles */
.genre {
    position: relative;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 16 / 9;
    width: 100%;
    padding: 14px;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--surface-200);
    color: var(--ink);
    cursor: pointer;
    isolation: isolate;
    text-align: left;
    transition: transform .24s cubic-bezier(.2, .7, .2, 1), box-shadow .24s;
}

.genre img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.genre::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(5, 7, 13, .85), rgba(5, 7, 13, .1) 70%);
}

.genre span {
    font: 700 18px/22px var(--font-display);
}

.genre:hover, .genre:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 0 0 2px var(--sky), var(--shadow-tile);
    outline: none;
}

/* Hero extras */
.score {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: rgba(5, 7, 13, .6);
    border: 1px solid var(--glass-line);
    font: 700 15px/20px var(--font-text);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-variant-numeric: tabular-nums;
}

.score b {
    font: 800 20px/24px var(--font-display);
}

.score em {
    font-style: normal;
    color: var(--live);
    font-weight: 800;
}

.orig {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 800 11px/14px var(--font-text);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink);
}

.orig img {
    width: 22px;
    height: 22px;
}

.eyebrow-text {
    font: 800 11px/14px var(--font-text);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sky);
}

/* Sheet (title details, plans) */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--scrim);
    padding: 40px var(--gr) 64px var(--gl);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: ov-in .2s ease;
}

@keyframes ov-in {
    from {
        opacity: 0;
    }
}

.sheet {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface-100);
    box-shadow: var(--shadow-pop);
    animation: sh-in .32s cubic-bezier(.2, .7, .2, 1);
}

@keyframes sh-in {
    from {
        transform: translateY(24px);
        opacity: 0;
    }
}

.sheet__hero {
    position: relative;
    aspect-ratio: 16 / 8.2;
}

.sheet__hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sheet__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--surface-100) 2%, rgba(12, 17, 28, .55) 38%, rgba(12, 17, 28, 0) 70%), linear-gradient(90deg, rgba(12, 17, 28, .7), rgba(12, 17, 28, 0) 60%);
}

.sheet__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
}

.sheet__head {
    position: relative;
    z-index: 2;
    display: grid;
    gap: var(--space-4);
    justify-items: start;
    margin-top: -200px;
    padding: 0 40px;
}

.sheet__lockup {
    position: static;
    text-align: left;
    margin: 0;
    font-size: calc(68px * var(--lk, 1) * var(--len, 1));
    line-height: .92;
    max-width: 640px;
}

.sheet__body {
    display: grid;
    gap: var(--space-8);
    padding: var(--space-6) 40px 40px;
}

.sheet__cols {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: var(--space-8);
}

.sheet__desc {
    margin: 0;
    font: 400 17px/26px var(--font-text);
    color: #d7dce7;
}

.facts {
    display: grid;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
}

.facts div {
    display: grid;
    gap: 2px;
}

.facts dt {
    font: 800 11px/14px var(--font-text);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.facts dd {
    margin: 0;
    color: var(--ink-muted);
}

.tabs {
    display: flex;
    gap: var(--space-6);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}

.tab {
    position: relative;
    padding: 12px 0;
    border: 0;
    background: none;
    color: var(--ink-muted);
    font: 700 15px/20px var(--font-text);
    cursor: pointer;
    white-space: nowrap;
}

.tab:hover {
    color: var(--ink);
}

.tab[aria-selected="true"] {
    color: var(--ink);
}

.tab[aria-selected="true"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 2px;
    background: var(--sky);
}

.tab:focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 2px;
    border-radius: 4px;
}

.panel {
    display: grid;
    gap: var(--space-4);
}

.seasons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.eps {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ep {
    display: grid;
    grid-template-columns: 28px minmax(0, 208px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: var(--radius-md);
    background: none;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.ep:hover, .ep:focus-visible {
    background: var(--surface-200);
    outline: none;
}

.ep:focus-visible {
    box-shadow: inset 0 0 0 2px var(--sky);
}

.ep__n {
    font: 600 20px/24px var(--font-display);
    color: var(--ink-faint);
    text-align: center;
}

.ep__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--surface-200);
}

.ep__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ep__thumb .ml-tile__play {
    opacity: 0;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
}

.ep:hover .ml-tile__play, .ep:focus-visible .ml-tile__play {
    opacity: 1;
    transform: none;
}

.ep__text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.ep__title {
    font: 700 16px/22px var(--font-text);
}

.ep__meta {
    font: 600 13px/18px var(--font-text);
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
}

.ep__desc {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--ink-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sheet .grid {
    padding: 0;
    --min: 140px;
}

@media (max-width: 699px) {
    .overlay {
        padding: 0;
    }

    .sheet {
        border-radius: 0;
        min-height: 100%;
    }

    .sheet__hero {
        aspect-ratio: 4 / 3.4;
    }

    .sheet__head {
        margin-top: -120px;
        padding: 0 var(--gr) 0 var(--gl);
    }

    .sheet__lockup {
        font-size: calc(44px * var(--lk, 1) * var(--len, 1));
    }

    .sheet__body {
        padding: var(--space-4) var(--gr) var(--space-12) var(--gl);
    }

    .sheet__cols {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .sheet__close {
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
    }

    .ep {
        grid-template-columns: minmax(0, 132px) minmax(0, 1fr);
        gap: 12px;
        padding: 8px 0;
    }

    .ep__n {
        display: none;
    }

    .ep__desc {
        -webkit-line-clamp: 3;
        grid-column: 1 / -1;
    }
}

/* Plans */
.plans {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--radius-lg);
    background: radial-gradient(120% 90% at 0% 0%, var(--navy) 0%, var(--surface-100) 60%);
    box-shadow: var(--shadow-pop);
    display: grid;
    gap: var(--space-6);
    animation: sh-in .32s cubic-bezier(.2, .7, .2, 1);
}

.plans h2 {
    margin: 0;
}

.plans__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
}

.plan {
    display: grid;
    gap: var(--space-4);
    align-content: start;
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--bg-000);
    border: 1px solid var(--line);
}

.plan--plus {
    border-color: var(--gold);
}

.plan__price {
    font: 800 34px/36px var(--font-display);
}

.plan__price small {
    font: 600 15px/20px var(--font-text);
    color: var(--ink-muted);
}

.plan ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    color: var(--ink-muted);
    font-size: 15px;
}

.plan li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: start;
}

.plan li .ml-ico {
    width: 20px;
    height: 20px;
    color: var(--sky);
}

.plan--plus li .ml-ico {
    color: var(--gold);
}

.fine {
    margin: 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--ink-faint);
}

@media (max-width: 699px) {
    .plans {
        border-radius: 0;
        min-height: 100%;
        padding: calc(56px + env(safe-area-inset-top, 0px)) var(--gr) 48px var(--gl);
    }
}

/* Profiles */
.profiles {
    position: fixed;
    inset: 0;
    z-index: 170;
    overflow-y: auto;
    display: grid;
    place-items: center;
    padding: 48px var(--gr) 48px var(--gl);
    background: radial-gradient(90% 70% at 50% 20%, var(--navy) 0%, var(--bg-000) 70%);
    animation: ov-in .25s ease;
}

.profiles__inner {
    display: grid;
    gap: 40px;
    justify-items: center;
    text-align: center;
}

.profiles__logo {
    height: 76px;
    width: auto;
}

.profiles h2 {
    margin: 0;
}

.profiles__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}

.profile {
    display: grid;
    gap: 12px;
    justify-items: center;
    align-content: start;
    padding: 6px;
    border: 0;
    background: none;
    color: var(--ink-muted);
    cursor: pointer;
    font: 700 16px/20px var(--font-text);
}

.profile .ml-avatar {
    width: 112px;
    height: 112px;
    font-size: 42px;
    border-width: 3px;
    pointer-events: none;
    transition: transform .2s ease, border-color .2s;
}

.profile:hover, .profile:focus-visible {
    color: var(--ink);
    outline: none;
}

.profile:hover .ml-avatar, .profile:focus-visible .ml-avatar {
    transform: scale(1.06);
    border-color: var(--ink);
}

.profile small {
    font: 800 10px/12px var(--font-text);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sky);
}

@media (max-width: 499px) {
    .profile .ml-avatar {
        width: 88px;
        height: 88px;
        font-size: 32px;
    }

    .profiles__list {
        gap: 18px;
    }
}

/* Search */
.search {
    position: fixed;
    inset: 0;
    z-index: 140;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg-000);
    animation: ov-in .18s ease;
}

.search__bar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gr) 14px var(--gl);
    background: var(--bg-000);
    border-bottom: 1px solid var(--line);
}

.search__field {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    background: var(--surface-200);
    border: 1px solid var(--line-strong);
}

.search__field:focus-within {
    border-color: var(--sky);
    box-shadow: 0 0 0 1px var(--sky);
}

.search__field .ml-ico {
    color: var(--ink-muted);
}

.search__field input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: none;
    color: var(--ink);
    font: 600 19px/24px var(--font-text);
    outline: none;
}

.search__field input::placeholder {
    color: var(--ink-faint);
}

.search__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    padding: var(--space-6) 0 var(--space-16);
}

.search__body > .page-sub {
    gap: var(--space-4);
}

.hint {
    margin: 0;
    color: var(--ink-muted);
}

.chlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.chcard {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-100);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.chcard:hover, .chcard:focus-visible {
    background: var(--surface-200);
    border-color: var(--line-strong);
    outline: none;
}

.chcard:focus-visible {
    box-shadow: 0 0 0 2px var(--sky);
}

.chcard__txt {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.chcard__txt b {
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chcard__txt span {
    font-size: 13px;
    color: var(--ink-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Live TV page */
.live-top {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: var(--space-8);
    align-items: center;
    padding: 0 var(--gr) 0 var(--gl);
}

.live-prev {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--surface-200);
    border: 0;
    padding: 0;
    cursor: pointer;
    isolation: isolate;
    container-type: inline-size;
}

.live-prev img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: ml-drift 30s ease-in-out infinite alternate;
    z-index: -2;
}

.live-prev::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(5, 7, 13, .7), rgba(5, 7, 13, 0) 50%);
}

.live-prev .ml-tile__badges {
    top: 16px;
    left: 16px;
    right: auto;
}

.live-prev .ml-tile__play {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    opacity: 1;
    transform: none;
}

.live-prev:hover .ml-tile__play {
    background: var(--royal);
    border-color: var(--royal);
}

.live-prev:focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 3px;
}

.live-prev .ml-lockup {
    text-align: left;
    right: 30cqw;
    left: 4cqw;
    bottom: 5cqw;
    font-size: calc(6cqw * var(--lk, 1) * var(--len, 1));
}

.live-info {
    display: grid;
    gap: var(--space-3);
    justify-items: start;
}

.live-info h2 {
    margin: 0;
}

.live-info .bar {
    width: 100%;
    max-width: 360px;
    height: 4px;
    border-radius: 2px;
    background: var(--surface-300);
    overflow: hidden;
}

.live-info .bar i {
    display: block;
    height: 100%;
    background: var(--live);
}

.upnext {
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0;
}

.upnext b {
    color: var(--ink);
    font-weight: 700;
}

.guide-wrap {
    padding: 0 var(--gr) 0 var(--gl);
}

.guide-wrap .ml-guide {
    max-height: 640px;
}

@media (max-width: 899px) {
    .live-top {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

@media (max-width: 699px) {
    .ml-guide {
        --ppm: 4.4px;
        --ch-w: 104px;
        --row-h: 72px;
    }
}

/* Sports schedule */
.sched {
    display: grid;
    gap: var(--space-6);
    padding: 0 var(--gr) 0 var(--gl);
}

.sched__day {
    display: grid;
    gap: 8px;
}

.sched__day h3 {
    margin: 0;
    font: 800 12px/16px var(--font-text);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.srow {
    display: grid;
    grid-template-columns: 92px 72px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 10px 12px 10px 10px;
    border-radius: var(--radius-md);
    background: var(--surface-100);
    border: 1px solid var(--line);
}

.srow__time {
    font: 700 15px/20px var(--font-text);
    font-variant-numeric: tabular-nums;
}

.srow__time .ml-badge {
    vertical-align: middle;
}

.srow__thumb {
    width: 72px;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface-200);
}

.srow__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.srow__txt {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.srow__txt b {
    font-size: 16px;
    line-height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.srow__txt span {
    font-size: 13px;
    color: var(--ink-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 699px) {
    .srow {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 12px;
    }

    .srow__thumb {
        display: none;
    }

    .srow__time {
        grid-column: 1 / -1;
        font-size: 13px;
        color: var(--ink-muted);
    }
}

/* My Stuff */
.empty {
    display: grid;
    justify-items: start;
    gap: var(--space-3);
    padding: var(--space-8);
    margin: 0 var(--gr) 0 var(--gl);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-md);
}

.empty h3 {
    margin: 0;
}

.empty p {
    margin: 0;
    color: var(--ink-muted);
    max-width: 52ch;
}

.stuff-tile {
    position: relative;
    min-width: 0;
}

/* Player (app) */
.pl-video {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: #000;
    overflow: hidden;
}

.pl-frame {
    position: relative;
    width: 100%;
    max-height: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.pl-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.2s ease;
    animation: pl-pan 18s ease-in-out infinite alternate;
}

.ml-player.is-paused .pl-frame img, .ml-player.is-buffering .pl-frame img {
    animation-play-state: paused;
}

@keyframes pl-pan {
    from {
        transform: scale(1.06) translate3d(1.5%, .5%, 0);
    }

    to {
        transform: scale(1.14) translate3d(-2%, -1%, 0);
    }
}

.pl-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55));
}

/* Third-party players own their playback controls. Keep MORIL's close/source controls accessible. */
.ml-player.is-embed .pl-tap, .ml-player.is-embed .pl-spin, .ml-player.is-embed .pl-center {
    display: none !important;
}

.ml-player.is-embed .pl-frame::after {
    pointer-events: none;
}

.ml-player.is-embed .ml-player__chrome {
    pointer-events: none;
}

.ml-player.is-embed .ml-player__top, .ml-player.is-embed #pl-set, .ml-player.is-embed #pl-fs {
    pointer-events: auto;
}

.ml-player.is-embed .ml-player__bar {
    background: transparent;
    padding: 8px var(--gr, 16px) 12px var(--gl, 16px);
}

.ml-player.is-embed .ml-scrub, .ml-player.is-embed #pl-pp, .ml-player.is-embed #pl-rew, .ml-player.is-embed #pl-fwd, .ml-player.is-embed .pl-vol, .ml-player.is-embed #pl-time, .ml-player.is-embed #pl-cc, .ml-player.is-embed #pl-nextbtn {
    display: none !important;
}

.ml-player.is-embed #pl-set {
    display: inline-flex !important;
}

.ml-player.is-embed.is-idle .ml-player__chrome {
    opacity: 1;
    cursor: auto;
}

.ml-player.is-embed .ml-player__top {
    background: linear-gradient(rgba(0,0,0,.85), transparent);
}

.ml-player.is-embed .ml-player__bar {
    justify-items: end;
}

.pl-center {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 88px;
    height: 88px;
    margin: -44px 0 0 -44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: var(--ink);
    opacity: 0;
    transform: scale(.8);
    pointer-events: none;
}

.pl-center .ml-ico {
    width: 40px;
    height: 40px;
}

.pl-center.is-flash {
    animation: pl-flash .6s ease;
}

@keyframes pl-flash {
    0% {
        opacity: 0;
        transform: scale(.8);
    }

    30% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.25);
    }
}

.pl-spin {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 50%;
    border: 4px solid rgba(242, 244, 248, .2);
    border-top-color: var(--sky);
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.pl-caption {
    position: absolute;
    left: 50%;
    bottom: 17%;
    transform: translateX(-50%);
    max-width: min(80%, 900px);
    padding: 4px 12px;
    background: rgba(0, 0, 0, .78);
    color: #fff;
    font: 600 clamp(16px, 2.2vw, 26px)/1.35 var(--font-text);
    text-align: center;
    border-radius: 4px;
    pointer-events: none;
}

.ml-player.is-idle .pl-caption {
    bottom: 8%;
}

.pl-tap {
    position: absolute;
    inset: 0;
}

.ml-player__chrome {
    pointer-events: none;
}

.ml-player__chrome > * {
    pointer-events: auto;
}

.pl-mid {
    flex: 1;
    pointer-events: none !important;
}

.ml-player__row .ml-iconbtn {
    width: 44px;
    height: 44px;
}

.pl-vol {
    display: flex;
    align-items: center;
}

.pl-vol input {
    width: 0;
    opacity: 0;
    transition: width .2s ease, opacity .2s;
    accent-color: var(--sky);
}

.pl-vol:hover input, .pl-vol:focus-within input {
    width: 88px;
    opacity: 1;
}

.pl-pop {
    position: absolute;
    right: var(--gr);
    bottom: 112px;
    z-index: 5;
    width: 260px;
    padding: 8px;
    display: grid;
    gap: 2px;
    background: rgba(20, 27, 43, .96);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-pop);
}

.pl-pop .menu__item[aria-checked="true"]::after {
    content: "";
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sky);
}

.pl-next {
    position: absolute;
    right: var(--gr);
    bottom: 120px;
    z-index: 6;
    width: min(340px, calc(100% - 32px));
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(12, 17, 28, .94);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-pop);
}

.pl-next__row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: center;
}

.pl-next__row img {
    width: 120px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
}

.pl-next__txt {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.pl-next__txt span {
    font: 800 11px/14px var(--font-text);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sky);
}

.pl-next__txt b {
    font-size: 15px;
    line-height: 20px;
}

.pl-next__act {
    display: flex;
    gap: 8px;
}

.pl-golive {
    color: var(--ink-muted);
}

.pl-golive[aria-pressed="true"] {
    color: var(--live);
}

@media (max-width: 699px) {
    .ml-player__row {
        flex-wrap: wrap;
        gap: 0;
    }

    .ml-player__row .ml-iconbtn {
        width: 40px;
        height: 40px;
    }

    .pl-vol input {
        display: none;
    }

    .ml-player__time {
        font-size: 13px;
        padding: 0 4px;
    }

    .pl-hide-sm {
        display: none !important;
    }

    .pl-next {
        bottom: 108px;
    }
}

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 300;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--bg-000);
    font: 700 14px/20px var(--font-text);
    box-shadow: var(--shadow-pop);
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.toast.is-on {
    opacity: 1;
    transform: translate(-50%, 0);
}

.ml-player:not([hidden]) ~ .toast {
    bottom: calc(132px + env(safe-area-inset-bottom, 0px));
}

/* Footer */
.foot {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-8) var(--gr) calc(var(--space-12) + env(safe-area-inset-bottom, 0px)) var(--gl);
    border-top: 1px solid var(--line);
    color: var(--ink-faint);
    font-size: 13px;
    line-height: 18px;
}

.foot img {
    height: 30px;
    width: auto;
}

.foot p {
    margin: 0;
    max-width: 70ch;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ml-hero__slide.is-on .ml-hero__art img, .live-prev img, .pl-frame img {
        animation: none;
    }

    .overlay, .sheet, .plans, .search, .profiles {
        animation: none;
    }
}

/* Hosted app controls */
:root {
    color-scheme: dark;
}

body {
    background: var(--bg-000);
    color: var(--ink);
}

[hidden] {
    display: none !important;
}

button:disabled {
    opacity: .5;
    cursor: default;
}

select {
    min-height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 8px 32px 8px 12px;
    background: var(--surface-200);
    color: var(--ink);
    font: 600 14px var(--font-text);
    max-width: 100%;
}

select:focus-visible, button:focus-visible, a:focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 3px;
}

.catalog-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 4px var(--gr) 0 var(--gl);
    color: var(--ink-muted);
    font-size: 14px;
}

.catalog-tools > span {
    margin-left: auto;
    color: var(--ink-faint);
    font-size: 13px;
}

.load-more {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 8px 24px 24px;
}

.connection {
    position: sticky;
    top: var(--size-nav);
    z-index: 49;
    background: #172a44;
    color: #dcecff;
    padding: 14px var(--gr) 14px var(--gl);
    font-size: 14px;
}

.foot a {
    color: var(--ink-muted);
    text-underline-offset: 3px;
}

.pl-sourcebar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 6;
    background: #080c14;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px;
    pointer-events: auto;
}

.pl-sourcebar label {
    color: var(--ink-muted);
    font-size: 13px;
}

.pl-sourcebar select {
    min-height: 36px;
    max-width: 220px;
}

.ml-player.is-embed #pl-media {
    top: 118px !important;
    height: calc(100% - 118px) !important;
    bottom: 0 !important;
}

.ml-player.is-embed .pl-sourcebar {
    pointer-events: auto;
}

.ml-player.is-embed .ml-player__bar {
    display: none;
}

.ml-player.is-embed .ml-player__top {
    background: #05070d;
}

.ml-player.is-embed .ml-player__top::after {
    content: '';
}

.ml-player.is-embed .pl-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
}

.ml-player.is-embed #pl-media {
    top: var(--player-top, 118px) !important;
    height: calc(100% - var(--player-top, 118px)) !important;
}

.app-info {
    max-width: 720px;
    display: grid;
    gap: 20px;
}

.app-info > p {
    max-width: 60ch;
    margin: 0;
    color: var(--ink-muted);
    line-height: 1.6;
}

.app-info .display-page {
    font-size: clamp(24px, 5vw, 38px);
    line-height: 1.2;
    margin: 0;
}

.app-install-steps {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
    padding-top: 16px;
}

.app-install-steps h3 {
    margin: 12px 0 0;
    font: 700 17px var(--font-text);
}

.app-install-steps p {
    color: var(--ink-muted);
    line-height: 1.6;
    margin: 0;
}

.anime-range {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 16px 0;
    color: var(--ink-muted);
}

@media (max-width: 699px) {
    .app-install {
        padding: 0 12px;
        font-size: 12px;
        min-height: 34px;
    }

    .pl-sourcebar {
        top: 58px;
        padding: 8px 12px;
        gap: 6px;
    }

    .pl-sourcebar label {
        display: none;
    }

    .pl-sourcebar select {
        max-width: 148px;
        font-size: 12px;
        padding: 6px;
        min-height: 34px;
    }

    .pl-sourcebar .ml-btn {
        min-height: 34px;
        font-size: 12px;
        padding: 0 9px;
    }

    .ml-player.is-embed #pl-media {
        top: var(--player-top, 152px) !important;
        height: calc(100% - var(--player-top, 152px)) !important;
    }

    .catalog-tools > span {
        display: none;
    }

    .grid {
        --min: 130px;
    }

    .connection {
        position: relative;
        top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

.catalog-search {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 var(--gr) 0 var(--gl);
}

.catalog-search input {
    flex: 1 1 220px;
    min-width: 0;
    min-height: 44px;
    padding: 10px 16px;
    background: var(--surface-200);
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    font: 500 15px var(--font-text);
}

.catalog-search input:focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 2px;
}

.catalog-end {
    padding: 0 var(--gr) 0 var(--gl);
}
/* Account controls and first-run setup */
.ml-nav__tools { flex: none; gap: 8px; }
.ml-nav__links { overflow-x: auto; scrollbar-width: none; }
.ml-nav__links::-webkit-scrollbar { display: none; }
.nav__menuwrap { flex: none; }
#avatar { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 1px #ffffff24; }
#avatar[aria-expanded="true"] { border-color: var(--sky); }
.menu { width: min(310px, calc(100vw - 32px)); max-height: min(74dvh, 680px); overflow-y: auto; }
.menu__account { display: grid; gap: 5px; padding: 14px 12px; }
.menu__account strong { font-size: 17px; }
.menu__account span { color: var(--ink-muted); overflow-wrap: anywhere; font-size: 13px; }
.account-dialog { position: fixed; inset: 0; width: min(600px, calc(100% - 28px)); max-height: calc(100dvh - 36px); overflow-y: auto; margin: auto; border: 1px solid #ffffff24; border-radius: 24px; padding: clamp(26px, 5vw, 52px); background: radial-gradient(ellipse at 100% 0%, #1b2d614f, transparent 60%), #0c101c; color: #f5f7ff; box-shadow: 0 30px 100px #000a; font-family: var(--font-text); }
.account-dialog::backdrop { background: #02040cce; backdrop-filter: blur(12px); }
body:has(.account-dialog[open]) { overflow: hidden; }
.account-close { position: absolute; top: 12px; right: 16px; background: #ffffff0a; color: #c7cfdf; border: 0; border-radius: 50%; width: 34px; height: 34px; font-size: 25px; cursor: pointer; }
.account-brand { font: 800 27px var(--font-display); letter-spacing: .08em; margin-bottom: 38px; color: #7798ff; }
.account-brand span { display: block; margin-top: 12px; color: #a7b2ca; font: 700 10px var(--font-text); letter-spacing: .16em; }
.account-step { color: #96adfa; font-size: 11px; letter-spacing: .15em; font-weight: 800; margin: 10px 0 20px; }
.account-dialog h1 { font: 700 clamp(28px, 5vw, 42px)/1.15 var(--font-text); letter-spacing: -.035em; margin: 0 0 18px; }
.account-dialog h1 em { font-style: normal; color: #9bb3ff; }
.account-intro { font-size: 16px; line-height: 1.6; color: #aeb8d0; margin: 0 0 26px; }
.account-dialog form { display: grid; gap: 17px; }
.account-dialog label { display: grid; gap: 8px; color: #c6cfe4; font-size: 14px; font-weight: 600; }
.account-dialog input:not([type=checkbox]):not([type=color]), .account-dialog select { width: 100%; min-width: 0; height: 49px; padding: 12px 14px; border: 1px solid #ffffff26; border-radius: 10px; background: #070b14; color: #f5f7ff; font: 400 15px var(--font-text); }
.account-dialog input:focus-visible, .account-dialog select:focus-visible, .account-dialog button:focus-visible { outline: 2px solid #8ca8ff; outline-offset: 3px; }
.account-primary { width: 100%; margin-top: 12px; min-height: 49px; }
.account-dialog button:disabled { opacity: .55; cursor: wait; }
.account-switch { color: #9daac5; font-size: 14px; text-align: center; margin-top: 22px; }
.account-switch button, .account-link { border: 0; background: transparent; color: #a6baff; font: 600 14px var(--font-text); cursor: pointer; }
.account-link { display: block; margin: 24px auto 0; }
.account-error { color: #ffabab; font-size: 14px; line-height: 1.5; margin: 12px 0 0; }
.account-error:empty { display: none; }
.account-dialog input.pin-input:not([type=checkbox]):not([type=color]) { width: 190px; height: 58px; font-size: 26px; letter-spacing: .55em; text-indent: .55em; text-align: center; }
.account-dialog input.pin-input::placeholder { color: #ffffff3d; }
.account-hint { margin: -9px 0 0; min-height: 1.4em; color: #9daac5; font-size: 13px; }
.account-hint[data-state=ok] { color: #8fe0b5; }
.account-hint[data-state=bad] { color: #ffabab; }
.welcome-categories { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.welcome-categories span { padding: 9px 13px; border: 1px solid #ffffff18; border-radius: 8px; background: #ffffff05; color: #d1daf2; font-size: 13px; }
.preference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.preference-grid label { position: relative; cursor: pointer; }
.preference-grid input { position: absolute; opacity: 0; }
.preference-grid span { padding: 15px 7px; text-align: center; border: 1px solid #ffffff26; border-radius: 10px; font-size: 13px; }
.preference-grid input:checked + span { background: #4768f53a; border-color: #8aa5ff; color: white; }
.preference-grid input:focus-visible + span { outline: 2px solid #8aa5ff; outline-offset: 2px; }
.account-actions { display: grid; gap: 12px; }
.profile-editor { display: grid; gap: 14px; }
/* Profile photos: the picture fills the circle; in the editor, tap the circle to change it. */
.ml-avatar { overflow: hidden; }
.ml-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-photo-wrap { display: grid; justify-items: center; gap: 4px; }
.profile-photo { position: relative; display: block; cursor: pointer; }
.profile-photo .ml-avatar { width: 52px; height: 52px; font-size: 20px; }
.profile-photo:focus-within .ml-avatar { outline: 2px solid #8ca8ff; outline-offset: 3px; }
.profile-photo__badge { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #2d4ad8; border: 2px solid #0c101c; color: #fff; }
.profile-photo__remove { border: 0; background: transparent; color: #a6baff; font: 600 11px var(--font-text); cursor: pointer; padding: 0; }
.profile-edit-row.is-uploading .profile-photo .ml-avatar { opacity: .45; }
.profile-edit-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px; background: #ffffff04; border-radius: 12px; border: 1px solid #ffffff12; }
.profile-edit-row > label:first-of-type { flex: 1; min-width: 100px; }
.profile-edit-row .profile-kids { display: flex; align-items: center; gap: 5px; }
.profile-edit-row [type=color] { width: 28px; height: 28px; padding: 0; background: transparent; border: none; cursor: pointer; }
.account-remove { color: #e8a1a1; background: transparent; border: 0; font-size: 24px; cursor: pointer; }
@media (max-width: 1200px) { .ml-nav { flex-wrap: wrap; gap: 0 16px; padding-top: 8px; background: var(--bg-000); margin-bottom: 0; } .ml-nav__links { order: 3; flex: 1 0 100%; padding-bottom: 7px; } .ml-nav__tools { margin-left: auto; } }
@media (max-width: 600px) { .ml-nav__tools { gap: 4px; } .ml-nav__tools .app-install { display: none; } #nav-signin { padding: 0 10px; font-size: 12px; } .account-dialog { padding: 36px 22px 26px; border-radius: 18px; } .preference-grid { grid-template-columns: repeat(2, 1fr); } }
/* Stable carousels, readable title details, and real live previews. */
html { scrollbar-gutter: stable; }
.ml-rail__track { overflow-y: hidden; align-items: start; overscroll-behavior-x: contain; overscroll-behavior-y: auto; touch-action: auto; scroll-snap-type: x proximity; padding-block: 10px 18px; overflow-anchor: none; }
.ml-top10 { height: calc(var(--tile-w, 252px) * .93); min-height: 0; }
.ml-top10 .ml-tile { height: 100%; width: 100%; transform: none; }
.ml-top10 .ml-tile:hover, .ml-top10 .ml-tile:focus-visible { transform: none; }
.sheet__hero { height: clamp(230px, 38vw, 420px); aspect-ratio: auto; background: #070b13; }
.sheet__hero--poster img { object-fit: contain; object-position: center; }
.sheet__hero--poster::after { background: linear-gradient(to top, var(--surface-100), transparent 35%); }
.sheet__head { margin-top: 0; padding: 24px 40px 0; gap: 16px; min-width: 0; }
.sheet__lockup { max-width: 100%; font-size: clamp(27px, 4vw, 45px); line-height: 1.12; overflow-wrap: anywhere; }
.sheet__body { position: relative; padding-top: 24px; }
.sheet__cols { min-width: 0; align-items: start; }
.sheet__desc, .facts, .facts dd { height: auto; max-height: none; overflow: visible; overflow-wrap: anywhere; white-space: normal; }
.sheet__desc { display: block; line-height: 1.65; }
.sheet .tabs { min-height: 48px; }
.sheet .ml-hero__actions { flex-wrap: wrap; height: auto; }
.episode-count { font-weight: 700; color: #c2d0f8; line-height: 1.6; }
.live-card { background: linear-gradient(145deg, #17233a, #080d17); }
.live-card .live-card__logo { object-fit: contain; padding: 22px 42px 44px; }
.live-card__preview { position: absolute; inset: 0; opacity: 0; transition: opacity .2s; pointer-events: none; }
.live-card__preview.is-playing { opacity: 1; }
.live-card__preview video { object-fit: cover !important; }
.live-card .ml-tile__name { white-space: normal; overflow: visible; font-size: 13px; line-height: 1.3; }
.live-card .ml-bug { display: none; }
.ml-badge--cam { background: #f6bd58; color: #171106; font-weight: 900; padding: 5px 8px; border-radius: 5px; align-self: center; }
@media(max-width:699px) { .sheet__head { padding: 20px var(--gr) 0 var(--gl); margin-top: 0; } .sheet__hero { height: 300px; } .sheet__body { padding-top: 22px; } .sheet__lockup { font-size: 28px; } .live-card .live-card__logo { padding: 18px 30px 38px; } }
.protected-unavailable { display: grid; align-content: center; text-align: center; min-height: 100%; gap: 16px; padding: 32px; background: #080c16; }
.protected-unavailable h2 { font-size: 24px; line-height: 1.3; margin: 0; }
.protected-unavailable p { max-width: 46ch; margin: 0 auto; color: #bac5dd; line-height: 1.7; }
/* Genre covers use real series art; fixtures show the participating teams. */
.genre .genre__label { display: grid; gap: 4px; }
.genre .genre__label small { font: 500 12px/16px var(--font-text); color: #d5ddef; }
.genre img { object-position: center 35%; }
.event-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 28px 14px 35px; background: linear-gradient(120deg, var(--home-team), #080e1c 48%, var(--away-team)); }
.event-team { min-width: 0; flex: 1; display: grid; justify-items: center; align-content: center; gap: 7px; text-align: center; }
.event-team__badge, .sheet__hero .event-team__badge { position: static; width: clamp(40px, 5vw, 68px); height: clamp(40px, 5vw, 68px); object-fit: contain; filter: drop-shadow(0 4px 6px #0006); }
.event-team__name { color: #fff; font: 700 12px/15px var(--font-text); overflow-wrap: anywhere; }
.event-team__initials { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #ffffff15; color: #fff; font: 800 22px var(--font-text); }
.event-art__versus { flex: none; font: 800 13px var(--font-text); color: #a2aec9; }
.ml-event-tile .ml-tile__info { bottom: 9px; left: 12px; right: 12px; }
.ml-event-tile .ml-tile__info .ml-tile__name { display: none; }
.ml-event-tile::after { background: linear-gradient(to top, #05070d99, transparent 28%); }
.sheet__hero > .event-art { padding: 46px 8%; gap: 36px; }
.sheet__hero .event-team__badge { width: 110px; height: 110px; }
.sheet__hero .event-team__name { font-size: 17px; line-height: 1.35; }
@media(max-width:699px) { .event-art { gap: 8px; } .event-team__badge { width: 48px; height: 48px; } .sheet__hero .event-team__badge { width: 80px; height: 80px; } }
/* Events without two sides (races, fight cards): the event name instead of crests. */
.event-art--solo { flex-direction: column; gap: 6px; text-align: center; }
.event-art__league { color: #c9d4ef; font: 800 11px/14px var(--font-text); letter-spacing: .12em; text-transform: uppercase; }
.event-art__title { max-width: 26ch; color: #fff; font: 800 16px/1.3 var(--font-text); }
/* Schedule rows: just the two crests. */
.srow { grid-template-columns: 92px 112px minmax(0, 1fr) auto; }
.srow__thumb { position: relative; width: 112px; height: 48px; aspect-ratio: auto; }
.event-art--mini { padding: 0 10px; gap: 6px; }
.event-art--mini .event-team__badge { width: 32px; height: 32px; filter: drop-shadow(0 2px 3px #0008); }
.event-art--mini .event-team__initials { width: 32px; height: 32px; font-size: 12px; }
.event-art--mini .event-art__versus { font-size: 11px; color: #d5ddef; }
.event-art--mini .event-art__league { font-size: 9px; letter-spacing: .08em; }
@media(max-width:699px) {
  .srow { grid-template-columns: 96px minmax(0, 1fr); }
  .srow__thumb { display: block; width: 96px; height: 44px; }
  .srow > .ml-btn { grid-column: 1 / -1; justify-self: start; }
  .event-art--mini .event-team__badge, .event-art--mini .event-team__initials { width: 28px; height: 28px; }
}
/* Sports banner: the matchup, big, on each team's color. */
.ml-hero__slide--match::before { background: linear-gradient(90deg, rgba(5, 7, 13, .94) 0%, rgba(5, 7, 13, .6) 30%, rgba(5, 7, 13, 0) 44%), linear-gradient(to top, var(--bg-000) 0%, rgba(5, 7, 13, 0) 30%); }
.event-art--hero { padding: 0 4% 5% 44%; gap: clamp(14px, 3vw, 48px); background: radial-gradient(ellipse 26% 52% at 58% 46%, color-mix(in srgb, var(--home-team) 80%, transparent), transparent 72%), radial-gradient(ellipse 26% 52% at 88% 46%, color-mix(in srgb, var(--away-team) 80%, transparent), transparent 72%), linear-gradient(180deg, #0c1426, #05070d); }
.ml-hero__art img.event-team__badge { position: static; width: clamp(96px, 13vw, 200px); height: clamp(96px, 13vw, 200px); object-fit: contain; filter: drop-shadow(0 10px 22px #000a); }
.ml-hero__slide.is-on .ml-hero__art img.event-team__badge { animation: none; }
.event-art--hero .event-team { gap: 14px; }
.event-art--hero .event-team__initials { width: clamp(96px, 13vw, 200px); height: clamp(96px, 13vw, 200px); font-size: clamp(32px, 4vw, 64px); }
.event-art--hero .event-team__name { max-width: 16ch; font: 800 clamp(15px, 1.5vw, 22px)/1.25 var(--font-text); text-shadow: 0 2px 10px #000a; }
.event-art--hero .event-art__versus { font: 800 clamp(22px, 2.6vw, 40px) var(--font-display); color: #ffffffbf; }
.event-art--hero.event-art--solo { padding-left: 44%; }
.event-art--hero .event-art__league { font-size: 14px; }
.event-art--hero .event-art__title { font-size: clamp(22px, 2.6vw, 38px); }
@media(max-width:699px) {
  .ml-hero__slide--match::before { background: linear-gradient(to top, var(--bg-000) 0%, rgba(5, 7, 13, .78) 40%, rgba(5, 7, 13, 0) 66%); }
  .event-art--hero, .event-art--hero.event-art--solo { align-items: flex-start; padding: 84px 6% 0; background: radial-gradient(ellipse 45% 30% at 25% 22%, color-mix(in srgb, var(--home-team) 80%, transparent), transparent 72%), radial-gradient(ellipse 45% 30% at 75% 22%, color-mix(in srgb, var(--away-team) 80%, transparent), transparent 72%), linear-gradient(180deg, #0c1426, #05070d); }
  .ml-hero__art img.event-team__badge, .event-art--hero .event-team__initials { width: 92px; height: 92px; }
}
.sport-chips { margin-bottom: var(--space-2); }
/* Channel logos in the Live TV preview are shown whole, not cropped. */
.live-prev img.is-logo { object-fit: contain; padding: 12% 16%; animation: none; background: radial-gradient(circle at 50% 45%, #1a2440, #0a0f1c 70%); }
