/* ============================================================
   SUP3RNOVA · Inspiration Radar — Reels viewer, archive, ranking
   Loaded after rails.css. Category color arrives as --cat / --cat-ink
   (set inline on .reelviewer / archive cards), falling back to accent.
   z ladder: archive 57 < reelviewer 58 < .overlay 60 < .toast 90.
   ============================================================ */

/* ============================================================
   REEL VIEWER
   ============================================================ */
.reelviewer {
  position: absolute; inset: 0; z-index: 58;
  background: oklch(0.06 0.008 285);
  overflow: hidden;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
  cursor: grab;
  animation: reel-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reelviewer:active { cursor: grabbing; }
@keyframes reel-in { from { opacity: 0; transform: scale(1.045); } }

.reel__track { position: absolute; inset: 0; }
.reel__cell { position: absolute; inset: 0; will-change: transform; }

/* ---------- media ---------- */
.reel__media { position: absolute; inset: 0; overflow: hidden; background: oklch(0.08 0.01 285); }
.reel__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__kb {
  position: absolute; inset: 0;
  animation: kenburns 18s ease-in-out infinite alternate;
  will-change: transform;
}
.reel__kb.is-paused { animation-play-state: paused; }
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.1) translate(-1.5%, 1.5%); }
}
.reel__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
  pointer-events: none;             /* the gesture layer owns all input */
}
.reel__media .media__grain, .reel__media .media__vign { z-index: 2; }
/* live reels carry their own imagery — keep the vignette barely-there */
.media__vign--soft { opacity: 0.45; }

/* chrome fades while holding (peek at the media) */
.reel__chrome { transition: opacity 0.25s ease; }
.reelviewer.is-holding .reel__chrome { opacity: 0; }

/* ---------- top: clip segments + lane dots ---------- */
.reel__top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  padding: max(12px, env(safe-area-inset-top)) 14px 18px;
  background: linear-gradient(oklch(0 0 0 / 0.5), oklch(0 0 0 / 0.22) 55%, transparent);
  pointer-events: none;
}
.reel__top button { pointer-events: auto; }
.reel__segs { display: flex; gap: 4px; }
.reel__segs i {
  position: relative; display: block; overflow: hidden;
  flex: 1; height: 2.5px; border-radius: 2px;
  background: oklch(1 0 0 / 0.22);
}
.reel__segs i b {
  position: absolute; inset: 0; display: block;
  background: var(--cat, var(--accent));
  transform-origin: left center; transform: scaleX(0);
}
.reel__lanerow { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.reel__lanes { display: flex; gap: 5px; }
.reel__lanes i {
  width: 5px; height: 5px; border-radius: 50%;
  background: oklch(1 0 0 / 0.3);
  transition: background 0.2s, box-shadow 0.2s;
}
.reel__lanes i.on { background: var(--cat, var(--accent)); box-shadow: 0 0 9px var(--cat, var(--accent)); }
.reel__lanename {
  font-family: var(--label); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: oklch(1 0 0 / 0.85);
  text-shadow: 0 1px 8px oklch(0 0 0 / 0.6);
  flex: 1 1 auto;
}
.reel__close { background: oklch(0.12 0.01 285 / 0.5); }

/* ---------- right action rail ---------- */
.reel__rail {
  position: absolute; right: 10px; bottom: 118px; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.reel__rbtn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; padding: 4px; cursor: pointer;
  color: oklch(1 0 0 / 0.92);
  transition: transform 0.15s ease;
}
.reel__rbtn:active { transform: scale(0.88); }
.reel__rbtn svg { width: 24px; height: 24px; stroke-width: 1.7; filter: drop-shadow(0 2px 8px oklch(0 0 0 / 0.55)); }
.reel__rbtn span {
  font-family: var(--mono); font-size: 10px;
  color: oklch(1 0 0 / 0.8);
  text-shadow: 0 1px 6px oklch(0 0 0 / 0.6);
}
.reel__rbtn.on { color: var(--cat, var(--accent)); }
.reel__rbtn.on svg { fill: currentColor; }

/* ---------- caption strip (slides with the cell, stays out of the way) ----------
   Live reels usually have burned-in text, so the default overlay is a thin
   one-line caption; the full editorial lives in the pull-up panel. */
.reel__meta {
  position: absolute; left: 0; right: 60px; bottom: 0; z-index: 4;
  padding: 30px 16px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, oklch(0 0 0 / 0.5));
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  pointer-events: none;
}
.reel__meta > * { pointer-events: auto; }
.reel__caption {
  display: flex; align-items: center; gap: 10px;
  max-width: 100%;
  background: none; border: none; padding: 0; cursor: pointer;
  text-align: left;
}
.reel__caption .txt {
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  color: oklch(1 0 0 / 0.94);
  text-shadow: 0 1px 8px oklch(0 0 0 / 0.65);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}
.reel__caption .more {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.85);
  padding: 4px 9px; border-radius: 100px;
  background: oklch(0.1 0.01 285 / 0.5);
  border: 1px solid oklch(1 0 0 / 0.16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.reel__caption .more svg { width: 11px; height: 11px; }

/* ---------- pull-up analysis panel ---------- */
.reel__panelwrap { position: absolute; inset: 0; z-index: 6; }
.reel__panelscrim {
  position: absolute; inset: 0;
  background: oklch(0 0 0 / 0.35);
  animation: end-in 0.22s ease;
}
.reel__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 64%;
  overflow-y: auto;
  padding: 10px 18px calc(max(18px, env(safe-area-inset-bottom)) + 6px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 11px;
  border-radius: 20px 20px 0 0;
  background: oklch(0.15 0.012 285 / 0.92);
  border-top: 1px solid oklch(1 0 0 / 0.12);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  animation: panel-up 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes panel-up { from { transform: translateY(24px); opacity: 0; } }
.reel__panelgrip {
  width: 38px; height: 4px; border-radius: 3px;
  background: oklch(1 0 0 / 0.22);
  align-self: center;
  margin-bottom: 2px;
}
.reel__panelfoot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  width: 100%;
  padding-top: 4px;
}
.reel__panelfoot .hunter { flex: 1; min-width: 0; }
.reel__source {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--label); font-size: 11.5px; font-weight: 600;
  color: var(--cat, var(--accent));
  text-decoration: none;
  padding: 8px 13px; border-radius: 100px;
  border: 1px solid color-mix(in oklch, var(--cat, var(--accent)) 55%, transparent);
}
.reel__source svg { width: 12px; height: 12px; }
.reel__chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reel__catchip {
  font-family: var(--label); font-size: 10px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--cat-ink, var(--accent-ink));
  background: var(--cat, var(--accent));
  padding: 4px 9px; border-radius: 100px;
}
.reel__kindchip {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em;
  color: oklch(0.95 0.01 285 / 0.85);
  padding: 4px 8px; border-radius: 100px;
  background: oklch(0.1 0.01 285 / 0.5);
  border: 1px solid oklch(1 0 0 / 0.14);
}
.reel__head {
  font-family: var(--serif); font-weight: 700;
  font-size: 21px; line-height: 1.18; letter-spacing: -0.01em;
  color: oklch(0.985 0.003 285);
  text-wrap: balance;
}
.reel__why {
  font-size: 13.5px; line-height: 1.6;
  color: oklch(1 0 0 / 0.85);
}
.reel__action {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 12.5px; line-height: 1.5; color: oklch(1 0 0 / 0.88);
  padding: 9px 11px; border-radius: var(--radius-sm);
  background: oklch(0.14 0.015 285 / 0.55);
  border: 1px solid oklch(1 0 0 / 0.1);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.reel__action > span:not(.ico) {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.reel__action .ico { flex: 0 0 auto; margin-top: 2px; }
.reel__action .ico svg { width: 14px; height: 14px; color: var(--cat, var(--accent)); }
.reel__action b { color: var(--cat, var(--accent)); font-weight: 600; }

/* ---------- paused badge ---------- */
.reel__pausedbadge {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center;
  pointer-events: none;
  animation: paused-in 0.18s ease;
}
.reel__pausedbadge svg {
  width: 56px; height: 56px;
  color: oklch(1 0 0 / 0.88);
  filter: drop-shadow(0 4px 22px oklch(0 0 0 / 0.6));
}
@keyframes paused-in { from { opacity: 0; transform: scale(1.25); } }

/* ---------- first-run cue ---------- */
.reel__cue {
  position: absolute; left: 50%; bottom: 47%; z-index: 5;
  transform: translateX(-50%) translateY(6px);
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em;
  color: oklch(1 0 0 / 0.85);
  padding: 8px 13px; border-radius: 100px;
  background: oklch(0.1 0.01 285 / 0.55);
  border: 1px solid oklch(1 0 0 / 0.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reel__cue.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.reel__cue span { display: flex; align-items: center; gap: 4px; }
.reel__cue svg { width: 13px; height: 13px; }
.reel__cue .sep { width: 1px; height: 12px; background: oklch(1 0 0 / 0.25); }

/* ---------- end card ---------- */
.reel__end {
  position: absolute; inset: 0; z-index: 6;
  display: grid; place-items: center;
  background: oklch(0.08 0.01 285 / 0.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  animation: end-in 0.35s ease;
}
@keyframes end-in { from { opacity: 0; } }
.reel__endcard {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; padding: 0 34px;
}
.reel__endcard h2 {
  font-family: var(--serif); font-weight: 700; font-size: 30px;
  color: var(--text);
}
.reel__endcard p { font-size: 13px; color: var(--muted); }
.reel__endcard .btns { display: flex; gap: 10px; margin-top: 14px; }
.reel__endcard button {
  font-family: var(--label); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em;
  padding: 11px 18px; border-radius: 100px; cursor: pointer;
  transition: transform 0.15s ease;
}
.reel__endcard button:active { transform: scale(0.95); }
.reel__endcard .primary {
  border: none; color: var(--accent-ink);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
.reel__endcard .ghost {
  background: none; color: var(--muted);
  border: 1px solid var(--hairline);
}

/* ============================================================
   RANKING CUES (newsletter cards + reels)
   ============================================================ */
.rankbadge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--label); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 100px;
  color: var(--accent-ink);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  white-space: nowrap;
}
.rankbadge--top3 {
  color: var(--cat, var(--accent));
  background: oklch(0.16 0.015 285 / 0.6);
  border: 1px solid var(--cat, var(--accent));
  font-family: var(--mono); font-weight: 500; letter-spacing: 0.08em;
}
.rankbadge svg { width: 11px; height: 11px; }
.rcard__rank { position: absolute; top: 8px; left: 8px; z-index: 3; }

/* per-category trend note in the newsletter */
.trendnote {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 0 0;
  font-family: var(--mono); font-size: 11px; line-height: 1.5;
  color: var(--muted);
  flex-basis: 100%;
}
.trendnote svg { width: 12px; height: 12px; color: var(--cat, var(--accent)); flex: 0 0 auto; }
.trendnote .dir { color: var(--cat, var(--accent)); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================================
   TOP SIGNAL CALLOUT (newsletter)
   ============================================================ */
.topsignal {
  display: flex; align-items: center; gap: 13px;
  margin: 22px 22px 4px;
  padding: 13px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, oklch(0.22 0.05 292 / 0.55), oklch(0.18 0.03 260 / 0.45));
  border: 1px solid oklch(0.55 0.1 290 / 0.35);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.topsignal:active { transform: scale(0.985); }
.topsignal .px {
  position: relative; width: 58px; height: 74px; flex: 0 0 auto;
  border-radius: calc(var(--radius) - 5px); overflow: hidden;
}
.topsignal .meta { flex: 1; min-width: 0; }
.topsignal .meta .t {
  font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1.2;
  color: var(--text); margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.topsignal .meta .s { font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.topsignal .go {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent-ink);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
.topsignal .go svg { width: 17px; height: 17px; }

/* hero "watch the week" pill */
.hero__watch {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  font-family: var(--label); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent-ink);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: none; border-radius: 100px;
  padding: 11px 18px; cursor: pointer;
  box-shadow: 0 8px 26px -10px var(--accent);
  transition: transform 0.15s ease;
}
.hero__watch:active { transform: scale(0.96); }
.hero__watch svg { width: 13px; height: 13px; }

/* archive link row under the tag chips */
.archivelink {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  margin-top: 16px; padding: 13px 14px;
  font-family: var(--label); font-size: 12.5px; font-weight: 600;
  color: var(--muted);
  background: var(--surface); border: 1px solid var(--hairline-soft);
  border-radius: var(--radius); cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.archivelink:hover { color: var(--text); border-color: var(--hairline); }
.archivelink svg { width: 15px; height: 15px; color: var(--accent); }
.archivelink .arr { margin-left: auto; color: var(--faint); }

/* ============================================================
   HUNT ARCHIVE
   ============================================================ */
.archive {
  position: absolute; inset: 0; z-index: 57;
  background: var(--bg-deep);
  display: flex; flex-direction: column;
  animation: end-in 0.28s ease;
}
.archive__head {
  display: flex; align-items: center; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid var(--hairline-soft);
  flex: 0 0 auto;
}
.archive__title { flex: 1; }
.archive__title .t {
  font-family: var(--label); font-weight: 700; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
}
.archive__title .s { font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 3px; }
.archive__filters {
  flex: 0 0 auto;
  padding: 12px 16px 4px;
  display: flex; flex-direction: column; gap: 10px;
  border-bottom: 1px solid var(--hairline-soft);
}
.archive__filters .chiprow { padding: 0; }
.archive__hunters {
  display: flex; gap: 9px; overflow-x: auto; padding-bottom: 10px;
  scrollbar-width: none;
}
.archive__hunters::-webkit-scrollbar { display: none; }
.archive__hunterbtn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; padding: 2px; cursor: pointer;
  flex: 0 0 auto; opacity: 0.62;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.archive__hunterbtn.on, .archive__hunterbtn:hover { opacity: 1; }
.archive__hunterbtn.on .avatar { outline: 2px solid var(--accent); outline-offset: 2px; }
.archive__hunterbtn span {
  font-family: var(--mono); font-size: 8.5px; color: var(--muted);
  max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.archive__sortrow { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; }
.archive__count { font-family: var(--mono); font-size: 10.5px; color: var(--faint); flex: 1; }
.archive__sort {
  display: flex; border: 1px solid var(--hairline-soft); border-radius: 100px; overflow: hidden;
}
.archive__sort button {
  font-family: var(--label); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em;
  padding: 6px 13px; border: none; cursor: pointer;
  background: none; color: var(--faint);
}
.archive__sort button.on { background: var(--surface); color: var(--text); }
.archive__body { flex: 1; overflow-y: auto; padding: 14px 14px 30px; }
.archive__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acard {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  overflow: hidden; cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.acard:active { transform: scale(0.97); }
.acard:hover { border-color: color-mix(in oklch, var(--cat, var(--accent)) 55%, transparent); }
.acard__thumb { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.acard__thumb .media__vign { z-index: 2; }
.acard__kind {
  position: absolute; left: 8px; bottom: 8px; z-index: 3;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.06em;
  color: oklch(0.95 0.01 285 / 0.85);
  padding: 3px 7px; border-radius: 100px;
  background: oklch(0.1 0.01 285 / 0.55);
  border: 1px solid oklch(1 0 0 / 0.12);
}
.acard__rank { position: absolute; top: 8px; left: 8px; z-index: 3; }
.acard__body { padding: 10px 11px 12px; }
.acard__cat {
  font-family: var(--label); font-size: 8.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cat, var(--accent));
}
.acard__head {
  font-family: var(--serif); font-weight: 600; font-size: 13.5px; line-height: 1.25;
  color: var(--text); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.acard__foot {
  display: flex; align-items: center; gap: 6px; margin-top: 8px;
  font-family: var(--mono); font-size: 9.5px; color: var(--faint);
}
.acard__foot .who { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard__likes { display: flex; align-items: center; gap: 3px; }
.acard__likes svg { width: 9px; height: 9px; }
.acard__bar {
  height: 2px; border-radius: 2px; margin-top: 8px;
  background: var(--hairline-soft);
  overflow: hidden; position: relative;
}
.acard__bar i {
  position: absolute; inset: 0; display: block;
  transform-origin: left center;
  background: var(--cat, var(--accent));
}
.archive__empty {
  grid-column: 1 / -1;
  text-align: center; padding: 44px 20px;
  font-size: 13px; color: var(--faint);
}

/* ============================================================
   LIVE MEDIA IN CARDS (no player chrome: autoplay in view, tap to pause)
   ============================================================ */
.media__video, .media__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.media__video { cursor: pointer; }
.media__poster { pointer-events: none; }
.media__pausedot {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  pointer-events: none;
  animation: paused-in 0.18s ease;
}
.media__pausedot svg {
  width: 34px; height: 34px;
  color: oklch(1 0 0 / 0.85);
  filter: drop-shadow(0 3px 14px oklch(0 0 0 / 0.6));
}

/* ============================================================
   MASTHEAD (typographic cover + top-saves filmstrip)
   ============================================================ */
.masthead {
  position: relative;
  padding: 92px 0 26px;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline-soft);
}
.masthead__bg { position: absolute; inset: 0; z-index: 0; opacity: 0.8; }
.masthead::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, var(--bg) 2%, transparent 55%);
  pointer-events: none;
}
.masthead .media__grain { position: absolute; inset: 0; z-index: 1; }
.masthead__content {
  position: relative; z-index: 2;
  padding: 0 22px 26px;
}
.masthead h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(34px, 10vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 14px;
  color: var(--text);
}
.masthead h1 em { font-style: italic; color: var(--accent); font-weight: 700; }
.masthead__strip { position: relative; z-index: 2; }
.masthead__striplabel {
  display: block;
  padding: 0 22px 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint);
}
.stripscroll {
  display: flex; gap: 9px;
  overflow-x: auto;
  padding: 0 22px 4px;
  scrollbar-width: none;
}
.stripscroll::-webkit-scrollbar { display: none; }
.stripthumb {
  position: relative; flex: 0 0 auto;
  width: 84px; aspect-ratio: 9 / 14;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid oklch(1 0 0 / 0.14);
  padding: 0; cursor: pointer;
  background: var(--surface);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.stripthumb:active { transform: scale(0.94); }
.stripthumb:hover { border-color: var(--cat, var(--accent)); }
.stripthumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.stripthumb .n {
  position: absolute; left: 6px; bottom: 6px; z-index: 2;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 9px;
  color: oklch(1 0 0 / 0.92);
  background: oklch(0.1 0.01 285 / 0.62);
  border: 1px solid oklch(1 0 0 / 0.18);
  border-radius: 6px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* archive thumbs show the live poster */
.acard__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
  pointer-events: none;
}

/* ============================================================
   CAROUSEL FORMAT (reel viewer)
   Slides are paced by the clip clock; edge taps step them manually.
   ============================================================ */
.reel__frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.reel__frame.on { opacity: 1; }
.reel__zone {
  position: absolute; top: 16%; bottom: 26%;
  width: 22%; z-index: 3;
  display: flex; align-items: center;
  /* tap targets; drags starting here still reach the gesture layer */
}
.reel__zone--l { left: 0; justify-content: flex-start; padding-left: 8px; }
.reel__zone--r { right: 0; justify-content: flex-end; padding-right: 8px; }
.reel__zone.off { opacity: 0; }
.reel__zonecue {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: oklch(0.1 0.01 285 / 0.42);
  border: 1px solid oklch(1 0 0 / 0.16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: 0.75;
}
.reel__zonecue svg { width: 14px; height: 14px; color: oklch(1 0 0 / 0.9); }

.reel__carchrome {
  position: absolute; top: calc(max(12px, env(safe-area-inset-top)) + 48px);
  left: 14px; right: 14px; z-index: 5;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  pointer-events: none;
}
.reel__slidecount {
  position: absolute; right: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  color: oklch(1 0 0 / 0.92);
  padding: 3px 8px; border-radius: 100px;
  background: oklch(0.1 0.01 285 / 0.5);
  border: 1px solid oklch(1 0 0 / 0.14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.reel__framedots {
  display: flex; justify-content: center; gap: 5px;
  pointer-events: none;
}
.reel__framedots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: oklch(1 0 0 / 0.35);
  box-shadow: 0 1px 4px oklch(0 0 0 / 0.4);
  transition: background 0.2s, transform 0.2s;
}
.reel__framedots i.on {
  background: oklch(1 0 0 / 0.95);
  transform: scale(1.25);
}

/* ---------- masthead hunter strip (who shared this week) ---------- */
.hunterstrip { position: relative; z-index: 2; margin-bottom: 18px; }
.hunterstrip__row {
  display: flex; gap: 14px;
  overflow-x: auto;
  padding: 0 22px 4px;
  scrollbar-width: none;
}
.hunterstrip__row::-webkit-scrollbar { display: none; }
.hunterstrip__btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  flex: 0 0 auto;
  background: none; border: none; padding: 2px; cursor: pointer;
  transition: transform 0.15s ease;
}
.hunterstrip__btn:active { transform: scale(0.94); }
.hunterstrip__btn .avatar--ring {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent);
}
.hunterstrip__btn .hh {
  font-family: var(--mono); font-size: 9.5px; color: var(--text);
  max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hunterstrip__btn .hc { font-family: var(--mono); font-size: 8.5px; color: var(--faint); }

/* no bottom action bar anymore — content and floaters sit at the frame edge */
.scroll-inner { padding-bottom: 34px; }
.toast { bottom: 24px; }
.filterpill { bottom: 20px; }

/* real submitter profile pictures in avatars */
.avatar__pic {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
}

/* ============================================================
   MOTION SAFETY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reel__kb, .reelviewer, .reel__pausedbadge, .reel__end, .archive { animation: none; }
  .reel__track { transition: none !important; }
}
