/*
 * Събития по график и картите на мачовете (CONTRACT §12–13) — същата визия: карбонови панели,
 * циан за „на живо“, кехлибар за XP и първото място. Без анимация освен пулса на статуса
 * (той вече спира при prefers-reduced-motion).
 */

.band-events {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ev {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.25rem 1.3rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
}
.ev.is-live {
  border-color: rgba(0, 229, 255, 0.5);
  background:
    radial-gradient(110% 80% at 0% 0%, rgba(0, 229, 255, 0.12), transparent 65%), var(--panel);
}
.ev-when {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ev-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--cyan);
}
.ev-soon {
  color: var(--amber);
}
.ev-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.05;
}
.ev-time {
  margin: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ev-tags,
.mc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: auto 0 0;
  padding: 0;
}
.ev-tags li,
.mc-tags li {
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  background: var(--panel-2);
  font-size: 0.9rem;
  font-weight: 700;
}
.ev-xp b {
  color: var(--amber);
}
.ev-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Последни мачове: списък с карти (начало и /matches). */
.matches {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
}
.mc-link {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.mc-link:hover {
  color: var(--cyan);
  text-decoration: underline;
}
.mc-when {
  color: var(--muted);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.mc-top {
  grid-column: 1 / -1;
  margin: 0;
  color: #c4d2db;
}
.mc-top b {
  color: var(--amber);
}

/* Картата на един мач: подиум от трима + таблицата. */
.match-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
  gap: 0.75rem;
  margin: 0 0 2rem;
}
.match-facts div {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
}
.match-facts dt {
  color: var(--muted);
  font-size: 0.9rem;
}
.match-facts dd {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.match-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.match-top li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
}
.match-top li:first-child {
  border-color: rgba(255, 181, 71, 0.55);
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(255, 181, 71, 0.16), transparent 70%), var(--panel);
}
.match-place {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 0.9;
  color: var(--muted);
}
.match-top li:first-child .match-place {
  color: var(--amber);
}
.match-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.2rem;
  font-weight: 700;
}
.match-line {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .mc {
    grid-template-columns: minmax(0, 1fr);
  }
}
