/* KJPTV — Member Directory furniture (.mb-*).
   The hero, filter bar, A–Z index, empty state and load-more all come from
   directory.css; the referral card reuses the .join-* set in casting.css. */

/* ---- Your listing (members only) ------------------------------------------ */
.mb-you { display: none; }
body.view-paid .mb-you { display: block; }
.mb-you-card { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 22px 26px; border-radius: calc(var(--radius-card) * 1.125); background: var(--color-surface-1);
  border: 1px solid var(--border-bevel-strong); box-shadow: var(--bevel-highlight), var(--shadow-matte); }
.mb-you-avatar { position: relative; overflow: hidden; width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: var(--size-subhead); font-weight: 800; color: var(--gold-mustard); background: var(--color-surface-3); box-shadow: var(--well-inset); }
.mb-you-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.mb-you-id h3 { margin-top: 7px; font-size: calc(var(--size-subhead) * 1.1667); font-weight: 800; letter-spacing: -0.022em; color: var(--text-heading); }
.mb-you-meta { margin-top: 5px; font-size: calc(var(--size-small) * 1.0833); color: var(--text-muted); }
/* .mb-at and .mb-live are shared with the party cards — they live in site.css */
.mb-you-id .text-link { margin-top: 10px; color: var(--gold-mustard); }
.mb-you-vis { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; text-align: right; }
.mb-you-note { max-width: 250px; font-size: var(--size-small); line-height: 1.5; color: var(--text-muted); text-wrap: pretty; }

/* ---- LIVE filter checkbox -------------------------------------------------- */
.mb-live-filter { display: inline-flex; align-items: center; gap: 9px; padding: 0; background: none; border: 0;
  cursor: pointer; user-select: none; }
.mb-live-filter .gold-check { width: 22px; height: 22px; border-radius: 7px; }
.mb-live-filter .gold-check svg { width: 13px; height: 13px; }
.mb-live-label { display: inline-flex; align-items: center; gap: 7px; font-size: var(--size-meta); font-weight: 800;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out); }
.mb-live-filter:hover .mb-live-label, .mb-live-filter.is-on .mb-live-label { color: var(--gold-mustard); }

/* ---- Grid + member cards -------------------------------------------------- */
.mb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 16px; }
.mb-card { position: relative; display: flex; flex-direction: column; padding: 18px 18px 16px; border-radius: var(--radius-card);
  background: var(--color-surface-1); border: 1px solid var(--border-bevel-strong); box-shadow: var(--bevel-highlight);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.mb-card:not(.is-private):hover { transform: translateY(-3px); border-color: var(--border-gold); box-shadow: var(--bevel-highlight), var(--shadow-matte-lg); }
/* The card is a div: the identity block links to the profile, the watching row
   links to what they have open. Two links, no nesting. */
.mb-id { display: flex; flex-direction: column; min-width: 0; }
.mb-id .mb-name { transition: color var(--dur-fast) var(--ease-out); }
.mb-id:hover .mb-name { color: var(--gold-mustard); }
.mb-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
/* The avatar clips its photo, so the presence ring sits on this wrapper instead. */
.mb-av { position: relative; flex: none; display: block; }
.mb-av .dir-chip-dot { right: 0; bottom: 0; }
.mb-avatar { position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: calc(var(--size-body) * 1.1429); font-weight: 800;
  color: var(--gold-mustard); background: var(--color-surface-3); box-shadow: var(--well-inset); }
.mb-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.mb-avatar svg { width: 19px; height: 19px; color: var(--text-muted); }
.mb-vis { flex: none; padding: 4px 9px; border-radius: 999px; font-size: calc(var(--size-meta) * 0.8636); font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: #2a1e08; background: var(--gold-metallic-135); box-shadow: var(--bevel-highlight); }
.mb-vis.is-private { display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted);
  background: none; border: 1px solid var(--border-bevel-strong); box-shadow: none; }
.mb-vis svg { width: 10px; height: 10px; }
.mb-name { margin-top: 15px; font-size: calc(var(--size-body) * 1.1071); font-weight: 800; letter-spacing: -0.015em; color: var(--text-heading);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-handle { margin-top: 3px; font-size: calc(var(--size-small) * 1.0417); color: var(--gold-mustard); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-plan { margin-top: 11px; display: inline-flex; align-items: center; gap: 7px; font-size: calc(var(--size-meta) * 0.9545); font-weight: 800;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--text-body); }
.mb-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #6B6868; }
.mb-plan.is-gold .mb-dot, .mb-plan.is-founder .mb-dot, .mb-plan.is-peek .mb-dot, .mb-plan.is-cast .mb-dot { background: var(--gold-metallic-135); }
.mb-meta { margin-top: 9px; font-size: var(--size-small); line-height: 1.5; color: var(--text-muted); }
/* Watching row — online members only, links to the party or the player.
   Two lines inside one deep inset well: the label, then the title. */
.mb-watch { display: flex; align-items: center; gap: 9px; margin-top: 11px; padding: 8px 12px; border-radius: 12px;
  color: var(--text-muted); background: var(--color-surface-2);
  box-shadow: inset 0 4px 9px rgba(0,0,0,0.72), inset 0 8px 16px rgba(0,0,0,0.4), inset 0 -2px 3px rgba(255,255,255,0.04);
  border: 1px solid rgba(0,0,0,0.4);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.mb-watch:hover { border-color: var(--border-gold); color: var(--text-body); }
.mb-watch svg { flex: none; width: 18px; height: 18px; color: var(--gold-mustard); }
.mb-watch span { min-width: 0; display: block; }
.mb-watch i { display: flex; align-items: center; gap: 6px; font-style: normal; font-size: calc(var(--size-meta) * 0.7727); font-weight: 800; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--text-muted); }
.mb-watch.is-live i { color: var(--gold-mustard); }
@media (prefers-reduced-motion: reduce) { .mb-live { animation: none; } }
.mb-watch b { display: block; margin-top: 2px; font-size: var(--size-small); font-weight: 800; letter-spacing: -0.01em;
  color: var(--text-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-stats { margin-top: 9px; font-size: var(--size-small); color: var(--text-muted); }
.mb-stats b { color: var(--text-heading); font-weight: 800; font-variant-numeric: tabular-nums; }
.mb-card .dt-person-foot { margin-top: auto; padding-top: 14px; }
/* Private members: name + membership badge only */
.mb-card.is-private { background: linear-gradient(180deg, #141313 0%, #0f0e0e 100%); }
.mb-card.is-private .mb-name { color: var(--text-body); }
.mb-note { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-bevel);
  font-size: calc(var(--size-meta) * 1.0455); line-height: 1.5; color: var(--text-muted); }
/* Private members: ask, they approve — no follower count to show.
   The card promises a request, so the control is there for every viewer;
   guests get the membership card when they press it. */
.mb-foot-req { margin-top: auto; padding-top: 14px; justify-content: flex-end; }
.mb-req { display: inline-flex; }
.mb-req.is-sent { color: var(--text-muted); background: rgba(255,255,255,0.03); border-color: var(--border-bevel-strong); box-shadow: none; }
.mb-req.is-sent:hover { color: var(--text-body); border-color: var(--border-bevel-strong); }

/* ---- Fan spotlight -------------------------------------------------------- */
.mb-spots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mb-spot { position: relative; display: flex; flex-direction: column; padding: 28px 26px 30px; border-radius: 20px;
  background: linear-gradient(180deg, #1a1818 0%, #121111 58%, #0d0c0c 100%);
  border: 1px solid var(--border-bevel-strong); box-shadow: var(--bevel-highlight), var(--shadow-matte);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
a.mb-spot:hover { transform: translateY(-5px); border-color: var(--gold-mustard); box-shadow: var(--bevel-highlight), var(--shadow-matte-lg), var(--gold-glow-strong); }
/* The badge this member earned — same art as their profile */
.mb-spot-badge { position: absolute; top: 22px; right: 22px; width: 84px; height: 66px;
  display: flex; align-items: center; justify-content: center; }
.mb-spot-badge img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.6)); transition: transform var(--dur-base) var(--ease-out); }
a.mb-spot:hover .mb-spot-badge img { transform: translateY(-3px) scale(1.04); }
.mb-spot-n { margin-top: 16px; font-size: clamp(calc(var(--size-display) * 0.7), 4.6vw, var(--size-display)); font-weight: 900; line-height: 0.88;
  letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.mb-spot-l { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border-bevel-strong); font-size: var(--size-meta);
  font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-muted); }
.mb-spot-who { display: flex; align-items: center; gap: 13px; margin-top: 20px; }
.mb-spot-who .mb-avatar { width: 48px; height: 48px; font-size: calc(var(--size-body) * 1.0714); }
.mb-spot-name { display: block; font-size: calc(var(--size-body) * 1.1429); font-weight: 800; letter-spacing: -0.015em; color: var(--text-heading); }
.mb-spot-handle { display: block; margin-top: 3px; font-size: calc(var(--size-small) * 1.0417); color: var(--gold-mustard); }
.mb-spot p { margin-top: 18px; font-size: calc(var(--size-body) * 0.9643); line-height: 1.6; color: var(--text-body); text-wrap: pretty; }

/* ---- Refer & earn --------------------------------------------------------- */
.mb-ref-link { display: none; gap: 10px; margin-bottom: 14px; }
body.view-paid .mb-ref-link.is-on { display: flex; }
.mb-ref-link .dt-input { flex: 1; min-width: 0; font-size: calc(var(--size-small) * 1.0833); }
.mb-ref-link .btn { flex: none; }
/* Payout threshold — pick one, then it locks and the link appears */
.mb-goal { display: none; margin: 4px 0 20px; }
body.view-paid .mb-goal { display: block; }
.mb-goal .sc-label { display: block; margin-bottom: 9px; }
.mb-goal .chip-filters { flex-wrap: wrap; }
.mb-goal-note { margin-top: 10px; text-align: center; font-size: var(--size-small); line-height: 1.5; color: var(--text-muted); text-wrap: pretty; }
.mb-goal-note b { color: var(--gold-mustard); font-weight: 700; }
.mb-goal-note::after { content: ''; display: block; height: 1px; margin: 14px 0 0; background: var(--border-bevel); }
.filter-chip.is-locked { opacity: 0.38; pointer-events: none; }
.mb-ref-prog { display: none; margin: 4px 0 20px; }
body.view-paid .mb-ref-prog.is-on { display: block; }
.mb-ref-prog-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px;
  font-size: var(--size-small); color: var(--text-muted); }
.mb-ref-prog-top b { color: var(--text-heading); font-weight: 800; font-variant-numeric: tabular-nums; }
.mb-ref-foot { margin-top: 16px; font-size: var(--size-small); line-height: 1.55; text-align: center; color: var(--text-muted); }

@media (max-width: 1024px) {
  .mb-grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
  .mb-spots { grid-template-columns: 1fr; }
  .mb-you-card { grid-template-columns: auto 1fr; }
  .mb-you-vis { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
  .mb-you-note { max-width: none; }
}
@media (max-width: 760px) {
  .mb-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mb-card { padding: 14px 14px 13px; }
  .mb-avatar { width: 46px; height: 46px; font-size: var(--size-body); }
  .mb-name { margin-top: 12px; font-size: var(--size-body); }
  .mb-vis { padding: 3px 7px; font-size: calc(var(--size-meta) * 0.7727); letter-spacing: 0.1em; }
  .mb-you-card { padding: 18px; gap: 16px; }
  /* Full-width row of its own — the label, the chips and the note read centred */
  .mb-you-vis { align-items: center; text-align: center; }
  .mb-spot { padding: 24px 20px 26px; }
  .mb-ref-link { flex-wrap: wrap; }
  .mb-ref-link .btn, .mb-ref-link .dt-input { width: 100%; flex: 1 1 100%; }
}
@media (max-width: 460px) {
  .mb-grid { grid-template-columns: 1fr; }
}

/* Mobile: the leaderboard link drops under the line instead of holding a column open beside it */
@media (max-width: 760px) {
  .mb-spot-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* A spotlight nobody has earned yet */
.mb-spot.is-empty { cursor: default; }
.mb-spot.is-empty .mb-spot-l { margin-top: 28px; }
.mb-spot.is-empty p { color: var(--text-muted); }
