/* Brief v2 — "Poster": every card is a keynote slide. Huge type on a rich color field.
   Light mode = solid color fields. Dark mode = black fields, topic color moves into the headline.
   Animate transform + opacity only. */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --chrome-h: 52px;
  --spring: cubic-bezier(0.2, 1.25, 0.35, 1);
  --spring-soft: cubic-bezier(0.22, 1.08, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* System semantic colors (light) */
  --bg: #f2f2f7;
  --group: #ffffff;
  --label: #000000;
  --label2: rgba(60, 60, 67, 0.62);
  --label3: rgba(60, 60, 67, 0.32);
  --fill: rgba(118, 118, 128, 0.12);
  --hair: rgba(60, 60, 67, 0.16);
  --sheet-bg: rgba(242, 242, 247, 0.9);
  --sheet-group: #ffffff;
  --link: #0a64d8;
  --good: #1f8a4c;
  --bad: #c9302c;

  /* The poster palette — iPhone/iMac-lineup inspired: saturated, refined, never neon. */
  --p-blue: #2352c6;
  --p-green: #1d7a4a;
  --p-purple: #5a3db5;
  --p-orange: #e2622a;
  --p-red: #b3262e;
  --p-teal: #11727f;
  --p-pink: #d24a80;
  --p-yellow: #f3c234;
  --p-silver: #e4e5e9;

  /* Dark-mode headline tones for the same families */
  --d-blue: #78a2ff;
  --d-green: #57d48f;
  --d-purple: #b9a2ff;
  --d-orange: #ffa064;
  --d-red: #ff6e66;
  --d-teal: #5ed3df;
  --d-pink: #ff88b6;
  --d-yellow: #ffd84f;
  --d-silver: #e6e7eb;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --group: #1c1c1e;
    --label: #ffffff;
    --label2: rgba(235, 235, 245, 0.62);
    --label3: rgba(235, 235, 245, 0.3);
    --fill: rgba(118, 118, 128, 0.24);
    --hair: rgba(84, 84, 88, 0.6);
    --sheet-bg: rgba(28, 28, 30, 0.92);
    --sheet-group: #2c2c2e;
    --link: #4a9dff;
    --good: #4fd08a;
    --bad: #ff6961;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --group: #1c1c1e;
  --label: #ffffff;
  --label2: rgba(235, 235, 245, 0.62);
  --label3: rgba(235, 235, 245, 0.3);
  --fill: rgba(118, 118, 128, 0.24);
  --hair: rgba(84, 84, 88, 0.6);
  --sheet-bg: rgba(28, 28, 30, 0.92);
  --sheet-group: #2c2c2e;
  --link: #4a9dff;
  --good: #4fd08a;
  --bad: #ff6961;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
svg { display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ chrome */

.chrome {
  position: fixed;
  z-index: 30;
  top: 0; left: 0; right: 0;
  padding: calc(var(--safe-t) + 8px) calc(var(--safe-r) + 14px) 0 calc(var(--safe-l) + 18px);
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--spring-soft);
  pointer-events: none;
}
.chrome-row {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chrome-row > * { pointer-events: auto; }
body.scrolling[data-tab="feed"] .chrome { opacity: 0; transform: translateY(-8px); }
body.scrolling[data-tab="feed"] .chrome-row > * { pointer-events: none; }

/* Ink: what color the chrome draws in, follows the card under it. */
body[data-ink="light"] {
  --c-ink: #ffffff;
  --c-glass: rgba(255, 255, 255, 0.18);
  --c-glass-edge: rgba(255, 255, 255, 0.28);
  --c-sel: rgba(255, 255, 255, 0.94);
  --c-sel-ink: #000;
}
body[data-ink="dark"] {
  --c-ink: #111114;
  --c-glass: rgba(255, 255, 255, 0.42);
  --c-glass-edge: rgba(255, 255, 255, 0.55);
  --c-sel: #111114;
  --c-sel-ink: #fff;
}
body[data-tab="economy"][data-ink="dark"], body[data-tab="threads"][data-ink="dark"] {
  --c-glass: rgba(250, 250, 252, 0.72);
  --c-glass-edge: rgba(0, 0, 0, 0.06);
}
body[data-tab="economy"][data-ink="light"], body[data-tab="threads"][data-ink="light"] {
  --c-glass: rgba(40, 40, 44, 0.72);
  --c-glass-edge: rgba(255, 255, 255, 0.1);
}

.wordmark {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: var(--c-ink);
  margin-right: auto;
  transition: color 0.3s;
}
/* Page indicator: current section name + three dots; the thumb slides with --pos (0 feed … 2 threads),
   which app.js sets continuously while you swipe. */
.pager {
  --pos: 0;
  --step: 18px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 15px;
  border-radius: 999px;
  color: var(--c-ink);
  background: var(--c-glass);
  box-shadow: inset 0 0 0 0.5px var(--c-glass-edge);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  transition: color 0.3s;
}
.pager-label {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.pager-label.swap { animation: pager-swap 0.32s var(--ease-out); }
@keyframes pager-swap { from { opacity: 0; transform: translateY(5px); } }
.pager-dots { position: relative; display: flex; }
.pager-dots button {
  width: var(--step);
  height: 38px;
  display: grid;
  place-items: center;
}
.pager-dots button::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.38;
}
.pager-dots button:focus-visible { outline: 2px solid currentColor; outline-offset: -8px; border-radius: 999px; }
.pager-thumb {
  position: absolute;
  top: 50%;
  left: calc(var(--pos) * var(--step) + var(--step) / 2 - 8px);
  width: 16px; height: 6px;
  margin-top: -3px;
  border-radius: 3px;
  background: currentColor;
  pointer-events: none;
  transition: left 0.32s var(--spring-soft);
}
body.swiping .pager-thumb { transition: none; }
.gear {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-ink);
  background: var(--c-glass);
  box-shadow: inset 0 0 0 0.5px var(--c-glass-edge);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
}
.gear svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }

.progress {
  position: fixed;
  z-index: 25;
  right: calc(var(--safe-r) + 4px);
  top: calc(var(--safe-t) + 70px);
  bottom: calc(var(--safe-b) + 28px);
  width: 3px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--c-ink) 18%, transparent);
  overflow: hidden;
  transition: opacity 0.3s;
}
.progress-fill {
  position: absolute; inset: 0;
  background: var(--c-ink);
  opacity: 0.85;
  transform-origin: 50% 0;
  transform: scaleY(0);
  transition: transform 0.45s var(--spring-soft);
}
body:not([data-tab="feed"]) .progress { opacity: 0; }

/* ------------------------------------------------------------------ feed */

/* Sections strip: Feed | Economy | Threads side by side, one screen each. The phone's native scroller
   does the horizontal swipe and snapping; each section scrolls vertically inside it. */
.strip {
  position: fixed;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip > .feed, .strip > .page {
  position: relative;
  inset: auto;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.feed {
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
}
.feed::-webkit-scrollbar { display: none; }

.card {
  /* family vars default = silver */
  --field: var(--p-silver);
  --ink: #111114;
  --hl: var(--ink);
  --tone: var(--d-silver);
  --glass: rgba(255, 255, 255, 0.5);
  --glass-edge: rgba(255, 255, 255, 0.7);
  --on: #111114;

  position: relative;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--field);
  color: var(--ink);
  overflow: hidden;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.card[data-ink="light"] {
  --ink: #ffffff;
  --glass: rgba(255, 255, 255, 0.17);
  --glass-edge: rgba(255, 255, 255, 0.3);
}
.f-blue   { --field: var(--p-blue);   --tone: var(--d-blue); }
.f-green  { --field: var(--p-green);  --tone: var(--d-green); }
.f-purple { --field: var(--p-purple); --tone: var(--d-purple); }
.f-orange { --field: var(--p-orange); --tone: var(--d-orange); }
.f-red    { --field: var(--p-red);    --tone: var(--d-red); }
.f-teal   { --field: var(--p-teal);   --tone: var(--d-teal); }
.f-pink   { --field: var(--p-pink);   --tone: var(--d-pink); }
.f-yellow { --field: var(--p-yellow); --tone: var(--d-yellow); }
.f-silver { --field: var(--p-silver); --tone: var(--d-silver); }

/* A whisper of light across the field, like a lit keynote backdrop. Static. */
.card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 70% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(120% 60% at 0% 100%, rgba(0, 0, 0, 0.12), transparent 70%);
  pointer-events: none;
}
.card.imp5::before {
  background:
    radial-gradient(110% 60% at 85% 8%, rgba(255, 255, 255, 0.26), transparent 62%),
    radial-gradient(120% 60% at 0% 100%, rgba(0, 0, 0, 0.16), transparent 70%);
}

.poster {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding:
    calc(var(--safe-t) + var(--chrome-h) + 22px)
    calc(var(--safe-r) + 18px)
    calc(var(--safe-b) + 22px)
    calc(var(--safe-l) + 22px);
}

.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 22px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  flex: none;
}
.eyebrow.stack { flex-direction: column; align-items: flex-start; gap: 10px; }
.eyebrow .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.eyebrow .sep { opacity: 0.55; margin: 0 0.35em; }
.eyebrow .age { text-transform: none; letter-spacing: 0.02em; }
.new {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 4px;
  padding: 3px 8px 3px 7px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--field);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.top-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 0.5px var(--glass-edge);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.top-badge svg { width: 12px; height: 12px; fill: currentColor; }
.seen-tag { opacity: 0.8; }

/* Eyebrow + headline sit together as a title block, centered in the space above the
   body with a slight upward bias (like a Memories title card). */
.head {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.head::before { content: ""; flex: 1 1 0; max-height: 72px; }
.head::after { content: ""; flex: 1.6 1 0; }
.hl {
  flex: 0 1 auto;
  min-height: 0;
  margin-top: 14px;
  /* fit() guarantees the size; visible so descenders are never shaved */
  overflow: visible;
}
.hl-t {
  width: 100%;
  margin: 0;
  font-size: 50px; /* overwritten by fit() */
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.042em;
  color: var(--hl);
  text-wrap: balance;
  overflow-wrap: break-word;
  padding-bottom: 0.08em;
  transform-origin: 0 100%;
}
.card.imp5 .hl-t { font-weight: 900; letter-spacing: -0.05em; line-height: 0.96; }

.lower {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  column-gap: 14px;
  align-items: end;
  margin-top: 18px;
}
.body { min-width: 0; }
.summary {
  margin: 0;
  font-size: 17px;
  line-height: 1.34;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: color-mix(in srgb, var(--ink) 94%, transparent);
}
.why {
  margin: 14px 0 0;
  padding: 12px 14px 13px;
  border-radius: 18px;
  background: var(--glass);
  box-shadow: inset 0 0 0 0.5px var(--glass-edge);
}
.why b {
  display: block;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  margin-bottom: 3px;
}
.why span {
  display: block;
  font-size: 15px;
  line-height: 1.33;
  font-weight: 500;
  color: color-mix(in srgb, var(--ink) 90%, transparent);
}
.outlets {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.005em;
  color: color-mix(in srgb, var(--ink) 66%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Rail: chunky glass buttons on the thumb side */
.rail { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.rb {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  background: var(--glass);
  box-shadow: inset 0 0 0 0.5px var(--glass-edge), 0 6px 18px rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: transform 0.45s var(--spring), background-color 0.2s, color 0.2s;
}
.rb svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.rb:active { transform: scale(0.88); }
.rb[aria-pressed="true"] { background: var(--ink); color: var(--field); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16); }
.rb[aria-pressed="true"] svg .fillable { fill: currentColor; }
.rb.pop { animation: pop 0.5s var(--spring); }
@keyframes pop { 0% { transform: scale(0.7); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }

/* Headline entrance */
.motion .card .hl-t { opacity: 0; transform: translateY(18px) scale(0.94); transition: opacity 0.5s var(--ease-out), transform 0.75s var(--spring-soft); }
.motion .card.in .hl-t { opacity: 1; transform: none; }
.motion .card .body { opacity: 0; transition: opacity 0.5s var(--ease-out) 0.12s; }
.motion .card.in .body { opacity: 1; }

/* Seen cards after the caught-up card: dimmed */
.card.seen .eyebrow, .card.seen .hl, .card.seen .body { opacity: 0.5; }
.motion .card.seen.in .body { opacity: 0.5; }
.card.seen::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(242, 242, 247, 0.42);
  pointer-events: none;
}
.card.seen[data-ink="light"]::after { background: rgba(20, 20, 24, 0.28); }

/* 👎 */
.card.gone .poster { opacity: 0; transform: scale(0.94); transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out); }

/* Double-tap burst */
.burst {
  position: absolute;
  z-index: 5;
  width: 0; height: 0;
  pointer-events: none;
}
.burst .b-icon {
  position: absolute;
  left: -56px; top: -56px;
  width: 112px; height: 112px;
  color: var(--ink);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.18));
  animation: burst-icon 0.9s var(--spring) forwards;
}
.burst .b-icon svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.burst i {
  position: absolute;
  left: -6px; top: -6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ink);
  transform: rotate(var(--a)) translateY(0) scale(0.4);
  opacity: 0;
  animation: burst-dot 0.7s var(--ease-out) forwards;
}
@keyframes burst-icon {
  0% { transform: scale(0.2) rotate(-14deg); opacity: 0; }
  35% { transform: scale(1.12) rotate(4deg); opacity: 1; }
  60% { transform: scale(0.96) rotate(0); opacity: 1; }
  100% { transform: scale(1) translateY(-46px); opacity: 0; }
}
@keyframes burst-dot {
  0% { transform: rotate(var(--a)) translateY(-20px) scale(0.6); opacity: 1; }
  100% { transform: rotate(var(--a)) translateY(-92px) scale(0.2); opacity: 0; }
}

/* Caught-up card */
.card.caught { --field: var(--p-silver); --ink: #111114; }
.caught .hl-t { color: var(--ink); }
.caught-check { width: 76px; height: 76px; color: var(--good); margin: 4px 0 0; flex: none; }
.caught-check svg { width: 100%; height: 100%; }
.caught .lower { grid-template-columns: 1fr; }
.caught-stats { display: flex; gap: 10px; margin-bottom: 14px; }
.stat {
  flex: 1;
  padding: 14px 14px 12px;
  border-radius: 20px;
  background: var(--glass);
  box-shadow: inset 0 0 0 0.5px var(--glass-edge);
}
.stat b { display: block; font-size: 34px; line-height: 1; font-weight: 850; letter-spacing: -0.04em; white-space: nowrap; }
.stat b small { font-size: 0.5em; font-weight: 750; letter-spacing: 0; margin-left: 3px; }
.stat span { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--ink) 66%, transparent); }
.caught-more {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 650;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}
.caught-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.motion .caught.in .caught-check { animation: pop 0.7s var(--spring); }

.loading { --field: var(--bg); --ink: var(--label); }
.loading .hl-t { opacity: 0.12 !important; transform: none !important; }

.empty-card .hl-t { font-size: 44px; }

/* ---------------------------------------------------- dark: black fields */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card,
  :root:not([data-theme="light"]) .card[data-ink] {
    --ink: #ffffff;
    --hl: var(--tone);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-edge: rgba(255, 255, 255, 0.14);
    background: #000;
  }
  :root:not([data-theme="light"]) .card::before {
    background:
      radial-gradient(90% 55% at 0% 12%, color-mix(in srgb, var(--tone) 26%, transparent), transparent 70%),
      radial-gradient(80% 40% at 100% 100%, color-mix(in srgb, var(--tone) 10%, transparent), transparent 70%);
  }
  :root:not([data-theme="light"]) .card.imp5::before {
    background:
      radial-gradient(110% 65% at 10% 10%, color-mix(in srgb, var(--tone) 38%, transparent), transparent 70%),
      radial-gradient(80% 40% at 100% 100%, color-mix(in srgb, var(--tone) 14%, transparent), transparent 70%);
  }
  :root:not([data-theme="light"]) .new { background: var(--tone); color: #000; }
  :root:not([data-theme="light"]) .rb[aria-pressed="true"] { background: var(--tone); color: #000; }
  :root:not([data-theme="light"]) .burst .b-icon, :root:not([data-theme="light"]) .burst i { color: var(--tone); background: none; }
  :root:not([data-theme="light"]) .burst i { background: var(--tone); }
  :root:not([data-theme="light"]) .card.seen::after { background: rgba(0, 0, 0, 0.2); }
  :root:not([data-theme="light"]) .card.caught { --tone: var(--d-green); }
  :root:not([data-theme="light"]) .caught .hl-t { color: #fff; }
}
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .card[data-ink] {
  --ink: #ffffff;
  --hl: var(--tone);
  --glass: rgba(255, 255, 255, 0.1);
  --glass-edge: rgba(255, 255, 255, 0.14);
  background: #000;
}
:root[data-theme="dark"] .card::before {
  background:
    radial-gradient(90% 55% at 0% 12%, color-mix(in srgb, var(--tone) 26%, transparent), transparent 70%),
    radial-gradient(80% 40% at 100% 100%, color-mix(in srgb, var(--tone) 10%, transparent), transparent 70%);
}
:root[data-theme="dark"] .card.imp5::before {
  background:
    radial-gradient(110% 65% at 10% 10%, color-mix(in srgb, var(--tone) 38%, transparent), transparent 70%),
    radial-gradient(80% 40% at 100% 100%, color-mix(in srgb, var(--tone) 14%, transparent), transparent 70%);
}
:root[data-theme="dark"] .new { background: var(--tone); color: #000; }
:root[data-theme="dark"] .rb[aria-pressed="true"] { background: var(--tone); color: #000; }
:root[data-theme="dark"] .burst .b-icon { color: var(--tone); }
:root[data-theme="dark"] .burst i { background: var(--tone); }
:root[data-theme="dark"] .card.seen::after { background: rgba(0, 0, 0, 0.2); }
:root[data-theme="dark"] .card.caught { --tone: var(--d-green); }
:root[data-theme="dark"] .caught .hl-t { color: #fff; }

/* ------------------------------------------------------- pages (Economy, Threads) */

.page {
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding:
    calc(var(--safe-t) + var(--chrome-h) + 18px)
    calc(var(--safe-r) + 16px)
    calc(var(--safe-b) + 40px)
    calc(var(--safe-l) + 16px);
}
.page-inner { max-width: 640px; margin: 0 auto; }
.page-title {
  margin: 6px 4px 18px;
  font-size: 52px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.05em;
}
.page-sub { margin: -10px 4px 22px; font-size: 15px; font-weight: 550; color: var(--label2); }
.sec {
  margin: 30px 4px 12px;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.035em;
}
.slab {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 22px 22px 24px;
  background: var(--field, var(--p-green));
  color: var(--ink, #fff);
}
.slab::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.slab > * { position: relative; }
.slab-eyebrow { font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.78; }
.read-text { margin: 10px 0 0; font-size: 23px; line-height: 1.2; font-weight: 750; letter-spacing: -0.025em; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  border-radius: 24px;
  padding: 16px 16px 14px;
  background: var(--group);
  min-width: 0;
}
.tile.wide { grid-column: 1 / -1; }
.tile-label { font-size: 13px; font-weight: 650; color: var(--label2); }
.tile-value {
  margin-top: 8px;
  font-size: 40px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.045em;
  color: var(--p-green);
  white-space: nowrap;
}
.tile-value.long { font-size: 32px; }
.tile-unit { font-size: 0.5em; font-weight: 750; margin-left: 2px; letter-spacing: -0.02em; }
.tile-foot { margin-top: 10px; display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--label2); }
.chg { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; background: var(--fill); color: var(--label); font-weight: 700; white-space: nowrap; }
.chg.down { color: var(--good); }
.chg.up { color: var(--bad); }

.fed {
  border-radius: 30px;
  padding: 20px 20px 18px;
  background: var(--group);
}
.fed-when { font-size: 13px; font-weight: 650; color: var(--label2); }
.fed-date { margin-top: 4px; font-size: 40px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.odds { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.odd-top { display: flex; justify-content: space-between; font-size: 15px; font-weight: 650; }
.odd-top b { font-weight: 850; font-variant-numeric: tabular-nums; }
.bar { margin-top: 7px; height: 12px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--p-purple); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.9s var(--spring-soft); }
.odds li:first-child .bar-fill { background: var(--p-blue); }
.fed-note { margin: 16px 0 0; font-size: 14px; color: var(--label2); font-weight: 500; }

.week { border-radius: 30px; background: var(--group); padding: 6px 18px; }
.week-row { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 14px 0; }
.week-row + .week-row { box-shadow: inset 0 0.5px 0 var(--hair); }
.week-date { font-size: 13px; font-weight: 750; color: var(--p-orange); text-transform: uppercase; letter-spacing: 0.04em; }
.week-date b { display: block; font-size: 28px; line-height: 1; letter-spacing: -0.04em; color: var(--label); margin-top: 2px; }
.week-event { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; }
.week-why { margin-top: 3px; font-size: 14.5px; color: var(--label2); font-weight: 500; }

.threads { display: grid; gap: 16px; }
.thread { padding: 22px 22px 18px; }
.thread-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.pill { padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); }
.slab[data-ink="dark"] .pill { background: rgba(0, 0, 0, 0.08); }
.thread-title { margin: 12px 0 0; font-size: 34px; line-height: 0.98; font-weight: 900; letter-spacing: -0.045em; text-wrap: balance; }
.thread-summary { margin: 12px 0 0; font-size: 16px; line-height: 1.35; font-weight: 500; opacity: 0.92; }
.tl { list-style: none; margin: 18px 0 0; padding: 4px 0 0; }
.tl li { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 9px 0; }
.tl li::before {
  content: ""; position: absolute; left: 50px; top: 15px;
  width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.85;
}
.tl-date { font-size: 13px; font-weight: 750; opacity: 0.75; padding-top: 1px; }
.tl-text { font-size: 15.5px; line-height: 1.32; font-weight: 600; padding-left: 8px; }
.tl-text a { text-decoration: none; }
.tl-text a::after { content: " ↗"; opacity: 0.6; font-weight: 500; }
.thread.dormant { opacity: 0.62; }

.empty-box { border-radius: 24px; padding: 22px; background: var(--group); color: var(--label2); font-weight: 550; }

/* page slabs in dark: deep gray card, family tone in the type */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .slab { background: #141416; color: #fff; }
  :root:not([data-theme="light"]) .slab::before { background: radial-gradient(100% 70% at 0% 0%, color-mix(in srgb, var(--tone, var(--d-green)) 30%, transparent), transparent 70%); }
  :root:not([data-theme="light"]) .slab .read-text,
  :root:not([data-theme="light"]) .slab .thread-title { color: var(--tone, var(--d-green)); }
  :root:not([data-theme="light"]) .slab .pill { background: rgba(255, 255, 255, 0.1); }
  :root:not([data-theme="light"]) .tile-value { color: var(--d-green); }
  :root:not([data-theme="light"]) .bar-fill { background: var(--d-purple); }
  :root:not([data-theme="light"]) .odds li:first-child .bar-fill { background: var(--d-blue); }
  :root:not([data-theme="light"]) .week-date { color: var(--d-orange); }
}
:root[data-theme="dark"] .slab { background: #141416; color: #fff; }
:root[data-theme="dark"] .slab::before { background: radial-gradient(100% 70% at 0% 0%, color-mix(in srgb, var(--tone, var(--d-green)) 30%, transparent), transparent 70%); }
:root[data-theme="dark"] .slab .read-text,
:root[data-theme="dark"] .slab .thread-title { color: var(--tone, var(--d-green)); }
:root[data-theme="dark"] .slab .pill { background: rgba(255, 255, 255, 0.1); }
:root[data-theme="dark"] .tile-value { color: var(--d-green); }
:root[data-theme="dark"] .bar-fill { background: var(--d-purple); }
:root[data-theme="dark"] .odds li:first-child .bar-fill { background: var(--d-blue); }
:root[data-theme="dark"] .week-date { color: var(--d-orange); }

/* ------------------------------------------------------------------ sheets */

.scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.scrim.open { opacity: 1; }
.sheet {
  position: fixed;
  z-index: 41;
  left: 0; right: 0;
  bottom: -60px; /* room for spring overshoot */
  margin: 0 auto;
  max-width: 640px;
  max-height: calc(88dvh + 60px);
  display: flex;
  flex-direction: column;
  border-radius: 26px 26px 0 0;
  background: var(--sheet-bg);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
  --group: var(--sheet-group);
  transform: translateY(105%);
  transition: transform 0.6s var(--spring-soft);
  padding-bottom: 60px;
}
.sheet.open { transform: translateY(0); }
.sheet.dragging { transition: none; }
.sheet-grab { flex: none; height: 26px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.sheet-grab span { width: 38px; height: 5px; border-radius: 3px; background: var(--label3); }
.sheet-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 calc(var(--safe-r) + 18px) calc(var(--safe-b) + 24px) calc(var(--safe-l) + 18px);
}
.sh-eyebrow { font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label2); display: flex; gap: 6px; align-items: center; }
.sh-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--field); }
.sh-title { margin: 8px 0 0; font-size: 30px; line-height: 1.02; font-weight: 850; letter-spacing: -0.04em; text-wrap: balance; }
.sh-h { margin: 24px 4px 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--label2); }
.group { border-radius: 14px; background: var(--group); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 12px;
  min-height: 48px;
  padding: 11px 16px;
  font-size: 16px;
  text-decoration: none;
  position: relative;
}
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 0.5px; background: var(--hair); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; letter-spacing: -0.01em; }
.row-sub { font-size: 13.5px; color: var(--label2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-val { font-weight: 750; font-variant-numeric: tabular-nums; color: var(--label2); white-space: nowrap; }
.row-val.pos { color: var(--good); }
.row-val.neg { color: var(--bad); }
.row svg.chev { width: 16px; height: 16px; fill: none; stroke: var(--label3); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.row-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; font-size: 13px; font-weight: 800; }
.score-line { padding: 14px 16px; font-size: 14.5px; color: var(--label2); font-weight: 550; }
.score-line b { color: var(--label); font-weight: 800; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  font-size: 17px; font-weight: 650;
  background: var(--group);
  color: var(--link);
}
.btn.danger { color: var(--bad); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note { margin: 10px 4px 0; font-size: 13.5px; line-height: 1.4; color: var(--label2); font-weight: 500; }
.note-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--group); font-size: 14.5px; line-height: 1.4; font-weight: 500; }
.note-card svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--link); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; }
.chip { padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff; background: var(--field); }
.chip.ghost { background: var(--fill); color: var(--label); }
.chip small { font-weight: 600; opacity: 0.8; margin-left: 4px; }
.muted { color: var(--label2); font-size: 14.5px; padding: 4px; }

.toast {
  position: fixed; z-index: 50;
  left: 50%; bottom: calc(var(--safe-b) + 28px);
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(30, 30, 32, 0.88);
  color: #fff;
  font-size: 15px; font-weight: 650;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s, transform 0.45s var(--spring);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ tap-to-read hint (first card) */

.outlets-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-width: 0; }
.outlets-row .outlets { margin-top: 0; flex: 1 1 auto; min-width: 0; }
.tap-hint {
  flex: none;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 0.5px var(--glass-edge);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.tap-hint svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.motion .tap-hint { animation: hint-breathe 2.6s var(--ease-out) 1.2s infinite; }
.tap-hint.bye { opacity: 0 !important; transform: scale(0.9); animation: none; }
@keyframes hint-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* ------------------------------------------------------------------ "N new stories ↑" pill */

.new-pill {
  position: fixed;
  z-index: 35;
  left: 50%;
  top: calc(var(--safe-t) + 62px);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px 10px 17px;
  border-radius: 999px;
  background: rgba(30, 30, 32, 0.86);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  opacity: 0;
  transform: translate(-50%, -16px) scale(0.92);
  transition: opacity 0.25s var(--ease-out), transform 0.55s var(--spring);
}
.new-pill.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.new-pill:active { transform: translate(-50%, 0) scale(0.95); }
.new-pill svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body:not([data-tab="feed"]) .new-pill { opacity: 0; pointer-events: none; }

/* ------------------------------------------------------------------ reader (tap to read) */

.reader {
  --ink: #111114;
  position: fixed;
  z-index: 45;
  top: 0; left: 0; right: 0;
  bottom: -80px;            /* room for the spring overshoot */
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--label);
  transform: translateY(100%);
  transition: transform 0.36s var(--ease-out);
  will-change: transform;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
}
.reader[data-ink="light"] { --ink: #ffffff; }
.reader.open { transform: translateY(0); transition: transform 0.6s var(--spring-soft); }
.reader.dragging { transition: none; }
body.reading .feed { pointer-events: none; }

.r-scroll {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* top bar: transparent over the poster header, iOS material once the header scrolls away */
.r-bar {
  position: absolute;
  z-index: 2;
  top: 0; left: 0; right: 0;
  height: calc(var(--safe-t) + 56px);
  pointer-events: none;
}
.r-bar-bg {
  position: absolute; inset: 0;
  background: var(--sheet-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 0.5px 0 var(--hair);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}
.r-bar-title {
  position: absolute;
  left: calc(var(--safe-l) + 64px); right: calc(var(--safe-r) + 64px);
  bottom: 0; height: 56px;
  line-height: 56px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease-out), transform 0.35s var(--spring-soft);
}
.reader.scrolled .r-bar-bg { opacity: 1; }
.reader.scrolled .r-bar-title { opacity: 1; transform: none; }
.r-close {
  position: absolute;
  top: calc(var(--safe-t) + 9px);
  right: calc(var(--safe-r) + 14px);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  pointer-events: auto;
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--ink) 26%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: transform 0.4s var(--spring);
}
.r-close:active { transform: scale(0.88); }
.r-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.reader.scrolled .r-close { color: var(--label); background: var(--fill); box-shadow: none; }

/* poster-color header */
.r-head {
  position: relative;
  overflow: hidden;
  background: var(--field);
  color: var(--ink);
  padding:
    calc(var(--safe-t) + 64px)
    calc(var(--safe-r) + 22px)
    30px
    calc(var(--safe-l) + 22px);
}
.r-head::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 80% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(120% 70% at 0% 100%, rgba(0, 0, 0, 0.12), transparent 70%);
  pointer-events: none;
}
.r-head > * { position: relative; }
.r-grab { position: absolute; top: calc(var(--safe-t) + 7px); left: 0; right: 0; display: grid; place-items: center; }
.r-grab span { width: 38px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 40%, transparent); }
.r-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}
.r-eyebrow .sep { opacity: 0.55; margin: 0 0.45em; }
.r-eyebrow .age { text-transform: none; letter-spacing: 0.02em; }
.r-title {
  margin: 12px 0 0;
  max-width: 18em;
  font-size: clamp(32px, 9.4vw, 46px);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.042em;
  text-wrap: balance;
  overflow-wrap: break-word;
  color: var(--ink);
}

/* body: comfortable reading type */
.r-body {
  max-width: 34em;
  margin: 0 auto;
  padding:
    26px
    calc(var(--safe-r) + 22px)
    calc(var(--safe-b) + 40px)
    calc(var(--safe-l) + 22px);
  font-size: 18px;
}
.r-article p {
  margin: 0 0 1em;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.008em;
  color: var(--label);
}
.r-article p:first-child { font-weight: 600; }
.r-article.in { animation: r-fade 0.4s var(--ease-out); }
@keyframes r-fade { from { opacity: 0; } to { opacity: 1; } }
.r-fallback { font-size: 15px !important; font-weight: 550 !important; color: var(--label2) !important; }
.r-skel { padding: 4px 0 14px; }
.r-skel i {
  display: block;
  height: 15px;
  margin: 0 0 13px;
  border-radius: 8px;
  background: var(--fill);
  animation: r-pulse 1.3s ease-in-out infinite;
}
@keyframes r-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.r-why {
  margin: 10px 0 0;
  padding: 14px 16px 15px;
  border-radius: 16px;
  background: var(--group);
}
.r-why b {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--field) 82%, #000);
}
.r-why p { margin: 0; font-size: 16px; line-height: 1.42; font-weight: 500; }

.r-votes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.r-vote {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px;
  border-radius: 14px;
  background: var(--group);
  color: var(--label);
  font-size: 16px;
  font-weight: 650;
  transition: transform 0.4s var(--spring);
}
.r-vote:active { transform: scale(0.95); }
.r-vote svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.r-vote[aria-pressed="true"] { background: var(--field); color: var(--ink); }
.r-vote[aria-pressed="true"] svg .fillable { fill: currentColor; }
.r-vote.pop { animation: pop 0.5s var(--spring); }

/* reader in dark: black header with the family tone in the type, like the dark posters */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .reader { --ink: #ffffff; }
  :root:not([data-theme="light"]) .r-head { background: #000; }
  :root:not([data-theme="light"]) .r-head::before {
    background:
      radial-gradient(90% 70% at 0% 10%, color-mix(in srgb, var(--tone) 30%, transparent), transparent 70%),
      radial-gradient(80% 50% at 100% 100%, color-mix(in srgb, var(--tone) 10%, transparent), transparent 70%);
  }
  :root:not([data-theme="light"]) .r-title { color: var(--tone); }
  :root:not([data-theme="light"]) .r-why b { color: var(--tone); }
  :root:not([data-theme="light"]) .r-vote[aria-pressed="true"] { background: var(--tone); color: #000; }
  :root:not([data-theme="light"]) .new-pill { background: rgba(58, 58, 60, 0.86); }
}
:root[data-theme="dark"] .reader { --ink: #ffffff; }
:root[data-theme="dark"] .r-head { background: #000; }
:root[data-theme="dark"] .r-head::before {
  background:
    radial-gradient(90% 70% at 0% 10%, color-mix(in srgb, var(--tone) 30%, transparent), transparent 70%),
    radial-gradient(80% 50% at 100% 100%, color-mix(in srgb, var(--tone) 10%, transparent), transparent 70%);
}
:root[data-theme="dark"] .r-title { color: var(--tone); }
:root[data-theme="dark"] .r-why b { color: var(--tone); }
:root[data-theme="dark"] .r-vote[aria-pressed="true"] { background: var(--tone); color: #000; }
:root[data-theme="dark"] .new-pill { background: rgba(58, 58, 60, 0.86); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .burst { display: none; }
}

@media (min-width: 700px) {
  .poster { padding-left: max(48px, calc((100vw - 620px) / 2)); padding-right: max(40px, calc((100vw - 620px) / 2)); }
}
