/* ============================================================
   TOUCH — Design System v1
   Cinematic black. Touch gold. 2027 glass + motion language.
   Accessibility: AA+ contrast, visible focus, reduced-motion safe.
   ============================================================ */

:root {
  --bg: #050505;
  --surface: #0b0b0b;
  --surface-2: #141711;
  --surface-3: #1d2018;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4efe4;
  --text-dim: #d1cec7;
  --text-faint: #a29e94;
  --gold: #e5ad2e;
  --gold-2: #f6da7a;
  --gold-deep: #9a6b18;
  --gold-grad: linear-gradient(155deg, #fff1bd 0%, #f5d99c 19%, #e4b566 46%, #bc883c 75%, #eac880 100%);
  --ink-on-gold: #171006;
  --danger: #ff6b5e;
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Sora", "Avenir Next", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ---------- Accessibility primitives ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--ink-on-gold);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

/* ---------- Wordmark ---------- */

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none !important;
  white-space: nowrap;
}
.wordmark--hero { font-size: 44px; }
.wordmark-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.42em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 48px;
  background: rgba(5, 6, 7, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }

.nav-right { display: flex; align-items: center; gap: 16px; }

.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.profile-chip:hover { border-color: var(--gold-deep); text-decoration: none; }

.avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--gold-grad);
  color: var(--ink-on-gold);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 15px;
  flex: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold-grad);
  color: var(--ink-on-gold);
  box-shadow: 0 8px 28px rgba(229, 173, 46, 0.28);
}
.btn-gold:hover { box-shadow: 0 10px 34px rgba(229, 173, 46, 0.4); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-lg { padding: 17px 36px; font-size: 18px; border-radius: var(--radius); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Hero (welcome) ---------- */

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 20%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(5,6,7,0.25) 0%, rgba(5,6,7,0.75) 75%),
    linear-gradient(to bottom, rgba(5,6,7,0.55) 0%, rgba(5,6,7,0.25) 35%, var(--bg) 96%);
}

.hero-inner { max-width: 820px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid rgba(229, 173, 46, 0.45);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 28px;
  background: rgba(5, 6, 7, 0.45);
}

.hero h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 800;
  margin-bottom: 18px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.hero-sub {
  font-size: clamp(18px, 2vw, 23px);
  color: var(--text);
  margin: 0 0 10px;
}
.hero-note { font-size: 16px; color: var(--text-dim); margin: 0 0 36px; }

/* Email capture */

.email-capture {
  display: flex;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.email-capture label { flex-basis: 100%; }
.email-capture input[type="email"] {
  flex: 1 1 320px;
  height: 60px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 12, 14, 0.7);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 17px;
  font-family: var(--font-body);
}
.email-capture input::placeholder { color: var(--text-faint); }
.email-capture input:focus-visible { outline-offset: 0; }

/* ---------- Sections ---------- */

.section { padding: 72px 48px; max-width: 1360px; margin: 0 auto; }
.section-title {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  margin-bottom: 28px;
}
.section-title .accent { color: var(--gold); }

.divider {
  height: 8px;
  border: 0;
  margin: 0;
  background: linear-gradient(to right, transparent, rgba(229, 173, 46, 0.35), transparent);
  opacity: 0.5;
}

/* ---------- Content rows & cards ---------- */

.row-wrap { position: relative; }

.row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 22px;
  scrollbar-width: none;
}
.row::-webkit-scrollbar { display: none; }

.card {
  position: relative;
  flex: 0 0 300px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  text-decoration: none !important;
  color: var(--text);
  display: block;
}
a.card:hover, a.card:focus-visible {
  transform: translateY(-5px) scale(1.025);
  border-color: rgba(229, 173, 46, 0.6);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.card-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: var(--surface-3);
}

.card-body { padding: 14px 16px 16px; }
.card-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.card-title { font-size: 17px; font-weight: 700; margin: 0 0 2px; font-family: var(--font-display); }
.card-meta { font-size: 13px; color: var(--text-dim); margin: 0; }

.badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold-grad);
  color: var(--ink-on-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.badge--soon { background: var(--surface-3); color: var(--text-dim); border: 1px solid var(--line); }

/* Coming-soon placeholder art */
.soon-media {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(229, 173, 46, 0.14), transparent 55%),
    var(--surface-3);
  color: var(--text-faint);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.3em;
  font-size: 13px;
  text-transform: uppercase;
}

/* Ranked (Top 10) cards */
.ranked { display: flex; align-items: flex-end; flex: 0 0 auto; scroll-snap-align: start; }
.rank-num {
  font-family: var(--font-display);
  font-size: 150px;
  font-weight: 800;
  line-height: 0.78;
  color: transparent;
  -webkit-text-stroke: 3px var(--gold-deep);
  margin-right: -22px;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.ranked .card { flex: 0 0 280px; }

/* Row arrows */
.row-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 12, 14, 0.8);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.row-arrow:hover { border-color: var(--gold); color: var(--gold-2); }
.row-arrow--prev { left: -14px; }
.row-arrow--next { right: -14px; }

/* ---------- Feature cards ("More reasons") ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature {
  position: relative;
  border-radius: var(--radius);
  padding: 28px 26px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  overflow: hidden;
}
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% -10%, rgba(229, 173, 46, 0.16), transparent 60%);
  pointer-events: none;
}
.feature h3 { font-size: 19px; margin: 14px 0 8px; }
.feature p { font-size: 14.5px; color: var(--text-dim); margin: 0; }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(229, 173, 46, 0.12);
  color: var(--gold-2);
}

/* ---------- FAQ ---------- */

.faq { max-width: 860px; margin: 0 auto; }
.faq details {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-display);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 26px;
  color: var(--gold);
  flex: none;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 24px 22px; color: var(--text-dim); font-size: 16px; }

/* ---------- Auth pages ---------- */

.auth-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 24px) 24px 60px;
  position: relative;
  isolation: isolate;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(12, 14, 17, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.auth-card h1 { font-size: 30px; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--text-dim); font-size: 15px; margin: 0 0 30px; }

.auth-providers { display: grid; gap: 12px; }

.btn-provider {
  width: 100%;
  height: 54px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 0.2s, transform 0.2s var(--ease);
}
.btn-provider:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-provider svg { flex: none; }

.btn-google { background: #ffffff; color: #1f1f1f; }
.btn-apple { background: #ffffff; color: #000000; }
.btn-email { background: var(--gold-grad); color: var(--ink-on-gold); font-weight: 700; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 24px 0;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 7px;
  letter-spacing: 0.04em;
}
.field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-family: var(--font-body);
}
.field input:focus-visible { border-color: var(--gold); }

.form-error {
  color: var(--danger);
  font-size: 14px;
  min-height: 20px;
  margin: 4px 0 10px;
}

.auth-note {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-faint);
  text-align: center;
}

.auth-notice {
  background: rgba(229, 173, 46, 0.1);
  border: 1px solid rgba(229, 173, 46, 0.35);
  color: var(--gold-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ---------- Profiles ---------- */

.profiles-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.profiles-stage h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 44px; }

.profiles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-bottom: 48px;
}

.profile-tile {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 8px;
  border-radius: var(--radius);
}
.profile-tile .tile-avatar {
  width: 132px; height: 132px;
  border-radius: 22px;
  background: var(--gold-grad);
  color: var(--ink-on-gold);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.profile-tile:hover .tile-avatar,
.profile-tile:focus-visible .tile-avatar {
  transform: scale(1.06);
  box-shadow: 0 16px 44px rgba(229, 173, 46, 0.35);
}
.profile-tile:hover { color: var(--text); }

.profile-tile--add .tile-avatar {
  background: var(--surface-2);
  border: 2px dashed var(--text-faint);
  color: var(--text-dim);
  font-size: 44px;
  font-weight: 400;
}

/* ---------- Billboard (browse hero) ---------- */

.billboard {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) 48px 72px;
  isolation: isolate;
}
.billboard-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 25%; }
.billboard-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(5,6,7,0.92) 0%, rgba(5,6,7,0.45) 55%, rgba(5,6,7,0.15) 100%),
    linear-gradient(to top, var(--bg) 2%, transparent 45%);
}
.billboard-inner { max-width: 640px; }
.billboard-logo { max-width: 340px; margin-bottom: 20px; }
.billboard h1 { font-size: clamp(36px, 4.4vw, 58px); }
.billboard-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px;
  flex-wrap: wrap;
}
.billboard-desc { font-size: 18px; color: var(--text); max-width: 560px; margin: 0 0 30px; text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
.billboard-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.pill {
  border: 1px solid rgba(229, 173, 46, 0.5);
  color: var(--gold-2);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Watch page ---------- */

.watch-stage { padding: calc(var(--nav-h) + 28px) 48px 80px; max-width: 1280px; margin: 0 auto; }

.player-shell {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(229, 173, 46, 0.08);
  aspect-ratio: 16 / 9;
}
.player-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.watch-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.back-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
  text-decoration: none !important;
}
.back-btn:hover { border-color: var(--gold); color: var(--gold-2); }

.watch-meta-block { margin-top: 30px; max-width: 820px; }
.watch-meta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}
.watch-desc { font-size: 17px; color: var(--text); }

.transcript {
  margin-top: 28px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.transcript summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  font-family: var(--font-display);
  list-style: none;
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript-body {
  padding: 0 20px 20px;
  color: var(--text-dim);
  font-size: 15.5px;
  white-space: pre-line;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 48px;
  color: var(--text-faint);
  font-size: 14px;
  text-align: center;
}
.footer .tagline {
  font-family: var(--font-display);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer a { color: var(--text-dim); }

/* ---------- Toast (aria-live feedback) ---------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-3);
  border: 1px solid rgba(229, 173, 46, 0.5);
  color: var(--text);
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  z-index: 300;
  max-width: min(90vw, 560px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- App nav (Netflix TV-style: avatar / center pills / logo) ---------- */

.nav--app {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav--app .nav-left { display: flex; align-items: center; gap: 8px; }
.nav--app .nav-logo { justify-self: end; }

.avatar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text-dim);
  padding: 4px;
  border-radius: 12px;
  text-decoration: none !important;
}
.avatar-btn:hover { color: var(--text); }
.avatar-btn .chev { font-size: 11px; }

.pill-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.pill-nav a, .pill-nav button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 0;
  background: none;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}
.pill-nav a:hover, .pill-nav button:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.pill-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
}
.pill-nav .pill-icon { padding: 9px 13px; }

/* ---------- Billboard as inset rounded card ---------- */

.billboard--card {
  min-height: 74vh;
  margin: calc(var(--nav-h) + 20px) 28px 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 56px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.billboard--card .billboard-bg { border-radius: 26px; }
.billboard--card .billboard-scrim {
  background:
    linear-gradient(to right, rgba(5,6,7,0.88) 0%, rgba(5,6,7,0.40) 55%, rgba(5,6,7,0.10) 100%),
    linear-gradient(to top, rgba(5,6,7,0.85) 0%, transparent 50%);
}

.eyebrow-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 14px;
}
.eyebrow-brand .t-mark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-pill-white {
  background: #ffffff;
  color: #0a0a0a;
  border-radius: 999px;
}
.btn-pill-white:hover { box-shadow: 0 10px 30px rgba(255, 255, 255, 0.25); }

.btn-pill-glass {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  border-radius: 999px;
}
.btn-pill-glass:hover { background: rgba(255, 255, 255, 0.26); }

.bb-chip {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(10, 12, 14, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
}
.bb-chip .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* ---------- Player unmute chip ---------- */

.unmute-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(10, 12, 14, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 173, 46, 0.55);
  color: var(--text);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
}
.unmute-btn:hover { border-color: var(--gold-2); color: var(--gold-2); }

/* ---------- Search overlay ---------- */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(5, 6, 7, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 24px 40px;
}
.search-overlay[hidden] { display: none; }
.search-box {
  width: 100%;
  max-width: 680px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.search-box input {
  flex: 1;
  height: 62px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: var(--surface-2);
  color: var(--text);
  font-size: 19px;
  font-family: var(--font-body);
}
.search-close {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}
.search-close:hover { border-color: var(--gold); color: var(--gold-2); }
.search-results {
  width: 100%;
  max-width: 680px;
  margin-top: 26px;
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
}
.search-hit {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--text);
  text-decoration: none !important;
}
.search-hit:hover { border-color: var(--gold); }
.search-hit img { width: 150px; border-radius: 8px; aspect-ratio: 16/9; object-fit: cover; }
.search-empty { color: var(--text-dim); margin-top: 26px; font-size: 16px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .pill-nav a:not([aria-current]), .pill-nav button { display: none; }
  .billboard--card { margin: calc(var(--nav-h) + 12px) 12px 0; padding: 24px; min-height: 64vh; }
  .bb-chip { right: 14px; bottom: 14px; }
  .section { padding: 56px 20px; }
  .billboard { padding: calc(var(--nav-h) + 24px) 20px 56px; }
  .watch-stage { padding: calc(var(--nav-h) + 16px) 16px 60px; }
  .rank-num { font-size: 96px; -webkit-text-stroke-width: 2px; }
  .card { flex-basis: 240px; }
  .auth-card { padding: 34px 24px; }
}


/* ============================================================
   PHONE LAYOUT (Netflix-style). Desktop is unchanged.
   ============================================================ */
@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  body { font-size: 15px; -webkit-text-size-adjust: 100%; }

  /* top bar: slim, nothing wraps */
  .nav { padding: 0 14px; gap: 10px; height: var(--nav-h); padding-top: env(safe-area-inset-top); }
  .wordmark { font-size: 20px; letter-spacing: 0.26em; }
  .nav .wordmark[style] { font-size: 18px !important; }
  .nav-right { gap: 8px; }
  .nav .btn-sm { padding: 8px 14px; font-size: 13px; white-space: nowrap; border-radius: 999px; }

  /* welcome hero: full screen, no dead space */
  .hero { min-height: 86svh; align-items: flex-end; padding: calc(var(--nav-h) + 24px) 18px 44px; }
  .hero-inner { width: 100%; }
  .hero-eyebrow { font-size: 10.5px; letter-spacing: 0.2em; padding: 8px 14px; margin-bottom: 18px; }
  .hero h1 { font-size: clamp(30px, 9vw, 40px); line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 14px; }
  .hero-sub { font-size: 17px; margin-bottom: 6px; }
  .hero-note { font-size: 14px; margin-bottom: 22px; }
  .hero .btn-lg { width: 100%; max-width: 360px; padding: 15px 20px; font-size: 17px; }

  /* sections and rows: swipeable, two and a half cards on screen */
  .section { padding: 34px 0 10px; }
  .section-title { font-size: 19px; margin: 0 16px 10px; }
  .row { gap: 10px; padding: 4px 16px 16px; scroll-padding-left: 16px; }
  .row-arrow { display: none !important; }
  .card { flex-basis: 42vw; border-radius: 8px; }
  .card-body { padding: 9px 10px 11px; }
  .card-kicker { font-size: 10.5px; }
  .card-title { font-size: 14px; }
  .card-meta { font-size: 12px; }
  .faq details { margin: 0 16px 8px; }
  .faq summary { font-size: 16px; padding: 16px 18px; }

  /* browse billboard: poster card, buttons side by side, tag never covers them */
  .billboard--card { margin: calc(var(--nav-h) + 10px) 12px 0; padding: 18px 18px 20px; min-height: 68svh;
    display: flex; flex-direction: column; justify-content: flex-end; border-radius: 18px; }
  .billboard--card .billboard-bg { border-radius: 18px; background-position: 62% 20%; }
  .billboard-inner { max-width: 100%; text-align: center; }
  .eyebrow-brand { justify-content: center; }
  .billboard-logo { max-width: 64%; margin: 0 auto 10px; display: block; }
  .billboard-meta { justify-content: center; font-size: 12.5px; gap: 6px; margin-bottom: 8px; }
  .billboard-desc { font-size: 14px; line-height: 1.45; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .billboard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .billboard-actions .btn-lg { padding: 12px 10px; font-size: 16px; justify-content: center; width: 100%; }
  .bb-chip { top: 14px; left: 14px; right: auto !important; bottom: auto !important; font-size: 11.5px; padding: 6px 12px; }

  /* bottom tab bar (app pages): Home, Series, Films, Music, My Touch, Search */
  body:has(.pill-nav) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .nav--app nav { position: static; }
  .pill-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; margin: 0; border-radius: 0;
    display: flex; justify-content: space-around; align-items: center; gap: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(5, 5, 5, 0.94); backdrop-filter: blur(16px); border: 0; border-top: 1px solid var(--line); }
  .pill-nav li { flex: 1; display: flex; justify-content: center; }
  .pill-nav a, .pill-nav button, .pill-nav a:not([aria-current]), .pill-nav button.pill-icon { display: flex !important;
    flex-direction: column; align-items: center; justify-content: center; min-height: 48px; min-width: 48px;
    padding: 6px 4px; font-size: 11px; font-weight: 600; color: var(--text-faint); background: none !important; border-radius: 10px; }
  .pill-nav a[aria-current="page"] { color: var(--gold-2); }
  .pill-nav li:has(#open-search) { order: 9; }   /* search goes last, like Netflix */

  /* sign up / sign in */
  .auth-stage { padding: calc(var(--nav-h) + 18px) 14px 40px; align-items: flex-start; }
  .auth-card { width: 100%; max-width: 440px; padding: 26px 18px; border-radius: 16px; }
  .auth-card h1 { font-size: 26px; }
  .auth-card .auth-sub { margin-bottom: 20px; }
  .btn-provider { min-height: 50px; font-size: 16px; }

  /* who's watching */
  .profiles-stage h1 { margin-bottom: 24px; }
  .profiles-grid { gap: 18px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; }
  .profile-tile .tile-avatar { width: 104px; height: 104px; }

  /* player */
  .watch-stage { padding: calc(var(--nav-h) + 8px) 0 50px; }
  .player-shell { border-radius: 0; }
  .watch-meta-block { padding: 0 16px; }

  .footer { padding: 32px 16px calc(32px + env(safe-area-inset-bottom)); font-size: 13px; }
  .legal { padding: calc(var(--nav-h) + 28px) 18px 48px; }
}

/* ---------- Phone rows: Netflix-style tiles (fixes squeezed cards) ---------- */
@media (max-width: 760px) {
  .row { list-style: none; margin: 0; }
  .row > li, .ranked { flex: 0 0 auto; scroll-snap-align: start; list-style: none; }
  .row .card, .ranked .card { display: block; flex: none; width: 44vw; max-width: 210px; min-width: 150px;
    background: transparent; border: 0; box-shadow: none; border-radius: 6px; overflow: visible; }
  .row .card .card-media, .row .card .soon-media { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto;
    object-fit: cover; border-radius: 6px; }
  .row .card .soon-media { display: flex; align-items: center; justify-content: center; font-size: 16px; }
  .row .badge { top: 6px; left: 6px; right: auto; max-width: calc(100% - 12px); padding: 3px 7px; font-size: 9px;
    line-height: 1.2; letter-spacing: 0.1em; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .row .card-body { padding: 7px 2px 0; background: none; }
  .row .card-kicker { display: none; }
  .row .card-title { font-size: 13.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
  .row .card-meta { font-size: 11.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 0; }
  .ranked .rank-num { font-size: 72px; margin-right: -10px; }
  .ranked .card { width: 36vw; min-width: 130px; }
  .section { padding-top: 26px; }
  .section-title { font-size: 18px; margin-bottom: 8px; }

  /* top bar must not trap the bottom tab bar */
  .nav, .nav--app { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(5, 5, 5, 0.97); }
  .nav--app { justify-content: space-between; }
  .nav--app > nav { position: static; }
}
@media (max-width: 760px) {
  .section .row { padding: 2px 16px 12px !important; scroll-padding-left: 16px; }
  .row .card .card-media, .row .card .soon-media { margin: 0 !important; }
  .row .card-body { padding: 6px 2px 0 !important; min-height: 0; }
  .section { padding-top: 18px !important; padding-bottom: 4px !important; }
  .section-title { margin: 0 16px 8px !important; }
}

/* ---------- Phone featured show: whole picture visible, details below ---------- */
@media (max-width: 760px) {
  .billboard--card { min-height: 0; justify-content: flex-start;
    padding: calc((100vw - 24px) * 0.5625 + 10px) 16px 18px; }
  .billboard--card .billboard-bg { background-size: 100% auto; background-position: center top; background-repeat: no-repeat; }
  .billboard--card .billboard-scrim { border-radius: 18px;
    background: linear-gradient(to bottom, rgba(5,5,5,0) 0, rgba(5,5,5,0) calc((100vw - 24px) * 0.40),
      rgba(5,5,5,0.88) calc((100vw - 24px) * 0.5625), #050505 calc((100vw - 24px) * 0.5625 + 40px)); }
  .billboard-logo { max-width: 52%; margin: 0 auto 8px; }
  .eyebrow-brand { margin-bottom: 8px; }
  .bb-chip { position: static !important; align-self: center; margin: 14px auto 0; }
}
