/* RELOAD23 match history — list and detail */
.r23-matches {
  --m-line: rgba(124, 194, 66, 0.16);
  --m-panel: linear-gradient(180deg, #121d15, #0f1712);
  --m-muted: #8fa593;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 90px;
  color: #c8d2ca;
}

.r23-matches__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.r23-matches__head h1 {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}

.r23-matches__head p {
  margin: 0;
  max-width: 620px;
  color: var(--m-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.r23-matches__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.r23-matches__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  background: rgba(124, 194, 66, 0.08);
  color: #d8ead9;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.r23-matches__btn:hover {
  border-color: rgba(124, 194, 66, 0.45);
  background: rgba(124, 194, 66, 0.14);
  color: #fff;
}

.r23-match-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 8px;
}

.r23-match-stat {
  padding: 16px;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  background: var(--m-panel);
}

.r23-match-stat__label {
  display: block;
  margin-bottom: 6px;
  color: var(--m-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.r23-match-stat__value {
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.r23-match-stat__value.is-green { color: #9adf5a; }

.r23-match-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0 16px;
}

.r23-match-tab {
  padding: 9px 16px;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  background: transparent;
  color: #9fb2a3;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.r23-match-tab:hover { color: #fff; border-color: rgba(124, 194, 66, 0.4); }

.r23-match-tab.is-active {
  border-color: rgba(124, 194, 66, 0.55);
  background: rgba(124, 194, 66, 0.16);
  color: #d9ffc4;
}

.r23-match-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.r23-match-card {
  display: grid;
  grid-template-columns: minmax(150px, 1.5fr) minmax(0, 1.1fr) 110px 120px 110px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--m-line);
  border-left: 3px solid #3d9c4a;
  border-radius: 10px;
  background: var(--m-panel);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.r23-match-card:hover {
  border-color: rgba(124, 194, 66, 0.42);
  background: linear-gradient(180deg, #152418, #101a13);
  transform: translateY(-1px);
}

.r23-match-card.is-win { border-left-color: #7cc242; }
.r23-match-card.is-loss { border-left-color: #c24b4b; }
.r23-match-card.is-draw { border-left-color: #a08b3c; }

.r23-match-card__map {
  display: block;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.r23-match-card__meta {
  display: block;
  margin-top: 4px;
  color: var(--m-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.r23-match-card__score {
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  color: #e7f6e9;
  text-align: center;
  white-space: nowrap;
}

.r23-match-card__result {
  justify-self: start;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(124, 194, 66, 0.12);
  color: #9adf5a;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.r23-match-card__result.is-loss { background: rgba(194, 75, 75, 0.14); color: #e08a8a; }
.r23-match-card__result.is-draw { background: rgba(160, 139, 60, 0.16); color: #d8c47a; }
.r23-match-card__result.is-neutral { background: rgba(124, 194, 66, 0.1); color: #a9c9ad; }

.r23-match-card__demo {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9adf5a;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.r23-match-card__demo svg { width: 15px; height: 15px; }
.r23-match-card__demo.is-muted { color: #6f8273; font-weight: 500; }

.r23-match-empty {
  padding: 52px 24px;
  border: 1px dashed rgba(124, 194, 66, 0.24);
  border-radius: 12px;
  text-align: center;
}

.r23-match-empty h2 {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 1.4rem;
  color: #fff;
}

.r23-match-empty p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--m-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.r23-match-more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.r23-match-more[hidden] { display: none; }

.r23-match-skeleton {
  height: 68px;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  background: linear-gradient(90deg, #101a13 25%, #152418 50%, #101a13 75%);
  background-size: 400% 100%;
  animation: r23-match-shimmer 1.4s ease infinite;
}

@keyframes r23-match-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* ---------------- detail ---------------- */
.r23-match-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: #9adf5a;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.r23-match-detail__back:hover { color: #c4f29b; }

.r23-match-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background:
    radial-gradient(420px 180px at 50% 0%, rgba(124, 194, 66, 0.12), transparent 70%),
    var(--m-panel);
}

.r23-match-hero__side { min-width: 0; }
.r23-match-hero__side.is-right { text-align: right; }

.r23-match-hero__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.r23-match-hero__tag.is-ct { background: rgba(84, 148, 214, 0.16); color: #8ec4f2; }
.r23-match-hero__tag.is-t { background: rgba(214, 168, 84, 0.16); color: #e5c07b; }

.r23-match-hero__score {
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.r23-match-hero__map {
  margin: 6px 0 0;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #e7f6e9;
}

.r23-match-hero__meta {
  color: var(--m-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.r23-match-hero__center { text-align: center; }

.r23-match-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0 26px;
  padding: 16px 20px;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  background: var(--m-panel);
}

.r23-match-demo__text strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 0.95rem;
}

.r23-match-demo__text span { color: var(--m-muted); font-size: 0.82rem; }

.r23-match-demo__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  background: linear-gradient(180deg, #7cc242, #3d9c4a);
  color: #08130a;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(61, 156, 74, 0.22);
}

.r23-match-demo__btn:hover { filter: brightness(1.08); }

.r23-match-demo__btn.is-disabled {
  background: rgba(124, 194, 66, 0.08);
  border: 1px solid var(--m-line);
  color: #7d9181;
  box-shadow: none;
  pointer-events: none;
}

.r23-match-scoreboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.r23-match-team {
  border: 1px solid var(--m-line);
  border-radius: 10px;
  background: var(--m-panel);
  overflow: hidden;
}

.r23-match-team__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--m-line);
  background: rgba(124, 194, 66, 0.05);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.r23-match-team__head.is-ct { color: #8ec4f2; }
.r23-match-team__head.is-t { color: #e5c07b; }

.r23-match-team table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.r23-match-team th {
  padding: 7px 8px;
  color: #7d9181;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: right;
  text-transform: uppercase;
}

.r23-match-team th:first-child,
.r23-match-team td:first-child { text-align: left; padding-left: 14px; }

.r23-match-team td {
  padding: 9px 8px;
  border-top: 1px solid rgba(124, 194, 66, 0.08);
  text-align: right;
  color: #c8d2ca;
  white-space: nowrap;
}

.r23-match-team tr.is-me td { background: rgba(124, 194, 66, 0.07); }
.r23-match-team tr.is-me td:first-child { box-shadow: inset 3px 0 0 #7cc242; }

.r23-match-player {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.r23-match-player:hover { color: #9adf5a; }

.r23-match-player img,
.r23-match-player__fallback {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 5px;
  object-fit: cover;
  background: #1a2a1e;
}

.r23-match-player__fallback {
  display: grid;
  place-items: center;
  color: #9adf5a;
  font-size: 0.7rem;
  font-weight: 700;
}

.r23-match-player span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.r23-match-team__empty {
  padding: 22px;
  color: var(--m-muted);
  font-size: 0.84rem;
  text-align: center;
}

@media (max-width: 900px) {
  .r23-match-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .r23-match-card { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .r23-match-card__meta { grid-column: 1 / -1; }
  .r23-match-card__score { text-align: right; }
  .r23-match-card__demo { justify-self: start; }
  .r23-match-scoreboard { grid-template-columns: 1fr; }
  .r23-match-hero { grid-template-columns: 1fr; text-align: center; }
  .r23-match-hero__side.is-right { text-align: center; }
}

@media (max-width: 560px) {
  .r23-matches { padding-top: 22px; }
  .r23-match-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r23-match-card { padding: 13px 14px; }
}
