/* ═══════════════════════════════════════════════════════════════════
   MUSTANG MEDIA CLUB — supplemental styles
   Built on the platform's tokens (--red, --surface, --border, --muted…).
   Reuses .card / .btn / .chip / .page where possible; adds club-only bits.
   ═══════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* Club rail button uses the platform .rail-btn; nothing to add. */

/* ── Club switch — sits under the course switcher in the sidebar header ── */
.sb-club-btn {
  display: flex; align-items: center; gap: 9px; width: 100%;
  margin: 0 0 14px; padding: 9px 11px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); cursor: pointer; font-family: inherit; text-align: left;
  transition: background .16s, border-color .16s, box-shadow .16s;
}
.sb-club-btn:hover { border-color: var(--border-light); background: var(--off); }
.sb-club-btn .cs-ic { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; background: var(--badge-bg); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.sb-club-btn .cs-lab { flex: 1; min-width: 0; font-weight: 700; font-size: 13px; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-club-btn .cs-tag { font-family: 'JetBrains Mono', monospace; font-size: 8px; letter-spacing: 1.5px; color: var(--muted); background: var(--off); padding: 2px 6px; border-radius: 5px; flex-shrink: 0; }
.sb-club-btn.active { border-color: var(--red); background: var(--red-glow); box-shadow: 0 1px 4px rgba(200,16,46,0.16); }
.sb-club-btn.active .cs-ic { background: var(--red); }
.sb-club-btn.active .cs-lab { color: var(--red); }
.sb-club-btn.active .cs-tag { color: var(--red); background: rgba(200,16,46,0.1); }

/* Club sidebar nav — the "Back to course" item + active club entries reuse
   the platform .sb-item look, with a red active state to signal club context. */
.sb-item.club-back { color: var(--muted); font-weight: 600; }
.sb-item.club-back:hover { color: var(--text); }
.sb-item.club-back i { color: var(--muted); }
.sb-item.club-nav-item.active { color: var(--red); background: var(--red-glow); }
.sb-item.club-nav-item.active i { color: var(--red); }
.sb-item.club-nav-item.active .badge { background: var(--red); color: #fff; }

/* ── "View as student" preview banner ── */
#club-preview-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; justify-content: center; pointer-events: none; padding: 0 0 16px; }
#club-preview-banner .cpb-inner { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: #1a1d23; color: #fff; padding: 10px 12px 10px 16px; border-radius: 40px; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: 13px; animation: cpb-pop .3s cubic-bezier(.16,1,.3,1); }
#club-preview-banner .cpb-inner > i { color: #ffd05a; }
#club-preview-banner b { font-weight: 700; }
#club-preview-banner button { pointer-events: auto; background: var(--red); color: #fff; border: none; border-radius: 30px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 6px; }
#club-preview-banner button:hover { background: #a50d26; }
@keyframes cpb-pop { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ═══════════ LIVELINESS — tasteful entrance + hover motion (club only) ═══════════ */
/* Reveal-safe: the visible end-state IS the base style. Animations only move
   transform (translateY) — content is never held at opacity:0, so a render
   where the compositor doesn't tick still shows everything. */
@media (prefers-reduced-motion: no-preference) {
  .club-hero { animation: club-rise .5s cubic-bezier(.16,1,.3,1) both; }
  .club-hero::before {
    content: ''; position: absolute; top: 0; bottom: 0; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.06), transparent);
    transform: skewX(-18deg); animation: club-sheen 6s ease-in-out infinite; pointer-events: none;
  }
  .club-hero .ch-stat .n { animation: club-rise .5s cubic-bezier(.16,1,.3,1) both; }
  .club-hero .ch-stat:nth-child(1) .n { animation-delay: .06s; }
  .club-hero .ch-stat:nth-child(2) .n { animation-delay: .12s; }
  .club-hero .ch-stat:nth-child(3) .n { animation-delay: .18s; }
  .club-hero .ch-stat:nth-child(4) .n { animation-delay: .24s; }

  /* Cards + KPI tiles stagger in on the club pages */
  #club-tab-body .club-kpi,
  #club-tab-body > .club-grid > .card,
  #club-tab-body > .card { animation: club-rise .45s cubic-bezier(.16,1,.3,1) both; }
  #club-tab-body .club-grid.g4 .club-kpi:nth-child(1) { animation-delay: .03s; }
  #club-tab-body .club-grid.g4 .club-kpi:nth-child(2) { animation-delay: .09s; }
  #club-tab-body .club-grid.g4 .club-kpi:nth-child(3) { animation-delay: .15s; }
  #club-tab-body .club-grid.g4 .club-kpi:nth-child(4) { animation-delay: .21s; }
}
@keyframes club-rise { from { transform: translateY(10px); } to { transform: none; } }
@keyframes club-sheen { 0%, 100% { left: -50%; } 50% { left: 110%; } }

/* ═══════════ CINEMATIC ENTRANCES — titles · ranks · page loads ═══════════
   Scoped to the Mustang Media club. Uses fill-mode `backwards` so that after
   each animation finishes the element returns to its plain base style — this
   keeps every :hover transform working AND keeps content reveal-safe (the
   end-state is the base style; only transforms move on the reveal-critical
   bits, so a frozen compositor still shows everything). */
@media (prefers-reduced-motion: no-preference) {

  /* ── Whole page slides up on every tab/route change ── */
  #club-tab-body { animation: club-page-in .4s cubic-bezier(.16,1,.3,1) backwards; }

  /* ── Page + hero TITLES draw in from the left ── */
  #club-tab-body .page-h1,
  #club-tab-body .page-sub { animation: club-title-in .5s cubic-bezier(.16,1,.3,1) backwards; }
  #club-tab-body .page-sub { animation-delay: .07s; }
  .club-hero h1   { animation: club-title-in .6s .04s cubic-bezier(.16,1,.3,1) backwards; }
  .club-hero .ch-sub { animation: club-title-in .6s .12s cubic-bezier(.16,1,.3,1) backwards; }

  /* ── RANKS: podium cards rise into place, gold lands last & tallest ── */
  .lbx-rise-2 { animation: lbx-podium .6s .04s cubic-bezier(.34,1.4,.5,1) backwards; }
  .lbx-rise-3 { animation: lbx-podium .6s .14s cubic-bezier(.34,1.4,.5,1) backwards; }
  .lbx-rise-1 { animation: lbx-podium-gold .72s .26s cubic-bezier(.34,1.5,.5,1) backwards; }

  /* Crown drops onto rank #1, then keeps a slow golden pulse */
  .lbx-crown {
    animation: lbx-crown-drop .7s .62s cubic-bezier(.34,1.56,.64,1) backwards,
               lbx-crown-glow 3.2s 1.4s ease-in-out infinite;
  }

  /* ── RANK TABLE: rows cascade in from the left ── */
  .lbx-table .lbx-row { animation: lbx-row-in .5s cubic-bezier(.16,1,.3,1) backwards; }
  .lbx-table .lbx-row:nth-child(2)  { animation-delay: .02s; }
  .lbx-table .lbx-row:nth-child(3)  { animation-delay: .07s; }
  .lbx-table .lbx-row:nth-child(4)  { animation-delay: .12s; }
  .lbx-table .lbx-row:nth-child(5)  { animation-delay: .17s; }
  .lbx-table .lbx-row:nth-child(6)  { animation-delay: .22s; }
  .lbx-table .lbx-row:nth-child(7)  { animation-delay: .27s; }
  .lbx-table .lbx-row:nth-child(8)  { animation-delay: .32s; }
  .lbx-table .lbx-row:nth-child(9)  { animation-delay: .37s; }
  .lbx-table .lbx-row:nth-child(10) { animation-delay: .42s; }
  .lbx-table .lbx-row:nth-child(11) { animation-delay: .47s; }
  .lbx-table .lbx-row:nth-child(12) { animation-delay: .52s; }
  .lbx-table .lbx-row:nth-child(13) { animation-delay: .57s; }

  /* Progress-to-next-rank bars sweep open after their row settles */
  .lbx-rbar-f { transform-origin: left center; animation: lbx-bar-fill .9s .32s cubic-bezier(.16,1,.3,1) backwards; }

  /* The inline leaderboard list (Overview / Home cards) gets the same cascade */
  .lb-row { animation: lbx-row-in .45s cubic-bezier(.16,1,.3,1) backwards; }
  .lb-row:nth-child(2) { animation-delay: .04s; }
  .lb-row:nth-child(3) { animation-delay: .08s; }
  .lb-row:nth-child(4) { animation-delay: .12s; }
  .lb-row:nth-child(5) { animation-delay: .16s; }
  .lb-row:nth-child(6) { animation-delay: .20s; }
}

@keyframes club-page-in { from { transform: translateY(8px); } to { transform: none; } }
@keyframes club-title-in { from { transform: translateX(-12px); } to { transform: none; } }
@keyframes lbx-podium { from { transform: translateY(28px) scale(.95); } to { transform: none; } }
@keyframes lbx-podium-gold { 0% { transform: translateY(40px) scale(.92); } 60% { transform: translateY(-24px) scale(1.02); } 100% { transform: translateY(-14px) scale(1); } }
@keyframes lbx-row-in { from { transform: translateX(-14px); } to { transform: none; } }
@keyframes lbx-bar-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lbx-crown-drop { 0% { transform: translateX(-50%) translateY(-20px) scale(.55) rotate(-14deg); } 65% { transform: translateX(-50%) translateY(2px) scale(1.08) rotate(2deg); } 100% { transform: translateX(-50%) translateY(0) scale(1) rotate(0); } }
@keyframes lbx-crown-glow { 0%, 100% { filter: drop-shadow(0 3px 6px rgba(200,150,30,.4)); } 50% { filter: drop-shadow(0 3px 14px rgba(230,180,60,.85)); } }

/* ═══════════ HOVER ENERGY — ranks, leaderboard rows & lists react ═══════════ */
/* Podium (top 3): avatar pops, medal grows, crown lifts — card already lifts */
.lbx-pavatar, .lbx-medal, .lbx-crown { transition: transform .22s cubic-bezier(.34,1.56,.64,1); }
.lbx-pcard:hover .lbx-pavatar { transform: scale(1.08) rotate(-4deg); }
.lbx-pcard:hover .lbx-medal   { transform: scale(1.14); }
.lbx-pcard:hover .lbx-crown   { transform: translateX(-50%) translateY(-3px) scale(1.16); }

/* Rank-table rows: glide right, avatar pops, points emphasise */
.lbx-row { transition: background .14s ease, transform .16s ease, box-shadow .16s ease; }
.lbx-row:hover { transform: translateX(5px); }
.lbx-rav { transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.lbx-row:hover .lbx-rav { transform: scale(1.1) rotate(-3deg); }
.lbx-rpts .n { display: inline-block; transition: transform .16s ease; }
.lbx-row:hover .lbx-rpts .n { transform: scale(1.09); }

/* Inline leaderboard list (Overview / Home cards) */
.lb-row { transition: background .14s ease, transform .16s ease; }
.lb-row:hover { transform: translateX(4px); background: var(--off); }
.lb-av { transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.lb-row:hover .lb-av { transform: scale(1.08) rotate(-3deg); }

/* Generic list & member rows: subtle indent + icon kick */
.list-row, .mem-row { transition: background .14s ease, transform .14s ease; }
.list-row:hover, .mem-row:hover { background: var(--off); transform: translateX(3px); }
.list-row .li-ic { transition: transform .18s cubic-bezier(.34,1.56,.64,1); }
.list-row:hover .li-ic { transform: scale(1.1) rotate(-4deg); }

/* KPI tiles: the big number leans in with the tile lift */
.club-kpi .n { transition: transform .18s ease; }
.club-kpi:hover .n { transform: scale(1.06); }

/* Hover energy */
.club-kpi { transition: transform .16s ease, box-shadow .16s ease; }
.club-kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.club-kpi:hover .ic { transform: scale(1.08) rotate(-4deg); transition: transform .2s ease; }
.ev-card { transition: transform .16s ease, box-shadow .16s ease; }
.ev-card:hover { transform: translateY(-3px); }
.lb-row, .mem-row, .list-row { transition: background .14s ease; }

/* ═══════════════════════════════════════════════════════════════════
   SEASON LEADERBOARD — light, on-brand (white cards, NorthShore red,
   gold/silver/bronze medal accents). Scoped to .lbx.
   ═══════════════════════════════════════════════════════════════════ */
.lbx { --gold:#C8961E; --gold-line:rgba(200,150,30,.45);
  --silver:#7f8893; --silver-line:rgba(127,136,147,.5);
  --bronze:#b06a2c; --bronze-line:rgba(176,106,44,.45); }

/* ── Podium (top 3) ── */
.lbx-podium { display:grid; grid-template-columns:1fr 1.18fr 1fr; gap:16px; align-items:end; margin-bottom:18px; }
.lbx-pcard { position:relative; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:22px 18px 18px; text-align:center; cursor:pointer;
  box-shadow:var(--shadow-card); transition:transform .16s ease, box-shadow .16s ease;
  display:flex; flex-direction:column; align-items:center; }
.lbx-pcard::before { content:''; position:absolute; left:0; right:0; top:0; height:4px;
  border-radius:var(--r-lg) var(--r-lg) 0 0; }
.lbx-pcard:hover { transform:translateY(-3px); box-shadow:var(--shadow-hover); }
.lbx-gold   { border-color:var(--gold-line);   box-shadow:0 8px 26px -12px rgba(200,150,30,.45); }
.lbx-gold::before   { background:linear-gradient(90deg, #E6B43C, var(--gold)); }
.lbx-silver::before { background:linear-gradient(90deg, #A6AEB8, var(--silver)); }
.lbx-bronze::before { background:linear-gradient(90deg, #C98143, var(--bronze)); }
.lbx-gold { transform:translateY(-14px); padding-top:30px; }
.lbx-gold:hover { transform:translateY(-18px); }
.lbx-ghost { visibility:hidden; }

.lbx-crown { position:absolute; top:-14px; left:50%; transform:translateX(-50%);
  color:var(--gold); font-size:22px; filter:drop-shadow(0 3px 6px rgba(200,150,30,.4)); }
.lbx-medal { width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family:'JetBrains Mono',monospace; font-weight:700; font-size:12px; margin-bottom:12px; color:#fff; }
.lbx-gold   .lbx-medal { background:var(--gold); }
.lbx-silver .lbx-medal { background:var(--silver); }
.lbx-bronze .lbx-medal { background:var(--bronze); }
.lbx-pavatar { width:60px; height:60px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:20px; color:#fff; margin-bottom:12px; box-shadow:0 4px 12px rgba(15,39,71,.12); }
.lbx-gold .lbx-pavatar { width:68px; height:68px; font-size:23px; }
.lbx-pname { font-weight:700; font-size:15px; color:var(--text); line-height:1.2; }
.lbx-gold .lbx-pname { font-size:17px; }
.lbx-prank { font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:.5px; text-transform:uppercase;
  color:var(--muted); margin-top:5px; display:flex; align-items:center; gap:5px; justify-content:center; }
.lbx-ppts { margin-top:13px; display:flex; align-items:baseline; gap:4px; justify-content:center; }
.lbx-ppts .n { font-size:26px; font-weight:800; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.lbx-ppts .u { font-family:'JetBrains Mono',monospace; font-size:10px; color:var(--muted); }
.lbx-gold   .lbx-ppts .n { color:#a16207; }
.lbx-silver .lbx-ppts .n { color:#52606d; }
.lbx-bronze .lbx-ppts .n { color:#8a4f1f; }
.lbx-gold .lbx-ppts .n { font-size:30px; }

/* ── Full ranking table ── */
.lbx-table { padding:0; overflow:hidden; }
.lbx-thead { display:grid; grid-template-columns:42px 1fr 200px 84px; gap:14px; align-items:center;
  padding:11px 18px; background:var(--off); border-bottom:1px solid var(--border);
  font-family:'JetBrains Mono',monospace; font-size:9.5px; letter-spacing:1.2px; text-transform:uppercase; color:var(--muted); }
.lbx-th-rank { text-align:center; }
.lbx-th-pts  { text-align:right; }
.lbx-row { display:grid; grid-template-columns:42px auto 1fr 200px 84px; gap:14px; align-items:center;
  padding:12px 18px; border-bottom:1px solid var(--border); cursor:pointer; transition:background .14s ease; }
.lbx-row:last-child { border-bottom:none; }
.lbx-row:hover { background:var(--off); }
.lbx-row.me { background:var(--red-glow); }
.lbx-row-gold   { box-shadow:inset 3px 0 0 var(--gold); }
.lbx-row-silver { box-shadow:inset 3px 0 0 var(--silver); }
.lbx-row-bronze { box-shadow:inset 3px 0 0 var(--bronze); }
.lbx-rnum { font-size:16px; font-weight:800; color:var(--muted); text-align:center; font-variant-numeric:tabular-nums; }
.lbx-row-gold   .lbx-rnum { color:#a16207; }
.lbx-row-silver .lbx-rnum { color:#52606d; }
.lbx-row-bronze .lbx-rnum { color:#8a4f1f; }
.lbx-rav { width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:13px; color:#fff; flex-shrink:0; }
.lbx-rmain { min-width:0; }
.lbx-rname { font-weight:600; font-size:14px; color:var(--text); display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.lbx-rtag { font-family:'JetBrains Mono',monospace; font-size:10.5px; color:var(--muted); margin-top:2px; }
.lbx-you { font-size:9.5px; font-weight:700; color:var(--red); background:var(--surface);
  border:1px solid rgba(200,16,46,.3); padding:1px 6px; border-radius:5px; }
.lbx-title { font-family:'JetBrains Mono',monospace; font-size:9px; font-weight:700; letter-spacing:.6px; text-transform:uppercase;
  padding:1px 7px; border-radius:5px; background:var(--red-glow); color:var(--red); border:1px solid rgba(200,16,46,.22); }
.lbx-rbar { display:flex; flex-direction:column; gap:5px; min-width:0; }
.lbx-rbar-t { height:5px; border-radius:3px; background:var(--border); overflow:hidden; }
.lbx-rbar-f { display:block; height:100%; border-radius:3px; background:var(--red); }
.lbx-rbar-l { font-size:10.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lbx-rpts { text-align:right; }
.lbx-rpts .n { font-size:17px; font-weight:800; color:var(--red); font-variant-numeric:tabular-nums; }
.lbx-rpts .u { font-family:'JetBrains Mono',monospace; font-size:9.5px; color:var(--muted); margin-left:3px; }

.lbx .grade-badge { display:inline-block; padding:1px 6px; border-radius:5px; font-size:9px; font-weight:700;
  font-family:'JetBrains Mono',monospace; }
.lbx .gr-9  { background:var(--blue-glow);  color:var(--blue); }
.lbx .gr-10 { background:var(--green-glow); color:var(--green); }
.lbx .gr-11 { background:var(--amber-glow); color:var(--amber); }
.lbx .gr-12 { background:var(--red-glow);   color:var(--red); }

@media (max-width:860px) {
  .lbx-podium { grid-template-columns:1fr; }
  .lbx-gold { transform:none; padding-top:22px; }
  .lbx-gold:hover { transform:translateY(-3px); }
  .lbx-thead { display:none; }
  .lbx-row { grid-template-columns:32px auto 1fr auto; }
  .lbx-rbar { display:none; }
}

/* ── Club hero banner ── */
.club-hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: linear-gradient(120deg, #1a1d23 0%, #2a2d35 100%);
  color: #fff; padding: 26px 28px; margin-bottom: 22px;
}
.club-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(200,16,46,.9) 25%, transparent 25%) 0 0 / 14px 14px,
    linear-gradient(225deg, rgba(200,16,46,.9) 25%, transparent 25%) 0 0 / 14px 14px;
  opacity: .08;
}
.club-hero .ch-kick { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: #ff8a9a; display: flex; align-items: center; gap: 8px; }
.club-hero .ch-kick .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.club-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 4px; }
.club-hero .ch-sub { font-size: 13px; color: rgba(255,255,255,.6); }
.club-hero .ch-stats { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; position: relative; z-index: 1; }
.club-hero .ch-stat .n { font-size: 24px; font-weight: 700; line-height: 1; }
.club-hero .ch-stat .l { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 5px; }

/* ── Section sub-grids ── */
.club-grid { display: grid; gap: 14px; }
.club-grid.g2 { grid-template-columns: 1fr 1fr; }
.club-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.club-grid.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .club-grid.g3, .club-grid.g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .club-grid.g2, .club-grid.g3, .club-grid.g4 { grid-template-columns: 1fr; } }

/* ── KPI tiles ── */
.club-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-card); }
.club-kpi .n { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.club-kpi .l { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.club-kpi .ic { float: right; width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 14px; background: var(--red-glow); color: var(--red); }

/* ── Rank pill ── */
.rank-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 3px 9px 3px 7px; border-radius: 20px; border: 1px solid; white-space: nowrap; }
.rank-pill i { font-size: 10px; }

/* ── Leaderboard ── */
.lb-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: var(--off); }
.lb-pos { font-size: 18px; font-weight: 800; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.lb-row.top-1 .lb-pos { color: #a16207; }
.lb-row.top-2 .lb-pos { color: #6b7280; }
.lb-row.top-3 .lb-pos { color: #b45309; }
.lb-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb-av { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; }
.lb-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-meta { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.lb-pts { text-align: right; }
.lb-pts .v { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lb-pts .u { font-size: 10px; color: var(--muted); margin-left: 2px; }
.lb-prog { height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; margin-top: 6px; }
.lb-prog > i { display: block; height: 100%; background: var(--red); border-radius: 2px; }

/* ── Member row (roster) ── */
.mem-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mem-row:last-child { border-bottom: none; }
.mem-row:hover { background: var(--off); }
.mem-av { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; }
.mem-actions { display: flex; gap: 6px; }

/* ── Event card ── */
.ev-card { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; }
.ev-card:hover { box-shadow: var(--shadow-hover); }
.ev-top { padding: 14px 16px 12px; border-left: 4px solid var(--ev-accent, var(--red)); }
.ev-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.ev-meta { font-size: 12px; color: var(--muted); margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ev-meta i { width: 13px; color: var(--muted); }
.ev-foot { margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--off); }
.ev-crew { display: flex; align-items: center; gap: 4px; }
.ev-crew .seat { width: 9px; height: 9px; border-radius: 50%; background: var(--border-light); }
.ev-crew .seat.filled { background: var(--red); }

/* ── Zone tiles ── */
.zone-tile { border: 1px solid var(--border); border-left: 4px solid var(--zc, var(--muted)); border-radius: var(--r); padding: 14px 16px; background: var(--surface); }
.zone-tile.green  { --zc: var(--green); }
.zone-tile.blue   { --zc: var(--blue); }
.zone-tile.amber  { --zc: var(--amber); }
.zone-tile.red    { --zc: var(--red); }
.zone-tile h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.zone-tile h4 .sw { width: 12px; height: 12px; border-radius: 4px; background: var(--zc); }
.zone-tile ul { margin: 0; padding-left: 18px; }
.zone-tile li { font-size: 12.5px; color: var(--muted2); margin: 3px 0; }

/* ── Per-sport field-access diagrams ── */
.ff-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 12px; }
.ff-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border: 1px solid var(--border); background: var(--surface-2);
  border-radius: 30px; font: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--muted2); cursor: pointer; white-space: nowrap;
  transition: border-color .14s, background .14s, color .14s, box-shadow .14s;
}
.ff-chip i { font-size: 12px; color: var(--muted); transition: color .14s; }
.ff-chip:hover { border-color: var(--border-light); color: var(--text); }
.ff-chip.active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 1px 4px rgba(200,16,46,.24); }
.ff-chip.active i { color: #fff; }

.ff-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.ff-leg { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--muted2); }
.ff-sw { width: 13px; height: 13px; border-radius: 4px; border: 1.5px dashed; }
.ff-sw.green { background: rgba(21,128,61,.15); border-color: var(--green); }
.ff-sw.blue  { background: rgba(29,78,216,.14); border-color: var(--blue); }
.ff-sw.amber { background: rgba(180,83,9,.15); border-color: var(--amber); }
.ff-sw.red   { background: rgba(200,16,46,.12); border-color: var(--red); }
.ff-spot { width: 13px; height: 13px; border-radius: 50%; background: var(--green); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--green); }

.ff-panels { position: relative; }
.ff-panel { display: none; }
.ff-panel.show { display: block; }
.ff-venue { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ff-stage {
  background: #0d1512; border: 1px solid var(--border); border-radius: var(--r);
  padding: 12px; overflow: hidden;
}
.ff-svg { width: 100%; height: auto; display: block; max-width: 640px; margin: 0 auto; }
.ff-rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ff-foot { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); background: var(--off); border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; }
.ff-foot i { color: var(--amber); }

@media (max-width: 680px) {
  .ff-rule-grid { grid-template-columns: 1fr; }
}

/* ── Rank ladder list ── */
.rank-ladder { display: flex; flex-direction: column; }
.rank-ladder .rl-row { display: grid; grid-template-columns: 170px 1fr 96px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); }
.rank-ladder .rl-row:last-child { border-bottom: none; }
.rank-ladder .rl-name { font-weight: 700; display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.rank-ladder .rl-perk { font-size: 12px; color: var(--muted); }
.rank-ladder .rl-pts { text-align: right; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--muted2); }
@media (max-width: 720px) { .rank-ladder .rl-row { grid-template-columns: 1fr auto; } .rank-ladder .rl-perk { display: none; } }

/* ── Inputs (club modals/forms) ── */
.club-inp { width: 100%; padding: 9px 12px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--surface-2); font-family: inherit; font-size: 13.5px; color: var(--text); }
.club-inp:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
select.club-inp { cursor: pointer; }
textarea.club-inp { min-height: 76px; resize: vertical; }

/* ── Tabs (sub-nav inside a club page) ── */
.club-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.club-tab { padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--muted); border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 7px; }
.club-tab:hover { color: var(--text); }
.club-tab.active { color: var(--red); border-bottom-color: var(--red); }
.club-tab .cnt { font-size: 10px; font-weight: 700; background: var(--off); color: var(--muted2); padding: 1px 6px; border-radius: 10px; }
.club-tab.active .cnt { background: var(--red-glow); color: var(--red); }

/* ── Contract policy list ── */
.policy { padding: 14px 0; border-bottom: 1px solid var(--border); }
.policy:last-child { border-bottom: none; }
.policy h4 { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.policy p { font-size: 13px; color: var(--muted2); line-height: 1.55; }

/* ── Quiz ── */
.quiz-q { margin-bottom: 18px; }
.quiz-q .q { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.quiz-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; margin-bottom: 7px; cursor: pointer; font-size: 13px; }
.quiz-opt:hover { background: var(--off); }
.quiz-opt input { margin-top: 2px; accent-color: var(--red); width: 15px; height: 15px; flex-shrink: 0; }
.quiz-opt.correct { border-color: var(--green); background: var(--green-glow); }
.quiz-opt.wrong { border-color: var(--red); background: var(--red-glow); }

/* ── Pending join requests ── */
.pend-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--amber); background: var(--amber-glow); border-radius: var(--r); margin-bottom: 8px; }
.pend-row .who { flex: 1; }
.pend-row .who .nm { font-weight: 600; font-size: 13.5px; }
.pend-row .who .em { font-size: 11.5px; color: var(--muted); }

/* ── Detail rows ── */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; text-align: right; }

/* ── Note / callout ── */
.club-note { display: flex; gap: 10px; padding: 11px 14px; border-radius: var(--r); font-size: 12.5px; line-height: 1.5; }
.club-note.info  { background: var(--blue-glow); border: 1px solid rgba(29,78,216,.2); color: var(--blue); }
.club-note.warn  { background: var(--amber-glow); border: 1px solid rgba(180,83,9,.2); color: var(--amber); }
.club-note.ok    { background: var(--green-glow); border: 1px solid rgba(21,128,61,.2); color: var(--green); }
.club-note i { margin-top: 1px; }

/* ── small list rows used in deliverables / penalties / log ── */
.list-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: none; }
.list-row .li-ic { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; background: var(--off); color: var(--muted2); }
.list-row .li-main .t { font-size: 13.5px; font-weight: 600; }
.list-row .li-main .s { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.delta { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 14px; }
.delta.pos { color: var(--green); }
.delta.neg { color: var(--red); }

/* ═══════════════════════════════════════════════════════════════════
   OVERVIEW FACELIFT — livelier KPIs, rank-distribution viz, medal
   leaderboard, quick-actions band, hero polish. Uses platform tokens so
   it adapts to light + dark automatically.
   ═══════════════════════════════════════════════════════════════════ */

/* ── KPI tiles: semantic accent, icon block, status/progress footer ── */
#club-tab-body .club-kpi {
  position: relative; display: flex; flex-direction: column; padding: 16px 18px 15px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-card);
}
#club-tab-body .club-kpi::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--kc, var(--red)), transparent 82%);
}
.club-kpi .kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.club-kpi .kpi-ic { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--kc, var(--red)); background: var(--kg, var(--red-glow)); }
.club-kpi .kpi-tag { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; letter-spacing: 1px; text-transform: uppercase;
  font-weight: 700; padding: 3px 8px; border-radius: 20px; color: var(--kc, var(--red)); background: var(--kg, var(--red-glow)); }
.club-kpi .kpi-n { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.club-kpi .kpi-l { font-size: 12px; color: var(--muted); margin-top: 5px; }
.club-kpi .kpi-bar { margin-top: 12px; height: 5px; border-radius: 3px; background: var(--off); overflow: hidden; }
.club-kpi .kpi-bar > i { display: block; height: 100%; border-radius: 3px; background: var(--kc, var(--red)); }
.club-kpi .kpi-foot { margin-top: 11px; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.club-kpi .kpi-foot i { color: var(--kc, var(--red)); font-size: 10px; }
.club-kpi.k-red   { --kc: var(--red);   --kg: var(--red-glow); }
.club-kpi.k-blue  { --kc: var(--blue);  --kg: var(--blue-glow); }
.club-kpi.k-amber { --kc: var(--amber); --kg: var(--amber-glow); }
.club-kpi.k-green { --kc: var(--green); --kg: var(--green-glow); }
.club-kpi:hover .kpi-n { transform: scale(1.04); transition: transform .18s ease; }
.club-kpi:hover .kpi-ic { transform: scale(1.08) rotate(-4deg); transition: transform .2s ease; }

/* ── Rank distribution (signature viz) ── */
.rk-dist { display: flex; flex-direction: column; gap: 13px; margin-top: 2px; }
.rk-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; }
.rk-ic { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.rk-mid { min-width: 0; }
.rk-name { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-track { height: 8px; border-radius: 5px; background: var(--off); overflow: hidden; margin-top: 6px; }
.rk-fill { display: block; height: 100%; border-radius: 5px; transform-origin: left center; }
.rk-cnt { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); min-width: 20px; text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  .rk-fill { animation: rk-grow .8s .1s cubic-bezier(.16,1,.3,1) backwards; }
  .rk-row:nth-child(2) .rk-fill { animation-delay: .16s; }
  .rk-row:nth-child(3) .rk-fill { animation-delay: .22s; }
  .rk-row:nth-child(4) .rk-fill { animation-delay: .28s; }
  .rk-row:nth-child(5) .rk-fill { animation-delay: .34s; }
  .rk-row:nth-child(6) .rk-fill { animation-delay: .40s; }
}
@keyframes rk-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Leaderboard medals for the overview top-3 ── */
.lb-row.top-1 { box-shadow: inset 3px 0 0 #E6B43C; }
.lb-row.top-2 { box-shadow: inset 3px 0 0 #A6AEB8; }
.lb-row.top-3 { box-shadow: inset 3px 0 0 #C98143; }
.lb-row.top-1 .lb-pos, .lb-row.top-2 .lb-pos, .lb-row.top-3 .lb-pos {
  width: 27px; height: 27px; margin: 0 auto; border-radius: 50%; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; }
.lb-row.top-1 .lb-pos { background: #E6B43C; color: #3d2c00; }
.lb-row.top-2 .lb-pos { background: #A6AEB8; color: #20252b; }
.lb-row.top-3 .lb-pos { background: #C98143; color: #331a06; }

/* ── Quick actions band ── */
.qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .qa-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .qa-grid { grid-template-columns: 1fr; } }
.qa { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); box-shadow: var(--shadow-card); cursor: pointer; text-align: left; font: inherit; color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.qa:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--border-light); }
.qa-ic { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 16px; background: var(--kg, var(--red-glow)); color: var(--kc, var(--red)); }
.qa-t { font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-s { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa .qa-go { margin-left: auto; color: var(--muted); font-size: 12px; transition: transform .15s ease, color .15s ease; }
.qa:hover .qa-go { transform: translateX(3px); color: var(--kc); }
.qa.k-red   { --kc: var(--red);   --kg: var(--red-glow); }
.qa.k-blue  { --kc: var(--blue);  --kg: var(--blue-glow); }
.qa.k-amber { --kc: var(--amber); --kg: var(--amber-glow); }
.qa.k-green { --kc: var(--green); --kg: var(--green-glow); }

/* ── Events empty-state CTA ── */
.ev-empty { text-align: center; padding: 20px 10px 10px; }
.ev-empty-ic { width: 52px; height: 52px; border-radius: 15px; margin: 0 auto 13px; display: flex; align-items: center; justify-content: center;
  font-size: 21px; color: var(--red); background: var(--red-glow); }
.ev-empty-t { font-weight: 700; font-size: 14.5px; }
.ev-empty-s { font-size: 12.5px; color: var(--muted); margin: 6px auto 15px; max-width: 290px; line-height: 1.5; }

/* ── small shared bits ── */
.sec-sub-note { font-size: 11px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.sec-label .sl-ic { color: var(--red); margin-right: 8px; }

/* ── Hero polish ── */
.club-hero h1 { position: relative; display: inline-block; }
.club-hero h1::after { content: ''; position: absolute; left: 2px; bottom: -7px; width: 46px; height: 3px; border-radius: 2px;
  background: var(--red); box-shadow: 0 0 12px rgba(200,16,46,.6); }
.ch-bignum { position: relative; display: inline-block; }
.ch-bignum::before { content: ''; position: absolute; left: -14%; top: -30%; width: 128%; height: 170%;
  background: radial-gradient(60% 60% at 30% 50%, rgba(255,77,98,.28), transparent 70%); z-index: -1; pointer-events: none; }
.tob-medal { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 800; flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .club-hero .ch-kick .dot { animation: club-rec 1.9s ease-in-out infinite; }
}
@keyframes club-rec { 0%, 100% { box-shadow: 0 0 0 0 rgba(200,16,46,.55); } 50% { box-shadow: 0 0 11px 3px rgba(200,16,46,.9); } }

/* ═══════════════════════════════════════════════════════════════════
   SOCIAL FEED — stories rail, composer, post cards, reactions, right rail.
   The Overview's announcements DB rendered like a social feed.
   ═══════════════════════════════════════════════════════════════════ */

/* two-column feed layout collapses on narrow viewports */
@media (max-width: 900px) { .feed-layout { grid-template-columns: 1fr !important; } }

/* ── Stories rail (compose bubble + ringed member avatars) ── */
.mm-stories-wrap { margin-bottom: 18px; }
.mm-stories { display: flex; gap: 15px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; scrollbar-color: var(--border-light) transparent; }
.mm-stories::-webkit-scrollbar { height: 6px; }
.mm-stories::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
.mm-story { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 7px; width: 70px;
  background: none; border: none; cursor: pointer; font: inherit; padding: 0; }
.mm-ring { width: 62px; height: 62px; border-radius: 50%; padding: 3px; display: flex; align-items: center; justify-content: center;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1); }
.mm-story:hover .mm-ring { transform: scale(1.07); }
.mm-story-av { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; color: #fff; border: 2.5px solid var(--surface); box-shadow: 0 3px 10px rgba(0,0,0,.28); }
.mm-ring.add { background: var(--surface-2); border: 1.5px dashed var(--border-light); padding: 0; }
.mm-add-ic { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 18px; }
.mm-story:hover .mm-ring.add { border-color: var(--red); }
.mm-story-name { font-size: 11.5px; color: var(--muted2); font-weight: 600; max-width: 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-story-add .mm-story-name { color: var(--red); }

/* ── Composer ── */
.feed-composer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px 12px;
  box-shadow: var(--shadow-card); margin-bottom: 16px; transition: border-color .16s, box-shadow .16s; }
.feed-composer:focus-within { border-color: var(--border-light); box-shadow: var(--shadow-hover); }
.fc-top { display: flex; gap: 12px; align-items: flex-start; }
.fc-av { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff; }
.fc-input { flex: 1; border: none; background: none; resize: none; font: inherit; font-size: 15px; color: var(--text);
  padding: 11px 4px 4px; min-height: 40px; line-height: 1.5; outline: none; overflow: hidden; }
.fc-input::placeholder { color: var(--muted); }
.fc-bar { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding-top: 11px; border-top: 1px solid var(--border); }
.fc-tool { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  color: var(--muted2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 6px 12px; transition: all .14s; }
.fc-tool i { font-size: 11px; }
.fc-tool:hover { border-color: var(--border-light); color: var(--text); }
.fc-photo-btn:hover { color: var(--blue); border-color: rgba(29,78,216,.35); background: var(--blue-glow); }
.fc-pin[aria-pressed="true"] { color: var(--red); border-color: rgba(200,16,46,.35); background: var(--red-glow); }
.fc-photo-preview { position: relative; margin: 12px 0 2px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.fc-photo-preview img { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.fc-photo-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.6); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.fc-photo-x:hover { background: rgba(0,0,0,.8); }
.fc-hint { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.fc-hint i { font-size: 10px; }
.fc-post { margin-left: auto; }
@media (max-width: 480px) { .fc-hint { display: none; } }

/* ── Feed post cards ── */
.feed-post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px 12px;
  box-shadow: var(--shadow-card); margin-bottom: 14px; position: relative;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.feed-post:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.feed-post.pinned { border-color: rgba(200,16,46,.28); }
.fp-pinbar { display: flex; align-items: center; gap: 7px; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--red); font-weight: 700; margin: -3px 0 11px; }
.fp-head { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.fp-av { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff; position: relative; }
.fp-badge { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--red);
  color: #fff; font-size: 8px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface); }
.fp-who { flex: 1; min-width: 0; }
.fp-name { font-weight: 700; font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.fp-role { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; letter-spacing: .8px; text-transform: uppercase; font-weight: 700;
  color: var(--red); background: var(--red-glow); border: 1px solid rgba(200,16,46,.22); padding: 2px 7px; border-radius: 20px; }
.fp-time { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.fp-x { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 4px 7px; border-radius: 7px; transition: all .14s; }
.fp-x:hover { color: var(--red); background: var(--red-glow); }
.fp-x.edit:hover { color: var(--text); background: var(--off); }

/* ── Mustang Media event calendar (mc-*) ── */
.mc-toggle { display: inline-flex; background: var(--off); border: 1px solid var(--border); border-radius: 9px; padding: 2px; gap: 2px; vertical-align: middle; }
.mc-toggle button { border: none; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.mc-toggle button:hover { color: var(--text); }
.mc-toggle button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.10); }
.mc-bar { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.mc-title { font-size: 17px; font-weight: 800; letter-spacing: -.01em; min-width: 160px; }
.mc-today-btn { margin-left: auto; }
.mc-cal { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.mc-wds { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--off); border-bottom: 1px solid var(--border); }
.mc-wd { text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 8px 0; }
.mc-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.mc-cell { min-height: 94px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 5px; display: flex; flex-direction: column; gap: 3px; }
.mc-cell:nth-child(7n) { border-right: none; }
.mc-out { background: var(--off); }
.mc-dn { font-size: 12px; font-weight: 600; color: var(--muted); align-self: flex-start; line-height: 20px; padding: 0 3px; }
.mc-today .mc-dn { background: var(--red, #C8102E); color: #fff; border-radius: 50%; width: 20px; height: 20px; text-align: center; }
.mc-ev { display: flex; align-items: center; gap: 5px; width: 100%; border: none; text-align: left; cursor: pointer; background: var(--off); border-left: 3px solid var(--a, #888); color: var(--text); border-radius: 5px; padding: 3px 6px; font-size: 11px; font-weight: 600; line-height: 1.25; }
.mc-ev:hover { background: var(--border); }
.mc-ev.mine { box-shadow: inset 0 0 0 1.5px var(--a, #888); }
.mc-ev.full { opacity: .55; }
.mc-tt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-nn { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--muted); flex-shrink: 0; }
.mc-legend { display: flex; gap: 16px; align-items: center; margin-top: 12px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.mc-key { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }
.mc-key.mine { background: transparent; box-shadow: inset 0 0 0 2px #7c3aed; }
.mc-key.full { background: var(--border); }
.mc-hint { margin-left: auto; font-style: italic; }
@media (max-width: 640px) { .mc-cell { min-height: 72px; } .mc-tt { display: none; } .mc-ev { justify-content: center; padding: 4px; } .mc-nn { font-size: 10px; } .mc-title { min-width: 0; font-size: 15px; } }
.fp-title { font-size: 15.5px; font-weight: 700; color: var(--text); margin-bottom: 5px; letter-spacing: -.01em; }
.fp-body { font-size: 14px; color: var(--muted2); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.fp-media { margin-top: 12px; border-radius: 13px; overflow: hidden; border: 1px solid var(--border); background: var(--off); }
.fp-media img { display: block; width: 100%; max-height: 460px; object-fit: cover; }
.fp-actions { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--border); }
.fp-react { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--muted2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px; transition: all .14s; }
.fp-react .e { font-size: 14px; filter: grayscale(.45) opacity(.75); transition: filter .14s; }
.fp-react .n { font-variant-numeric: tabular-nums; }
.fp-react:hover { border-color: var(--border-light); color: var(--text); }
.fp-react.on { color: var(--red); border-color: rgba(200,16,46,.3); background: var(--red-glow); }
.fp-react.on .e { filter: none; }
.fp-react.pop .e { animation: fp-pop .34s cubic-bezier(.34,1.7,.5,1); }
@keyframes fp-pop { 0% { transform: scale(1); } 45% { transform: scale(1.55); } 100% { transform: scale(1); } }
.fp-spacer { flex: 1; }
.fp-seen { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.fp-seen i { font-size: 10px; }

/* ── Feed empty state ── */
.feed-empty { text-align: center; padding: 40px 20px; background: var(--surface); border: 1px dashed var(--border-light); border-radius: var(--r-lg); }
.feed-empty-ic { width: 58px; height: 58px; border-radius: 16px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--red); background: var(--red-glow); }
.feed-empty-t { font-weight: 700; font-size: 16px; }
.feed-empty-s { font-size: 13px; color: var(--muted); margin: 7px auto 0; max-width: 340px; line-height: 1.55; }

/* ── Right rail ── */
.rail-col { display: flex; flex-direction: column; gap: 16px; }
.rail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.rstat { display: flex; align-items: center; gap: 10px; }
.rstat-ic { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--kc, var(--red)); background: var(--kg, var(--red-glow)); }
.rstat-n { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.rstat-l { font-size: 11px; color: var(--muted); margin-top: 3px; }
.rstat.k-red { --kc: var(--red); --kg: var(--red-glow); }
.rstat.k-blue { --kc: var(--blue); --kg: var(--blue-glow); }
.rstat.k-amber { --kc: var(--amber); --kg: var(--amber-glow); }
.rstat.k-green { --kc: var(--green); --kg: var(--green-glow); }

/* ── Compact leaderboard row (feed rail) ── */
.lb-mini { display: grid; grid-template-columns: 24px 32px 1fr auto; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--border); cursor: pointer; border-radius: 8px; transition: background .14s, transform .14s; }
.lb-mini:last-child { border-bottom: none; }
.lb-mini:hover { background: var(--off); transform: translateX(3px); }
.lb-mini .lb-pos { width: 22px; height: 22px; margin: 0 auto; border-radius: 50%; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-mini.top-1 .lb-pos { background: #E6B43C; color: #3d2c00; }
.lb-mini.top-2 .lb-pos { background: #A6AEB8; color: #20252b; }
.lb-mini.top-3 .lb-pos { background: #C98143; color: #331a06; }
.lb-mini .lb-av { border-radius: 9px; }
.lb-mini-main { min-width: 0; }
.lb-mini-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-mini-rank { font-size: 10.5px; font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.lb-mini-rank i { font-size: 9px; flex-shrink: 0; }
.lb-mini-pts { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }

/* ── Feed entrance motion (reveal-safe: transform only) ── */
@media (prefers-reduced-motion: no-preference) {
  .feed-post { animation: fp-in .5s cubic-bezier(.16,1,.3,1) backwards; }
  .feed-post:nth-child(2) { animation-delay: .05s; }
  .feed-post:nth-child(3) { animation-delay: .10s; }
  .feed-post:nth-child(4) { animation-delay: .15s; }
  .feed-post:nth-child(5) { animation-delay: .20s; }
  .mm-story { animation: fp-in .5s cubic-bezier(.16,1,.3,1) backwards; }
  .mm-story:nth-child(2) { animation-delay: .03s; }
  .mm-story:nth-child(3) { animation-delay: .06s; }
  .mm-story:nth-child(4) { animation-delay: .09s; }
  .mm-story:nth-child(5) { animation-delay: .12s; }
  .mm-story:nth-child(6) { animation-delay: .15s; }
  .mm-story:nth-child(7) { animation-delay: .18s; }
  .mm-story:nth-child(8) { animation-delay: .21s; }
}
@keyframes fp-in { from { transform: translateY(12px); } to { transform: none; } }

/* ═══════════════════════════════════════════════════════════════════
   PERSONALITY — broadcast display type, the Wire ticker, REC timecode,
   filmstrip sprockets. Gives the club dashboard its varsity-media soul.
   ═══════════════════════════════════════════════════════════════════ */

/* Varsity scoreboard type (Bebas Neue is imported at the top of this file) */
.club-hero h1 { font-family: 'Bebas Neue', 'Outfit', sans-serif; font-weight: 400; font-size: 46px; letter-spacing: 1.5px; line-height: .95; margin: 10px 0 2px; }
.club-hero .ch-stat .n { font-family: 'Bebas Neue', 'Outfit', sans-serif; font-weight: 400; font-size: 32px; letter-spacing: .5px; }
.rstat-n { font-family: 'Bebas Neue', 'Outfit', sans-serif; font-weight: 400; font-size: 26px; letter-spacing: .5px; }

/* REC badge + running timecode (top-right of the hero) */
.ch-rec { position: absolute; top: 15px; right: 17px; z-index: 2; display: flex; align-items: center; gap: 7px;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px; color: rgba(255,255,255,.8);
  background: rgba(0,0,0,.38); border: 1px solid rgba(255,255,255,.14); padding: 5px 11px; border-radius: 20px; backdrop-filter: blur(4px); }
.ch-rec .rdot { width: 7px; height: 7px; border-radius: 50%; background: #ff4d62; }
.ch-rec .tc { color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .ch-rec { display: none; } }

/* Filmstrip sprocket holes along the hero's bottom edge */
.ch-sprocket { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; z-index: 1; opacity: .35; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(255,255,255,.35) 10px 19px, transparent 19px 29px); }

/* The Wire — broadcast lower-third ticker with real club numbers */
.mm-ticker { display: flex; align-items: stretch; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: var(--badge-bg); box-shadow: var(--shadow-card); }
.mm-ticker-label { display: flex; align-items: center; gap: 8px; padding: 0 15px; background: var(--red); color: #fff; flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.tl-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.mm-ticker-track { flex: 1; overflow: hidden; display: flex; align-items: center; }
.mm-ticker-run { display: flex; width: max-content; }
.mm-ticker-seq { display: inline-flex; align-items: center; gap: 20px; padding: 11px 0 11px 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.66); white-space: nowrap; }
.mm-ticker .ti b { color: #fff; font-weight: 700; }
.mm-ticker .tsep { color: #E6B43C; font-size: 8px; }
/* The wire scrolls REGARDLESS of the OS "Reduce Motion" setting — it's a slow,
   gentle horizontal ticker and a frozen wire was the recurring complaint (with
   Reduce Motion on, gating it behind prefers-reduced-motion left it stuck). The
   flashing REC / label dots below still respect the preference. */
.mm-ticker-run { animation: mm-tick 46s linear infinite; }
.mm-ticker:hover .mm-ticker-run { animation-play-state: paused; }
@media (prefers-reduced-motion: no-preference) {
  .ch-rec .rdot, .tl-dot { animation: mm-blink 1.25s steps(2, start) infinite; }
}
@keyframes mm-tick { to { transform: translateX(-50%); } }
@keyframes mm-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }

/* ═══════════════════════════════════════════════════════════════════
   FINAL POLISH — stadium-light hero atmosphere, crew header, fresh-frame
   rail card, gold #1 wash, composer ring, card top-light.
   ═══════════════════════════════════════════════════════════════════ */

/* Hero atmosphere: gold stadium glow (bottom-right) + red wash (top-left) */
.club-hero {
  background:
    radial-gradient(120% 160% at 86% 118%, rgba(230,180,60,.16), transparent 46%),
    radial-gradient(90% 130% at 6% -22%, rgba(200,16,46,.30), transparent 55%),
    linear-gradient(120deg, #16181e 0%, #23262e 100%);
}

/* Stories header */
.mm-stories-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 10px; }
.msh-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.msh-label i { color: var(--red); font-size: 11px; }
.msh-count { font-size: 11px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Fresh frame — newest feed photo featured in the rail */
.rail-frame { overflow: hidden; position: relative; padding: 0; }
.rail-frame img { display: block; width: 100%; height: 172px; object-fit: cover; }
.rail-frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.rf-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 26px 13px 10px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.74)); }
.rf-tag { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  color: #fff; background: rgba(200,16,46,.88); padding: 3px 9px; border-radius: 20px; display: inline-flex; gap: 6px; align-items: center; }
.rf-tag i { font-size: 9px; }
.rf-meta { font-size: 10.5px; color: rgba(255,255,255,.88); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Gold wash on the board's #1 row */
.lb-mini.top-1 { background: linear-gradient(90deg, rgba(230,180,60,.10), transparent 70%); }

/* Soft top-light on feed cards (depth) */
.feed-post::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 56px;
  border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(180deg, rgba(255,255,255,.03), transparent); pointer-events: none; }

/* Composer avatar gets the story ring */
.fc-ring { width: 49px; height: 49px; border-radius: 50%; padding: 2.5px; flex-shrink: 0; display: flex;
  background: conic-gradient(from 150deg, var(--red), #E6B43C 45%, var(--red) 90%); }
.fc-ring .fc-av { width: 100%; height: 100%; border: 2px solid var(--surface); }

/* ── Student standing card ── */
.ms-top { display: flex; align-items: center; gap: 12px; }
.ms-ring { width: 56px; height: 56px; border-radius: 50%; padding: 3px; flex-shrink: 0; display: flex; }
.ms-av { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; color: #fff; border: 2.5px solid var(--surface); }
.ms-who { min-width: 0; }
.ms-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-pts { margin: 14px 0 10px; display: flex; align-items: baseline; gap: 8px; }
.ms-pts .n { font-family: 'Bebas Neue', 'Outfit', sans-serif; font-size: 40px; font-weight: 400; letter-spacing: 1px; line-height: .9; }
.ms-pts .u { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.ms-track { height: 9px; border-radius: 5px; background: var(--off); overflow: hidden; }
.ms-track > i { display: block; height: 100%; border-radius: 5px; transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) { .ms-track > i { animation: rk-grow .9s .15s cubic-bezier(.16,1,.3,1) backwards; } }
.ms-next { font-size: 12px; color: var(--muted); margin-top: 9px; line-height: 1.5; }
.ms-next b { color: var(--text); }
.ms-actions { display: flex; gap: 8px; margin-top: 13px; }

/* ── "you" marker on the board ── */
.lb-mini.me { background: linear-gradient(90deg, var(--red-glow), transparent 75%); }
.lb-you { font-size: 8.5px; font-weight: 800; color: var(--red); border: 1px solid rgba(200,16,46,.35); padding: 1px 5px;
  border-radius: 5px; text-transform: uppercase; letter-spacing: .5px; margin-left: 4px; }

/* ═══════════════════════════════════════════════════════════════════
   BROADCAST HEADERS + TAB DEPTH — the on-air identity applied to every
   club tab: mono kicker with blinking dot, Bebas display title, and
   consistent hover/entrance depth on cards and rows.
   ═══════════════════════════════════════════════════════════════════ */
.bc-head { margin-bottom: 18px; align-items: flex-end; gap: 14px; }
.bc-kick { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.bc-kick .bk-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.bc-title { font-family: 'Bebas Neue', 'Outfit', sans-serif; font-weight: 400; font-size: 34px; letter-spacing: 1px; line-height: .95; }
.bc-count { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); letter-spacing: 1px; margin-left: 8px; vertical-align: 5px; }
.bc-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (prefers-reduced-motion: no-preference) { .bc-kick .bk-dot { animation: mm-blink 1.25s steps(2, start) infinite; } }

.ev-card { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.ev-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.mem-row { transition: background .14s ease; }
.mem-row:hover { background: var(--off); }
@media (prefers-reduced-motion: no-preference) {
  #club-tab-body .ev-card, #club-tab-body .mem-row, #club-tab-body .list-row { animation: fp-in .45s cubic-bezier(.16,1,.3,1) backwards; }
  #club-tab-body .ev-card:nth-child(2), #club-tab-body .mem-row:nth-child(2), #club-tab-body .list-row:nth-child(2) { animation-delay: .04s; }
  #club-tab-body .ev-card:nth-child(3), #club-tab-body .mem-row:nth-child(3), #club-tab-body .list-row:nth-child(3) { animation-delay: .08s; }
  #club-tab-body .ev-card:nth-child(4), #club-tab-body .mem-row:nth-child(4), #club-tab-body .list-row:nth-child(4) { animation-delay: .12s; }
  #club-tab-body .ev-card:nth-child(5), #club-tab-body .mem-row:nth-child(5), #club-tab-body .list-row:nth-child(5) { animation-delay: .16s; }
  #club-tab-body .ev-card:nth-child(6), #club-tab-body .mem-row:nth-child(6), #club-tab-body .list-row:nth-child(6) { animation-delay: .20s; }
  #club-tab-body .ev-card:nth-child(7), #club-tab-body .mem-row:nth-child(7), #club-tab-body .list-row:nth-child(7) { animation-delay: .24s; }
  #club-tab-body .ev-card:nth-child(8), #club-tab-body .mem-row:nth-child(8), #club-tab-body .list-row:nth-child(8) { animation-delay: .28s; }
}
