/* ============================================================
   28-Story-Stream — וייב קוד ניוז · זרם סטורי
   Full-screen vertical story cards. Scroll-snap stack.
   Each card = one story with image + headline + summary + timestamp + category.
   Chat floats at top with reaction counts per story.
   Dark mode with rich-media feel. Heebo + Frank Ruhl Libre. RTL Hebrew.
   ============================================================ */

:root {
  /* Palette: deep dark + warm media accents (no neon) */
  --bg:           #0a0a0d;
  --bg-2:         #131319;
  --bg-3:         #1c1c24;
  --surface:      #232330;

  --ink:          #f6f3ec;          /* warm cream */
  --ink-2:        #d6d2c8;
  --ink-dim:      #8a8a92;
  --ink-mute:     #5a5a64;

  --rule:         rgba(255,255,255,0.08);
  --rule-2:       rgba(255,255,255,0.14);

  /* Story card image accents (per category) */
  --cat-news:     #3a4d6b;          /* navy */
  --cat-ai:       #5a4080;          /* plum */
  --cat-tools:    #2f6a55;          /* forest */
  --cat-opinion:  #8a5a3a;          /* ochre */
  --cat-bench:    #406b6b;          /* teal */
  --cat-guide:    #6a4f30;          /* coffee */
  --cat-default:  #2c2c3a;          /* slate */

  --urgent:       #d97757;          /* breaking — warm red-orange */
  --high:         #c8a96e;          /* warm gold */
  --normal:       #8a8a92;

  /* Chat skins */
  --wa-bg:        #efe7df;
  --wa-green:     #25D366;
  --wa-green-d:   #128C7E;
  --tg-bg:        #17212b;
  --tg-blue:      #2AABEE;
  --tg-blue-d:    #1c7eb8;
  --ms-bg:        #ffffff;
  --ms-1:         #ff6cab;          /* messenger pink */
  --ms-2:         #5b8def;          /* messenger blue */
  --ms-3:         #5e4eee;          /* messenger purple */

  /* Type */
  --font-body:    'Heebo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-title:   'Frank Ruhl Libre', 'Heebo', Georgia, serif;

  --chat-h:       72px;
  --header-h:     56px;
  --card-pad-x:   28px;
  --card-pad-y:   22px;

  --border:       1px solid var(--rule);
  --border-strong:1px solid var(--rule-2);
}

/* ─── Reset ─── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  direction: rtl;
  overflow-x: hidden;
  /* body scrolls vertically; chat fixed at top */
  padding-top: calc(var(--chat-h) + var(--header-h) + 8px);
  /* Scroll-snap on body so all cards snap */
  scroll-snap-type: y mandatory;
}

a { color: var(--ink-2); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ─── Page header (top of page) — POLISHED: tighter, smaller ─── */
.page-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: rgba(10,10,13,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 4;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d97757 0%, #c8a96e 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0d;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
}
.brand-text { line-height: 1; }
.brand-name {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 10.5px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  margin-top: 3px;
}

.page-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.page-title-meta {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  margin-inline-start: 10px;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.page-nav a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease;
}
.page-nav a:hover { background: rgba(255,255,255,0.04); text-decoration: none; }
.page-nav a.active {
  background: var(--ink);
  color: var(--bg);
}

/* ─── CHAT — TOP FLOATING with reaction counts (mandatory) — POLISHED: more compact ─── */
.chat-bar {
  position: fixed;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, calc(100vw - 24px));
  z-index: 50;
  background: var(--wa-bg);
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  box-shadow:
    0 2px 0 rgba(0,0,0,0.40),
    0 12px 36px rgba(0,0,0,0.40);
  direction: rtl;
  overflow: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* WhatsApp skin */
.chat-bar.skin-wa {
  background: var(--wa-bg);
  color: #1c1c1c;
}
.chat-bar.skin-wa .chat-head-name { color: #111; }
.chat-bar.skin-wa .chat-head-status { color: #4a4a4a; }
.chat-bar.skin-wa .chat-avatar {
  background: var(--wa-green);
  color: #fff;
}
.chat-bar.skin-wa .bubble-strip {
  background: #fff;
  color: #111;
}
.chat-bar.skin-wa .bubble-strip.urgent {
  background: linear-gradient(180deg, #fff 0%, #fde7e1 100%);
  border-color: var(--urgent);
}
.chat-bar.skin-wa .bubble-strip-tag { background: var(--wa-green-d); color: #fff; }
.chat-bar.skin-wa .bubble-strip.urgent .bubble-strip-tag { background: var(--urgent); }
.chat-bar.skin-wa .bubble-strip-time { color: #777; }
.chat-bar.skin-wa .urgent-badge { background: var(--urgent); color: #fff; }
.chat-bar.skin-wa .chat-input-field {
  background: #fff;
  color: #888;
  border-color: rgba(0,0,0,0.08);
}
.chat-bar.skin-wa .chat-send-btn {
  background: var(--wa-green);
  color: #fff;
}
.chat-bar.skin-wa .live-dot { background: var(--wa-green); }
.chat-bar.skin-wa .typing-strip-dot { background: var(--wa-green-d); }
.chat-bar.skin-wa .chat-skin-strip .skin-btn.active { background: var(--wa-green); color: #fff; }

/* Telegram skin */
.chat-bar.skin-tg {
  background: var(--tg-bg);
  color: #e1e8f0;
}
.chat-bar.skin-tg .chat-head-name { color: #fff; }
.chat-bar.skin-tg .chat-head-status { color: #8aa0b3; }
.chat-bar.skin-tg .chat-avatar {
  background: var(--tg-blue);
  color: #fff;
}
.chat-bar.skin-tg .bubble-strip {
  background: #2b3845;
  color: #e1e8f0;
  border-color: rgba(255,255,255,0.04);
}
.chat-bar.skin-tg .bubble-strip.urgent {
  background: linear-gradient(180deg, #2b3845 0%, #4a3030 100%);
  border-color: var(--urgent);
}
.chat-bar.skin-tg .bubble-strip-tag { background: var(--tg-blue-d); color: #fff; }
.chat-bar.skin-tg .bubble-strip.urgent .bubble-strip-tag { background: var(--urgent); }
.chat-bar.skin-tg .bubble-strip-time { color: #6b7d8e; }
.chat-bar.skin-tg .urgent-badge { background: var(--urgent); color: #fff; }
.chat-bar.skin-tg .chat-input-field {
  background: #232f3a;
  color: #6b7d8e;
  border-color: rgba(255,255,255,0.05);
}
.chat-bar.skin-tg .chat-send-btn {
  background: var(--tg-blue);
  color: #fff;
}
.chat-bar.skin-tg .live-dot { background: var(--tg-blue); }
.chat-bar.skin-tg .typing-strip-dot { background: var(--tg-blue); }
.chat-bar.skin-tg .chat-skin-strip .skin-btn.active { background: var(--tg-blue); color: #fff; }

/* Messenger skin */
.chat-bar.skin-ms {
  background: var(--ms-bg);
  color: #1c1c1c;
}
.chat-bar.skin-ms .chat-head-name { color: #111; }
.chat-bar.skin-ms .chat-head-status { color: #5a5a64; }
.chat-bar.skin-ms .chat-avatar {
  background: linear-gradient(135deg, var(--ms-1), var(--ms-2) 60%, var(--ms-3));
  color: #fff;
}
.chat-bar.skin-ms .bubble-strip {
  background: #f0f2f5;
  color: #111;
}
.chat-bar.skin-ms .bubble-strip.urgent {
  background: linear-gradient(180deg, #f0f2f5 0%, #fde7e1 100%);
  border-color: var(--urgent);
}
.chat-bar.skin-ms .bubble-strip-tag { background: var(--ms-2); color: #fff; }
.chat-bar.skin-ms .bubble-strip.urgent .bubble-strip-tag { background: var(--urgent); }
.chat-bar.skin-ms .bubble-strip-time { color: #777; }
.chat-bar.skin-ms .urgent-badge { background: var(--urgent); color: #fff; }
.chat-bar.skin-ms .chat-input-field {
  background: #f0f2f5;
  color: #888;
  border-color: rgba(0,0,0,0.06);
}
.chat-bar.skin-ms .chat-send-btn {
  background: linear-gradient(135deg, var(--ms-1), var(--ms-2) 60%, var(--ms-3));
  color: #fff;
}
.chat-bar.skin-ms .live-dot { background: var(--ms-2); }
.chat-bar.skin-ms .typing-strip-dot { background: var(--ms-2); }
.chat-bar.skin-ms .chat-skin-strip .skin-btn.active {
  background: linear-gradient(135deg, var(--ms-1), var(--ms-2) 60%, var(--ms-3));
  color: #fff;
}

.chat-bar-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 7px 12px;
  min-height: var(--chat-h);
}

.chat-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding-inline-end: 6px;
}
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.chat-head-info { line-height: 1.1; }
.chat-head-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.005em;
}
.chat-head-status {
  font-size: 10.5px;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.chat-messages-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  margin: 0 12px;
  padding: 4px 0;
  position: relative;
}

.bubble-strip {
  flex: 1 1 0;
  min-width: 0;
  max-width: 200px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 12px;
  line-height: 1.35;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: bubble-in 0.3s ease;
}
.bubble-strip.urgent {
  font-weight: 600;
}
.bubble-strip-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  margin-inline-end: 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.bubble-strip-text {
  font-weight: 500;
}
.bubble-strip-time {
  display: inline-block;
  margin-inline-start: 6px;
  font-size: 10px;
  vertical-align: middle;
}
.urgent-badge {
  display: inline-block;
  margin-inline-start: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.typing-strip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.typing-strip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.typing-strip-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-strip-dot:nth-child(3) { animation-delay: 0.30s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ─── REACTIONS PANEL — story reactions (visible per active story) ─── */
.reactions-panel {
  position: fixed;
  top: calc(1rem + var(--chat-h) + 16px);
  left: 1.5rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  direction: rtl;
}
.reaction-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(20,20,28,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  user-select: none;
}
.reaction-stat:hover {
  background: rgba(40,40,55,0.9);
  transform: translateX(2px);
}
.reaction-stat.active {
  background: rgba(217,119,87,0.18);
  border-color: var(--urgent);
  color: var(--ink);
}
.reaction-emoji {
  font-size: 16px;
  line-height: 1;
}
.reaction-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink);
}

/* ─── STORY CARDS (vertical stack) — POLISHED: less huge, more compact ─── */
.story-stream {
  position: relative;
  scroll-snap-type: y proximity;
  padding: 8px 0 40px;
}

.story-card {
  /* Was: min-height: calc(100vh - ...). Now compact, content-driven height. */
  min-height: 380px;
  height: auto;
  margin: 10px auto;
  max-width: 920px;
  width: calc(100vw - 48px);
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  position: relative;
  box-shadow:
    0 4px 18px rgba(0,0,0,0.4),
    0 1px 2px rgba(0,0,0,0.3);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}

/* Single-column layout for narrow viewports */
@media (max-width: 720px) {
  .story-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.story-image {
  position: relative;
  background: var(--cat-default);
  background-size: cover;
  background-position: center;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  overflow: hidden;
}
.story-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,13,0.10) 0%, rgba(10,10,13,0.50) 100%);
  pointer-events: none;
}
.story-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 14px);
  pointer-events: none;
}
.story-image-glyph {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  font-family: var(--font-title);
  font-size: 56px;
  font-weight: 900;
  color: rgba(255,255,255,0.10);
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}
.story-image-caption {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.story-image-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.story-image-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  display: inline-block;
}
.story-image-urgency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-start;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.story-image-urgency.breaking {
  background: var(--urgent);
  color: #fff;
  border-color: var(--urgent);
  box-shadow: 0 0 0 1px rgba(217,119,87,0.4);
}
.story-image-urgency.high {
  background: var(--high);
  color: #1c1c1c;
}

.story-body {
  display: flex;
  flex-direction: column;
  padding: 20px 24px 18px;
  position: relative;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
}

.story-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-dim);
  font-weight: 700;
  margin-bottom: 8px;
}
.story-eyebrow .eyebrow-cat {
  color: var(--ink);
  background: rgba(255,255,255,0.06);
  padding: 3px 10px;
  border-radius: 999px;
}
.story-eyebrow .eyebrow-kind {
  color: var(--ink-dim);
}

.story-headline {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.story-summary {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 12px;
}

.story-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-dim);
}
.story-meta-row .meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  font-weight: 600;
  color: var(--ink-2);
}

.story-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.story-action-btn {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--rule);
  color: var(--ink);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.story-action-btn:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--rule-2);
}
.story-action-btn.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.story-action-btn.primary:hover {
  background: #fff;
}

.story-tap-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 12px;
}
.story-tap-hint .arrow {
  animation: hint-bob 1.8s ease-in-out infinite;
}
@keyframes hint-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Per-category image tinting */
.story-card.cat-news .story-image    { background: linear-gradient(135deg, #1a2a3f 0%, #2c4a6b 100%); }
.story-card.cat-ai .story-image      { background: linear-gradient(135deg, #2a1a3f 0%, #4a3470 100%); }
.story-card.cat-tools .story-image   { background: linear-gradient(135deg, #16382d 0%, #2f6a55 100%); }
.story-card.cat-opinion .story-image { background: linear-gradient(135deg, #3a261a 0%, #7a4f30 100%); }
.story-card.cat-bench .story-image   { background: linear-gradient(135deg, #1f3a3a 0%, #3f5e5e 100%); }
.story-card.cat-guide .story-image   { background: linear-gradient(135deg, #3a2818 0%, #5a4028 100%); }

/* ─── READER OVERLAY (tap-to-open) ─── */
.reader-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  direction: rtl;
}
.reader-overlay.open { display: flex; }
.reader-card {
  background: var(--bg-2);
  border: 1px solid var(--rule-2);
  border-radius: 18px;
  max-width: 720px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}
.reader-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--ink);
  border: 1px solid var(--rule);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.reader-close:hover { background: rgba(255,255,255,0.15); }
.reader-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-dim);
  font-weight: 700;
  margin-bottom: 8px;
}
.reader-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.reader-dek {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0 0 16px;
  line-height: 1.5;
}
.reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--ink-dim);
}
.reader-meta .pill {
  background: rgba(255,255,255,0.06);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink-2);
}
.reader-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.reader-tldr {
  background: rgba(200,169,110,0.10);
  border: 1px solid rgba(200,169,110,0.30);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 20px 0;
}
.reader-tldr-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--high);
  font-weight: 800;
  margin-bottom: 6px;
}
.reader-tldr-text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}
.reader-takeaways {
  margin: 20px 0;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid var(--rule);
}
.reader-takeaways-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-dim);
  font-weight: 700;
  margin-bottom: 8px;
}
.reader-takeaways ul {
  margin: 0;
  padding-inline-start: 18px;
  color: var(--ink-2);
}
.reader-takeaways li {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 6px;
}
.reader-sources {
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.reader-sources a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin: 0 4px;
}

/* ─── STREAM HEADER (intro before cards) ─── */
.stream-intro {
  max-width: 880px;
  width: calc(100vw - 48px);
  margin: 4px auto 12px;
  padding: 18px 20px;
  background: rgba(28,28,36,0.6);
  border: 1px solid var(--rule);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  direction: rtl;
}
.stream-intro-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stream-intro-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-dim);
}
.stream-intro-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.stream-intro-sub {
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 2px;
}
.stream-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.stream-counter .num {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}
.stream-counter .lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  font-weight: 700;
}

/* ─── Progress indicator (right edge) ─── */
.stream-progress {
  position: fixed;
  top: 50%;
  inset-inline-end: 14px;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 4px;
  background: rgba(10,10,13,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid var(--rule);
}
.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.progress-dot.active {
  background: var(--ink);
  transform: scale(1.4);
}
.progress-dot.urgent.active {
  background: var(--urgent);
}

/* ─── Nav hint at bottom of first card ─── */
.scroll-hint {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(10,10,13,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 11px;
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.4s ease;
}
.scroll-hint.hide { opacity: 0; }
.scroll-hint .arrow {
  display: inline-block;
  animation: scroll-bounce 1.6s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .story-card { scroll-snap-stop: normal; }
  .bubble-strip { animation: none; }
}

/* ─── Mobile responsive ─── */
@media (max-width: 720px) {
  .chat-bar { top: 0.5rem; width: calc(100vw - 16px); }
  .chat-messages-strip { margin: 0 6px; }
  .bubble-strip { max-width: 140px; font-size: 11px; }
  .reactions-panel {
    top: calc(0.5rem + var(--chat-h) + 12px);
    left: 0.5rem;
  }
  .story-card { width: calc(100vw - 16px); margin: 8px auto; border-radius: 18px; }
  .story-image { min-height: 220px; }
  .story-body { padding: 20px 22px 18px; }
  .story-headline { font-size: 22px; }
  .stream-progress { display: none; }
  .page-title { display: none; }
  .page-nav a { padding: 6px 10px; font-size: 12px; }
  .brand-sub { display: none; }
}
