/* JTV web: the same look as the phone, tablet and TV apps (ui/theme in the Jmedia project).
   Always dark. Dark purple, white and pink. */
:root {
    --pink: #FF2E93;
    --pink-bright: #FF5FAE;
    --pink-deep: #C2185B;
    --night: #07030F;
    --plum-950: #0E0719;
    --plum-900: #160C26;
    --plum-800: #221436;
    --plum-700: #33204F;
    --plum-500: #6B3FA0;
    --lilac: #CDB8FF;
    --white: #FFFFFF;
    --mist: #B9AECB;
    --success: #5BE3B0;
    --error: #FF6B81;
    --track: rgba(255, 255, 255, .3);
    --brand-gradient: linear-gradient(135deg, var(--pink-bright), var(--pink), var(--plum-500));
    --edge: 16px;
    --rail: 0px;
    --poster: 112px;
    --continue: 220px;
    color-scheme: dark;
}
@media (min-width: 600px) { :root { --edge: 24px; --rail: 88px; --poster: 128px; --continue: 236px; } }
@media (min-width: 1200px) { :root { --edge: 40px; --poster: 156px; --continue: 280px; } }
@media (min-width: 1800px) { :root { --edge: 56px; --poster: 184px; --continue: 320px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--plum-950); color: var(--white);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px; line-height: 1.5; letter-spacing: .01em;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.muted { color: var(--mist); }
.small { font-size: 12px; line-height: 16px; letter-spacing: .02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- type ---------------------------------------------------------------------------------- */
.display-md { font-size: 42px; line-height: 46px; font-weight: 900; letter-spacing: -1px; margin: 0; }
.display-sm { font-size: 34px; line-height: 38px; font-weight: 900; letter-spacing: -.75px; margin: 0; }
.headline-lg { font-size: 30px; line-height: 34px; font-weight: 800; letter-spacing: -.5px; margin: 0; }
.headline-md { font-size: 26px; line-height: 30px; font-weight: 800; letter-spacing: -.4px; margin: 0; }
.headline-sm { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.2px; margin: 0; }
.title-lg { font-size: 20px; line-height: 26px; font-weight: 700; margin: 0; }
.title-md { font-size: 17px; line-height: 22px; font-weight: 700; margin: 0; }
.title-sm { font-size: 14px; line-height: 20px; font-weight: 600; margin: 0; }
.label-sm { font-size: 10px; line-height: 14px; font-weight: 700; letter-spacing: .08em; }
.eyebrow { color: var(--pink); font-size: 15px; font-weight: 800; letter-spacing: 1.8px; }

.logo {
    display: inline-block; font-weight: 900; letter-spacing: -.5px; font-size: 30px; line-height: 1;
    background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.jmark {
    display: inline-block; font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: -.5px;
    background: linear-gradient(180deg, var(--plum-500), var(--pink-bright)); -webkit-background-clip: text;
    background-clip: text; color: transparent; padding: 0 4px 4px;
}

/* ---- shell: bottom bar on phones, side rail from 600 px -------------------------------------- */
.page { min-height: 100vh; padding-bottom: 88px; }
.page.full { padding-bottom: 0; }
@media (min-width: 600px) { .page { padding-left: var(--rail); padding-bottom: 0; } .page.full { padding-left: 0; } }

.nav {
    position: fixed; z-index: 40; display: flex; background: var(--night);
    left: 0; right: 0; bottom: 0; height: 72px; border-top: 1px solid var(--plum-800);
    padding-bottom: env(safe-area-inset-bottom);
}
.nav .jmark { display: none; }
.nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: var(--mist); font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.nav-item .ind { display: grid; place-items: center; width: 64px; height: 32px; border-radius: 16px; transition: background .2s; }
.nav-item svg { width: 24px; height: 24px; fill: currentColor; }
.nav-item.on { color: var(--white); }
.nav-item.on .ind { background: rgba(255, 46, 147, .22); color: var(--pink); }
.nav-item:hover .ind { background: rgba(255, 255, 255, .06); }
.nav-item.on:hover .ind { background: rgba(255, 46, 147, .3); }
@media (min-width: 600px) {
    .nav {
        top: 0; right: auto; width: var(--rail); height: auto; flex-direction: column; justify-content: flex-start;
        gap: 8px; border-top: 0; border-right: 1px solid var(--plum-700); background: var(--plum-900); padding: 16px 0;
    }
    .nav .jmark { display: block; align-self: center; margin-bottom: 16px; }
    .nav-item { flex: none; padding: 4px 0; }
    .nav-item .ind { width: 56px; }
}

.topbar {
    position: fixed; z-index: 30; top: 0; right: 0; left: 0; display: flex; justify-content: flex-end; align-items: center;
    gap: 10px; padding: 8px var(--edge) 10px;
    background: linear-gradient(to bottom, rgba(14, 7, 25, calc(.45 + .55 * var(--scrolled, 0))), rgba(14, 7, 25, var(--scrolled, 0)));
}
@media (min-width: 600px) { .topbar { left: var(--rail); } }
.topbar .topbar-logo { margin-right: auto; height: 28px; opacity: var(--scrolled, 0); transition: opacity .2s; }
.avatar {
    display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none;
    background: linear-gradient(135deg, var(--pink-bright), var(--pink), var(--pink-deep));
    color: #fff; font-weight: 900; font-size: 14px;
}
.avatar.lg { width: 64px; height: 64px; font-size: 29px; }
.premium {
    color: var(--lilac); border: 1px solid rgba(205, 184, 255, .7); border-radius: 99px; padding: 3px 10px;
    font-size: 10px; font-weight: 700; letter-spacing: .08em; display: none;
}
@media (min-width: 600px) { .premium { display: inline-block; } }

/* Pages without a hero: a plain heading row with a back button. */
.bar { display: flex; align-items: center; gap: 8px; padding: 12px var(--edge) 4px calc(var(--edge) - 8px); min-height: 64px; }
.bar h1 { font-size: 22px; line-height: 28px; font-weight: 700; margin: 0; }
.icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    border: 0; background: transparent; color: #fff; flex: none;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.icon-btn svg { width: 24px; height: 24px; fill: currentColor; }
.icon-btn.glass { background: rgba(0, 0, 0, .45); }
.icon-btn.glass:hover { background: rgba(0, 0, 0, .65); }
.content { padding: 8px var(--edge) 40px; }
.narrow { max-width: 720px; }

/* ---- buttons --------------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; white-space: nowrap;
    font-size: 15px; line-height: 20px; font-weight: 700; letter-spacing: .02em; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary, .btn-secondary { width: 100%; height: 52px; border-radius: 10px; padding: 0 20px; }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--pink-bright); }
.btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-secondary:hover { background: rgba(255, 255, 255, .06); }
.btn-play { height: 46px; border-radius: 8px; padding: 0 22px 0 18px; background: #fff; color: #000; }
.btn-play svg { width: 26px; height: 26px; }
.btn-play:hover { background: #ffe6f2; }
.btn-glass { height: 46px; border-radius: 8px; padding: 0 22px; background: rgba(255, 255, 255, .18); color: #fff; }
.btn-glass:hover { background: rgba(255, 255, 255, .26); }
.pill { height: 44px; border-radius: 99px; padding: 0 24px 0 18px; background: rgba(255, 255, 255, .14); color: #fff; }
.pill.no-icon { padding: 0 24px; }
.pill:hover { background: rgba(255, 255, 255, .22); }
.pill.primary { background: var(--pink); }
.pill.primary:hover { background: var(--pink-bright); box-shadow: 0 6px 24px rgba(255, 46, 147, .35); }
.text-btn { background: none; border: 0; color: var(--pink-bright); font-weight: 700; font-size: 15px; padding: 12px; border-radius: 99px; width: 100%; }
.text-btn:hover { background: rgba(255, 46, 147, .1); }
.btn.busy { pointer-events: none; }
.btn.busy::after { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }

.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--pink); border-right-color: transparent; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- badges, meta ---------------------------------------------------------------------------- */
.badge {
    display: inline-block; border: 1px solid rgba(255, 255, 255, .5); border-radius: 3px; padding: 1px 6px;
    font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; color: #fff;
}
.badge.filled { background: var(--pink); border-color: var(--pink); }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .85); }
.meta .dot { opacity: .8; }
.underline { display: block; width: 36px; height: 3px; background: var(--pink); margin-top: 6px; }

/* ---- artwork and cards ----------------------------------------------------------------------- */
.art { position: relative; background: linear-gradient(135deg, var(--plum-700), var(--plum-800)); overflow: hidden; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art .fallback {
    position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 10px;
    font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .8);
}
.scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, .85)); }

/* Hover and keyboard focus look like the TV's focus: a pink ring and a small lift. */
.lift { transition: transform .18s ease, box-shadow .18s ease; border-radius: 10px; }
.lift:hover, .lift:focus-visible { transform: scale(1.04); box-shadow: 0 0 0 3px var(--pink); outline: none; z-index: 1; }

.poster { position: relative; display: block; width: var(--poster); aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; flex: none; }
.poster .art { position: absolute; inset: 0; }
.caption { position: absolute; left: 8px; right: 8px; bottom: 8px; }
@media (min-width: 1200px) { .caption { left: 12px; right: 12px; bottom: 12px; } }
.caption .kind { color: var(--pink-bright); font-size: 8px; font-weight: 700; letter-spacing: 1px; line-height: 12px; }
.caption .name {
    font-size: 14px; line-height: 17px; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 1200px) { .caption .name { font-size: 16px; line-height: 19px; } }

.continue { width: var(--continue); flex: none; display: flex; flex-direction: column; gap: 6px; }
.continue .still { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.continue .still .art { position: absolute; inset: 0; }
.continue .caption { bottom: 10px; }
.continue .sub { font-size: 12px; line-height: 16px; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .7);
}
.disc svg { width: 24px; height: 24px; fill: #fff; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--track); }
.progress > i { display: block; height: 100%; background: var(--pink); }
.progress.inline { position: relative; height: 4px; border-radius: 2px; overflow: hidden; flex: 1; }

.ranked { display: flex; align-items: flex-end; flex: none; }
.ranked .num {
    width: calc(var(--poster) * .6); text-align: right; flex: none; position: relative; left: 14px; top: 22px;
    font-size: 116px; line-height: 1; font-weight: 900; letter-spacing: -8px; color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .75); user-select: none; pointer-events: none;
}
.ranked .num.wide { width: calc(var(--poster) * .95); }
@media (min-width: 1200px) { .ranked .num { font-size: 140px; } }

/* ---- rows ------------------------------------------------------------------------------------ */
.rows { display: flex; flex-direction: column; gap: 18px; padding-bottom: 24px; }
.row { position: relative; }
.row h2 { margin: 0 0 4px; padding: 0 var(--edge); font-size: 17px; line-height: 22px; font-weight: 800; }
@media (min-width: 600px) { .row h2 { font-size: 20px; line-height: 26px; } }
.strip {
    display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 8px var(--edge);
    scroll-snap-type: x proximity; scroll-padding: 0 var(--edge); scrollbar-width: none; overscroll-behavior-x: contain;
}
.strip.tight { gap: 4px; }
@media (min-width: 1200px) { .strip { gap: 16px; } .strip.tight { gap: 8px; } }
.strip::-webkit-scrollbar { display: none; }
.strip > * { scroll-snap-align: start; }
.strip-arrow {
    position: absolute; z-index: 2; top: 30px; bottom: 8px; width: calc(var(--edge) + 8px); border: 0; display: none;
    place-items: center; color: #fff; opacity: 0; transition: opacity .2s;
}
.strip-arrow svg { width: 32px; height: 32px; fill: currentColor; }
.strip-arrow.prev { left: 0; background: linear-gradient(to right, rgba(14, 7, 25, .9), transparent); }
.strip-arrow.next { right: 0; background: linear-gradient(to left, rgba(14, 7, 25, .9), transparent); }
@media (hover: hover) and (min-width: 600px) {
    .strip-arrow { display: grid; }
    .row:hover .strip-arrow:not([hidden]) { opacity: 1; }
}
.strip-arrow[hidden] { display: none !important; }

/* ---- home hero ------------------------------------------------------------------------------- */
.hero { position: relative; height: clamp(440px, 68vh, 640px); overflow: hidden; }
@media (min-width: 600px) { .hero { height: clamp(380px, 62vh, 560px); } }
@media (min-width: 1200px) { .hero { height: clamp(460px, 72vh, 760px); } }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide .art { position: absolute; inset: 0; }
.hero-slide .art img.wide { display: none; }
@media (min-width: 600px) { .hero-slide .art img.tall { display: none; } .hero-slide .art img.wide { display: block; } }
.hero-shade {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, rgba(14, 7, 25, .55) 0%, transparent 25%, transparent 45%, rgba(14, 7, 25, .85) 80%, var(--plum-950) 100%);
}
@media (min-width: 600px) {
    .hero-shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(14, 7, 25, .85), transparent 60%); }
}
.hero-info {
    position: absolute; left: var(--edge); right: var(--edge); bottom: 12px; margin: 0 auto; max-width: 520px;
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
}
@media (min-width: 600px) { .hero-info { margin: 0; align-items: flex-start; text-align: left; bottom: 28px; } }
@media (min-width: 1200px) { .hero-info { max-width: 640px; bottom: 48px; } }
.hero-info h1 { margin: 0; font-size: 34px; line-height: 38px; font-weight: 900; letter-spacing: -.75px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 600px) { .hero-info h1 { font-size: 42px; line-height: 46px; letter-spacing: -1px; } }
@media (min-width: 1200px) { .hero-info h1 { font-size: 52px; line-height: 56px; letter-spacing: -1.5px; } }
.hero-info .synopsis { display: none; margin: 0; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .8); -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 600px) { .hero-info .synopsis { display: -webkit-box; } }
.hero-actions { display: flex; gap: 10px; margin-top: 6px; width: 100%; }
.hero-actions .btn { flex: 1; }
@media (min-width: 600px) { .hero-actions { width: auto; } .hero-actions .btn { flex: none; } }
.dots { display: flex; gap: 6px; margin-top: 8px; }
.dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .4); transition: width .25s, background .25s; }
.dots button.on { width: 18px; background: var(--pink); }
.hero-pane { display: none; }
.hero-pane.on { display: contents; }

/* ---- details --------------------------------------------------------------------------------- */
.details-head { position: relative; height: 300px; }
@media (min-width: 600px) { .details-head { height: 380px; } }
@media (min-width: 1200px) { .details-head { height: 480px; } }
.details-head .art { position: absolute; inset: 0; }
.details-head .shade {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(14, 7, 25, .45) 0%, transparent 30%, rgba(14, 7, 25, .4) 65%, var(--plum-950) 100%);
}
@media (min-width: 1200px) { .details-head .shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--plum-950), transparent 60%); } }
.details-head .info { position: absolute; left: var(--edge); right: var(--edge); bottom: 0; max-width: 720px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.details-head h1 { margin: 0; font-size: 30px; line-height: 34px; font-weight: 800; letter-spacing: -.5px; }
@media (min-width: 1200px) { .details-head h1 { font-size: 42px; line-height: 46px; font-weight: 900; letter-spacing: -1px; } }
.back-float { position: absolute; z-index: 5; top: 8px; left: 8px; }
.details-body { padding: 14px var(--edge) 0; max-width: calc(720px + 2 * var(--edge)); display: flex; flex-direction: column; gap: 12px; }
.details-body .btn-play { width: 100%; }
.details-body .synopsis { margin: 0; font-size: 16px; line-height: 24px; color: rgba(255, 255, 255, .9); }
.resume-line { display: flex; align-items: center; gap: 12px; }
.coming { color: var(--pink); font-size: 17px; font-weight: 700; }
.section-h { padding: 28px var(--edge) 12px; }
.section-h h2 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 700; }
.seasons { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.season-pill { padding: 7px 14px; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: .04em; background: var(--plum-800); color: var(--mist); }
.season-pill.on { background: var(--pink); color: #fff; }
.episodes { padding: 0 var(--edge); max-width: calc(900px + 2 * var(--edge)); }
.episode { display: flex; align-items: center; gap: 14px; padding: 4px; margin: 6px 0; border-radius: 8px; }
.episode:hover { background: rgba(255, 255, 255, .04); }
.episode.disabled { pointer-events: none; }
.episode .still { position: relative; width: 132px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; flex: none; }
@media (min-width: 1200px) { .episode .still { width: 200px; } }
.episode .still .art { position: absolute; inset: 0; }
.episode .still::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); z-index: 1; }
.episode .disc { z-index: 2; width: 34px; height: 34px; background: rgba(0, 0, 0, .5); border: 1.5px solid #fff; }
.episode .disc svg { width: 22px; height: 22px; }
.episode .disc.done svg { fill: var(--pink); }
.episode .progress { z-index: 2; }
.cast { display: flex; gap: 16px; overflow-x: auto; padding: 0 var(--edge) 4px; scrollbar-width: none; }
.cast::-webkit-scrollbar { display: none; }
.cast-card { width: 104px; flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 6px 0; }
.cast-photo {
    position: relative; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--plum-500), var(--pink-deep)); font-size: 20px; font-weight: 700; margin-bottom: 6px;
}
@media (min-width: 1200px) { .cast-card { width: 124px; } .cast-photo { width: 96px; height: 96px; } }
.cast-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cast-card .role { color: var(--pink); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.credits { margin: 0 var(--edge); max-width: 720px; background: var(--plum-900); border-radius: 16px; padding: 14px 18px; display: grid; grid-template-columns: 104px 1fr; gap: 10px; font-size: 14px; }
@media (min-width: 1200px) { .credits { grid-template-columns: 140px 1fr; } }
.credits dt { color: var(--mist); }
.credits dd { margin: 0; }

/* ---- search ---------------------------------------------------------------------------------- */
.search-box { position: relative; display: flex; align-items: center; }
.search-box svg { position: absolute; left: 14px; width: 24px; height: 24px; fill: var(--mist); }
.search-box input {
    width: 100%; height: 56px; border-radius: 28px; border: 1px solid var(--plum-700); background: var(--plum-900);
    padding: 0 48px 0 50px; font-size: 16px; outline: none;
}
.search-box input:focus { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); }
.search-box .clear { position: absolute; right: 6px; }
.chips { display: flex; gap: 8px; margin: 12px 0 4px; }
.chip { height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--plum-700); display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--mist); }
.chip.on { background: rgba(255, 46, 147, .22); border-color: transparent; color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--poster), 1fr)); gap: 12px; padding-top: 12px; }
.grid .poster { width: 100%; }

/* ---- forms ----------------------------------------------------------------------------------- */
.glow { min-height: 100vh; background: radial-gradient(1400px circle at 0 0, rgba(107, 63, 160, .35), transparent 60%); }
.form { width: 100%; max-width: 480px; margin: 0 auto; padding: 16px var(--edge) 40px; display: flex; flex-direction: column; gap: 12px; }
.brand { text-align: center; padding: 40px 0 24px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.brand .logo { font-size: 52px; }
.field { position: relative; display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12px; font-weight: 600; color: var(--mist); letter-spacing: .04em; padding-left: 4px; }
.field input, .field select {
    height: 56px; border-radius: 4px; border: 1px solid #8f84a3; background: transparent; padding: 0 16px; font-size: 16px; outline: none; width: 100%;
}
.field input:hover { border-color: #fff; }
.field input:focus { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); }
.field .help { font-size: 12px; color: var(--mist); padding: 0 16px; }
.field .eye { position: absolute; right: 6px; top: 28px; }
.field.code input { text-align: center; font-size: 28px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; height: 64px; }
.error-text { color: var(--error); font-size: 14px; margin: 0; }
.ok-text { color: var(--success); font-size: 14px; margin: 0; }
.notice { color: var(--lilac); margin: 0; text-align: center; }
.or { display: flex; align-items: center; gap: 12px; color: var(--mist); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--plum-700); }
.google-slot { display: flex; justify-content: center; min-height: 44px; }

/* ---- account --------------------------------------------------------------------------------- */
.account { display: grid; gap: 24px; padding: 16px var(--edge) 40px; max-width: 1100px; }
@media (min-width: 900px) { .account { grid-template-columns: 1fr 1fr; align-items: start; } }
.account .col { display: flex; flex-direction: column; gap: 20px; }
.profile-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.profile-head .who { min-width: 0; }
.profile-head .who > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.membership { border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 6px; border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(135deg, var(--plum-800), var(--plum-900)); }
.membership.active { background: linear-gradient(135deg, var(--plum-500), var(--pink-deep)); border-color: rgba(255, 255, 255, .18); }
.membership .label-sm { letter-spacing: 1.6px; color: var(--pink); }
.membership.active .label-sm { color: rgba(255, 255, 255, .8); }
.membership .btn { margin-top: 10px; align-self: flex-start; }
.group { background: var(--plum-900); border-radius: 16px; padding: 6px 0; display: flex; flex-direction: column; }
.group form { display: contents; }
.setting { display: flex; align-items: center; gap: 16px; padding: 12px 16px; min-height: 56px; background: none; border: 0; text-align: left; width: 100%; color: #fff; }
.setting:hover { background: rgba(255, 255, 255, .05); }
.setting > svg { width: 24px; height: 24px; fill: var(--mist); flex: none; }
.setting .txt { flex: 1; min-width: 0; }
.setting .txt b { display: block; font-size: 16px; font-weight: 600; }
.setting .txt span { display: block; font-size: 12px; color: var(--mist); }
.setting .chev { width: 20px; height: 20px; fill: var(--mist); }
.setting.danger, .setting.danger > svg { color: var(--error); fill: var(--error); }
.version { text-align: center; }

.card { background: var(--plum-900); border-radius: 16px; padding: 16px 18px; }
.card + .card { margin-top: 12px; }
.list { display: flex; flex-direction: column; gap: 12px; }
.device { display: flex; gap: 14px; align-items: flex-start; }
.device > svg { width: 28px; height: 28px; fill: var(--lilac); flex: none; margin-top: 2px; }
.device .txt { flex: 1; min-width: 0; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 2px 8px; border-radius: 99px; vertical-align: middle; margin-left: 6px; }
.tag.this { color: var(--lilac); border: 1px solid rgba(205, 184, 255, .7); }
.tag.live { color: #fff; background: var(--pink); }
.now-playing { margin-top: 8px; display: flex; align-items: center; gap: 8px; color: var(--pink-bright); font-size: 14px; font-weight: 600; }
.now-playing .eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.now-playing .eq i { width: 3px; background: var(--pink); animation: eq 1s ease-in-out infinite; }
.now-playing .eq i:nth-child(2) { animation-delay: .2s; } .now-playing .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.device form { margin-top: 10px; }
.btn-small { height: 36px; padding: 0 16px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 14px; }
.btn-small:hover { background: rgba(255, 255, 255, .18); }
.btn-small.danger { color: var(--error); }

.plan { display: flex; align-items: center; gap: 16px; border: 2px solid var(--plum-700); border-radius: 16px; padding: 16px 18px; cursor: pointer; }
.plan:has(input:checked) { border-color: var(--pink); background: rgba(255, 46, 147, .08); }
.plan input { accent-color: var(--pink); width: 20px; height: 20px; }
.plan .price { margin-left: auto; font-size: 20px; font-weight: 800; white-space: nowrap; }
.payment { display: flex; justify-content: space-between; gap: 12px; }
.status { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.status.succeeded { color: var(--success); } .status.failed { color: var(--error); } .status.pending { color: var(--lilac); }
.centre { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 48px var(--edge); max-width: 520px; margin: 0 auto; }
.big-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; }
.big-icon svg { width: 40px; height: 40px; fill: currentColor; }
.big-icon.ok { background: rgba(91, 227, 176, .15); color: var(--success); }
.big-icon.bad { background: rgba(255, 107, 129, .15); color: var(--error); }
.dev-tools { border: 1px dashed var(--plum-700); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; width: 100%; }

/* ---- player ---------------------------------------------------------------------------------- */
.player { position: fixed; inset: 0; background: #000; }
.player video { width: 100%; height: 100%; background: #000; }
.player-top {
    position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 12px 12px 40px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent); transition: opacity .3s; z-index: 3;
}
.player-top .t { flex: 1; min-width: 0; }
.player-top .t b, .player-top .t span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-top .t span { font-size: 13px; color: rgba(255, 255, 255, .75); }
.player.idle .player-top { opacity: 0; pointer-events: none; }
.player.idle { cursor: none; }
.quality-badge { font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.overlay { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(7, 3, 15, .82); padding: var(--edge); }
.overlay[hidden] { display: none; }
.overlay .box { max-width: 440px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.overlay .box .btn-primary, .overlay .box .btn-secondary { max-width: 320px; }
.starting { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; pointer-events: none; }
.starting[hidden] { display: none; }
.menu {
    position: absolute; z-index: 5; right: 12px; top: 60px; width: 300px; max-width: calc(100vw - 24px); background: var(--plum-900);
    border-radius: 16px; padding: 8px 0; box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.menu[hidden] { display: none; }
.menu h3 { margin: 0; padding: 8px 18px 6px; font-size: 14px; color: var(--mist); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.menu h3 button { background: none; border: 0; color: inherit; padding: 0; display: inline-flex; }
.menu h3 svg { width: 20px; height: 20px; fill: currentColor; }
.menu .opt { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 12px 18px; background: none; border: 0; text-align: left; font-size: 15px; }
.menu .opt:hover { background: rgba(255, 255, 255, .06); }
.menu .opt span { color: var(--mist); font-size: 13px; }
.menu .opt.on { color: var(--pink-bright); font-weight: 700; }
.next-up { position: absolute; z-index: 3; right: 24px; bottom: 96px; }
.next-up[hidden] { display: none; }

/* ---- skeleton / empty / error ---------------------------------------------------------------- */
.empty { text-align: center; color: var(--mist); padding: 120px var(--edge) 40px; }
.error-page { min-height: 70vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.error-page .box { display: flex; flex-direction: column; gap: 16px; align-items: center; max-width: 420px; }
.flash { margin: 0 var(--edge) 12px; padding: 12px 16px; border-radius: 12px; background: rgba(91, 227, 176, .12); color: var(--success); font-size: 14px; }
.app-promo { display: flex; gap: 14px; align-items: center; }
.app-promo svg { width: 28px; height: 28px; fill: var(--success); flex: none; }

/* ---- legal pages (privacy policy, delete account) -------------------------------------------- */
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px var(--edge); max-width: 860px; margin: 0 auto; }
.doc-head .logo { font-size: 28px; }
.doc { max-width: 860px; margin: 0 auto; padding: 8px var(--edge) 48px; color: rgba(255, 255, 255, .88); }
.doc h1 { font-size: 34px; line-height: 38px; font-weight: 900; letter-spacing: -.75px; color: #fff; margin: 8px 0 4px; }
.doc h2 { font-size: 20px; line-height: 26px; font-weight: 700; color: #fff; margin: 32px 0 8px; }
.doc h2::after { content: ""; display: block; width: 36px; height: 3px; background: var(--pink); margin-top: 6px; }
.doc p, .doc li { font-size: 16px; line-height: 26px; }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc li { margin: 4px 0; }
.doc a { color: var(--pink-bright); text-decoration: underline; text-underline-offset: 2px; }
.doc .updated { color: var(--mist); font-size: 14px; margin: 0 0 16px; }
.doc .panel { background: var(--plum-900); border-radius: 16px; padding: 18px 20px; margin: 16px 0; }
.doc .panel.warn { border: 1px solid rgba(255, 107, 129, .4); }
.doc .steps { counter-reset: step; list-style: none; padding: 0; }
.doc .steps li { counter-increment: step; position: relative; padding-left: 40px; margin: 12px 0; }
.doc .steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255, 46, 147, .22); color: var(--pink-bright); font-weight: 800; font-size: 14px; display: grid; place-items: center;
}
.doc form { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.doc .check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.doc .check input { accent-color: var(--pink); width: 20px; height: 20px; margin-top: 3px; flex: none; }
.btn-danger { width: 100%; height: 52px; border-radius: 10px; background: var(--error); color: var(--night); }
.btn-danger:hover { background: #ff8799; }
.doc-foot { max-width: 860px; margin: 0 auto; padding: 24px var(--edge) 40px; border-top: 1px solid var(--plum-800); display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--mist); }
.doc-foot a:hover { color: #fff; }
.legal-links { text-align: center; font-size: 13px; color: var(--mist); display: flex; gap: 16px; justify-content: center; }
.legal-links a:hover { color: #fff; }
.doc a.btn { color: #fff; text-decoration: none; }

/* JTV logo images: the white wordmark on dark pages, the pink tile in the rail. */
.logo-img { display: block; height: 32px; width: auto; }
.logo-img.lg { height: 48px; margin: 0 auto; }
.logo-img.xl { height: 72px; margin: 0 auto 6px; }
.jmark { -webkit-text-fill-color: initial; background: none; padding: 0; }
.jmark img { width: 44px; height: 44px; display: block; border-radius: 11px; }
