/* =========================================================
   NOVAFLIX · Design system
   ========================================================= */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #08080b;
  --bg-soft: #0c0c11;
  --surface: #14141b;
  --surface-2: #1c1c25;
  --surface-3: #262633;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-dim: #a4a4b2;
  --text-faint: #6f6f7e;
  --accent: #e50914;
  --accent-hover: #ff1f2b;
  --accent-soft: rgba(229, 9, 20, 0.14);
  --violet: #8b5cf6;
  --grad-brand: linear-gradient(115deg, #ff3b46 0%, #e50914 42%, #8b5cf6 100%);
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 6px 18px -8px rgba(0, 0, 0, 0.7);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 68px;
  --maxw: 1600px;
  --pad: clamp(16px, 4vw, 60px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }
body.nf-modal-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.4rem); }
p { color: var(--text-dim); }
::selection { background: rgba(229, 9, 20, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2b2b38; border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3d3d4e; }

.app { min-height: 100vh; }

.boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  gap: 18px;
  justify-items: center;
  background: radial-gradient(circle at 50% 40%, #16121f 0%, #08080b 60%);
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.boot.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.boot__mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
  border-radius: 18px;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 0 60px rgba(229, 9, 20, 0.35);
  animation: pulse 1.6s var(--ease) infinite;
}
.boot__word {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: #fff;
}
.boot__bar { width: 140px; height: 3px; background: #22222d; border-radius: 999px; overflow: hidden; }
.boot__bar span { display: block; height: 100%; width: 40%; background: var(--accent); animation: slide 1.1s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.94); } }
@keyframes slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }

/* ---------- Logos ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 21px;
  color: #fff;
}
.logo__mark {
  width: 27px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--grad-brand);
  font-size: 16px;
  letter-spacing: 0;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.35);
}
.logo--sm { font-size: 17px; letter-spacing: 0.14em; }
.logo--sm .logo__mark { width: 22px; height: 26px; font-size: 13px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: #fff;
  --btn-fg: #0a0a0d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-xs);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease), opacity 0.18s, box-shadow 0.18s;
  user-select: none;
}
.btn:hover { background: rgba(255, 255, 255, 0.82); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn svg { flex: none; }

.btn--primary { --btn-bg: var(--accent); --btn-fg: #fff; box-shadow: 0 10px 30px -12px rgba(229, 9, 20, 0.75); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { --btn-bg: rgba(109, 109, 130, 0.28); --btn-fg: #fff; backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(109, 109, 130, 0.45); }
.btn--outline { --btn-bg: transparent; --btn-fg: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--outline:hover { background: rgba(255, 255, 255, 0.08); }
.btn--danger { --btn-bg: rgba(229, 9, 20, 0.16); --btn-fg: #ff6b73; box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.35); }
.btn--danger:hover { background: rgba(229, 9, 20, 0.28); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 7px; gap: 7px; }
.btn--lg { min-height: 52px; padding: 0 30px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn--icon { min-height: 40px; width: 40px; padding: 0; border-radius: 999px; background: rgba(20, 20, 27, 0.7); color: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); backdrop-filter: blur(6px); }
.btn--icon:hover { background: rgba(255, 255, 255, 0.16); }

.btn.is-loading { color: transparent; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: currentColor;
  animation: spin 0.7s linear infinite;
  color: var(--btn-fg);
}
.btn--ghost.is-loading::after, .btn--outline.is-loading::after { border-color: rgba(255,255,255,.25); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 var(--pad);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s, box-shadow 0.35s;
}
.nav.is-solid {
  background: rgba(8, 8, 11, 0.9);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-transparent { background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent); }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
  padding: 6px 0;
}
.nav__link:hover { color: #fff; }
.nav__link.is-active { color: #fff; font-weight: 650; }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}
.nav__spacer { flex: 1; }
.nav__tools { display: flex; align-items: center; gap: 12px; }
.nav__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 999px;
  color: #fff;
  transition: background 0.2s;
}
.nav__icon:hover { background: rgba(255, 255, 255, 0.1); }
.nav__search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: width 0.25s var(--ease), background 0.2s, box-shadow 0.2s;
  width: 38px;
  overflow: hidden;
}
.nav__search.is-open { width: 250px; padding: 0 10px; justify-content: flex-start; background: rgba(0, 0, 0, 0.8); }
.nav__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 14px;
  color: #fff;
}
.nav__search input::placeholder { color: var(--text-faint); }

.nav__profile { position: relative; }
.nav__avatar {
  width: 34px; height: 34px;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: box-shadow 0.2s;
}
.nav__avatar:hover { box-shadow: 0 0 0 2px #fff; }
.nav__avatar img { width: 100%; height: 100%; object-fit: cover; }

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  background: rgba(14, 14, 19, 0.97);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s var(--ease);
  z-index: 100;
  backdrop-filter: blur(20px);
}
.dropdown.is-open { opacity: 1; visibility: visible; transform: none; }
.dropdown__head { display: flex; gap: 10px; align-items: center; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown__head img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.dropdown__head strong { display: block; font-size: 14px; font-weight: 600; }
.dropdown__head span { font-size: 12px; color: var(--text-faint); }
.dropdown__item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text-dim);
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.dropdown__item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.dropdown__item svg { color: var(--text-faint); }
.dropdown__item:hover svg { color: #fff; }
.dropdown__sep { height: 1px; background: var(--line); margin: 6px 4px; }

.badge-count {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}
.nav__burger { display: none; }

/* ---------- Hero billboard ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 900px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) var(--pad) clamp(56px, 8vh, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease), transform 8s linear;
  transform: scale(1.04);
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 8, 11, 0.97) 0%, rgba(8, 8, 11, 0.72) 34%, rgba(8, 8, 11, 0.12) 62%, rgba(8, 8, 11, 0.35) 100%),
    linear-gradient(0deg, var(--bg) 2%, rgba(8, 8, 11, 0.35) 26%, transparent 60%);
}
.hero__content { width: min(620px, 100%); display: grid; gap: 18px; animation: rise 0.7s var(--ease) both; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
  text-transform: uppercase;
}
.hero__eyebrow .mark { width: 18px; height: 21px; border-radius: 4px; background: var(--grad-brand); display: grid; place-items: center; font-size: 11px; letter-spacing: 0; }
.hero__title { font-size: clamp(2.6rem, 5.4vw, 5.2rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; text-wrap: balance; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; color: #dcdce4; }
.hero__match { color: #46d369; font-weight: 700; }
.hero__age { padding: 1px 7px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 4px; font-size: 11.5px; font-weight: 600; }
.hero__quality { padding: 1px 6px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; }
.hero__tagline { font-size: clamp(1rem, 1.5vw, 1.2rem); color: #e6e6ec; font-weight: 500; }
.hero__desc {
  font-size: 15.5px; line-height: 1.6; color: #c9c9d4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  max-width: 560px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hero__dots { position: absolute; right: var(--pad); bottom: 34px; display: flex; gap: 7px; z-index: 3; }
.hero__dot { width: 22px; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.24); transition: background 0.25s, width 0.25s; }
.hero__dot.is-active { background: #fff; width: 34px; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Page & sections ---------- */
.page { min-height: 100vh; padding-bottom: 40px; }
.page--nav { padding-top: calc(var(--nav-h) + 20px); }
.section { padding: clamp(26px, 4vw, 44px) var(--pad) 0; }
.section--last { padding-bottom: 72px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section__title { font-size: clamp(1.3rem, 2vw, 1.7rem); display: flex; align-items: center; gap: 10px; }
.section__sub { color: var(--text-faint); font-size: 13.5px; margin-top: 4px; }
.section__link { font-size: 13px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; }
.section__link:hover { color: #fff; }

/* ---------- Rows ---------- */
.row-wrap { position: relative; }
.row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 12px var(--pad) 26px;
  margin: 0 calc(-1 * var(--pad));
}
.row::-webkit-scrollbar { display: none; }
.row__arrow {
  position: absolute;
  top: 0; bottom: 26px;
  width: 48px;
  z-index: 5;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(90deg, rgba(8, 8, 11, 0.92), rgba(8, 8, 11, 0));
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}
.row__arrow--right { right: calc(-1 * var(--pad) + 0px); background: linear-gradient(270deg, rgba(8, 8, 11, 0.92), rgba(8, 8, 11, 0)); }
.row__arrow--left { left: calc(-1 * var(--pad) + 0px); }
.row-wrap:hover .row__arrow { opacity: 1; }
.row__arrow:hover { background: rgba(8, 8, 11, 0.75); }
.row__arrow svg { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7)); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(132px, 12.6vw, 198px);
  scroll-snap-align: start;
  display: block;
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), z-index 0s 0.3s;
  outline-offset: 4px;
}
.card__art {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.card__art img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.3s, transform 0.5s var(--ease); }
.card:hover .card__art img { filter: brightness(0.7); }
.card__badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(8, 8, 11, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em;
  backdrop-filter: blur(4px);
}
.card__badge--new { background: var(--accent); border-color: transparent; }
.card__progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px; background: rgba(255, 255, 255, 0.22);
}
.card__progress span { display: block; height: 100%; background: var(--accent); }
.card__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 8px; padding: 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 6%, rgba(0, 0, 0, 0.1) 60%, transparent);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.card:hover .card__overlay, .card:focus-visible .card__overlay { opacity: 1; }
.card__overlay-title { font-size: 13px; font-weight: 700; line-height: 1.25; text-shadow: 0 2px 10px #000; }
.card__overlay-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #d3d3dd; }
.card__overlay-actions { display: flex; gap: 6px; }
.card__mini {
  width: 29px; height: 29px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  transition: background 0.15s;
}
.card__mini:hover { background: #fff; color: #000; }
.card__mini--play { background: #fff; color: #000; }
.card__mini--play:hover { background: #e6e6ea; }
.card__preview {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s;
  object-fit: cover;
  width: 100%; height: 100%;
}
.card__preview.is-on { opacity: 1; }
.card:hover { transform: scale(1.055); z-index: 12; transition: transform 0.3s var(--ease), z-index 0s; }
.card:hover .card__art { box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.12); }

.card--landscape { width: clamp(240px, 23vw, 360px); }
.card--landscape .card__art { aspect-ratio: 16 / 9; }

/* Top 10 */
.card--ranked { width: clamp(176px, 17vw, 268px); }
.card--ranked .card__art { margin-left: clamp(22px, 3vw, 46px); width: calc(100% - clamp(22px, 3vw, 46px)); }
.card__rank {
  position: absolute; left: -6px; bottom: -6px;
  font-size: clamp(74px, 8vw, 122px);
  font-weight: 800;
  line-height: 0.72;
  letter-spacing: -0.1em;
  color: transparent;
  -webkit-text-stroke: 3px rgba(255, 255, 255, 0.5);
  z-index: 0;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
}
.card--ranked .card__overlay { left: clamp(22px, 3vw, 46px); border-radius: 0 0 var(--radius-sm) 0; }

/* Skeleton */
.skeleton { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius-sm); }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.skeleton--card { width: clamp(132px, 12.6vw, 198px); aspect-ratio: 2/3; flex: 0 0 auto; }

/* ---------- Marketing / landing ---------- */
.landing { background: radial-gradient(1200px 600px at 80% -10%, rgba(139, 92, 246, 0.12), transparent 70%), var(--bg); }
.landing .nav { background: linear-gradient(180deg, rgba(0,0,0,.6), transparent); }
.mhero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) var(--pad) 60px;
  overflow: hidden;
  isolation: isolate;
}
.mhero__bg { position: absolute; inset: 0; z-index: -2; }
.mhero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.mhero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 16% 40%, rgba(8, 8, 11, 0.96), rgba(8, 8, 11, 0.55) 55%, transparent 78%),
    linear-gradient(0deg, var(--bg) 0%, rgba(8, 8, 11, 0.2) 45%, rgba(8, 8, 11, 0.55) 100%);
}
.mhero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; width: min(var(--maxw), 100%); margin: 0 auto; }
.mhero__copy { display: grid; gap: 22px; max-width: 660px; }
.mhero__kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #cfcfe0; }
.mhero h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
.mhero h1 em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mhero__lead { font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 520px; color: #c3c3d0; }
.mhero__form { display: flex; gap: 10px; max-width: 520px; }
.mhero__form input {
  flex: 1; min-width: 0; height: 54px; padding: 0 16px;
  border-radius: var(--radius-xs); border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 15px;
  backdrop-filter: blur(8px);
}
.mhero__form input::placeholder { color: var(--text-faint); }
.mhero__note { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--text-faint); }
.mhero__note span { display: inline-flex; align-items: center; gap: 6px; }
.mhero__posters { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; transform: rotate(-3deg); width: min(420px, 100%); margin-left: auto; align-self: center; }
.mhero__poster { aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -20px #000; animation: float 9s ease-in-out infinite; }
.mhero__poster:nth-child(2) { animation-delay: -2s; margin-top: 34px; }
.mhero__poster:nth-child(3) { animation-delay: -4s; margin-top: -22px; }
.mhero__poster:nth-child(4) { animation-delay: -6s; margin-top: 12px; }
.mhero__poster img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.band { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.features { padding: clamp(56px, 8vw, 100px) var(--pad); display: grid; gap: 56px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature:nth-child(even) .feature__copy { order: 2; }
.feature__copy { display: grid; gap: 14px; max-width: 480px; }
.feature__eyebrow { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.feature h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.feature p { font-size: 15.5px; line-height: 1.65; }
.feature__art {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow); aspect-ratio: 16/10;
}
.feature__art img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.feature__float {
  position: absolute; left: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; border-radius: 10px;
  background: rgba(10, 10, 14, 0.86); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); font-size: 12.5px; color: #e7e7ee;
}
.feature__float b { font-weight: 650; }

.plans { padding: clamp(40px, 6vw, 72px) var(--pad) clamp(56px, 8vw, 100px); }
.plans__head { text-align: center; display: grid; gap: 10px; margin-bottom: 34px; }
.plans__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1120px; margin: 0 auto; }
.plan {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.plan--featured { border-color: rgba(229, 9, 20, 0.55); box-shadow: 0 0 0 1px rgba(229, 9, 20, 0.25), 0 30px 70px -34px rgba(229, 9, 20, 0.5); }
.plan__tag { position: absolute; top: -11px; left: 24px; padding: 3px 10px; border-radius: 99px; background: var(--grad-brand); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; }
.plan__name { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.plan__price { display: flex; align-items: baseline; gap: 4px; }
.plan__price strong { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; }
.plan__price span { color: var(--text-faint); font-size: 13px; }
.plan__list { display: grid; gap: 10px; margin: 4px 0 10px; flex: 1; }
.plan__list li { display: flex; gap: 9px; font-size: 13.5px; color: #cfcfd9; line-height: 1.4; }
.plan__list svg { flex: none; color: var(--accent); margin-top: 2px; }
.plan__note { font-size: 11.5px; color: var(--text-faint); }

.faq { max-width: 900px; margin: 0 auto; padding: 0 var(--pad) clamp(60px, 9vw, 110px); }
.faq h2 { text-align: center; margin-bottom: 26px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 4px; font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 600; text-align: left; color: #fff;
}
.faq__q svg { transition: transform 0.25s var(--ease); color: var(--text-dim); flex: none; }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.32s var(--ease); }
.faq__a p { padding: 0 4px 22px; font-size: 15px; line-height: 1.65; max-width: 760px; }
.faq__item.is-open .faq__a { max-height: 320px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 48px var(--pad) 40px;
  color: var(--text-faint);
  font-size: 12.5px;
  background: #060609;
}
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; max-width: var(--maxw); margin: 0 auto 34px; }
.footer h4 { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; font-weight: 700; }
.footer ul { display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; max-width: var(--maxw); margin: 0 auto; padding-top: 22px; border-top: 1px solid var(--line); font-size: 11.5px; }
.footer__lang { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text-dim); }

/* ---------- Auth ---------- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--bg);
}
.auth__art { position: relative; overflow: hidden; isolation: isolate; }
.auth__collage {
  position: absolute; inset: -14% -22%;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  transform: rotate(-6deg) scale(1.02);
  opacity: .9;
}
.auth__collage img { width: min(230px, 24vw); aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; flex: none; }
.auth__art { background: radial-gradient(circle at 40% 30%, #241236, #08080b 70%); }
.auth__art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,8,11,.2), rgba(8,8,11,.85) 70%, var(--bg)),
              linear-gradient(0deg, var(--bg), transparent 55%);
}
.auth__art-copy { position: absolute; z-index: 2; left: clamp(28px, 5vw, 76px); bottom: clamp(36px, 8vh, 90px); max-width: 460px; display: grid; gap: 16px; }
.auth__art-copy blockquote { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; }
.auth__art-copy cite { font-style: normal; color: var(--text-dim); font-size: 13px; }
.auth__panel { display: flex; flex-direction: column; justify-content: center; padding: 100px clamp(24px, 5vw, 72px) 60px; }
.auth__panel-inner { width: 100%; max-width: 420px; margin: 0 auto; display: grid; gap: 22px; }
.auth__logo { margin-bottom: 6px; }
.auth__title { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.auth__sub { color: var(--text-dim); font-size: 14.5px; margin-top: -12px; }
.auth__form { display: grid; gap: 14px; }
.auth__swap { font-size: 14px; color: var(--text-dim); }
.auth__swap a { color: #fff; font-weight: 600; }
.auth__swap a:hover { text-decoration: underline; }
.auth__demo { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.chip-demo {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px; border-radius: 999px;
  border: 1px dashed var(--line-strong);
  font-size: 11.5px; color: var(--text-dim);
  transition: all .15s;
}
.chip-demo:hover { background: rgba(255,255,255,.06); color: #fff; border-style: solid; }
.auth__legal { font-size: 11.5px; color: var(--text-faint); line-height: 1.5; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; }
.field__label { font-size: 12.5px; font-weight: 600; color: var(--text-dim); letter-spacing: .01em; }
.field__hint { font-size: 11.5px; color: var(--text-faint); }
.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-strong);
  color: #fff;
  font-size: 14.5px;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.14);
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a4a4b2' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.select option { background: #14141b; color: #fff; }
.input--with-icon { padding-left: 42px; }
.field__wrap { position: relative; }
.field__icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.field__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 34px; display: grid; place-items: center; color: var(--text-dim); border-radius: 5px; }
.field__toggle:hover { color: #fff; background: rgba(255,255,255,.06); }
.field__error { font-size: 12px; color: #ff6b73; display: flex; gap: 6px; align-items: center; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--text-dim); cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-error {
  padding: 10px 13px; border-radius: var(--radius-xs);
  background: rgba(229, 9, 20, 0.12); border: 1px solid rgba(229, 9, 20, 0.35);
  color: #ff8b91; font-size: 13px;
  display: flex; gap: 8px; align-items: flex-start;
}
.form-success {
  padding: 10px 13px; border-radius: var(--radius-xs);
  background: rgba(70, 211, 105, 0.1); border: 1px solid rgba(70, 211, 105, 0.3);
  color: #7ee29a; font-size: 13px;
}

/* ---------- Profiles gate ---------- */
.profiles-page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 38px;
  padding: 110px var(--pad) 70px;
  background: radial-gradient(900px 500px at 50% 0%, rgba(139, 92, 246, 0.09), transparent 65%);
}
.profiles-page__head { display: grid; gap: 8px; justify-items: center; text-align: center; }
.profiles-page__head h1 { font-size: clamp(1.8rem, 3.6vw, 3rem); letter-spacing: -0.03em; }
.profiles-page__head p { font-size: 14px; }
.profiles-grid { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 32px); justify-content: center; align-items: flex-start; }
.profile {
  display: grid; gap: 12px; justify-items: center;
  width: clamp(98px, 12vw, 148px);
  color: var(--text-dim);
  transition: color .2s;
}
.profile__avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}
.profile__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile:hover .profile__avatar { transform: translateY(-3px); box-shadow: 0 0 0 3px #fff, 0 18px 40px -16px #000; }
.profile:hover { color: #fff; }
.profile__name { font-size: 14px; font-weight: 500; }
.profile__tag { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.profile--add .profile__avatar { display: grid; place-items: center; background: rgba(255,255,255,.04); border: 1px dashed var(--line-strong); box-shadow: none; color: var(--text-dim); }
.profile--add:hover .profile__avatar { background: rgba(255,255,255,.08); color: #fff; box-shadow: 0 0 0 2px #fff; }
.profile.is-editing .profile__avatar { box-shadow: 0 0 0 3px var(--accent); }
.profile__edit {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,.6);
  opacity: 0; transition: opacity .2s;
}
.profile.is-editing .profile__edit { opacity: 1; }
.profiles-page__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pin-form { display: grid; gap: 14px; justify-items: center; }
.pin-inputs { display: flex; gap: 10px; }
.pin-inputs input {
  width: 44px; height: 54px; text-align: center;
  font-size: 22px; font-weight: 700;
  border-radius: 8px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.05); color: #fff;
}
.pin-inputs input:focus { outline: none; border-color: #fff; }

/* ---------- Detail page ---------- */
.detail-hero {
  position: relative;
  min-height: min(78vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 60px) var(--pad) clamp(36px, 6vh, 70px);
  overflow: hidden;
  isolation: isolate;
}
.detail-hero__bg { position: absolute; inset: 0; z-index: -2; }
.detail-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.detail-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,8,11,.98) 0%, rgba(8,8,11,.82) 40%, rgba(8,8,11,.25) 75%, rgba(8,8,11,.4) 100%),
    linear-gradient(0deg, var(--bg) 1%, rgba(8,8,11,.4) 30%, transparent 65%);
}
.detail-hero__inner { display: grid; gap: 18px; max-width: 680px; }
.detail-hero__poster { display: none; }
.detail-hero__title { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -0.045em; }
.detail-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; color: #d6d6e0; }
.detail-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.detail-hero__genres { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 3px 10px; border-radius: 99px;
  background: rgba(255,255,255,.07); border: 1px solid var(--line);
  font-size: 11.5px; color: #d5d5e0;
}
.detail-body { display: grid; gap: 0; padding-bottom: 60px; }
.detail-section { padding: 28px var(--pad) 0; }
.detail-section h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 16px; }
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.about-list { display: grid; gap: 10px; font-size: 14px; }
.about-list div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.about-list dt { color: var(--text-faint); }
.about-list dd { color: #dcdce4; }
.about-cast { color: #dcdce4; font-size: 14.5px; line-height: 1.75; }
.about-cast span { color: var(--text-faint); }

.season-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.season-tab {
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  border: 1px solid var(--line);
  transition: all .18s;
}
.season-tab:hover { color: #fff; border-color: var(--line-strong); }
.season-tab.is-active { background: #fff; color: #0a0a0d; border-color: #fff; }
.episodes { display: grid; gap: 2px; }
.episode {
  display: grid;
  grid-template-columns: 46px 168px 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 14px 12px;
  border-radius: 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  transition: background .16s;
}
.episode:hover { background: rgba(255,255,255,.04); }
.episode__num { font-size: 19px; font-weight: 600; color: var(--text-faint); text-align: center; }
.episode__thumb { position: relative; border-radius: 7px; overflow: hidden; aspect-ratio: 16/9; background: var(--surface-2); }
.episode__thumb img { width: 100%; height: 100%; object-fit: cover; }
.episode__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.35); opacity: 0; transition: opacity .18s;
}
.episode:hover .episode__play { opacity: 1; }
.episode__play span { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #000; }
.episode__body { display: grid; gap: 4px; min-width: 0; }
.episode__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.episode__title { font-size: 14.5px; font-weight: 600; color: #fff; }
.episode__dur { font-size: 12.5px; color: var(--text-faint); white-space: nowrap; }
.episode__desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.episode__prog { height: 3px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; margin-top: 4px; max-width: 260px; }
.episode__prog span { display: block; height: 100%; background: var(--accent); }
.episode__action { color: var(--text-dim); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; }
.episode__action:hover { background: rgba(255,255,255,.1); color: #fff; }
.episode.is-current { background: rgba(229,9,20,.07); }

/* ---------- Search / grid ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12.5px; color: var(--text-dim);
  transition: all .16s;
}
.chip:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.chip.is-active { background: #fff; color: #08080b; border-color: #fff; font-weight: 600; }
.chip__count { opacity: .55; margin-left: 4px; font-size: 11px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 22px 14px;
}
.grid .card { width: 100%; }
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.search-title { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 6px; }
.search-sub { font-size: 13.5px; color: var(--text-faint); margin-bottom: 24px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }

/* ---------- Empty state ---------- */
.empty {
  display: grid; justify-items: center; gap: 14px;
  text-align: center;
  padding: clamp(50px, 9vw, 110px) 20px;
  color: var(--text-dim);
}
.empty__icon {
  width: 76px; height: 76px; border-radius: 22px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  color: var(--text-faint);
}
.empty h3 { color: #fff; font-size: 1.3rem; }
.empty p { max-width: 420px; font-size: 14px; }

/* ---------- My list / downloads ---------- */
.pill-count { font-size: 12px; color: var(--text-faint); font-weight: 500; }
.dl-storage {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  margin-bottom: 26px;
}
.dl-storage__bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; flex: 1; min-width: 160px; }
.dl-storage__bar span { display: block; height: 100%; border-radius: 99px; background: var(--grad-brand); }
.dl-storage__meta { font-size: 12.5px; color: var(--text-dim); display: flex; gap: 8px; align-items: center; }
.dl-list { display: grid; gap: 12px; }
.dl-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .18s, background .18s;
}
.dl-item:hover { border-color: var(--line-strong); background: var(--surface-2); }
.dl-item__art { width: 76px; aspect-ratio: 2/3; border-radius: 7px; overflow: hidden; background: var(--surface-3); }
.dl-item__art img { width: 100%; height: 100%; object-fit: cover; }
.dl-item__title { font-size: 14.5px; font-weight: 600; color: #fff; }
.dl-item__meta { font-size: 12px; color: var(--text-faint); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 8px; }
.dl-item__actions { display: flex; gap: 8px; }
.dl-progress { margin-top: 8px; }
.dl-progress__bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.dl-progress__bar span { display: block; height: 100%; background: var(--grad-brand); transition: width .2s; }
.dl-progress__label { font-size: 11.5px; color: var(--text-faint); margin-top: 5px; display: flex; justify-content: space-between; }
.dl-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(70, 211, 105, 0.12); color: #7ee29a; border: 1px solid rgba(70,211,105,.28);
}
.dl-badge--soft { background: rgba(255,255,255,.06); color: var(--text-dim); border-color: var(--line); }

/* ---------- Account ---------- */
.account-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 22px; align-items: start; }
.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--surface), var(--bg-soft));
  overflow: hidden;
}
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel__head h3 { font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; }
.panel__body { padding: 20px; display: grid; gap: 16px; }
.panel__body--flush { padding: 0; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; padding: 7px 0; }
.kv > span:first-child { color: var(--text-faint); }
.kv strong { font-weight: 600; }
.plan-hero {
  display: grid; gap: 6px;
  padding: 22px;
  background:
    radial-gradient(500px 200px at 0% 0%, rgba(229,9,20,.22), transparent 60%),
    radial-gradient(500px 240px at 100% 100%, rgba(139,92,246,.18), transparent 60%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.plan-hero__label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #d5d5e2; }
.plan-hero__name { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; }
.plan-hero__meta { font-size: 13px; color: var(--text-dim); }
.plan-hero__price { font-size: 13px; color: #fff; font-weight: 600; margin-top: 6px; }
.profile-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 10px;
  border: 1px solid transparent;
  transition: background .16s, border-color .16s;
}
.profile-row:hover { background: rgba(255,255,255,.04); border-color: var(--line); }
.profile-row img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.profile-row__name { font-size: 14px; font-weight: 600; }
.profile-row__meta { font-size: 12px; color: var(--text-faint); }
.profile-row__actions { margin-left: auto; display: flex; gap: 6px; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--text-dim); transition: background .15s, color .15s; }
.icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.icon-btn--danger:hover { background: rgba(229,9,20,.16); color: #ff6b73; }
.switch { position: relative; width: 44px; height: 25px; border-radius: 999px; background: rgba(255,255,255,.16); transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch.is-on { background: var(--accent); }
.switch.is-on::after { transform: translateX(19px); }
.device { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.device:last-child { border-bottom: 0; }
.device svg { color: var(--text-faint); }
.device__tag { margin-left: auto; font-size: 11px; color: #7ee29a; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 22px;
  animation: fadeIn .18s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(560px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 40px 100px -30px #000;
  animation: modalIn .24s var(--ease);
}
.modal--wide { width: min(900px, 100%); }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 0; }
.modal__title { font-size: 1.35rem; letter-spacing: -.02em; }
.modal__sub { font-size: 13px; color: var(--text-faint); margin-top: 4px; }
.modal__close { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; color: var(--text-dim); flex: none; }
.modal__close:hover { background: rgba(255,255,255,.08); color: #fff; }
.modal__body { padding: 20px 24px; display: grid; gap: 16px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 24px; flex-wrap: wrap; }
.modal__media { position: relative; aspect-ratio: 16/9; background: var(--surface-2); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__select-list { display: grid; gap: 6px; max-height: 280px; overflow: auto; padding-right: 4px; }
.select-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 7px; font-size: 13.5px; cursor: pointer; }
.select-row:hover { background: rgba(255,255,255,.05); }
.select-row input { accent-color: var(--accent); width: 16px; height: 16px; }
.select-row img { width: 34px; height: 50px; object-fit: cover; border-radius: 4px; }
.modal .field { gap: 6px; }

/* ---------- Toast ---------- */
.toast-root {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 300;
  display: grid;
  gap: 8px;
  width: min(440px, calc(100% - 32px));
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(20, 20, 27, 0.97);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px -20px #000;
  color: #f0f0f5;
  font-size: 13.5px;
  pointer-events: auto;
  animation: toastIn .25s var(--ease);
  backdrop-filter: blur(14px);
}
.toast.is-out { animation: toastOut .2s var(--ease) forwards; }
.toast svg { flex: none; margin-top: 1px; }
.toast--success svg { color: #46d369; }
.toast--error svg { color: #ff5c66; }
.toast--info svg { color: #7aa2ff; }
.toast__body { flex: 1; }
.toast__body strong { display: block; font-size: 13px; font-weight: 650; margin-bottom: 1px; }
.toast__body span { color: var(--text-dim); font-size: 12.5px; }
.toast button { color: var(--text-faint); flex: none; }
.toast button:hover { color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Misc ---------- */
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.18);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.loading-block { display: grid; place-items: center; padding: 80px 0; gap: 14px; color: var(--text-faint); font-size: 13px; }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.grow { flex: 1; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.small { font-size: 12.5px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.kbd {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.05);
  font-size: 11px; color: var(--text-dim);
  font-family: inherit;
}

.notif-list { display: grid; gap: 2px; max-height: 320px; overflow: auto; }
.notif {
  display: flex; gap: 10px; padding: 10px; border-radius: 8px;
  transition: background .15s;
}
.notif:hover { background: rgba(255,255,255,.05); }
.notif img { width: 44px; height: 64px; border-radius: 5px; object-fit: cover; flex: none; }
.notif__title { font-size: 13px; font-weight: 600; }
.notif__meta { font-size: 11.5px; color: var(--text-faint); }

@media (max-width: 1180px) {
  .auth { grid-template-columns: 1fr; }
  .auth__art { display: none; }
  .mhero__grid { grid-template-columns: 1fr; gap: 20px; }
  .mhero__posters { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .account-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav { gap: 18px; }
  .nav__links { display: none; }
  .nav__burger { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; border-radius: 8px; }
  .nav__burger:hover { background: rgba(255,255,255,.08); }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px var(--pad) 20px;
    background: rgba(8,8,11,.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px);
  }
  .nav.is-open .nav__link { padding: 11px 0; font-size: 16px; width: 100%; }
  .nav__search.is-open {
    position: absolute; top: 10px; left: 12px; right: 12px; width: auto; z-index: 6;
    background: #0b0b0f; box-shadow: 0 10px 30px -12px #000;
  }
  .plans__grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature:nth-child(even) .feature__copy { order: 0; }
  .episode { grid-template-columns: 34px 120px 1fr auto; gap: 12px; }
  .episode__desc { -webkit-line-clamp: 2; }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .hero { min-height: 80vh; align-items: flex-end; }
  .hero__desc { -webkit-line-clamp: 3; font-size: 14px; }
  .hero__dots { display: none; }
  .card { width: clamp(112px, 32vw, 150px); }
  .card--landscape { width: clamp(200px, 62vw, 280px); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 18px 10px; }
  .episode { grid-template-columns: 1fr auto; gap: 10px; padding: 12px 6px; }
  .episode__num, .episode__thumb { display: none; }
  .dl-item { grid-template-columns: 58px 1fr; }
  .dl-item__art { width: 58px; }
  .dl-item__actions { grid-column: 1 / -1; justify-content: flex-end; }
  .panel__head, .panel__body { padding-left: 16px; padding-right: 16px; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92vh; width: 100%; }
  .about-list div { grid-template-columns: 90px 1fr; }
  .toast-root { bottom: 14px; }
  .mhero__form { flex-direction: column; }
  .mhero__form .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 22px; }
}

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

.episode { text-align: left; cursor: pointer; }

.card__caption { position: absolute; left: 11px; right: 11px; bottom: 12px; display: grid; gap: 2px; pointer-events: none; text-shadow: 0 2px 10px rgba(0,0,0,.9); }
.card__caption strong { font-size: 13px; font-weight: 650; color: #fff; line-height: 1.25; }
.card__caption span { font-size: 11px; color: #c9c9d4; }
.card--landscape .card__art::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(0deg, rgba(0,0,0,.88), transparent); pointer-events: none; }
.card--landscape .card__overlay { background: rgba(0,0,0,.55); }

/* ---------- Landing: tendencias y motivos ---------- */
.band--tight { padding: clamp(22px, 3vw, 36px) 0 0; }
.trend { padding: 0 var(--pad); }
.trend__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.trend__head h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.trend__head p { margin-top: 4px; }
.trend__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; max-width: 1640px; margin: 0 auto; }
.trend__card {
  position: relative; display: block; aspect-ratio: 2 / 3;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.trend__card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.trend__card img { width: 100%; height: 100%; object-fit: cover; }
.trend__card--skeleton { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: trendShimmer 1.4s ease-in-out infinite; }
@keyframes trendShimmer { from { background-position: 180% 0; } to { background-position: -180% 0; } }
.trend__rank {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  min-width: 26px; height: 26px; padding: 0 6px;
  display: grid; place-items: center; border-radius: 8px;
  background: rgba(8, 8, 11, 0.78); border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12.5px; font-weight: 750; color: #fff; backdrop-filter: blur(8px);
}
.trend__meta {
  position: absolute; inset: auto 0 0; z-index: 1;
  display: grid; padding: 26px 11px 11px;
  background: linear-gradient(transparent, rgba(5, 5, 8, 0.92));
}
.trend__meta small { font-size: 10.5px; color: rgba(255, 255, 255, 0.72); letter-spacing: 0.01em; }

.reasons { padding: clamp(48px, 6vw, 78px) var(--pad) 0; }
.reasons h2 { text-align: center; font-size: clamp(1.45rem, 2.6vw, 2.05rem); margin-bottom: 26px; }
.reasons__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1180px; margin: 0 auto; }
.reason {
  display: grid; gap: 9px; align-content: start;
  padding: 22px; border-radius: 14px;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
}
.reason__icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 2px;
  background: rgba(229, 9, 20, 0.13); color: #ff6169;
}
.reason b { font-size: 14.5px; font-weight: 650; }
.reason p { font-size: 12.8px; line-height: 1.55; }

@media (max-width: 1100px) {
  .trend__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reasons__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .trend__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .reasons__grid { grid-template-columns: 1fr; }
  .trend__head { align-items: flex-start; }
}

/* ---------- Landing: mocks de producto ---------- */
.trend__play {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  opacity: 0; transition: opacity 0.25s var(--ease);
  background: rgba(5, 5, 8, 0.18);
}
.trend__play svg {
  width: 48px; height: 48px; padding: 13px; border-radius: 999px;
  color: #fff; background: rgba(8, 8, 11, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}
.trend__card:hover .trend__play { opacity: 1; }

.feature__float { left: auto; right: 18px; top: 18px; bottom: auto; }
.feature__mock {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  width: min(340px, 76%); padding: 13px;
  display: grid; gap: 10px;
  border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(10, 10, 14, 0.84);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px) saturate(130%);
}
.mock__head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint);
}
.mock__pill {
  padding: 2px 7px; border-radius: 99px; letter-spacing: 0.04em;
  background: rgba(229, 9, 20, 0.16); color: #ff8b91; font-size: 9.5px;
}
.mock__row { display: flex; align-items: center; gap: 10px; }
.mock__row > img { width: 30px; height: 44px; border-radius: 5px; object-fit: cover; flex: 0 0 auto; }
.mock__body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.mock__body b { font-size: 11.5px; font-weight: 600; color: #f1f1f6; }
.mock__body span { font-size: 9.5px; color: var(--text-faint); }
.mock__bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.mock__bar i { display: block; height: 100%; border-radius: 3px; background: var(--grad-brand); }
.mock__ok { color: #3ddc97; display: grid; place-items: center; }
.mock__pause { color: var(--text-faint); display: grid; place-items: center; }

.feature__mock--profiles { width: min(310px, 72%); }
.mock__profiles { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0 4px; }
.mock__profile { display: grid; justify-items: center; gap: 5px; }
.mock__profile b { font-size: 11px; font-weight: 600; }
.mock__profile small { font-size: 9.5px; color: var(--text-faint); }
.mock__avatar {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 750; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.mock__avatar--violet { background: linear-gradient(135deg, #7b2ff7, #2b1055); }
.mock__avatar--sky { background: linear-gradient(135deg, #0ea5e9, #0a2540); }
.mock__avatar--mint { background: linear-gradient(135deg, #10b981, #062e26); }

.feature__mock--player { width: min(325px, 74%); gap: 9px; }
.mock__badges { display: flex; gap: 6px; }
.mock__badge {
  padding: 2px 7px; border-radius: 5px;
  font-size: 9px; font-weight: 750; letter-spacing: 0.08em;
  color: #e9e9f2; background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.mock__player-line { display: flex; align-items: center; gap: 9px; }
.mock__bar--lg { flex: 1; height: 4px; }
.mock__ctrl { display: grid; place-items: center; color: #fff; }
.mock__time { font-size: 10px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.mock__hint { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--text-faint); }

@media (max-width: 620px) {
  .nav--landing { gap: 10px; padding: 0 16px; }
  .nav--landing .logo { font-size: 17px; }
  .nav--landing .logo__mark { width: 26px; height: 26px; font-size: 14px; }
  .nav--landing .nav__tools { gap: 6px; }
  .nav--landing .nav__tools .btn--ghost { display: none; }
  .nav--landing .nav__tools .btn { padding: 8px 14px; font-size: 13px; }
  .nav--landing.is-open .nav__links {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 14px 16px 20px; background: rgba(8, 8, 11, 0.97);
    border-bottom: 1px solid var(--line); backdrop-filter: blur(20px);
  }
}

#features, #planes, #faq, #tendencias, [id="plan"] { scroll-margin-top: calc(var(--nav-h) + 16px); }
