/* Community section styles. Use tokens from tokens.css; shared components are in base.css
   and assets/css/widgets.css (SHOT.w). Only shapes neither of those cover live here. */

/* ---------- Community icon: bespoke per-community brand colour. SHOT.w's avatar() hashes a
   colour from a name and can't take an arbitrary brand hex, so this stays local. ---------- */
.comm-ic {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--shot-surface-light);
  color: var(--c, var(--status-upcoming-text)); display: inline-flex; align-items: center; justify-content: center;
}
.comm-ic svg, .comm-ic i { width: 20px; height: 20px; }
.comm-ic.lg { width: 56px; height: 56px; }
.comm-ic.lg svg, .comm-ic.lg i { width: 28px; height: 28px; }
.v-tick { color: var(--status-upcoming-text); width: 14px !important; height: 14px !important; margin-left: 4px; vertical-align: middle; }

/* ---------- Community page header: every preset renders this same shape ---------- */
.comm-head { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s2); }
.comm-head-main { min-width: 0; }
.comm-name { font-size: var(--fs-xl); }
.comm-meta { font-size: 12px; color: var(--shot-text-muted); margin-top: 2px; }
.comm-access { margin: var(--s2) 0 var(--s3); }
.role-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s2) 0 var(--s3); }
.static-state { opacity: .85; cursor: default; }

/* ---------- Discover row: a link (icon + name) plus a separate verb button. Two actions in one
   row, so it can't be a single-action w.card or w.listRow; built on w.card for the surface. ---------- */
.discover-row { display: flex; align-items: center; gap: var(--s3); }
.discover-main { display: flex; align-items: center; gap: var(--s3); flex: 1; min-width: 0; min-height: 44px; color: inherit; text-decoration: none; }
.create-card { border: 1px dashed var(--shot-border); }
.create-card .w-row-title { color: var(--status-upcoming-text); }

/* ---------- Leaderboard rank ---------- */
.lb-rank { flex: none; width: 24px; font-family: var(--font-heading); font-weight: 700; color: var(--shot-text-muted); text-align: center; }

/* ---------- Reactions: five branded reaction types with live counts, no widget covers this ---------- */
.react-row { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s3) 0; }
.react-btn {
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 12px;
  border-radius: var(--r-full); background: var(--shot-surface); color: var(--shot-text-secondary); font-size: 12px; font-weight: 600;
}
.react-btn svg, .react-btn i { width: 16px; height: 16px; }
.react-btn[aria-pressed="true"] { background: rgba(26,188,156,.18); color: var(--status-upcoming-text); }
.react-btn[disabled] { opacity: .45; }
.restricted-note { display: flex; align-items: center; gap: 6px; }
.restricted-note svg, .restricted-note i { width: 14px; height: 14px; flex: none; }

/* ---------- Channel page ---------- */
.channel-title { font-size: 18px; }

/* ---------- Pass / drops ---------- */
.pass-card { display: flex; align-items: center; gap: var(--s3); }
.pass-qr { flex: none; width: 56px; height: 56px; border-radius: var(--r-md); background: var(--shot-surface-light); display: flex; align-items: center; justify-content: center; color: var(--shot-text); }
.pass-qr svg, .pass-qr i { width: 30px; height: 30px; }

/* ---------- Reels / player placeholders: bespoke video tiles, no widget covers this ---------- */
.reels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.reel-tile {
  aspect-ratio: 9 / 16; border-radius: var(--r-md); background: var(--shot-surface-light);
  display: flex; align-items: center; justify-content: center; color: var(--shot-text-muted);
}
.reel-tile svg, .reel-tile i { width: 20px; height: 20px; }
.reel-frame, .player-frame {
  aspect-ratio: 9 / 16; max-width: 220px; margin: 0 auto; border-radius: var(--r-lg); background: #000;
  display: flex; align-items: center; justify-content: center; color: var(--shot-text-muted); position: relative;
}
.player-frame { aspect-ratio: 16 / 9; max-width: none; }
.player-frame svg, .reel-frame svg, .player-frame i, .reel-frame i { width: 28px; height: 28px; }
.player-frame .w-badge--live { position: absolute; top: 10px; left: 10px; }
/* Sits on the always-dark video/stream frame background regardless of app theme, so the text
   stays a fixed white rather than following --shot-text into near-black in light mode. */
.player-viewers { position: absolute; bottom: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,.6); padding: 4px 8px; border-radius: var(--r-full); font-size: var(--fs-caption); color: #fff; }
.player-viewers svg, .player-viewers i { width: 13px; height: 13px; }
.player-caption { margin-top: var(--s2); text-align: center; }

/* ---------- Live match thread sheet ---------- */
.score-head { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.score-detail { font-family: var(--font-heading); font-weight: 700; font-size: 16px; }
.chat-list { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; margin-bottom: var(--s2); }
.chat-msg { font-size: var(--fs-small); }
.chat-author { font-weight: 600; color: var(--status-upcoming-text); margin-right: 6px; }

/* Match centre and league hub (5 Oct 2026). */
.mc-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s2); text-align: center; margin: var(--s2) 0; }
.mc-team { font-weight: 700; font-size: 14px; line-height: 1.3; }
.mc-num { font-size: 32px; font-weight: 800; letter-spacing: .02em; }
.mc-dash { margin: 0 6px; color: var(--shot-text-muted); }
.mc-status { text-align: center; margin: 0 0 var(--s3); }
.mc-body { margin-top: var(--s3); }
.mc-timeline { display: grid; gap: var(--s2); }
.mc-event { display: flex; align-items: center; gap: var(--s2); font-size: 14px; }
.mc-event svg { width: 18px; height: 18px; flex: none; }
.lg-table { padding: 0; overflow: hidden; }
.lg-row { display: grid; grid-template-columns: 28px 1fr 32px 40px 40px; gap: var(--s1); align-items: center; padding: 10px var(--s3); font-size: 14px; }
.lg-row + .lg-row { border-top: 1px solid var(--surface-card-border); }
.lg-row > span:nth-child(n+3) { text-align: right; }
.lg-row--head { font-size: 12px; font-weight: 700; color: var(--shot-text-muted); }
.lg-row--mine { background: var(--shot-surface-light); font-weight: 700; }

/* ---------- Live club community page (production CommunityPage, 24 Nov 2026) ---------- */
.comm-live { max-width: 42rem; margin: 0 auto; padding-top: var(--s4); }
.comm-live-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin-bottom: var(--s4); }
.comm-live-av { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; background: none; font-family: var(--font-heading); font-size: 18px; font-weight: 800; }
.comm-live-name { font-size: 18px; font-weight: 700; margin-top: var(--s2); }
.comm-live-role { font-size: var(--fs-small); font-weight: 600; color: var(--status-upcoming-text); }
.comm-live-sec { margin-top: var(--s5); }
.comm-live-h { display: flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 700; }
.comm-live .w-sec { margin-top: var(--s5); }
.comm-live .w-sec-label { border-left: 0; padding-left: 0; font-size: 16px; }
.comm-live-post-by { font-size: var(--fs-caption); font-weight: 600; color: var(--status-upcoming-text); margin-bottom: 2px; }
.comm-live-post { margin-bottom: var(--s2); }
.comm-live-empty { text-align: center; padding: var(--s8) var(--s4); background: var(--shot-surface); border-radius: var(--r-lg); }
