/*
 * The leaderboard's tables/headings reuse the theme's own .results-table,
 * .results-row, .section-head etc. classes (see the shortcode's PHP), so
 * they're styled entirely by the theme's stylesheet — automatically
 * matching its fonts, colors, and light/dark mode. This file only styles
 * what the theme doesn't already have: the filter controls and the
 * "updating live" indicator. Every color reads from the theme's own CSS
 * custom properties, with sane fallbacks for the rare case this shortcode
 * is used outside the theme (e.g. previewed in an unstyled context).
 */
.atlt-leaderboard {
  max-width: 960px;
  margin: 0 auto;
}

.atlt-leaderboard .atlt-controls {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.atlt-leaderboard .atlt-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--grey, #8B8D91);
}

.atlt-leaderboard .atlt-controls select {
  font-family: inherit;
  font-size: 15px;
  padding: 8px 10px;
  background: var(--black2, #161719);
  color: var(--white, #F5F3EE);
  border: 1px solid var(--line, rgba(245, 243, 238, 0.2));
  border-radius: 2px;
}

.atlt-leaderboard .atlt-updated {
  font-size: 12.5px;
  color: var(--grey, #8B8D91);
  margin-left: auto;
}

.atlt-leaderboard .atlt-class-section {
  margin-top: 32px;
}

.atlt-leaderboard .atlt-section-note {
  font-size: 12.5px;
  color: var(--grey, #8B8D91);
  margin: 2px 0 0;
}

/* Per-test view: one run's cell — the time, plus a badge for any penalty.
   A dropped run (not one of the best-2-of-3 counted toward the score)
   shows muted and struck through — same "happened, but doesn't count"
   language as the theme's own .is-placeholder-name convention. */
.atlt-run { white-space: nowrap; }
.atlt-run-dropped { color: var(--grey, #8B8D91); text-decoration: line-through; opacity: 0.7; }
.atlt-run-counted { color: var(--white, #F5F3EE); }
.atlt-run-empty { color: var(--grey, #8B8D91); }
.atlt-run-badge {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: var(--amber, #E8791A);
  letter-spacing: 0.02em;
}

.atlt-error {
  color: #b00020;
  font-weight: 600;
}

/* Most Entertaining voting page ([swmc_entertaining_vote]) */
.atlt-entertaining {
  max-width: 640px;
  margin: 0 auto;
}

.atlt-entertaining-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
}

.atlt-entertaining-message {
  color: var(--grey, #8B8D91);
  font-size: 14.5px;
  margin: 0 0 18px;
}

.atlt-entertaining-error {
  color: #b00020;
}

.atlt-entertaining-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.atlt-entertaining-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  background: var(--black2, #161719);
  color: var(--white, #F5F3EE);
  border: 1px solid var(--line, rgba(245, 243, 238, 0.2));
  border-radius: 2px;
  cursor: pointer;
}

.atlt-entertaining-choice:hover {
  border-color: var(--yellow, #F4C21B);
}

.atlt-entertaining-choice.is-voted {
  border-color: var(--yellow, #F4C21B);
  background: rgba(244, 194, 27, 0.1);
  font-weight: 600;
}

/* Finished event: the downloads under the filters */
.atlt-leaderboard .atlt-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
