/* ===================================================================
   PROFIL-HUB — design tokens & base styles
   Warm near-black "cinema lobby". Gold = alive/important.
   Type: Cormorant (cinematic serif) · JetBrains Mono (chrome) · Hanken (body)
   =================================================================== */

:root {
  /* surfaces */
  --bg:        #0a0809;
  --bg-2:      #0c0a10;

  /* ink */
  --ink:       #f3efe8;
  --ink-soft:  #cbc6cf;
  --ink-mute:  #8e8a94;
  --ink-faint: #65616b;

  /* accents — the platform palette */
  --gold:        #e7c87a;
  --gold-deep:   #d4a550;
  --gold-bright: #f5c518;
  --cyan:        #7fb2e0;
  --magenta:     #e08ab0;
  --violet:      #c1a0e0;
  --emerald:     #7fd0b0;
  --silver:      #b6b2bc;

  /* tier glow (rgb triplets for alpha use) */
  --gold-rgb:    231,200,122;
  --cyan-rgb:    127,178,224;
  --magenta-rgb: 224,138,176;
  --violet-rgb:  193,160,224;
  --emerald-rgb: 127,208,176;
  --silver-rgb:  182,178,188;

  /* content surfaces */
  --surface:    rgba(24,20,30,0.55);
  --surface-2:  rgba(17,14,22,0.50);
  --surface-hi: rgba(30,25,38,0.66);
  --hairline:   rgba(255,255,255,0.07);
  --hairline-2: rgba(255,255,255,0.045);
  --gold-line:  rgba(212,165,80,0.20);

  /* type */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans:  'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* rhythm */
  --col: 700px;
  --gap: 14px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The living space: warm-dark depth + edge vignette behind everything */
.hub-space {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(231,200,122,0.10) 0%, rgba(231,200,122,0) 42%),
    radial-gradient(120% 90% at 50% 115%, rgba(60,90,150,0.16) 0%, rgba(60,90,150,0) 50%),
    radial-gradient(140% 120% at 50% 40%, rgba(14,11,18,0) 38%, rgba(5,4,7,0.92) 100%),
    linear-gradient(180deg, #0b0810 0%, #08070b 55%, #0a0809 100%);
}
.hub-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Keep the motes in the side gutters only — cut them out of the centre
     column band so they never drift over the post cards (looked like dirt).
     Soft 40px feather; on narrow screens the band covers the viewport, so the
     field naturally fades to none. */
  -webkit-mask-image: linear-gradient(90deg,
    #000 0,
    #000 calc(50% - var(--col) / 2 - 40px),
    transparent calc(50% - var(--col) / 2),
    transparent calc(50% + var(--col) / 2),
    #000 calc(50% + var(--col) / 2 + 40px),
    #000 100%);
          mask-image: linear-gradient(90deg,
    #000 0,
    #000 calc(50% - var(--col) / 2 - 40px),
    transparent calc(50% - var(--col) / 2),
    transparent calc(50% + var(--col) / 2),
    #000 calc(50% + var(--col) / 2 + 40px),
    #000 100%);
}

/* scroll container sits above the space */
.hub-scroll {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  /* Belt-and-suspenders against horizontal wobble on mobile. `clip` (not
     `hidden`) does NOT create a scroll container, so the sticky topbar still
     sticks. The real fix is the mobile topbar sizing below. */
  overflow-x: clip;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px max(20px, calc((100vw - var(--col)) / 2 - 120px));
  background: linear-gradient(180deg, rgba(8,6,11,0.86) 0%, rgba(8,6,11,0.40) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--hairline-2);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  cursor: pointer;
}
.brand-mark {
  width: 22px; height: 22px;
  display: grid; place-items: center;
}
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px;
  display: block; object-fit: cover;
  box-shadow: 0 0 18px -4px rgba(127,178,224,0.5), inset 0 0 0 0.5px rgba(255,255,255,0.08);
}
.brand-name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2.5px;
  font-weight: 700;
  color: var(--ink);
}
.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  padding: 3px;
  border-radius: 11px;
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--hairline-2);
}
.topnav button {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: var(--ink-mute);
  background: none;
  border: 0;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.topnav button:hover { color: var(--ink-soft); }
.topnav button.on {
  color: #1a1206;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  box-shadow: 0 0 16px rgba(231,200,122,0.30);
}
.top-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.lang {
  display: flex;
  gap: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
}
.lang span {
  padding: 3px 6px;
  border-radius: 6px;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color .15s;
}
.lang span:hover { color: var(--ink-mute); }
.lang span.on { color: var(--cyan); background: rgba(127,178,224,0.12); }
.avatar-sm {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg,#3a2f1a,#7a5c22);
  display: grid; place-items: center;
  color: var(--gold); font-family: var(--mono); font-weight: 700; font-size: 11px;
  border: 0.5px solid var(--gold-line);
  cursor: pointer;
}
button.avatar-sm { padding: 0; }   /* it's the account-menu trigger (<button>) now */

/* top-right account menu (sign out) */
.acct-wrap { position: relative; flex: none; }
.acct-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  display: flex; flex-direction: column; min-width: 170px;
  padding: 5px; border-radius: 11px;
  background: var(--surface-hi); border: 0.5px solid var(--gold-line);
  box-shadow: 0 20px 44px -22px rgba(0,0,0,0.85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.acct-menu button {
  text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 13px; color: var(--ink-soft);
  padding: 9px 11px; border-radius: 7px; transition: background .15s, color .15s;
}
.acct-menu button:hover { background: rgba(231,200,122,0.08); color: var(--ink); }
.acct-menu button.signout { border-top: 0.5px solid var(--hairline-2); margin-top: 3px; padding-top: 10px; color: var(--ink-mute); }
.acct-menu button.signout:hover { background: rgba(var(--magenta-rgb),0.10); color: var(--magenta); }

/* ---------- column ---------- */
.col {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 26px 20px 120px;
}

/* ---------- identity header ---------- */
.identity {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28,22,34,0.46) 0%, rgba(16,13,20,0.30) 100%);
  border: 0.5px solid var(--gold-line);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 40px -28px rgba(0,0,0,0.8);
}
.avatar-lg {
  position: relative;
  width: 66px; height: 66px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg,#2e2614 0%,#6f5320 55%,#322715 100%);
  display: grid; place-items: center;
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 600; font-size: 24px; letter-spacing: 1px;
  box-shadow: 0 0 0 1px rgba(231,200,122,0.35), 0 0 26px -4px rgba(231,200,122,0.30);
}
/* avatar is now a button (opens the photo chooser) — strip button chrome */
button.avatar-lg { border: 0; padding: 0; cursor: pointer; font: inherit; }
.avatar-wrap { position: relative; flex: none; }
.avatar-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 50;
  display: flex; flex-direction: column; min-width: 184px;
  padding: 5px; border-radius: 11px;
  background: var(--surface-hi); border: 0.5px solid var(--gold-line);
  box-shadow: 0 20px 44px -22px rgba(0,0,0,0.85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.avatar-menu button {
  text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 13px; color: var(--ink-soft);
  padding: 9px 11px; border-radius: 7px; transition: background .15s, color .15s;
}
.avatar-menu button:hover { background: rgba(231,200,122,0.08); color: var(--ink); }
.avatar-menu button.signout { border-top: 0.5px solid var(--hairline-2); margin-top: 3px; padding-top: 10px; color: var(--ink-mute); }
.avatar-menu button.signout:hover { background: rgba(var(--magenta-rgb),0.10); color: var(--magenta); }
.avatar-lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 24px;
  background: rgba(5,4,7,0.85);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.avatar-lightbox-img {
  max-width: min(90vw, 560px); max-height: 85vh; object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 90px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(231,200,122,0.25);
}
.avatar-lightbox-mono {
  width: min(70vw, 320px); height: min(70vw, 320px); border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg,#2e2614 0%,#6f5320 55%,#322715 100%);
  color: var(--gold); font-family: var(--serif); font-size: 96px; letter-spacing: 2px;
  box-shadow: 0 0 0 1px rgba(231,200,122,0.35), 0 0 40px -6px rgba(231,200,122,0.3);
}

/* ---------- post-media 16:9 cinematic lightbox ---------- */
.media-lightbox {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center; padding: 14px;
  background: rgba(3,2,5,0.93);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.media-lightbox-frame {
  position: relative;
  aspect-ratio: 16 / 9;          /* cinema — never 9:16 */
  /* Fit BOTH dimensions while staying 16:9: width capped by the viewport width
     AND by the height-derived width (156vh keeps height ≈ 88vh). Landscape →
     big; portrait → naturally smaller. */
  width: min(94vw, 156vh);
  max-width: 1680px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 100px -28px rgba(0,0,0,0.95), 0 0 0 1px rgba(231,200,122,0.22);
  cursor: default;
}
.media-lightbox-img {
  width: 100%; height: 100%;
  object-fit: cover;             /* media is authored 16:9 → edge-to-edge fill, no letterbox */
  display: block;
}
/* Burned-in caption — mirrors the small card's bottom-left .ml/.t style, bigger
   and viewport-scaled. Dark gradient under it for contrast over the cover image. */
.media-lightbox-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,6,11,0) 55%, rgba(8,6,11,0.88) 100%);
}
.media-lightbox-cap {
  position: absolute;
  left: clamp(14px, 2.4vw, 30px); right: clamp(14px, 2.4vw, 30px);
  bottom: clamp(12px, 2vw, 26px);
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(15px, 2.2vw, 26px); line-height: 1.18;
  color: #f6f1e7; text-shadow: 0 1px 14px rgba(0,0,0,0.78);
  pointer-events: none;
}
.media-lightbox-cap .series { color: var(--gold); font-style: italic; }

/* ---------- anon gate (blurred live feed + sign-up invite) ---------- */
.hub-gate {
  position: fixed; inset: 0; z-index: 85;
  display: grid; place-items: center; padding: 24px;
  background: rgba(6,4,10,0.42);
  -webkit-backdrop-filter: blur(7px) saturate(1.04);
  backdrop-filter: blur(7px) saturate(1.04);
}
.hub-gate-modal {
  max-width: min(92vw, 420px); text-align: center;
  padding: 30px 26px 26px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(28,22,34,0.92) 0%, rgba(14,11,18,0.95) 100%);
  border: 0.5px solid var(--gold-line);
  box-shadow: 0 30px 80px -28px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.05);
}
.hub-gate-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.6px; font-weight: 700;
  color: var(--gold); margin-bottom: 14px;
}
.hub-gate-title {
  font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1;
  color: #f6f1e7; margin: 0 0 10px;
}
.hub-gate-body {
  font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--ink-soft);
  margin: 0 0 22px;
}
.hub-gate-cta {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px; font-weight: 700;
  color: #1a1206;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  border: 0; border-radius: 11px; padding: 13px 26px; cursor: pointer;
  box-shadow: 0 0 24px -6px rgba(231,200,122,0.45);
  transition: transform .18s, box-shadow .18s;
}
.hub-gate-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 30px -6px rgba(231,200,122,0.55); }

.media-lightbox-hint {
  position: absolute; left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: none;                 /* shown only in portrait (below) */
  align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.5px;
  color: var(--ink-soft);
  background: rgba(8,6,11,0.72); border: 0.5px solid var(--gold-line);
  padding: 7px 14px; border-radius: 20px;
  pointer-events: none; white-space: nowrap;
  max-width: 92vw; overflow: hidden; text-overflow: ellipsis;
}
.media-lightbox-hint::before { content: '⟳'; font-size: 13px; opacity: 0.85; }
@media (orientation: portrait) {
  .media-lightbox-hint { display: inline-flex; }
}

.identity-main { flex: 1; min-width: 0; }
.identity-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0.5px;
  color: #f6f1e7;
  margin: 0;
}
.identity-meta {
  display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap;
}
.handle {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.5px;
  color: var(--ink-faint);
}
.identity-actions { display: flex; gap: 8px; flex: none; }

/* tier badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 9px;
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  white-space: nowrap;
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.badge.live .dot { animation: pulse 2.4s ease-in-out infinite; }

@keyframes pulse {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%     { transform: scale(1.5); opacity: 0.55; }
}

/* tier color helpers (set via .tier-*) */
.tier-gold    { color: var(--gold);    background: rgba(var(--gold-rgb),0.13);    border: 0.5px solid rgba(var(--gold-rgb),0.42); }
.tier-gold    .dot { background: var(--gold);    box-shadow: 0 0 7px var(--gold); }
.tier-cyan    { color: var(--cyan);    background: rgba(var(--cyan-rgb),0.13);    border: 0.5px solid rgba(var(--cyan-rgb),0.38); }
.tier-cyan    .dot { background: var(--cyan);    box-shadow: 0 0 7px var(--cyan); }
.tier-magenta { color: var(--magenta); background: rgba(var(--magenta-rgb),0.13); border: 0.5px solid rgba(var(--magenta-rgb),0.40); }
.tier-magenta .dot { background: var(--magenta); box-shadow: 0 0 7px var(--magenta); }
.tier-violet  { color: var(--violet);  background: rgba(var(--violet-rgb),0.13);  border: 0.5px solid rgba(var(--violet-rgb),0.38); }
.tier-violet  .dot { background: var(--violet);  box-shadow: 0 0 7px var(--violet); }
.tier-emerald { color: var(--emerald); background: rgba(var(--emerald-rgb),0.13); border: 0.5px solid rgba(var(--emerald-rgb),0.38); }
.tier-emerald .dot { background: var(--emerald); box-shadow: 0 0 7px var(--emerald); }
.tier-silver  { color: var(--silver);  background: rgba(var(--silver-rgb),0.10);  border: 0.5px solid rgba(var(--silver-rgb),0.28); }
.tier-silver  .dot { background: var(--silver); }
.tier-narrator{ color: #f0e6cf; background: rgba(240,230,207,0.10); border: 0.5px solid rgba(240,230,207,0.30); }
.tier-narrator .dot { background: #f0e6cf; box-shadow: 0 0 8px rgba(240,230,207,0.9); }

/* ghost button */
.ghost {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 600;
  color: var(--ink-mute);
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--hairline);
  border-radius: 9px;
  padding: 8px 13px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.ghost:hover { color: var(--ink); border-color: var(--gold-line); background: rgba(231,200,122,0.07); }

/* ---------- 4 fixed sections ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.stat {
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 0.5px solid var(--hairline-2);
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.7,.2,1), border-color .22s, background .22s;
}
.stat:hover { transform: translateY(-2px); border-color: var(--gold-line); background: rgba(231,200,122,0.05); }
.stat.on { border-color: rgba(var(--gold-rgb),0.5); background: rgba(231,200,122,0.07); }
.stat-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: 600;
  color: var(--gold-deep);
}
.stat-num {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  margin-top: 7px;
}
.stat-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.5px;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ---------- section divider ---------- */
.divider {
  display: flex; align-items: center; gap: 10px;
  margin: 30px 2px 14px;
}
.divider .glyph { color: var(--gold-deep); font-size: 9px; }
.divider .label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--ink-mute);
}
.divider .rule { flex: 1; height: 0.5px; background: var(--hairline); }
.divider .count {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 1px;
  color: var(--ink-faint);
}

/* ---------- focus / showcase ---------- */
.focus {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 0.5px solid var(--gold-line);
  box-shadow: 0 28px 60px -34px rgba(0,0,0,0.9), inset 0 0 0 1px rgba(255,255,255,0.03);
}
.focus-media {
  position: relative;
  aspect-ratio: 21 / 9;
  background-size: cover;
  background-position: center 28%;
}
.focus-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,6,11,0) 30%, rgba(8,6,11,0.55) 72%, rgba(8,6,11,0.94) 100%),
    linear-gradient(90deg, rgba(8,6,11,0.62) 0%, rgba(8,6,11,0) 46%);
}
.focus-tag {
  position: absolute; top: 14px; left: 16px;
  display: flex; gap: 8px; align-items: center;
}
.focus-body {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.focus-body > div:first-child { flex: 1; min-width: 0; }
.focus-kicker {
  font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 2px; font-weight: 600;
  color: var(--gold);
}
.focus-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 30px); font-weight: 600; line-height: 1.05; letter-spacing: 0.3px;
  color: #f7f2e8; margin: 5px 0 0;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.focus-sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.6px;
  color: var(--ink-soft); margin-top: 7px;
}
.play {
  flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #1a1206;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(231,200,122,0.45);
  transition: transform .2s;
  animation: playpulse 3.2s ease-out infinite;
}
.play:hover { transform: scale(1.07); }
@keyframes playpulse {
  0%   { box-shadow: 0 0 0 0 rgba(231,200,122,0.40); }
  70%  { box-shadow: 0 0 0 16px rgba(231,200,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(231,200,122,0); }
}

/* focus side strip (now playing) */
.nowplaying {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(13,10,17,0.7);
  border-top: 0.5px solid var(--hairline-2);
}
.eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i {
  width: 2.5px; background: var(--cyan); border-radius: 2px;
  animation: eq 1.1s ease-in-out infinite;
}
.eq i:nth-child(2){ animation-delay:.2s } .eq i:nth-child(3){ animation-delay:.45s }
.eq i:nth-child(4){ animation-delay:.1s } .eq i:nth-child(5){ animation-delay:.32s }
@keyframes eq { 0%,100%{ height:4px } 50%{ height:16px } }

/* ---------- feed filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 2px 16px; }
.chip {
  font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 1.4px; font-weight: 600;
  color: var(--ink-mute);
  padding: 6px 12px; border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--hairline-2);
  cursor: pointer; transition: all .18s;
}
.chip:hover { color: var(--ink-soft); border-color: var(--hairline); }
.chip.on { color: var(--ink); border-color: var(--gold-line); background: rgba(231,200,122,0.08); }

/* ---------- post card ---------- */
.post {
  position: relative;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 0.5px solid var(--hairline);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  margin-bottom: var(--gap);
  transition: transform .26s cubic-bezier(.2,.7,.2,1), border-color .26s, box-shadow .26s;
}
.post:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line);
  box-shadow: 0 24px 50px -34px rgba(0,0,0,0.85), 0 0 30px -16px rgba(231,200,122,0.25);
}
.post-head { display: flex; align-items: center; gap: 10px; }
.pname-block { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pname-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.prole { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; color: var(--ink-faint); text-transform: uppercase; }
.reply-to {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.8px;
  color: var(--ink-faint); margin-bottom: 11px;
  padding-bottom: 9px; border-bottom: 0.5px solid var(--hairline-2);
}
.reply-to b { color: var(--magenta); font-weight: 600; }
.pavatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  background-size: cover; background-position: center;
}
.pname { font-family: var(--sans); font-size: 14px; font-weight: 600; color: #ece8e1; }
.ptime { margin-left: auto; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.5px; color: var(--ink-faint); flex: none; }
.pbody {
  font-family: var(--sans);
  font-size: 14.5px; line-height: 1.6; color: var(--ink-soft);
  margin-top: 11px;
  text-wrap: pretty;
}
.pbody .em,
.pbody em { color: var(--gold); font-style: italic; }   /* *markdown emphasis* → gold-italic */
.pbody.fiction { font-style: italic; color: #d6d0d9; }
.pbody p { margin: 0 0 8px; }
.pbody p:last-child { margin-bottom: 0; }

/* feed loading / empty / error state line */
.feed-state {
  text-align: center;
  padding: 40px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink-faint);
}

/* ---------- follow surface (showrunners to follow) ---------- */
.sr-follow-list { display: flex; flex-direction: column; gap: 10px; }
.sr-card {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 0.5px solid var(--hairline);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.sr-meta { flex: 1; min-width: 0; }
.sr-name { font-family: var(--sans); font-size: 14px; font-weight: 600; color: #ece8e1; }
.sr-title { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.5px; color: var(--ink-faint); margin-top: 3px; }
.follow-btn {
  flex: none;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1px; font-weight: 700;
  color: #1a1206;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  border: 0; border-radius: 9px; padding: 9px 14px; cursor: pointer;
  transition: transform .15s, opacity .15s, background .2s, color .2s;
}
.follow-btn:hover { transform: translateY(-1px); }
.follow-btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.follow-btn.on {
  color: var(--ink-soft);
  background: rgba(255,255,255,0.05);
  border: 0.5px solid var(--gold-line);
}

/* per-author ACTION (follow) button in the post header */
.post-action {
  flex: none; margin-left: 8px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 1px; font-weight: 700;
  color: #1a1206;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  border: 0; border-radius: 7px; padding: 5px 9px; cursor: pointer; white-space: nowrap;
  transition: transform .15s, opacity .15s, background .2s, color .2s;
}
.post-action:hover { transform: translateY(-1px); }
.post-action:disabled { opacity: 0.55; cursor: default; transform: none; }
.post-action.on {
  color: var(--ink-soft);
  background: rgba(255,255,255,0.05);
  border: 0.5px solid var(--gold-line);
}

/* ---------- Fókuszban — 3 compact cards ---------- */
.focus-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.focus-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 4 / 3; min-height: 108px;
  padding: 11px 12px; border-radius: 12px; overflow: hidden;
  border: 0.5px solid var(--gold-line);
  background-size: cover; background-position: center;
  background-color: rgba(14,11,18,0.6);
  text-align: left; cursor: pointer;
  font-family: inherit; color: inherit;
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s, border-color .22s;
}
button.focus-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--gold-rgb),0.5);
  box-shadow: 0 18px 40px -28px rgba(0,0,0,0.85), 0 0 24px -14px rgba(231,200,122,0.3);
}
.focus-card-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,6,11,0) 28%, rgba(8,6,11,0.86) 100%); }
.focus-card-kicker {
  position: relative; z-index: 1; align-self: flex-start;
  font-family: var(--mono); font-size: 8px; letter-spacing: 1.4px; font-weight: 700;
  color: #1a1206; background: var(--gold);
  padding: 2px 7px; border-radius: 5px; margin-bottom: 6px;
}
.focus-card-kicker.is-live {
  background: rgba(8,6,11,0.6); color: var(--gold);
  border: 0.5px solid var(--gold-line);
  display: inline-flex; align-items: center; gap: 5px;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 7px #ff5a5a; animation: pulse 2.4s ease-in-out infinite; }
.focus-card-title {
  position: relative; z-index: 1;
  font-family: var(--serif); font-size: 14px; font-weight: 600; line-height: 1.15;
  color: #f6f1e7; text-shadow: 0 1px 10px rgba(0,0,0,0.7);
}
.focus-card-empty {
  cursor: default; display: grid; place-items: center;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 9px, rgba(255,255,255,0) 9px 18px);
}
.focus-card-empty .focus-card-title { color: var(--ink-faint); font-family: var(--mono); font-size: 10px; letter-spacing: 1px; }
.focus-card-live { cursor: pointer; }
@media (max-width: 560px) {
  .focus-strip { grid-template-columns: 1fr; }
  .focus-card { aspect-ratio: 16 / 7; min-height: 96px; }
}

/* ---------- collapsible post body ---------- */
.pbody.clamped {
  max-height: 6.4em; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}
.pbody-more {
  margin-top: 7px; padding: 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.5px;
  color: var(--gold-deep);
}
.pbody-more:hover { color: var(--gold); }

/* clapperboard ("csapó") icon inside the react button */
.react-clap .ic { display: inline-flex; align-items: center; }
.react .ic .clap-icon { display: block; }

/* media inside a post */
.pmedia {
  position: relative;
  margin-top: 12px;
  border-radius: 11px;
  overflow: hidden;
  border: 0.5px solid var(--hairline-2);
  background-size: cover; background-position: center;
}
.pmedia.portrait { aspect-ratio: 16/10; }
.pmedia.wide { aspect-ratio: 16/9; }
.pmedia .mk {
  position: absolute; top: 11px; left: 12px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 1.5px; font-weight: 600;
  color: #1a1206; background: var(--gold);
  padding: 3px 8px; border-radius: 5px;
}
.pmedia .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,6,11,0) 45%, rgba(8,6,11,0.85) 100%);
}
.pmedia .ml {
  position: absolute; left: 14px; bottom: 12px; right: 14px;
  display: block;
}
.pmedia .ml .t {
  display: block;
  font-family: var(--serif); font-size: 16px; font-weight: 600; color: #f6f1e7;
  line-height: 1.15;
  text-shadow: 0 1px 12px rgba(0,0,0,0.7);
}

/* music download CTA */
.dl-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  background: rgba(8,12,17,0.7);
  border-top: 0.5px solid var(--hairline-2);
}
.dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; font-weight: 600;
  color: var(--cyan);
  background: rgba(127,178,224,0.10);
  border: 0.5px solid rgba(var(--cyan-rgb),0.38);
  border-radius: 9px; padding: 8px 11px; cursor: pointer;
  transition: all .18s;
}
.dl-btn:hover { background: rgba(127,178,224,0.18); color: #cfe4f7; }
.dl-btn .price {
  font-weight: 700; color: #06121c;
  background: var(--cyan); border-radius: 5px; padding: 2px 7px; margin-left: 2px;
}
.dl-note { font-family: var(--mono); font-size: 9px; letter-spacing: 0.5px; color: var(--ink-faint); }

/* placeholder media (no asset) */
.ph {
  position: relative;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 9px, rgba(255,255,255,0) 9px 18px);
  background-color: rgba(14,11,18,0.6);
  display: grid; place-items: center;
}
.ph-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px;
  color: var(--ink-faint); text-transform: uppercase;
}

/* post footer / reactions */
.pfoot { display: flex; align-items: center; gap: 6px; margin-top: 13px; }
.react {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.5px;
  color: var(--ink-mute);
  background: none; border: 0; cursor: pointer;
  padding: 6px 10px; border-radius: 9px;
  transition: color .18s, background .18s;
}
.react:hover { color: var(--ink-soft); background: rgba(255,255,255,0.04); }
.react .ic { font-size: 13px; line-height: 1; transition: transform .25s cubic-bezier(.2,1.4,.4,1); display:inline-block; }
.react.clapped { color: var(--gold); }
.react.clapped .ic { transform: scale(1.15); }
.react.spacer { margin-left: auto; }
.react.cta { color: var(--magenta); }
.react.cta:hover { background: rgba(var(--magenta-rgb),0.10); }

/* clap burst */
.burst {
  position: absolute; pointer-events: none;
  font-size: 11px; color: var(--gold);
  animation: burst .6s ease-out forwards;
}
@keyframes burst {
  0%   { transform: translateY(0) scale(.6); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(-26px) scale(1.1); opacity: 0; }
}

/* ---------- chat drawer ---------- */
.scrim-full {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(5,4,7,0.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.scrim-full.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81;
  width: min(420px, 92vw);
  background: linear-gradient(180deg, #100b14 0%, #0a070d 100%);
  border-left: 0.5px solid rgba(var(--magenta-rgb),0.25);
  box-shadow: -30px 0 80px -30px rgba(0,0,0,0.9);
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.3,.8,.2,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border-bottom: 0.5px solid var(--hairline-2);
}
.drawer-x {
  margin-left: auto; background: none; border: 0; color: var(--ink-mute);
  font-size: 20px; cursor: pointer; line-height: 1; padding: 4px;
}
.drawer-x:hover { color: var(--ink); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 80%; font-family: var(--sans); font-size: 13.5px; line-height: 1.55; padding: 10px 13px; border-radius: 13px; }
.msg.them {
  align-self: flex-start;
  background: rgba(var(--magenta-rgb),0.10);
  border: 0.5px solid rgba(var(--magenta-rgb),0.22);
  color: #e4dde2; font-style: italic;
  border-bottom-left-radius: 4px;
}
.msg.me {
  align-self: flex-end;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid var(--hairline);
  color: var(--ink-soft);
  border-bottom-right-radius: 4px;
}
.msg-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; }
.msg-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--magenta); opacity: .5; animation: typing 1.2s infinite; }
.msg-typing i:nth-child(2){ animation-delay:.2s } .msg-typing i:nth-child(3){ animation-delay:.4s }
@keyframes typing { 0%,60%,100%{ transform: translateY(0); opacity:.4 } 30%{ transform: translateY(-4px); opacity:1 } }
.chat-input {
  display: flex; gap: 9px; padding: 14px; border-top: 0.5px solid var(--hairline-2);
}
.chat-input input {
  flex: 1; background: rgba(255,255,255,0.04); border: 0.5px solid var(--hairline);
  border-radius: 10px; padding: 11px 13px; color: var(--ink);
  font-family: var(--sans); font-size: 13.5px; outline: none;
}
.chat-input input:focus { border-color: rgba(var(--magenta-rgb),0.4); }
.chat-input input::placeholder { color: var(--ink-faint); }
.send {
  flex: none; width: 42px; border-radius: 10px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--magenta), #c2638f);
  color: #fff; font-size: 16px; display: grid; place-items: center;
  transition: transform .15s;
}
.send:hover { transform: scale(1.05); }

/* ---------- card style variants (driven by data-cards on .col) ---------- */
[data-cards="outline"] .post { background: rgba(10,8,13,0.35); border-color: var(--hairline); }
[data-cards="minimal"] .post { background: transparent; border-color: transparent; border-bottom: 0.5px solid var(--hairline-2); border-radius: 0; backdrop-filter: none; }
[data-cards="minimal"] .post:hover { transform: none; box-shadow: none; background: rgba(255,255,255,0.02); }

/* ---------- density (driven by data-density on .col) ---------- */
[data-density="compact"] { --gap: 9px; }
[data-density="compact"] .post { padding: 12px 15px; }
[data-density="compact"] .pbody { font-size: 13.5px; margin-top: 8px; }
[data-density="airy"] { --gap: 18px; }

/* scrollbar */
.chat-log::-webkit-scrollbar { width: 8px; }
.chat-log::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 8px; }

@media (max-width: 560px) {
  .identity { flex-wrap: wrap; }
  .identity-actions { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .identity-name { font-size: 26px; }
  .focus-title { font-size: 24px; }

  /* ROOT FIX for the mobile horizontal overflow: the topbar (wordmark + nav +
     lang + AS avatar) was wider than a phone viewport, so the AS avatar was
     pushed off-screen and the page could be dragged sideways (the "wobble").
     Drop the wordmark text (the logo still brands it) and tighten the spacing
     so everything — including the AS avatar — fits on-screen. */
  .topbar { gap: 8px; padding: 10px 12px; }
  .brand-name { display: none; }
  .top-right { gap: 8px; }
  .topnav button { padding: 6px 10px; letter-spacing: 1.2px; }
  .lang span { padding: 3px 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .play, .badge.live .dot, .eq i, .msg-typing i, .live-dot { animation: none !important; }
}
