/* ==========================================================================
   StreamShelf Web · design system
   Tema escuro, acento ciano, superfícies em camadas e tipografia de display.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #06080f;
  --bg-soft: #0a0e17;
  --surface: #0d1220;
  --surface-2: #121a2a;
  --surface-3: #182236;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f2f5fb;
  --muted: #9aa6b8;
  --faint: #7e8da2;
  --primary: #5ac8fa;
  --primary-strong: #38bdf8;
  --primary-ink: #04131c;
  --purple: #9b7bff;
  --live: #ff3b30;
  --danger: #ffb4ab;
  --radius: 16px;
  --radius-lg: 24px;
  --page-x: clamp(18px, 4.5vw, 72px);
  --topbar-h: 72px;
  --shadow: 0 24px 70px -30px #000;
  --font: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(1100px 640px at 88% -12%, rgba(90, 200, 250, .09), transparent 62%),
    radial-gradient(900px 620px at 4% 8%, rgba(155, 123, 255, .08), transparent 62%),
    var(--bg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
button:disabled { opacity: .45; cursor: not-allowed; }
[hidden] { display: none !important; }
::selection { background: rgba(90, 200, 250, .3); color: #fff; }
::placeholder { color: #67768b; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
button, a, input, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg.icon--fill { fill: currentColor; stroke: none; }

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

.muted, small { color: var(--muted); line-height: 1.6; }
.error { color: var(--danger); }
.eyebrow {
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ---------- Botões, pills e links ---------- */

.primary,
.secondary,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .18s, filter .2s, box-shadow .2s;
}

.primary {
  padding: 13px 22px;
  background: linear-gradient(135deg, #7ddcff, #38bdf8 55%, #2f9fe0);
  color: var(--primary-ink);
  box-shadow: 0 12px 32px -14px rgba(56, 189, 248, .8);
}
.primary:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-1px); }
.primary:active:not(:disabled) { transform: translateY(0); }

.secondary {
  padding: 12px 20px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.secondary:hover:not(:disabled) { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .24); }

.ghost-button {
  padding: 9px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.ghost-button:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--muted);
}
.icon-button:hover { background: rgba(255, 255, 255, .12); color: var(--text); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(90, 200, 250, .12);
  border: 1px solid rgba(90, 200, 250, .22);
  color: #a9e4ff;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: #c5cedd;
  font-size: 11.5px;
  line-height: 1.2;
}

.text-link {
  color: #8fd8f8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.text-link:hover { color: #c8efff; text-decoration: underline; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .16em;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  background: linear-gradient(140deg, #8ee6ff, #38bdf8 55%, #8b6cff);
  color: #05131d;
  box-shadow: 0 8px 24px -10px rgba(90, 200, 250, .9), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.brand-mark .icon { width: 17px; height: 17px; margin-left: 1px; }
.brand--sm { gap: 9px; font-size: 12px; letter-spacing: .14em; }
.brand--sm .brand-mark { width: 28px; height: 28px; border-radius: 9px; }
.brand--lg { font-size: 18px; letter-spacing: .18em; }

.skip {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  transition: top .15s;
}
.skip:focus { top: 16px; }

/* ---------- Login ---------- */

.login-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 90px);
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(28px, 5vw, 64px) var(--page-x);
  overflow: hidden;
  isolation: isolate;
}
.login-screen::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(600px 480px at 18% 30%, rgba(56, 189, 248, .17), transparent 70%),
    radial-gradient(700px 520px at 82% 15%, rgba(155, 123, 255, .14), transparent 70%),
    radial-gradient(800px 600px at 50% 112%, rgba(56, 189, 248, .1), transparent 70%);
}
.login-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 8, 15, 0), rgba(6, 8, 15, .58));
  pointer-events: none;
}

.login-visual {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3vw, 42px);
  max-width: 640px;
}
.login-pitch h1 {
  margin: 18px 0;
  font-size: clamp(40px, 4.6vw, 72px);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.login-pitch h1 span {
  background: linear-gradient(100deg, #8fe4ff, #5ac8fa 45%, #b699ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-lede {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
}
.login-perks {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.login-perks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.login-perks strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}
.perk-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: rgba(90, 200, 250, .12);
  border: 1px solid rgba(90, 200, 250, .22);
  color: #9fe4ff;
}
.perk-icon .icon { width: 14px; height: 14px; }

.login-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 520px;
}
.showcase-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  aspect-ratio: 16 / 10;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.showcase-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(255, 255, 255, .22), transparent 55%),
    linear-gradient(160deg, transparent 20%, rgba(4, 8, 14, .85));
}
.showcase-tile .icon { position: relative; width: 20px; height: 20px; color: #fff; opacity: .9; }
.showcase-tile span {
  position: relative;
  color: #dff4ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.showcase-tile--movies { background: linear-gradient(140deg, #1d4d70, #0d1c30); }
.showcase-tile--series { background: linear-gradient(140deg, #46316f, #141126); }
.showcase-tile--live { background: linear-gradient(140deg, #6d2434, #1c1018); }
.login-foot { color: var(--faint); font-size: 11.5px; letter-spacing: .04em; }

.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.login-card {
  width: min(440px, 100%);
  padding: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(21, 29, 45, .92), rgba(12, 17, 28, .96));
  box-shadow: 0 40px 100px -40px #000, inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(18px);
}
.login-card h2 { margin: 18px 0 6px; font-size: 30px; letter-spacing: -.03em; }
.login-sub { margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.login-card label {
  display: block;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(5, 8, 14, .6);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field:focus-within {
  border-color: rgba(90, 200, 250, .65);
  background: rgba(5, 8, 14, .8);
  box-shadow: 0 0 0 3px rgba(90, 200, 250, .14);
}
.field-icon { width: 17px; height: 17px; color: var(--faint); }
.field input {
  flex: 1;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--text);
  font-size: 15px;
}
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  transition: background-color 9999s ease-out;
}
.field-action {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  color: var(--faint);
}
.field-action:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.login-card .error { min-height: 20px; margin: 10px 0 0; font-size: 12.5px; }
.login-submit {
  width: 100%;
  margin: 8px 0 16px;
  padding: 14px 18px;
  justify-content: space-between;
  font-size: 15px;
}
.login-card small { display: block; color: var(--faint); font-size: 11.5px; line-height: 1.6; }
.login-legal {
  max-width: 360px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

/* ---------- Topbar e navegação ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 8, 15, .92);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 42px);
  max-width: 1800px;
  min-height: var(--topbar-h);
  margin: 0 auto;
  padding: 0 var(--page-x);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 550;
  white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s;
}
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .055); }
.main-nav a[aria-current="page"] {
  color: #b9ecff;
  background: rgba(90, 200, 250, .13);
  box-shadow: inset 0 0 0 1px rgba(90, 200, 250, .25);
}
.nav-icon { width: 16px; height: 16px; opacity: .8; }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.search-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
  font-size: 13px;
  transition: background .2s, border-color .2s, color .2s;
}
.search-link:hover,
.search-link[aria-current="page"] {
  color: var(--text);
  border-color: rgba(90, 200, 250, .35);
  background: rgba(90, 200, 250, .08);
}
.search-link kbd {
  padding: 2px 5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  color: var(--faint);
  font: inherit;
  font-size: 10.5px;
  line-height: 1;
}

/* Instalação como aplicativo (PWA) */
.install-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(90, 200, 250, .35);
  border-radius: 999px;
  background: rgba(90, 200, 250, .1);
  color: #c9f0ff;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.install-link:hover {
  border-color: rgba(90, 200, 250, .6);
  background: rgba(90, 200, 250, .18);
  color: #fff;
}
.install-link .icon { width: 16px; height: 16px; }
.install-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 11px 16px;
  border: 1px dashed rgba(90, 200, 250, .42);
  border-radius: 12px;
  background: rgba(90, 200, 250, .06);
  color: #bfeaff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.install-cta:hover {
  border-color: rgba(90, 200, 250, .7);
  background: rgba(90, 200, 250, .13);
}
.install-cta .icon { width: 17px; height: 17px; }
.account-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(90, 200, 250, .35);
  border-radius: 50%;
  background: linear-gradient(140deg, #2d4d70, #17293f);
  color: #bfeaff;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}
.account-name {
  max-width: 110px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-name:empty { display: none; }

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
#main {
  flex: 1 0 auto;
  min-height: 60vh;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(440px, 48vw, 640px);
  padding: clamp(120px, 14vw, 190px) var(--page-x) clamp(48px, 6vw, 80px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  opacity: .9;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(6, 8, 15, .94) 26%, rgba(6, 8, 15, .55) 58%, rgba(6, 8, 15, .18) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 15, .6) 34%, transparent 62%),
    linear-gradient(180deg, rgba(6, 8, 15, .55), transparent 25%);
}
.hero-inner { width: 100%; max-width: 1760px; margin: 0 auto; }
.hero-copy { max-width: 720px; }
.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.hero-type {
  color: #d8e1ee;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.hero-category { color: var(--muted); }
.hero h1 {
  margin: 14px 0;
  font-size: clamp(36px, 4.8vw, 74px);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.hero-lede {
  max-width: 56ch;
  color: #b9c3d1;
  font-size: clamp(14px, 1.15vw, 16.5px);
  line-height: 1.75;
}
.hero .actions { margin-top: 26px; }
.primary--lg,
.secondary--lg { padding: 14px 22px; font-size: 14.5px; }

/* ---------- Prateleiras ---------- */

.shelves {
  max-width: 1760px;
  margin: 0 auto;
  padding: 8px var(--page-x) 48px;
}
.shelf { margin: 32px 0; }
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}
.section-heading { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.section-title h2 {
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 700;
  letter-spacing: -.025em;
}
.section-count { color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.see-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.see-all:hover { color: #b9ecff; }
.see-all .icon { width: 14px; height: 14px; }

.rail-wrap { position: relative; }
.rail {
  --rail-gap: 18px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 72px) / 5);
  gap: var(--rail-gap);
  padding: 4px 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(10, 15, 24, .88);
  color: var(--text);
  box-shadow: 0 10px 30px -12px #000;
  opacity: 0;
  transform: translateY(-58%);
  backdrop-filter: blur(8px);
  transition: opacity .2s, background .2s, transform .2s;
}
.rail-arrow .icon { width: 18px; height: 18px; }
.rail-arrow--prev { left: -14px; }
.rail-arrow--next { right: -14px; }
.rail-wrap:hover .rail-arrow:not([hidden]),
.rail-arrow:focus-visible { opacity: 1; }
.rail-arrow:hover { background: #162234; transform: translateY(-58%) scale(1.05); }

/* ---------- Cards ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  border-radius: 14px;
  text-align: left;
  scroll-snap-align: start;
}
.card:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #16233a, #0a0e17 70%);
  box-shadow: 0 14px 30px -24px #000;
  isolation: isolate;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover .cover,
.card:focus-visible .cover {
  transform: translateY(-4px);
  border-color: rgba(90, 200, 250, .42);
  box-shadow: 0 22px 44px -26px #000, 0 0 0 1px rgba(90, 200, 250, .16);
}
.card[data-kind="LIVE"]:hover .cover { border-color: rgba(255, 59, 48, .45); }
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(160, 200, 230, .4);
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(90, 200, 250, .12), transparent 55%),
    linear-gradient(145deg, #16233a, #0a0e17 70%);
}
.cover-fallback .icon { width: 34px; height: 34px; opacity: .6; }
.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 6, 10, 0) 45%, rgba(3, 6, 10, .55));
  pointer-events: none;
}
.cover-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 6, 10, .25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.cover-play .icon {
  width: 20px;
  height: 20px;
  padding: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #06121a;
  box-shadow: 0 8px 24px -8px #000;
}
.card:hover .cover-play,
.card:focus-visible .cover-play { opacity: 1; }

.live-badge,
.episode-badge {
  position: absolute;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 1;
  backdrop-filter: blur(6px);
}
.live-badge {
  left: 10px;
  color: #ffd9d5;
  background: rgba(25, 5, 8, .78);
  border: 1px solid rgba(255, 59, 48, .45);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 10px var(--live);
  animation: livePulse 2s infinite;
}
.episode-badge {
  right: 10px;
  color: #cfe6f5;
  background: rgba(6, 10, 17, .78);
  border: 1px solid var(--line-strong);
}
.card-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border: 0;
  background: rgba(255, 255, 255, .18);
  appearance: none;
}
.card-progress::-webkit-progress-bar { background: rgba(255, 255, 255, .18); }
.card-progress::-webkit-progress-value { background: linear-gradient(90deg, var(--primary), var(--purple)); }
.card-progress::-moz-progress-bar { background: linear-gradient(90deg, var(--primary), var(--purple)); }

.card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 0 3px; }
.card-title {
  display: -webkit-box;
  overflow: hidden;
  color: #e9eef7;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.card-meta {
  overflow: hidden;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card:hover .card-title { color: #fff; }

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ---------- Páginas de catálogo, busca e lista ---------- */

.browse {
  max-width: 1760px;
  margin: 0 auto;
  padding: clamp(28px, 3.8vw, 54px) var(--page-x) clamp(48px, 5vw, 72px);
}
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.page-head h1 {
  margin: 8px 0;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.page-lede { max-width: 62ch; color: var(--muted); font-size: 14px; line-height: 1.65; }
.page-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}
.page-stat strong { font-size: 24px; letter-spacing: -.03em; }
.page-stat span {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.browse-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 22, 35, .62);
}
.select-wrap { position: relative; display: flex; align-items: center; gap: 10px; }
.select-wrap > span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.select-wrap select {
  min-width: 200px;
  max-width: 100%;
  padding: 10px 40px 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(5, 8, 14, .55);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.select-wrap select:hover { border-color: rgba(90, 200, 250, .3); }
.select-wrap > .icon {
  position: absolute;
  right: 13px;
  bottom: 12px;
  width: 14px;
  height: 14px;
  color: var(--faint);
  pointer-events: none;
}
.result-count { margin-left: auto; color: var(--muted); font-size: 12.5px; }

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px 18px;
  margin: 0 0 28px;
}
.load-more { display: flex; margin: 10px auto 0; }

.search-form { display: flex; gap: 10px; max-width: 820px; margin-bottom: 20px; }
.search-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 11px;
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(5, 8, 14, .6);
  transition: border-color .2s, box-shadow .2s;
}
.search-field:focus-within {
  border-color: rgba(90, 200, 250, .6);
  box-shadow: 0 0 0 3px rgba(90, 200, 250, .12);
}
.search-field .icon { color: var(--faint); }
.search-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: none;
  color: var(--text);
  font-size: 15px;
}
.search-form .primary { height: 54px; padding: 0 24px; border-radius: 14px; }
.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 24px;
  margin-bottom: 4px;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 620px;
  margin: 8px auto 24px;
  padding: clamp(36px, 6vw, 70px) 24px;
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(90, 200, 250, .06), transparent 60%);
  text-align: center;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border: 1px solid rgba(90, 200, 250, .2);
  border-radius: 16px;
  background: rgba(90, 200, 250, .1);
  color: #a9e4ff;
}
.empty-icon .icon { width: 24px; height: 24px; }
.empty h2 { font-size: 20px; letter-spacing: -.02em; }
.empty p { max-width: 46ch; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.empty .primary { margin-top: 12px; }

.page-actions { display: flex; justify-content: flex-start; margin-top: 8px; }

/* ---------- Skeletons ---------- */

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, .055);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

.hero-skeleton {
  display: flex;
  align-items: flex-end;
  min-height: clamp(440px, 48vw, 640px);
  padding: clamp(120px, 14vw, 190px) var(--page-x) clamp(48px, 6vw, 80px);
  background: linear-gradient(115deg, #0b111c, #101a2a 55%, #0a0f18);
}
.hero-skeleton-copy { display: flex; flex-direction: column; gap: 14px; width: min(600px, 100%); }
.sk-pill { width: 120px; height: 24px; border-radius: 999px; }
.sk-title { width: min(520px, 88%); height: clamp(38px, 4.6vw, 68px); border-radius: 12px; }
.sk-line { width: min(460px, 78%); height: 13px; }
.sk-line.short { width: min(340px, 58%); }
.sk-actions { display: flex; gap: 10px; margin-top: 8px; }
.sk-btn { width: 150px; height: 44px; border-radius: 999px; }
.shelf-skeleton { margin: 32px 0; }
.sk-heading { display: block; width: 180px; height: 20px; margin-bottom: 16px; }
.sk-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 5); gap: 18px; overflow: hidden; }
.sk-card { aspect-ratio: 16 / 9; border-radius: 14px; }

.skeleton-card { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.sk-cover { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; }
.sk-name { width: 75%; height: 12px; border-radius: 6px; }
.sk-meta { width: 45%; height: 9px; border-radius: 6px; }

.detail-skeleton { padding: 4px 0 12px; }
.detail-skeleton .sk-banner { width: 100%; height: 210px; border-radius: 18px; margin-bottom: 18px; }
.detail-skeleton .sk-line { margin-bottom: 10px; }

/* ---------- Diálogos ---------- */

.details-dialog,
.player-dialog,
.install-dialog {
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #111827, #0b101b);
  color: var(--text);
  box-shadow: 0 40px 120px -30px #000;
}
.details-dialog { width: min(880px, 96vw); max-height: 92dvh; overflow: hidden; }
.player-dialog { width: min(1180px, 97vw); max-height: 94dvh; overflow: hidden; }
.install-dialog { width: min(480px, 94vw); }
.details-dialog::backdrop,
.player-dialog::backdrop,
.install-dialog::backdrop {
  background: rgba(2, 4, 8, .72);
  backdrop-filter: blur(10px);
}
.dialog-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 20, .65);
}
.details-body {
  max-height: calc(92dvh - 74px);
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.details-body::-webkit-scrollbar { width: 10px; }
.details-body::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  background-clip: content-box;
}

/* Diálogo de instalação */
.install-body {
  padding: 26px 24px 6px;
  text-align: center;
}
.install-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border: 1px solid rgba(90, 200, 250, .32);
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(90, 200, 250, .28), rgba(45, 120, 180, .12));
  color: #c9f0ff;
}
.install-mark .icon { width: 26px; height: 26px; }
.install-body h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -.01em;
}
.install-lead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.install-steps {
  margin: 18px 0 0;
  padding-left: 22px;
  text-align: left;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.install-steps li { margin-bottom: 9px; }
.install-note {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.55;
}
.install-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px 22px;
}

.detail-hero {
  position: relative;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
  isolation: isolate;
}
.detail-hero-art { position: absolute; inset: 0; z-index: -2; }
.detail-backdrop { width: 100%; height: 100%; object-fit: cover; opacity: .4; filter: saturate(1.05); }
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 13, 21, .97), rgba(9, 13, 21, .72) 60%, rgba(9, 13, 21, .32)),
    linear-gradient(0deg, rgba(9, 13, 21, .98), transparent 65%);
}
.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
}
.detail-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(145deg, #1a2942, #0a0e17);
  box-shadow: 0 18px 40px -24px #000;
}
.detail-poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #5f7fa0;
}
.detail-poster-fallback .icon { width: 28px; height: 28px; }
.detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.detail-copy { min-width: 0; }
.detail-copy h2 {
  margin: 12px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.detail-meta { margin-bottom: 12px; color: var(--muted); font-size: 12.5px; }
.detail-synopsis { max-width: 62ch; color: #b8c2d0; font-size: 14px; line-height: 1.75; }
.detail-copy .actions { margin-top: 20px; }

.season { margin-top: 20px; }
.season-head { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 12px; }
.season-title { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.season-count { color: var(--faint); font-size: 11.5px; }
.episodes { display: flex; flex-direction: column; gap: 9px; }
.episode {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  text-align: left;
  transition: background .2s, border-color .2s;
}
.episode:hover { background: rgba(90, 200, 250, .07); border-color: rgba(90, 200, 250, .24); }
.episode-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, #182740, #0a0e17);
}
.episode-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.episode-thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #4e6d8c;
}
.episode-thumb-fallback .icon { width: 18px; height: 18px; }
.episode-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 6, 10, .35);
  opacity: 0;
  transition: opacity .2s;
}
.episode-play .icon {
  width: 14px;
  height: 14px;
  padding: 10px;
  border-radius: 50%;
  background: #fff;
  color: #06121a;
}
.episode:hover .episode-play { opacity: 1; }
.episode-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.episode-name {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.episode-meta { color: var(--faint); font-size: 11.5px; }
.episode-cta { color: var(--faint); }
.episode:hover .episode-cta { color: #b9ecff; }

/* ---------- Player ---------- */

.player-chrome { padding: 18px 22px 8px; border-bottom: 0; background: transparent; }
.player-heading .eyebrow { display: block; margin-bottom: 7px; }
.player-heading h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.player-stage { padding: 0 20px; }
.player-stage video {
  display: block;
  width: 100%;
  max-height: 68dvh;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 24px 60px -30px #000;
}
.player-status-row { min-height: 26px; padding: 9px 2px 0; }
.player-status-row p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.player-status-row p:empty { display: none; }
.player-dialog[data-state="error"] #player-status { color: var(--danger); }
.player-download { padding: 12px 22px 24px; }
.player-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.player-actions .primary,
.player-actions .secondary { padding: 12px 18px; font-size: 13.5px; }
.player-download > p { margin-top: 10px; font-size: 12.5px; line-height: 1.6; }
#download-status:empty,
#download-help:empty { display: none; }
#download-progress { width: 100%; height: 6px; margin-top: 10px; accent-color: var(--primary); }
.handoff-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7ddcff, #38bdf8);
  color: var(--primary-ink);
  font-size: 13.5px;
  font-weight: 700;
}
.player-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--faint);
}

/* ---------- Rodapé e toast ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1760px;
  margin: 0 auto;
  padding: 28px var(--page-x);
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}
.site-footer p { margin: 0; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 60;
  max-width: min(90vw, 520px);
  padding: 13px 20px;
  border: 1px solid rgba(90, 200, 250, .32);
  border-radius: 12px;
  background: rgba(17, 27, 41, .96);
  box-shadow: 0 18px 50px -16px #000;
  color: #e6f8ff;
  font-size: 13px;
  text-align: center;
  transform: translateX(-50%);
  animation: toastIn .22s ease both;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Player isolado (aba HTTP) ---------- */

.standalone-player {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(90, 200, 250, .14), transparent 60%),
    var(--bg);
}
.standalone-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px var(--page-x) 48px;
}
.standalone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.standalone-heading { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.standalone-heading .brand { margin-bottom: 2px; }
.standalone-heading h1 {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 750;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.standalone-player video {
  width: 100%;
  max-height: 70dvh;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 30px 80px -30px #000;
}
.standalone-player #status,
.standalone-player #download-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.standalone-player .player-actions { margin-top: 8px; }
.standalone-player #progress { width: 100%; height: 6px; margin-top: 10px; accent-color: var(--primary); }
.standalone-player #help { margin-top: 10px; font-size: 12.5px; }
.standalone-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  line-height: 1.6;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (min-width: 1600px) {
  .rail { grid-auto-columns: calc((100% - 90px) / 6); }
  .sk-rail { grid-auto-columns: calc((100% - 90px) / 6); }
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 1199px) {
  .rail { grid-auto-columns: calc((100% - 54px) / 4); }
  .sk-rail { grid-auto-columns: calc((100% - 54px) / 4); }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .login-showcase { display: none; }
  .login-pitch h1 { font-size: clamp(38px, 5vw, 58px); }
  .login-card { padding: 32px; }
}

@media (max-width: 1023px) {
  .main-nav a { padding: 9px 10px; font-size: 12.5px; }
  .nav-icon { display: none; }
  .search-link kbd { display: none; }
  .detail-hero-inner { grid-template-columns: 170px minmax(0, 1fr); }
}

@media (max-width: 899px) {
  :root { --topbar-h: 64px; }

  .topbar-inner {
    flex-wrap: nowrap;
    gap: 10px;
    min-height: var(--topbar-h);
    padding: 0 18px;
  }
  .brand { gap: 9px; font-size: 13px; letter-spacing: .12em; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .brand-mark .icon { width: 14px; height: 14px; }

  .main-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(7, 10, 17, .94);
    backdrop-filter: blur(18px);
  }
  .main-nav a {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 6px 2px;
    border-radius: 10px;
    color: var(--faint);
    font-size: 10px;
    letter-spacing: .01em;
  }
  .main-nav a:hover { background: rgba(255, 255, 255, .05); }
  .main-nav a[aria-current="page"] {
    color: #b9ecff;
    background: none;
    box-shadow: none;
  }
  .main-nav a[aria-current="page"] .nav-icon {
    filter: drop-shadow(0 0 8px rgba(90, 200, 250, .65));
  }
  .nav-icon { display: block; width: 20px; height: 20px; opacity: .85; }

  .topbar-actions { gap: 6px; }
  .account-name { display: none; }
  .account-avatar { width: 30px; height: 30px; }
  .install-link {
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
  }
  .install-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .search-link {
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
  }
  .search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .ghost-button { padding: 8px 6px; font-size: 12px; }

  #app { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); }

  .rail { grid-auto-columns: calc((100% - 36px) / 3); }
  .sk-rail { grid-auto-columns: calc((100% - 36px) / 3); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail-arrow { display: none !important; }

  .login-screen {
    display: block;
    padding: 28px var(--page-x) 40px;
  }
  .login-visual { max-width: none; gap: 22px; }
  .login-pitch h1 { font-size: clamp(38px, 7vw, 52px); }
  .login-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
  .login-showcase { display: none; }
  .login-panel { margin-top: 30px; }
  .login-card { width: min(520px, 100%); }
  .login-legal { margin: 0 auto; }
  .login-foot { display: none; }

  .site-footer { padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
}

@media (max-width: 599px) {
  .hero {
    min-height: 400px;
    padding: 84px var(--page-x) 30px;
  }
  .hero-scrim {
    background:
      linear-gradient(0deg, var(--bg) 4%, rgba(6, 8, 15, .88) 42%, rgba(6, 8, 15, .3) 100%),
      linear-gradient(180deg, rgba(6, 8, 15, .65), transparent 30%);
  }
  .hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .hero-lede { font-size: 13.5px; }
  .hero .actions { gap: 8px; margin-top: 20px; }
  .primary--lg,
  .secondary--lg { padding: 12px 16px; font-size: 13px; }

  .shelves { padding-bottom: 32px; }
  .shelf { margin: 26px 0; }
  .rail { grid-auto-columns: 64%; }
  .sk-rail { grid-auto-columns: 64%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .card-title { font-size: 12px; }
  .card-meta { font-size: 10.5px; }

  .browse { padding-top: 24px; }
  .page-head h1 { font-size: 28px; }
  .select-wrap { width: 100%; }
  .select-wrap select { width: 100%; min-width: 0; }
  .result-count { width: 100%; margin-left: 0; }
  .search-form { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; height: 50px; }
  .search-form .primary { width: 100%; height: 48px; }

  .login-perks { display: none; }
  .login-pitch h1 { font-size: 38px; }
  .login-lede { font-size: 14px; }
  .login-card { padding: 24px; }
  .login-card h2 { font-size: 26px; }
  .login-screen { padding-top: 24px; }

  .details-dialog,
  .player-dialog { width: 96vw; border-radius: 18px; }
  .install-dialog { width: 94vw; border-radius: 18px; }
  .dialog-chrome { padding: 12px 14px; }
  .details-body { max-height: calc(92dvh - 64px); padding: 14px; }
  .detail-hero-inner { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .detail-copy h2 { font-size: 22px; }
  .detail-synopsis { font-size: 13px; line-height: 1.65; }
  .detail-meta { font-size: 11.5px; }
  .detail-copy .actions { gap: 8px; margin-top: 16px; }
  .detail-copy .actions { flex-direction: column; align-items: stretch; }
  .detail-copy .actions button { width: 100%; white-space: normal; }
  .detail-copy .actions .primary,
  .detail-copy .actions .secondary { padding: 11px 14px; font-size: 12.5px; }
  .episode { grid-template-columns: 104px minmax(0, 1fr); gap: 11px; }
  .episode-cta { display: none; }
  .episode-name { font-size: 12.5px; }
  .player-stage { padding: 0 12px; }
  .player-stage video { max-height: 52dvh; }
  .player-download { padding: 10px 14px 18px; }
  .player-actions .primary,
  .player-actions .secondary { font-size: 12.5px; padding: 11px 14px; }
  .player-chrome { padding: 14px 14px 4px; }
  .standalone-shell { padding: 18px 16px 32px; }
  .standalone-header { align-items: flex-start; }
  .standalone-player video { max-height: 60dvh; }
}

@media (max-width: 399px) {
  .brand-name { font-size: 12px; letter-spacing: .07em; }
  .brand-mark { width: 28px; height: 28px; }
  .account-avatar { display: none; }
  .main-nav a { font-size: 9.5px; }
  .hero h1 { font-size: 30px; }
  .hero { min-height: 380px; }
  .grid { gap: 18px 10px; }
  .rail { grid-auto-columns: 72%; }
  .sk-rail { grid-auto-columns: 72%; }
  .section-title h2 { font-size: 17px; }
  .detail-hero-inner { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .episode { grid-template-columns: 92px minmax(0, 1fr); }
}

@media (max-width: 359px) {
  .detail-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .detail-poster { display: none; }
}

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