/* ==========================================================================
   Couchgem design system
   Quiet dark surfaces so posters carry the color; one orange accent for actions.
   ========================================================================== */
:root {
  --bg: #0b0c10;
  --bg-raised: #111318;
  --panel: #15181e;
  --panel-2: #1c2028;
  --panel-3: #252a34;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f3f5;
  --muted: #9aa0ab;
  --faint: #8e94a0; /* passes WCAG AA (4.5:1) on every background */
  --accent: #ff8a3d;
  --accent-ink: #1d0f04;
  --accent-soft: rgba(255, 138, 61, 0.14);
  --good: #34d17a;
  --gold: #ffc940;
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 18px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 64px;
  --display: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --poster: 128px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  /* The device's own font: San Francisco on Apple devices, Segoe UI on Windows, Roboto on Android. */
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Headings use the display font (Poppins); everything else uses the device font. */
/* Headings in Poppins: popular, clean, and a little rounded. */
h1, h2, h3, .brand, .feature h2, .detail h1, .peek-title, .duel-title, .taste-persona { font-family: var(--display); letter-spacing: -0.02em; }
h2 { margin: 28px 0 6px; font-size: 26px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.2; }
h3 { margin: 22px 0 6px; font-size: 19px; font-weight: 600; letter-spacing: 0; line-height: 1.25; }
.sub { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 12px; }
.note { font-size: 12.5px; color: var(--muted); }
.empty { color: var(--muted); padding: 24px 0; }
.loading { color: var(--muted); padding: 20px 0; }
code { background: var(--panel-2); padding: 1px 6px; border-radius: 5px; font-size: 0.9em; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 22px;
  height: var(--header-h); padding: 0 28px;
  background: rgba(11, 12, 16, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -0.01em; white-space: nowrap; }
.brand span { color: var(--accent); }
#tabs { display: flex; gap: 2px; }
#tabs button {
  background: none; border: 0; padding: 8px 13px; border-radius: 999px;
  color: var(--muted); font-weight: 550; font-size: 14px; white-space: nowrap; transition: color 0.15s, background 0.15s;
}
#tabs button:hover { color: var(--text); }
#tabs button.active { color: var(--text); background: var(--panel-2); }
.search {
  margin-left: auto; position: relative; flex: 0 1 320px; min-width: 140px;
}
.search svg { z-index: 1; position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: var(--faint); pointer-events: none; }
.search input[type=search] {
  width: 100%; height: 38px; padding: 0 14px 0 36px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); font: inherit; font-size: 14px; transition: border-color 0.15s, background 0.15s;
}
.search input[type=search]:focus { outline: none; border-color: var(--line-strong); background: var(--panel-2); }
.search input::placeholder { color: var(--faint); }
.acct {
  flex: none; background: var(--panel-2); border: 1px solid var(--line);
  height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.acct.avatar { width: 38px; padding: 0; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 800; }

main { padding: 8px 28px 64px; max-width: 1440px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { background: var(--panel-3); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #ff9a56; }
.btn.on { border-color: var(--good); color: var(--good); }
.btn.glass { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.18); backdrop-filter: blur(10px); }
.btn.glass:hover { background: rgba(255, 255, 255, 0.2); }
.link { background: none; border: 0; color: var(--muted); font-size: 13px; font-weight: 600; padding: 0; white-space: nowrap; }
.link:hover { color: var(--text); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
.more { margin: 28px auto 0; display: flex; }

/* ---------- Browse bar (Discover filters) ---------- */
.browsebar { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 8px; }
.browse-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
/* Big text switch: Movies | TV shows */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.seg button {
  border: 0; background: none; color: var(--muted); height: 34px; padding: 0 18px;
  border-radius: 999px; font-weight: 650; font-size: 14px; transition: background 0.2s var(--ease), color 0.2s;
}
.seg button.on { background: var(--text); color: var(--bg); }
.seg button:not(.on):hover { color: var(--text); }
/* Dropdown pills: Sort ▾  Genre ▾ */
.selects { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-select {
  position: relative; display: inline-flex; align-items: center; height: 38px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; transition: border-color 0.15s;
}
.pill-select:hover { border-color: var(--line-strong); }
.pill-select.set { border-color: var(--accent); background: var(--accent-soft); }
.pill-select span { padding-left: 14px; font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.pill-select select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; height: 100%; padding: 0 34px 0 8px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%239097a3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px;
}
.pill-select select:focus { outline: none; }
.pill-select select option { background: var(--panel); color: var(--text); }
/* Your services as one-tap filters */
.svcbar { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.svcbar::-webkit-scrollbar { display: none; }
.svc-pill {
  flex: none; height: 40px; padding: 0 16px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); transition: all 0.15s;
}
.svc-logo {
  flex: none; width: 40px; height: 40px; padding: 0; border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; background: var(--panel); opacity: 0.55; transition: opacity 0.15s, transform 0.15s, border-color 0.15s;
}
.svc-logo img { width: 100%; height: 100%; object-fit: cover; }
.svc-logo:hover { opacity: 0.9; transform: translateY(-1px); }
.svc-pill.on { color: var(--text); border-color: var(--line-strong); background: var(--panel-2); }
.svc-logo.on { opacity: 1; border-color: var(--accent); }
.active-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; border: 0;
}

/* Older chip style (Charts, Movies/TV elsewhere) */
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); transition: all 0.15s;
}
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
input[type=search], input[type=text], input[type=email] {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  height: 40px; padding: 0 14px; border-radius: 10px; font: inherit; font-size: 14px;
}
input:focus { outline: none; border-color: var(--line-strong); }

/* ---------- Featured banner ---------- */
.feature {
  position: relative; overflow: hidden; margin: 18px 0 8px;
  height: clamp(320px, 52vh, 520px); border-radius: var(--radius-l);
  background: var(--panel) center 20% / cover no-repeat;
  box-shadow: var(--shadow); transition: background-image 0.4s;
}
.feature::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 12, 16, 0.95) 0%, rgba(11, 12, 16, 0.7) 38%, rgba(11, 12, 16, 0) 70%),
    linear-gradient(0deg, rgba(11, 12, 16, 0.85) 0%, rgba(11, 12, 16, 0) 45%);
}
.feature.ghost { animation: ghost 1.2s ease-in-out infinite alternate; }
.feature-body { position: absolute; left: 44px; bottom: 44px; max-width: min(560px, 80%); animation: rise 0.5s var(--ease); }
.feature-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.feature h2 { margin: 0; font-size: clamp(30px, 4.4vw, 52px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.02; }
.feature .meta { margin: 10px 0; color: #d4d7dd; }
.feature-plot { margin: 0; color: #c5c9d1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feature .actions { margin: 20px 0 0; }
.feature-dots { position: absolute; right: 28px; bottom: 28px; display: flex; gap: 6px; }
.feature-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.35); transition: width 0.3s var(--ease), background 0.3s; }
.feature-dots button.on { width: 26px; background: var(--text); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* "More to explore": rows below this load only when you scroll to them. */
.more-head { margin: 40px 0 0; font-size: 22px; }
.more-sub { margin: 4px 0 0; }

/* ---------- Shelves (rows) ----------
   Each row is its own soft rounded card, with an icon chip in the heading. */
.shelf {
  margin-top: 18px; padding: 18px 20px 6px; border-radius: 24px;
  background: linear-gradient(180deg, var(--bg-raised), rgba(17, 19, 24, 0.35));
  border: 1px solid var(--line);
}
.shelf .sub { margin: 2px 0 0 44px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; }
.shelf .shelf-head { margin-top: 0; }
.shelf-head h3 { margin: 0; display: flex; align-items: center; font-size: 21px; }
.shelf-icon {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px;
  border-radius: 11px; background: var(--panel-2); font-size: 17px; line-height: 1;
}
.shelf-tools .link { background: var(--panel-2); border-radius: 999px; padding: 6px 13px; color: var(--text); }
.shelf-tools .link:hover { background: var(--panel-3); }
.shelf-tools { display: flex; align-items: center; gap: 10px; }
.arrow {
  width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  display: grid; place-items: center; color: var(--muted); font-size: 16px; line-height: 1; padding: 0;
}
.arrow:hover { color: var(--text); border-color: var(--line-strong); }
/* The hovered poster grows on its own and floats over its neighbours; nothing else moves.
   Extra room for the bigger poster is reserved in the row's padding. */
.rowscroll {
  display: flex; align-items: flex-start; gap: 14px;
  overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scrollbar-width: none;
  padding: 26px 20px 26px; margin: -12px -20px -14px;
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.rowscroll::-webkit-scrollbar { display: none; }
.rowscroll > .card {
  flex: 0 0 var(--poster); transition: transform 0.25s var(--ease);
}
.rowscroll > .card:hover { transform: scale(1.16); z-index: 3; }

/* ---------- Poster cards ---------- */
.grid { display: grid; gap: 22px 16px; grid-template-columns: repeat(auto-fill, minmax(var(--poster), 1fr)); margin-top: 8px; }
.card { position: relative; min-width: 0; background: none; border: 0; padding: 0; text-align: left; color: var(--text); text-decoration: none; }
a.card:hover { text-decoration: none; }
.pw { position: relative; }
.poster {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px;
  background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.card:hover .poster { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-strong); }
.poster.fake {
  display: flex; align-items: flex-end; padding: 10px; font-weight: 700; font-size: 14px;
  background: linear-gradient(160deg, var(--c1, #34405a), var(--c2, #1b1f29));
}
.grid .card { transition: transform 0.25s var(--ease); transform-origin: center top; }
.grid .card:hover { transform: scale(1.1); z-index: 3; }
/* One line each, "…" when too long, so every poster in a row lines up. */
.card .t, .card .y { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .t { margin-top: 9px; font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
.card .y { font-size: 12px; color: var(--faint); line-height: 1.45; min-height: 1.45em; }
.card .y.sc { display: flex; gap: 4px; margin-top: 5px; min-height: 0; }
.card .y.sc:empty { display: none; }
.card .sc span { height: 20px; font-size: 11px; padding-right: 6px; }
.card .sc .pill-mc { min-width: 22px; padding: 0 4px; }
.note-line { color: var(--accent); }
.badge {
  position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px 2px 6px; border-radius: 6px;
  background: rgba(11, 12, 16, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.badge i { font-style: normal; color: var(--gold); font-size: 10px; }
/* IMDb rating on posters */
.badge.imdb-b { gap: 4px; padding: 3px 7px 3px 6px; font-size: 12px; animation: fade 0.3s ease; }
.badge.imdb-b i { color: var(--gold); font-size: 11px; }
.star-rating { color: var(--gold); font-weight: 700; }
.badge.free { background: var(--good); color: #062; }
.rank {
  position: absolute; top: -8px; left: -8px; z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  font-weight: 800; font-size: 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.seen {
  position: absolute; right: 6px; bottom: 6px; background: var(--good); color: #062;
  border-radius: 6px; padding: 2px 6px; font-size: 11px; font-weight: 800;
}
/* Your services that carry this title, top-right of the poster. */
.plogos { position: absolute; top: 6px; right: 6px; display: flex; gap: 3px; animation: fade 0.3s ease; }
.plogos img { width: 22px; height: 22px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.card.ghost .poster { animation: ghost 1.2s ease-in-out infinite alternate; }
@keyframes ghost { from { opacity: 0.35; } to { opacity: 0.8; } }

/* ---------- Hover preview ---------- */
.peek {
  position: fixed; z-index: 40; width: 320px; pointer-events: none; overflow: hidden;
  background: rgba(21, 24, 30, 0.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow);
  animation: rise 0.14s var(--ease);
}
.peek-art { height: 150px; background: var(--panel-2) center / cover; position: relative; }
.peek-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 24, 30, 0) 40%, rgba(21, 24, 30, 0.96)); }
.peek-body { position: relative; padding: 0 16px 16px; }
.peek-art + .peek-body { margin-top: -26px; }
.peek-body:first-child { padding-top: 14px; }
.peek-title { margin: 0; font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.15; }
.peek-meta { margin: 3px 0 10px; color: var(--muted); font-size: 12.5px; }
.peek-plot { margin: 10px 0 0; color: #c9ccd3; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.peek-label { margin: 14px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.peek-on { display: flex; gap: 6px; flex-wrap: wrap; }
.peek-on span { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px 0 4px; border-radius: 8px; background: var(--panel-3); font-size: 12px; font-weight: 600; }
.peek-on img { width: 20px; height: 20px; border-radius: 5px; }
.peek-off { margin: 12px 0 0; color: var(--faint); font-size: 12px; }

/* Rating pills (hover preview + under posters) */
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills:empty { display: none; }
.pill-imdb, .pill-rt, .pill-mc, .pill-tmdb {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; border-radius: 6px;
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pill-imdb { padding: 0 8px 0 3px; background: rgba(245, 197, 24, 0.12); color: #f5c518; }
.pill-imdb i { font-style: normal; background: #f5c518; color: #000; font-weight: 900; font-size: 10px; letter-spacing: -0.03em; padding: 2px 4px; border-radius: 4px; }
.pill-rt { padding: 0 8px 0 4px; background: rgba(250, 50, 10, 0.12); color: #ff7358; }
.pill-rt svg { width: 16px; height: 16px; }
.pill-mc { justify-content: center; min-width: 26px; padding: 0 5px; color: #03301b; background: var(--panel-3); }
.pill-mc.good { background: #00ce7a; }
.pill-mc.mid { background: #ffbd3f; color: #3a2a00; }
.pill-mc.low { background: #ff6874; color: #3b0007; }
.pill-tmdb { padding: 0 8px; background: var(--panel-3); color: var(--muted); }

/* ---------- Title detail ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50; background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 16px;
  animation: fade 0.2s ease;
}
.modal-card {
  position: relative; width: 100%; max-width: 900px; overflow: hidden;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); animation: rise 0.3s var(--ease);
}
.close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(11, 12, 16, 0.6); backdrop-filter: blur(8px); font-size: 20px; line-height: 1;
}
.close:hover { background: rgba(11, 12, 16, 0.85); }
.hero { height: 340px; background: var(--panel) center 25% / cover; position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 19, 24, 0) 30%, var(--bg-raised) 100%); }
.detail { position: relative; padding: 0 32px 32px; margin-top: -120px; }
.detail-head { display: flex; gap: 22px; align-items: flex-end; }
.detail-poster { width: 140px; flex: none; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow), 0 0 0 1px var(--line-strong); }
.detail h1 { margin: 0; font-size: clamp(26px, 3.6vw, 38px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; }
.meta { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.detail h3 { margin-top: 26px; }
.detail > p { color: #cfd2d8; line-height: 1.6; max-width: 68ch; }
.scores { margin: 24px 0 4px; }
.score {
  min-width: 100px; padding: 10px 14px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
a.score:hover { border-color: var(--line-strong); text-decoration: none; }
.score b { display: block; font-size: 20px; font-weight: 750; letter-spacing: -0.02em; }
.score span { font-size: 12px; color: var(--muted); }
.score.ww { background: var(--accent-soft); border-color: rgba(255, 138, 61, 0.4); }

/* Score tiles on the title page: number on top, full name, then what it measures. */
.scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 10px; }
.stile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 14px 13px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  transition: transform 0.15s var(--ease), border-color 0.15s;
}
a.stile[href]:hover { transform: translateY(-2px); border-color: var(--line-strong); text-decoration: none; }
.stile.ghost { animation: ghost 1.2s ease-in-out infinite alternate; }
.shead { display: flex; align-items: center; gap: 10px; min-height: 46px; margin-bottom: 6px; }
.sval { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.sval small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 1px; }
.sval.sm { font-size: 15px; font-weight: 700; color: var(--muted); }
.sname { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.swhat { font-size: 12px; line-height: 1.4; color: var(--muted); }
.stile.ww { --ring: var(--accent); background: linear-gradient(135deg, rgba(255, 138, 61, 0.14), var(--panel) 65%); border-color: rgba(255, 138, 61, 0.28); }
.stile.ww.good { --ring: var(--good); }
.stile.ww.mid { --ring: var(--gold); }
.stile.ww.low { --ring: #ff6874; }
.ring {
  --p: 0; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--panel) 80%, transparent 82% 100%), conic-gradient(var(--ring) calc(var(--p) * 1%), var(--panel-3) 0);
}
.ring b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stile.imdb { background: linear-gradient(135deg, rgba(245, 197, 24, 0.1), var(--panel) 65%); }
.imdb-logo { flex: none; background: #f5c518; color: #000; font-weight: 900; font-size: 14px; letter-spacing: -0.05em; padding: 6px 6px 5px; border-radius: 6px; line-height: 1; }
.stile.rt { background: linear-gradient(135deg, rgba(250, 50, 10, 0.1), var(--panel) 65%); }
.rt-icon svg { width: 40px; height: 40px; }
.mc-box { flex: none; width: 46px; height: 46px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 20px; background: var(--panel-3); color: var(--muted); font-variant-numeric: tabular-nums; }
.mc-box.good { background: #00ce7a; color: #03301b; }
.mc-box.mid { background: #ffbd3f; color: #3a2a00; }
.mc-box.low { background: #ff6874; color: #3b0007; }
.lbxd-logo svg { width: 46px; height: 18px; }
.verdict { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.verdict:empty { display: none; }
.watch-btn.ghost { width: 210px; height: 58px; animation: ghost 1.2s ease-in-out infinite alternate; }
.score.ww.good b { color: var(--good); }
.score.ww.mid b { color: var(--gold); }
/* "Watch on …" buttons */
.watch-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; }
.watch-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 14px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font-weight: 650; font-size: 14px;
  transition: transform 0.15s var(--ease), border-color 0.15s, background 0.15s;
}
.watch-btn:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--line-strong); }
.watch-btn img { width: 40px; height: 40px; border-radius: 10px; }
.watch-btn small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.watch-btn.direct { background: var(--text); color: var(--bg); border-color: var(--text); }
.watch-btn.direct small { color: #5a606b; }
.providers { display: flex; gap: 8px; flex-wrap: wrap; }
.prov {
  display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 13px; text-decoration: none;
}
.prov:hover { text-decoration: none; border-color: var(--line-strong); }
.prov img { width: 26px; height: 26px; border-radius: 7px; }
.prov.yours { border-color: var(--good); }
.rate-box {
  display: inline-flex; align-items: center; gap: 10px; height: 40px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px 0 16px;
}
.rate-label { font-size: 13.5px; font-weight: 600; }
.stars { display: inline-flex; }
.stars button { background: none; border: 0; font-size: 24px; line-height: 1; color: #4a505c; padding: 0 2px; transition: color 0.1s, transform 0.1s; }
.stars:hover button { color: var(--gold); }
.stars button:hover ~ button { color: #4a505c; }
.stars button:hover { transform: scale(1.15); }
.stars button.lit { color: var(--gold); }

/* ---------- Panels, settings, import ---------- */
.card-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px 22px; margin: 16px 0; }
.card-box h3 { margin-top: 0; }
.card-box label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.card-box input[type=email] { flex: 1; min-width: 220px; max-width: 360px; }
.services { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.svc {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 12px; text-align: left; font-size: 14px; font-weight: 550;
  background: var(--panel-2); border: 1px solid var(--line); transition: border-color 0.15s, background 0.15s;
}
.svc:hover { border-color: var(--line-strong); }
.svc img, .svc .dot { width: 34px; height: 34px; border-radius: 9px; background: var(--panel-3); flex: none; }
.svc.on { border-color: var(--accent); background: var(--accent-soft); }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 26px 16px; background: var(--bg-raised);
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.busy { opacity: 0.6; pointer-events: none; }
.howto { margin-top: 12px; font-size: 14px; }
.howto summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.howto p { margin: 8px 0; color: #cfd2d8; }
.taste .bars { display: flex; flex-direction: column; gap: 8px; }
.taste-persona { margin: 0 0 2px; font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--accent); }
.bar { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 12px; font-size: 14px; }
.bar i { display: block; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #ffb27a); }

/* Quick taste */
.quick { display: flex; flex-direction: column; gap: 8px; transition: opacity 0.2s; }
.qbtns { display: flex; gap: 4px; }
.qbtns button { flex: 1; height: 32px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.qbtns button:hover { border-color: var(--line-strong); }
.quick.done { opacity: 0.35; }
.quick.done.like { opacity: 1; }
.quick.done.like .qbtns [data-quick=like], .quick.done.dislike .qbtns [data-quick=dislike] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }


/* ---------- Taste quiz ---------- */
.quiz { max-width: 860px; margin: 28px auto 10px; text-align: center; animation: rise 0.35s var(--ease); }
.quiz h1 { margin: 8px 0 6px; font-size: clamp(30px, 5vw, 50px); font-weight: 600; line-height: 1.05; }
.quiz-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.quiz-lede { margin: 0 auto; max-width: 560px; color: var(--muted); font-size: 17px; }
.quiz .actions { justify-content: center; margin-top: 26px; }
.btn.big { height: 54px; padding: 0 32px; font-size: 17px; }
.quiz-progress { display: flex; justify-content: center; gap: 6px; margin-bottom: 22px; }
.quiz-progress i { width: 28px; height: 6px; border-radius: 999px; background: var(--panel-3); transition: background 0.3s; }
.quiz-progress i.done { background: var(--accent); }
.quiz-progress i.now { background: var(--text); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.link.strong { color: var(--accent); }

/* This or That matchups */
.duel-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; max-width: 640px; margin: 26px auto 0; }
.duel-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.duel-card img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 20px; margin-bottom: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line-strong); transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.duel-card:hover img { transform: translateY(-6px) rotate(-1.2deg); box-shadow: 0 22px 46px rgba(0, 0, 0, 0.6), 0 0 0 3px var(--accent); }
.duel-card[data-duel=b]:hover img { transform: translateY(-6px) rotate(1.2deg); }
.duel-title { font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.2; }
.duel-year { font-size: 13px; color: var(--muted); }
.duel-card.won { transform: scale(1.06); }
.duel-card.won img { box-shadow: 0 22px 46px rgba(0, 0, 0, 0.6), 0 0 0 4px var(--accent); }
.duel-card.lost { opacity: 0.2; transform: scale(0.9); }
.duel-or {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--line); font-family: var(--display); font-weight: 700; color: var(--muted);
}

/* Taste map: five sliders that move as you pick */
.tm-label { margin: 30px 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.taste-map { display: flex; flex-direction: column; gap: 11px; max-width: 540px; margin: 0 auto; }
.taste-map.big { margin-top: 24px; }
.tm-row { display: grid; grid-template-columns: 112px 1fr 112px; align-items: center; gap: 12px; font-size: 12.5px; color: var(--faint); }
.tm-row span:first-child { text-align: right; }
.tm-row span:last-child { text-align: left; }
.tm-row span.lean { color: var(--text); font-weight: 650; }
.tm-track { position: relative; height: 6px; border-radius: 999px; background: var(--panel-3); }
.tm-track::before { content: ""; position: absolute; left: 50%; top: -3px; width: 2px; height: 12px; background: var(--line-strong); transform: translateX(-50%); }
.tm-track i {
  position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--accent);
  transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.25); transition: left 0.6s var(--ease);
}
.persona .tm-row { color: rgba(255, 255, 255, 0.55); }

/* "Seen it?" round */
.seen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.seen-card { position: relative; border-radius: 16px; overflow: hidden; outline: 3px solid transparent; outline-offset: -3px; transition: outline-color 0.2s, opacity 0.2s, transform 0.2s var(--ease); }
.seen-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.seen-btns { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.seen-btns button {
  flex: 1; height: 40px; border-radius: 12px; font-size: 19px; border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 12, 16, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background 0.15s, transform 0.1s;
}
.seen-btns button:active { transform: scale(0.94); }
.seen-card.like { outline-color: var(--good); transform: scale(1.02); }
.seen-card.like [data-seen=like] { background: var(--good); }
.seen-card.dislike { outline-color: #ff6874; opacity: 0.75; }
.seen-card.dislike [data-seen=dislike] { background: #ff6874; }

/* The reveal */
.persona {
  padding: 40px 24px 34px; border-radius: 30px; border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 138, 61, 0.35), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(124, 92, 255, 0.35), transparent 55%), var(--panel);
  animation: pop 0.6s var(--ease);
}
.persona h1 {
  font-size: clamp(34px, 6vw, 60px);
  background: linear-gradient(90deg, #fff, #ffcf9e 60%, #ffa96b); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.persona-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.persona-tags span { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); font-size: 13px; font-weight: 600; }
.reveal .shelf-head, .reveal > .sub { text-align: left; }
.reveal .shelf-head { margin-top: 32px; }
@keyframes pop { 0% { opacity: 0; transform: scale(0.9); } 60% { transform: scale(1.03); } 100% { opacity: 1; transform: none; } }

.connect-list { display: flex; flex-direction: column; gap: 8px; }
.connect { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.connect > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.connect-logo { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.connect-logo.trakt { background: #ed1c24; color: #fff; }
.connect-logo.nf { background: #000; color: #e50914; font-size: 22px; }
.connect-logo.lb { background: #14181c; }
.connect-logo.lb svg { width: 30px; height: 12px; }
.connect-logo.imdb { background: #f5c518; color: #000; font-size: 12px; letter-spacing: -0.04em; }
.tag.soon { background: var(--panel-3); color: var(--muted); }

/* Match + reason line, credits, Tonight's pick */
.why { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.why b { color: var(--good); }
.watch-block { margin-top: 18px; }
.credits { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #cfd2d8; }
.credits b { color: var(--muted); font-weight: 600; margin-right: 4px; }
.detail h3 { margin-top: 28px; }
.btn.subtle { background: transparent; color: var(--muted); }
.btn.subtle:hover { color: var(--text); }
.pick-btn { height: 38px; padding: 0 16px; font-size: 14px; }
.pick-hero { height: 300px; background: var(--panel) center 25% / cover; position: relative; }
.pick-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 19, 24, 0) 35%, var(--bg-raised)); }
.pick-body { position: relative; margin-top: -90px; padding: 0 32px 30px; }
.pick-body h1 { margin: 6px 0 4px; font-family: var(--display); font-size: clamp(28px, 4vw, 40px); line-height: 1.05; }
.pick-plot { color: #cfd2d8; max-width: 62ch; }
.pick-loading { padding: 70px 32px; text-align: center; }
.pick-loading h1 { font-family: var(--display); }

/* Help me choose */
.chooser { padding: 40px 32px 34px; text-align: center; }
.chooser h1 { font-family: var(--display); font-size: clamp(26px, 4vw, 36px); margin: 8px 0 22px; }
.chooser-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 520px; margin: 0 auto 18px; }
.chooser-opt {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; text-align: left;
  background: var(--panel-2); border: 1px solid var(--line); font-size: 15px; font-weight: 600;
  transition: transform 0.15s var(--ease), border-color 0.15s, background 0.15s;
}
.chooser-opt span { font-size: 24px; }
.chooser-opt:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.chooser-opt.picked { border-color: var(--accent); background: var(--accent-soft); }
.pick-btn.alt { background: var(--panel-2); border-color: var(--line-strong); color: var(--text); }

/* ---------- Welcome screen (first visit) ---------- */
.landing {
  position: relative; overflow: hidden; margin: 18px 0 0; border-radius: 28px; min-height: min(78vh, 680px);
  display: flex; align-items: center; border: 1px solid var(--line);
  background: radial-gradient(circle at 15% 20%, rgba(255, 138, 61, 0.22), transparent 55%), var(--bg-raised);
}
.poster-wall { position: absolute; inset: 0; overflow: hidden; opacity: 0.55; transform: rotate(-6deg) scale(1.25); }
.wall-track {
  display: grid; grid-template-rows: repeat(3, 1fr); grid-auto-flow: column; grid-auto-columns: 150px; gap: 14px;
  height: 100%; width: max-content; animation: wall 90s linear infinite;
}
.wall-track img { width: 150px; height: 225px; object-fit: cover; border-radius: 12px; }
@keyframes wall { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.landing::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 12, 16, 0.97) 0%, rgba(11, 12, 16, 0.88) 45%, rgba(11, 12, 16, 0.35) 100%);
}
.landing-body { position: relative; z-index: 1; padding: 48px clamp(24px, 5vw, 64px); max-width: 640px; }
.landing h1 { margin: 16px 0 14px; font-size: clamp(40px, 6vw, 68px); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; }
.landing h1 span { color: var(--accent); }
.landing-lede { font-size: 19px; color: #d4d7dd; margin: 0 0 22px; max-width: 34ch; }
.landing-points { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-direction: column; gap: 12px; }
.landing-points li { position: relative; padding-left: 30px; color: #c5c9d1; font-size: 15.5px; }
.landing-points li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--accent-soft); color: var(--accent);
}
.landing-points b { color: var(--text); }
.landing-small { margin-top: 12px; }
.beta-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.beta-tag { font-style: normal; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(255, 138, 61, 0.45); border-radius: 6px; padding: 2px 5px; margin-left: 8px; vertical-align: 4px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 8px; }
.how > div { padding: 20px 22px; border-radius: 20px; background: var(--bg-raised); border: 1px solid var(--line); }
.how b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.how h3 { margin: 12px 0 4px; }
.how p { margin: 0; color: var(--muted); font-size: 14px; }

/* Privacy / terms pages */
.legal { max-width: 720px; padding-top: 24px; padding-bottom: 80px; }
.legal h1 { font-family: var(--display); font-size: 40px; margin: 10px 0 4px; }
.legal h2 { font-size: 20px; margin-top: 30px; }
.legal p, .legal li { color: #cfd2d8; line-height: 1.65; }

/* ---------- Setup (first visit) ---------- */
.onboarding #tabs, .onboarding .bottomnav, .onboarding .search { display: none !important; }
.onboarding .top { justify-content: space-between; }
.onboarding main { padding-bottom: 64px; }
.setup-steps { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 26px; }
.setup-steps li {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 5px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--faint); font-size: 13px; font-weight: 600;
}
.setup-steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--panel-3); color: var(--muted); font-size: 12px; }
.setup-steps li.now { color: var(--text); border-color: var(--line-strong); }
.setup-steps li.now b { background: var(--accent); color: var(--accent-ink); }
.setup-steps li.done { color: var(--muted); }
.setup-steps li.done b { background: var(--good); color: #062; }
.onboard { max-width: 900px; margin: 28px auto 0; text-align: center; animation: rise 0.35s var(--ease); }
.onboard h1 { margin: 8px 0 6px; font-size: clamp(30px, 5vw, 48px); font-weight: 600; line-height: 1.05; }
.onboard-picker { margin-top: 26px; text-align: left; }
.onboard-picker input[type=search] { width: 100%; margin-bottom: 12px; }
.onboard-foot {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 22px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, var(--bg) 70%, rgba(11, 12, 16, 0));
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.save-profile { margin-top: 28px; text-align: left; }
.save-profile .row input { flex: 1; min-width: 200px; }

/* ---------- Toast, footer ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100;
  background: var(--text); color: var(--bg); border-radius: 999px; font-weight: 600; font-size: 14px;
  padding: 11px 20px; max-width: calc(100% - 32px); box-shadow: var(--shadow); animation: rise 0.25s var(--ease);
}
.foot { color: var(--faint); font-size: 12px; text-align: center; padding: 28px 20px; border-top: 1px solid var(--line); line-height: 1.7; }
.foot a { color: var(--muted); }

/* ---------- Phone tab bar ---------- */
.bottomnav { display: none; }

/* Tablets and phones: the section tabs move to an app-style bar at the bottom. */
@media (max-width: 980px) {
  #tabs { display: none; }
  .search { flex: 1; }
  main { padding-bottom: 110px; }
  .bottomnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(11, 12, 16, 0.86); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-top: 1px solid var(--line);
  }
  .bottomnav button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: none; border: 0; padding: 6px 0; color: var(--faint); font-size: 10.5px; font-weight: 600;
  }
  .bottomnav svg { width: 23px; height: 23px; fill: currentColor; }
  .bottomnav button.active { color: var(--text); }
  .foot { padding-bottom: 110px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (max-width: 760px) {
  :root { --header-h: 56px; --poster: 112px; }
  .top { gap: 12px; padding: 0 16px; padding-top: env(safe-area-inset-top); height: calc(var(--header-h) + env(safe-area-inset-top)); }
  main { padding: 4px 16px 110px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .grid .card:hover, .rowscroll > .card:hover { transform: none; }
  .rowscroll { padding: 10px 16px 14px; margin: -6px -16px -8px; gap: 10px; mask-image: none; -webkit-mask-image: none; }
  .feature { height: 420px; margin-top: 12px; border-radius: 16px; background-position: center top; }
  .feature::before { background: linear-gradient(0deg, rgba(11, 12, 16, 0.98) 0%, rgba(11, 12, 16, 0.6) 50%, rgba(11, 12, 16, 0.1) 100%); }
  .feature-body { left: 20px; right: 20px; bottom: 44px; max-width: none; }
  .feature-dots { left: 20px; right: auto; bottom: 18px; }
  .arrow { display: none; }
  .modal { padding: 0; }
  .modal-card { border-radius: 0; min-height: 100%; border: 0; }
  .hero { height: 240px; }
  .detail { padding: 0 18px 28px; margin-top: -90px; }
  .detail-poster { width: 100px; }
  .pick-hero { height: 220px; }
  .pick-body { padding: 0 18px 24px; margin-top: -70px; }
  .pick-btn { order: -1; width: 100%; }
  .scores { grid-template-columns: 1fr 1fr; }
  .stile { padding: 12px; }
  .sval { font-size: 20px; }
  .browse-top { gap: 10px; }
  .landing { min-height: 0; border-radius: 22px; }
  .landing::after { background: linear-gradient(180deg, rgba(11, 12, 16, 0.55) 0%, rgba(11, 12, 16, 0.96) 55%); }
  .landing-body { padding: 150px 22px 30px; }
  .landing-lede { font-size: 17px; }
  .how { grid-template-columns: 1fr; }
  .beta-tag { display: none; }
  .seg { width: 100%; }
  .seg button { flex: 1; }
  .shelf { padding: 14px 14px 2px; border-radius: 20px; margin-top: 14px; }
  .shelf .sub { margin-left: 0; }
  .shelf-head h3 { font-size: 18px; }
  .rowscroll { padding: 14px 14px 16px; margin: -6px -14px -8px; }
  .duel-pair { gap: 10px; }
  .duel-or { width: 34px; height: 34px; font-size: 13px; }
  .duel-title { font-size: 15px; }
  .tm-row { grid-template-columns: 78px 1fr 78px; font-size: 11.5px; gap: 8px; }
  .seen-grid { grid-template-columns: repeat(2, 1fr); }
  .selects { width: 100%; flex-wrap: wrap; }
  .pick-btn { flex: 1 0 calc(50% - 4px); }
  .chooser { padding: 30px 16px 26px; }
  .chooser-opts { grid-template-columns: 1fr; }
  .pill-select { flex: 1; min-width: 0; }
  .search { min-width: 0; }
  .acct:not(.avatar) { padding: 0 12px; font-size: 13px; flex: none; }
  .brand { font-size: 20px; }
  .pill-select select { width: 100%; min-width: 0; }
  .acct { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rowscroll { scroll-behavior: auto; }
}
