/* contests.css — contest list, ballot, results and live draw.
 *
 * Every colour comes from the site tokens in style.css so both themes and the
 * per-tournament brand colour reach this page. Never hardcode a hex that
 * duplicates a token; text sitting on a brand-coloured fill uses literal #fff
 * because --text-primary flips to near-black in light mode.
 */

.ctst-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1080px;
}

/* ── header ───────────────────────────────────────────────────────────────── */
.ctst-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}
.ctst-head-side { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.ctst-eyebrow {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin: 0 0 .25rem;
}
.ctst-eyebrow a { color: inherit; }
.ctst-title { font-size: 1.75rem; font-weight: 700; margin: 0; color: var(--text-primary); text-wrap: balance; }
.ctst-h2 { font-size: 1.15rem; font-weight: 650; margin: 0; color: var(--text-primary); }
.ctst-sub { color: var(--text-secondary); margin: .35rem 0 0; max-width: 62ch; }
.ctst-meta { color: var(--text-muted); font-size: .85rem; }

/* ── pills ────────────────────────────────────────────────────────────────── */
.ctst-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  white-space: nowrap;
}
.ctst-pill-live { background: var(--brand-primary); color: #fff; }
.ctst-pill-soon { background: var(--bg-secondary); color: var(--brand-secondary); }
.ctst-pill-muted { background: var(--bg-secondary); color: var(--text-muted); }

/* "watching now". Text sits on a solid brand-ish fill, so the colour is a
   literal #fff — a theme-flipping token would go near-black in light mode. */
.ctst-pill-watching { background: var(--bg-secondary); color: var(--text-secondary); }
.ctst-watch-dot {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #e0453b;
  box-shadow: 0 0 0 0 rgba(224, 69, 59, .55);
  animation: ctst-watch-pulse 2s ease-out infinite;
}
@keyframes ctst-watch-pulse {
  70%  { box-shadow: 0 0 0 .35rem rgba(224, 69, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 69, 59, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ctst-watch-dot { animation: none; }
}

/* ── list (hero + rows) ───────────────────────────────────────────────────── */
.ctst-featured { padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.ctst-featured-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ctst-featured-title { font-size: 1.35rem; font-weight: 700; margin: 0; color: var(--text-primary); }
.ctst-featured-desc { color: var(--text-secondary); margin: 0; max-width: 62ch; }
.ctst-featured-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .35rem; }

.ctst-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.ctst-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .7rem .9rem;
  border: 1px solid var(--border-color);
  border-radius: .5rem;
  background: var(--bg-card);
}
.ctst-row-main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; text-decoration: none; }
.ctst-row-title { font-weight: 650; color: var(--text-primary); }
.ctst-empty { padding: 2rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; color: var(--text-secondary); }

/* ── ballot ───────────────────────────────────────────────────────────────── */
.ctst-ballot { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .25rem; }
.ctst-rolewrap { border: 0; margin: 0; padding: .85rem 0; border-bottom: 1px solid var(--border-color); }
.ctst-rolewrap:last-of-type { border-bottom: 0; }
.ctst-rolehead { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .55rem; }
.ctst-rolelabel {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.ctst-picked { font-size: .8rem; color: var(--text-muted); }
.ctst-picked.is-set { color: var(--brand-primary); font-weight: 600; }

/* A match that has started. Read-only, not an error — dimmed and unclickable,
   but the pick the voter already made stays legible. */
.ctst-rolewrap.is-locked { opacity: .62; }
.ctst-rolewrap.is-locked .ctst-pcard { cursor: default; }
.ctst-rolewrap.is-locked .ctst-pcard:hover { transform: none; box-shadow: none; }
.ctst-picked.is-locked { color: var(--text-muted); font-weight: 600; }
.ctst-step.is-locked { opacity: .55; cursor: default; }

/* ── admin match card ─────────────────────────────────────────────────────── */
.ctst-cardside {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .1rem 0;
  color: var(--text-secondary);
}
.ctst-cardside .ctst-meta { margin-left: auto; font-variant-numeric: tabular-nums; }
/* The winner. Brand colour on the page background, never on a filled chip —
   this row has no fill of its own to fight with. */
.ctst-cardside.is-won { color: var(--brand-primary); font-weight: 650; }
.ctst-table tr.is-muted { opacity: .55; }

/* Three per row on phones, wrapping to the next line; five from 620px up. */
.ctst-playergrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (min-width: 620px) { .ctst-playergrid { grid-template-columns: repeat(5, 1fr); } }

.ctst-pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .4rem;
  padding: .6rem .4rem;
  /* The card sits on .ctst-ballot, which is itself --bg-card: a --border-color hairline between two
     identical surfaces is invisible, which is why the option boxes read as one open field. An
     explicit translucent border plus a raised fill is what separates them; do not "fix" this by
     brightening the fill alone -- these are the same two knobs the bracket cards use. */
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: .6rem;
  background: var(--bg-elevated, var(--bg-secondary));
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
html[data-theme='light'] .ctst-pcard { border-color: rgba(15, 23, 42, .14); }
.ctst-pcard:hover { border-color: var(--brand-primary); }
.ctst-radio:checked + .ctst-pcard {
  border-color: var(--brand-primary);
  box-shadow: inset 0 0 0 1px var(--brand-primary);
}
.ctst-radio:focus-visible + .ctst-pcard { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.ctst-pname { font-size: .8rem; font-weight: 650; line-height: 1.2; color: var(--text-primary); }
.ctst-pteam { font-size: .68rem; color: var(--text-muted); }

.ctst-ph {
  width: 54px; height: 54px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-secondary);
  /* Player photos are shot against every background there is -- a dark-hoodie portrait on a dark
     card had no visible edge at all with the old 1px --border-color hairline. The ring is a flat
     translucent white so it reads over whatever the photo happens to be, and is overridden for
     light theme below (white-on-light would be the same invisible bug mirrored). */
  border: 2px solid rgba(255, 255, 255, .35);
  display: grid;
  place-items: center;
  flex: none;
}
html[data-theme='light'] .ctst-ph { border-color: rgba(15, 23, 42, .22); }
/* The selected pick keeps the brand ring instead, so the tick is not the only cue. */
.ctst-radio:checked + .ctst-pcard .ctst-ph { border-color: var(--brand-primary); }
.ctst-ph img { width: 100%; height: 100%; object-fit: cover; }
.ctst-ph-sm { width: 32px; height: 32px; }
.ctst-ph-lg { width: 72px; height: 72px; }
.ctst-initials { font-size: .8rem; font-weight: 700; color: var(--text-muted); }

.ctst-tick {
  position: absolute; top: .35rem; right: .35rem;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  display: none;
  place-items: center;
  font-size: .6rem;
}
.ctst-radio:checked + .ctst-pcard .ctst-tick { display: grid; }

/* ── progress rail / receipt ──────────────────────────────────────────────── */
.ctst-rail {
  margin-top: .75rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.ctst-rail.is-submitted { border-top-color: var(--brand-primary); }
.ctst-steps { display: flex; gap: .4rem; flex-wrap: wrap; }
.ctst-step {
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  background: none;
  cursor: pointer;
  font-family: inherit;
}
/* Done = filled green; still-needed = brand outline. Two different hues so the
   rail reads at a glance instead of as one block of red. */
.ctst-step.is-on {
  border-color: var(--legacy-emerald-500);
  background: rgba(var(--legacy-emerald-500-rgb), .14);
  color: var(--legacy-emerald-400);
  font-weight: 650;
}
.ctst-step.is-miss { border-color: var(--brand-primary); color: var(--brand-primary); }
.ctst-step:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
/* Social-follow gate — sits between the last role group and the rail. */
.ctst-social {
  border: 1px solid var(--brand-primary);
  border-radius: .7rem;
  padding: .85rem 1rem;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.ctst-social legend { padding: 0 .35rem; }
.ctst-social-warn {
  margin: 0;
  font-size: .85rem;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: .45rem;
}
.ctst-social-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ctst-social-check {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  color: var(--text-secondary);
  cursor: pointer;
}
/* Brand marks keep their own hue; both are legible on the dark and light card. */
.ctst-social-yt i { color: #ff0033; }
.ctst-social-fb i { color: #1877f2; }

.ctst-rail-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }

/* Editing foot and receipt are both in the DOM; the rail's state picks one. */
.ctst-receipt { display: none; flex-direction: column; gap: .6rem; }
.ctst-rail.is-submitted [data-rail-edit] { display: none; }
.ctst-rail.is-submitted .ctst-receipt { display: flex; }
.ctst-receipt-head { display: flex; flex-direction: column; gap: .15rem; }
.ctst-receipt-title { font-size: 1rem; color: var(--text-primary); }
.ctst-receipt-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.ctst-receipt-draw {
  display: flex; justify-content: space-between; align-items: center;
  gap: .75rem; flex-wrap: wrap;
  padding-top: .6rem;
  border-top: 1px solid var(--border-color);
}

/* ── thank-you dialog ─────────────────────────────────────────────────────── */
.ctst-thanks {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 0;
  max-width: 22rem;
  width: calc(100% - 2rem);
}
.ctst-thanks::backdrop { background: rgba(0, 0, 0, .6); }
.ctst-thanks-body { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.6rem 1.4rem; text-align: center; }
.ctst-thanks-icon { font-size: 2rem; color: var(--brand-primary); }
.ctst-thanks-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.ctst-thanks-body .esports-btn { margin-top: .5rem; }

/* ── login sheet ──────────────────────────────────────────────────────────── */
.ctst-sheet {
  position: sticky;
  bottom: 1rem;
  z-index: 20;
  padding: 1rem 1.1rem;
  border: 1px solid var(--brand-primary);
  border-radius: .7rem;
  background: var(--bg-card);
  box-shadow: 0 -8px 26px rgba(0, 0, 0, .22);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.ctst-sheet h3 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.ctst-sheet p { margin: 0; font-size: .88rem; color: var(--text-secondary); }
.ctst-sheet-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── results ──────────────────────────────────────────────────────────────── */
.ctst-results, .ctst-prizes { display: flex; flex-direction: column; gap: .75rem; }
.ctst-result-card { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
.ctst-resrow { display: flex; flex-direction: column; gap: .3rem; }
.ctst-resrow-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ctst-resrow-flat { display: flex; align-items: center; gap: .5rem; }
.ctst-rank {
  min-width: 1.5rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text-muted);
}
.ctst-resrow.is-awarded .ctst-rank { color: var(--brand-primary); }
.ctst-resname { font-weight: 620; color: var(--text-primary); }
.ctst-resvotes { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text-secondary); }

.ctst-track { height: 6px; border-radius: 999px; background: var(--bg-secondary); overflow: hidden; }
.ctst-fill { height: 100%; background: var(--brand-primary); border-radius: 999px; }
.ctst-fill.is-dim { opacity: .35; }

/* The award cutoff is a real boundary in the data, so it gets a real rule. */
.ctst-cutoff {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .35rem 0 .1rem;
  color: var(--brand-primary);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ctst-cutoff::before, .ctst-cutoff::after {
  content: "";
  flex: 1;
  border-top: 2px dashed var(--brand-primary);
  opacity: .65;
}

.ctst-sharebar {
  display: flex;
  height: 34px;
  border-radius: .5rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.ctst-shareseg {
  background: var(--brand-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 700;
}

.ctst-verdict {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
}
.ctst-verdict.is-correct { border-color: var(--brand-primary); }
.ctst-verdict-title { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }

.ctst-tablewrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: .5rem; }
.ctst-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 460px; }
.ctst-table th, .ctst-table td { padding: .5rem .75rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.ctst-table th {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.ctst-table td { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.ctst-table tr:last-child td { border-bottom: 0; }
.ctst-table tr.is-me td { background: var(--bg-secondary); color: var(--text-primary); font-weight: 650; }

.ctst-locked {
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
}
.ctst-prize-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border-color);
}
.ctst-prize-row:last-child { border-bottom: 0; }

/* ── live draw ────────────────────────────────────────────────────────────── */
.ctst-wheelcard, .ctst-predraw {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  text-align: center;
}
.ctst-wheelcard .ctst-rolehead { width: 100%; }
.ctst-wheel { max-width: 280px; width: 100%; height: auto; }
.ctst-drawstage {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.ctst-drawn-name { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); }
.ctst-log {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .82rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ── admin forms ──────────────────────────────────────────────────────────── */
.ctst-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .75rem;
  align-items: end;
}
.ctst-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.ctst-field-wide { grid-column: 1 / -1; }
.ctst-field-actions { grid-column: 1 / -1; flex-direction: row; gap: .5rem; }
.ctst-field-checks { grid-column: 1 / -1; flex-direction: row; gap: 1rem; flex-wrap: wrap; }
.ctst-field label { font-size: .78rem; font-weight: 600; color: var(--text-secondary); }
.ctst-field input,
.ctst-field select,
.ctst-table input,
.ctst-table select {
  font: inherit;
  font-size: .88rem;
  padding: .45rem .6rem;
  border-radius: .4rem;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  width: 100%;
}
.ctst-field input:focus-visible,
.ctst-field select:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 1px; }

.ctst-inline-form { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.ctst-inline-form input { width: auto; }
form.inline { display: inline; }

.ctst-teamgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .5rem;
  margin: .6rem 0;
}
.ctst-teamtile {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .6rem .7rem;
  border: 1px solid var(--border-color);
  border-radius: .5rem;
  background: var(--bg-card);
  cursor: pointer;
}
.ctst-teamtile:has(input:checked) { border-color: var(--brand-primary); }

tr.is-inactive { opacity: .55; }

/* Role tick list. Checkbox stays a real checkbox — it reads as one, and it
   keeps keyboard and screen-reader behaviour for free. */
.ctst-checkgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .45rem;
}
.ctst-checktile {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .65rem;
  border: 1px solid var(--border-color);
  border-radius: .45rem;
  background: var(--bg-card);
  cursor: pointer;
  font-size: .88rem;
  color: var(--text-secondary);
}
.ctst-checktile:hover { border-color: var(--brand-primary); }
.ctst-checktile:has(input:checked) {
  border-color: var(--brand-primary);
  color: var(--text-primary);
  font-weight: 620;
}
.ctst-checktile input,
.ctst-teamtile input { width: auto; accent-color: var(--brand-primary); flex: none; }

/* fieldset resets — the browser default border/padding fights the card layout */
.ctst-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ctst-form legend { font-size: .78rem; font-weight: 600; color: var(--text-secondary); padding: 0 0 .3rem; }

.ctst-scopebar {
  padding-bottom: .75rem;
  margin-bottom: .25rem;
  border-bottom: 1px solid var(--border-color);
}
.ctst-teamtile.is-empty { opacity: .6; }

/* A checkbox inside a table cell must not inherit the full-width input rule. */
.ctst-table input[type="checkbox"] { width: auto; accent-color: var(--brand-primary); }

/* One save for the whole pool. It sticks to the bottom of the viewport so it is
   reachable without scrolling past a few hundred rows. */
.ctst-savebar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  align-items: center;
  padding: .75rem 0;
  margin-top: .25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

/* Seed preview — a row whose role could not be resolved needs to read as
   unfinished at a glance, not just as an empty select. */
.ctst-table tr.is-unset td { background: var(--bg-secondary); }
.ctst-src {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .1rem .4rem;
  border-radius: .3rem;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}
.ctst-src-none { border-color: var(--brand-primary); color: var(--brand-primary); }

/* Timeline — the contest schedule as an ordered list, not a table. A past
   milestone stays readable (it is still a fact), it just stops competing with
   the ones ahead of it. Semantic tokens only: this reads in both themes. */
.ctst-timeline {
  list-style: none;
  margin: .75rem 0 1rem;
  padding: 0 0 0 .85rem;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.ctst-tl-item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
}
.ctst-tl-dot {
  position: absolute;
  left: calc(-.85rem - 4px);
  top: .45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-primary);
}
.ctst-tl-item.is-past .ctst-tl-dot { background: var(--text-muted); }
.ctst-tl-item.is-unscheduled .ctst-tl-dot {
  background: transparent;
  border: 1px solid var(--border-color);
}
.ctst-tl-label { font-weight: 600; color: var(--text-secondary); min-width: 9rem; }
.ctst-tl-when { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.ctst-tl-item.is-past .ctst-tl-when { color: var(--text-muted); }

/* Destructive section. Marked by its border, not a red fill — the page already
   uses the brand red for primary actions, and a wall of red stops meaning
   "careful" once everything is red. Static container: no hover lift. */
.ctst-danger { border-color: rgba(var(--legacy-red-500-rgb), .45); }
.ctst-danger .ctst-h2 { color: var(--legacy-red-400); }

@media (prefers-reduced-motion: reduce) {
  .ctst-pcard, .ctst-sheet { transition: none; }
}

/* ── Campaign posters (team leaders) ─────────────────────────────────────────
   Static containers: no hover lift on the section itself, only on the links
   that are genuinely clickable. */
.ctst-posters { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.ctst-posters-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.ctst-poster-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.ctst-poster-links a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem .7rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  transition: border-color .15s ease, color .15s ease;
}
.ctst-poster-links a:hover,
.ctst-poster-links a:focus-visible {
  border-color: var(--border-bright);
  color: var(--text-primary);
}
.ctst-poster-links a i { color: var(--brand-primary); }

.ctst-leader-note {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text-secondary);
}
.ctst-leader-note i { color: var(--brand-secondary); font-size: 1.1rem; }
.ctst-leader-note p { margin: 0; }
