.th-day {
  margin-top: 12px;
}

.th-day__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 2px 10px;
}

.th-day__label {
  color: #fff;
  font-family: "Saira Condensed", var(--font-ui, sans-serif);
  font-size: 13pt;
  font-weight: 400;
}

.th-day__today {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(238, 36, 69, 0.16);
  color: #ee2445;
  font-size: 8.5pt;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.th-day__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #243533, transparent);
}

.th-day__count {
  color: #9ca3af;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.th-day__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-day[hidden],
.th-match[hidden] {
  display: none;
}

.th-match {
  display: grid;
  grid-template-columns: 92px 130px minmax(0, 1fr) 140px;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #243533;
  border-left: 3px solid #243533;
  background: #181f20;
  transition: border-color 0.2s;
}

.th-match.is-mine {
  border-left-color: #ee2445;
  background: rgba(238, 36, 69, 0.06);
}

.th-match.is-live {
  border-color: rgba(238, 36, 69, 0.5);
  background: linear-gradient(90deg, rgba(238, 36, 69, 0.1), #181f20 50%);
}

.th-match.is-live:not(.is-mine) {
  border-left-color: rgba(238, 36, 69, 0.5);
}

.th-match__time {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.th-match__time strong {
  color: #fff;
  font-size: 13pt;
  font-variant-numeric: tabular-nums;
}

.th-match__zone {
  color: #9ca3af;
  font-size: 9pt;
}

.th-match__stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.th-match__eyebrow {
  color: #ee2445;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.th-match__sub {
  overflow: hidden;
  color: #9ca3af;
  font-size: 10pt;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.th-match__body {
  min-width: 0;
}

.th-match__cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.th-match__cta .th-btn {
  padding: 7px 12px;
  font-size: 10pt;
}

.th-match__bye {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9ca3af;
  font-size: 10.5pt;
}

.th-match__bye strong {
  color: #fff;
}

.th-match__bye .material-symbols-outlined {
  font-size: 17px;
}

.th-vs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.th-vs__side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  order: 3;
}

.th-vs__side--a {
  order: 1;
  flex-direction: row-reverse;
}

.th-vs__centre {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 48px;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
}

.th-vs__score {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14pt;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.th-vs__centre.has-score .th-vs__score {
  color: #fff;
}

.th-vs__sub {
  color: #4ade80;
  font-size: 8.5pt;
  font-weight: 700;
  text-transform: uppercase;
}

.th-vs__sub.is-live {
  color: #ff5c78;
}

.th-vs .th-avatar {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  font-size: 10pt;
}

.th-vs__name {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 12pt;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.th-vs__name:hover {
  color: #ee2445;
}

.th-vs__side.is-loser .th-vs__name {
  color: #9ca3af;
  font-weight: 600;
}

.th-lobby {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.th-lobby__sides {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}

.th-lobby__vs {
  flex: 0 0 auto;
  color: #ee2445;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.th-lobby__plate {
  min-width: 0;
  overflow: hidden;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #243533;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 10.5pt;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.th-lobby__meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  color: #9ca3af;
  font-size: 10pt;
}

.th-lobby__meta strong {
  color: #fff;
}

.th-lobby__meta .material-symbols-outlined {
  font-size: 16px;
}

.th-lobby__trophy {
  color: #facc15;
}

.th-lobby__divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.th-bracket {
  background: #121617;
}

@media (max-width: 720px) {
  .th-match {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 14px;
  }

  .th-match__body,
  .th-match__cta {
    grid-column: 1 / -1;
  }

  .th-vs {
    grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
  }

  .th-vs__centre {
    width: 84px;
  }

  .th-vs__name {
    font-size: 11pt;
  }
}
