/* ---------- Matchday desk: fixtures, the moving table, leaders and angles ---------- */

.pitch-site--app .matchday-desk {
  display: block;
}

.pitch-site--app .matchday {
  align-items: start;
  display: grid;
  gap: var(--space-l);
  grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr) minmax(15rem, 18rem);
  padding: 0 var(--space-l) var(--space-l);
}

.pitch-site--app .matchday__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.pitch-site--app .matchday-panel {
  background: var(--ps-paper-raised);
  border: 1px solid rgba(14, 17, 17, 0.14);
  border-radius: 10px;
  color: var(--ps-ink);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
  padding: var(--space-s) var(--space-m);
}

.pitch-site--app .matchday-panel--angles {
  background: var(--ps-yellow);
  border-color: var(--ps-ink);
}

.pitch-site--app .matchday-panel__head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: space-between;
}

.pitch-site--app .matchday-panel__title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.pitch-site--app .matchday-panel__day {
  color: var(--ps-ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: var(--space-xs) 0 0;
  text-transform: uppercase;
}

.pitch-site--app .matchday-panel__empty {
  color: var(--ps-ink-soft);
  font-size: 14px;
  margin: 0;
}

.pitch-site--app .matchday-panel__foot {
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: var(--space-s);
  margin-block-start: auto;
  padding-block-start: var(--space-xs);
}

.pitch-site--app .matchday-panel__foot a {
  color: var(--ps-ink);
}

.pitch-site--app .matchday-fixtures {
  margin: 0;
  padding: 0;
}

.pitch-site--app .matchday-fixture {
  align-items: center;
  border-block-start: 1px solid rgba(14, 17, 17, 0.1);
  color: var(--ps-ink);
  display: grid;
  font-size: 14px;
  gap: 8px;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  padding: 8px 0;
  text-decoration: none;
}

.pitch-site--app .matchday-fixture:hover .matchday-fixture__team {
  text-decoration: underline;
}

.pitch-site--app .matchday-fixture .status-chip {
  text-align: center;
}

.pitch-site--app .matchday-fixture__teams,
.pitch-site--app .matchday-fixture__score {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.pitch-site--app .matchday-fixture__team {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pitch-site--app .matchday-fixture__score {
  align-items: flex-end;
  font-family: var(--font-mono);
  font-weight: 600;
}

.pitch-site--app .matchday-fixture--live .matchday-fixture__score {
  color: var(--ps-red);
}

.pitch-site--app .matchday-table {
  border-collapse: collapse;
  font-size: 14px;
  width: 100%;
}

.pitch-site--app .matchday-table th {
  background: var(--ps-paper-shade);
  color: var(--ps-ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 8px;
  text-align: start;
}

.pitch-site--app .matchday-table td {
  border-block-end: 1px solid rgba(14, 17, 17, 0.08);
  padding: 5px 8px;
}

.pitch-site--app .matchday-table tr.is-highlighted td {
  background: color-mix(in oklab, var(--ps-yellow) 30%, var(--ps-paper-raised));
}

.pitch-site--app .matchday-table__num {
  font-family: var(--font-mono);
  text-align: end;
  white-space: nowrap;
}

.pitch-site--app .matchday-table th.matchday-table__num {
  text-align: end;
}

.pitch-site--app .matchday-table__points {
  font-weight: 700;
}

.pitch-site--app .matchday-table__team {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pitch-site--app .matchday-table__team-link {
  color: var(--ps-ink);
  text-decoration: none;
}

.pitch-site--app .matchday-table__team-link:hover {
  text-decoration: underline;
}

.pitch-site--app .matchday-table .competition-form {
  display: inline-flex;
  gap: 2px;
}

.pitch-site--app .matchday-table .form-result {
  font-size: 12px;
  text-decoration: none;
}

.pitch-site--app .matchday-table .competition-form .form-result--d {
  background-color: var(--ps-ink-soft);
}

.pitch-site--app .matchday-move {
  color: var(--ps-ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.pitch-site--app .matchday-move--up {
  color: var(--ps-turf);
}

.pitch-site--app .matchday-move--down {
  color: var(--ps-red);
}

.pitch-site--app .matchday-leaders__kinds {
  display: flex;
  gap: 4px;
}

.pitch-site--app .matchday-leaders__kind {
  border: 1px solid var(--ps-ink);
  border-radius: 999px;
  color: var(--ps-ink);
  font-size: 13px;
  padding: 2px 10px;
  text-decoration: none;
}

.pitch-site--app .matchday-leaders__kind:hover {
  background: var(--ps-paper-shade);
}

.pitch-site--app .matchday-leaders__kind.is-active {
  background: var(--ps-ink);
  color: var(--ps-cream);
}

.pitch-site--app .matchday-leaders,
.pitch-site--app .matchday-angles {
  margin: 0;
  padding: 0;
}

.pitch-site--app .matchday-leaders__row {
  align-items: baseline;
  border-block-start: 1px solid rgba(14, 17, 17, 0.1);
  display: grid;
  font-size: 14px;
  gap: 8px;
  grid-template-columns: 1.25rem minmax(0, 1fr) auto;
  padding: 6px 0;
}

.pitch-site--app .matchday-leaders__rank {
  color: var(--ps-ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
}

.pitch-site--app .matchday-leaders__name {
  color: var(--ps-ink);
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pitch-site--app .matchday-leaders__name:hover {
  text-decoration: underline;
}

.pitch-site--app .matchday-leaders__value {
  font-family: var(--font-mono);
  font-weight: 700;
}

.pitch-site--app .matchday-angles__row {
  border-block-start: 1px solid rgba(14, 17, 17, 0.2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
}

.pitch-site--app .matchday-angles__kind {
  font-family: var(--font-mono);
  font-size: 12px;
}

.pitch-site--app .matchday-angles__title {
  color: var(--ps-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.pitch-site--app .matchday-angles__title:hover {
  text-decoration: underline;
}

/* The round switcher and the live note sit in the dark subject header. */

.pitch-site--app .stage-subject__actions:has(.matchday-round) {
  align-items: center;
  display: flex;
  gap: 18px;
}

.pitch-site--app .stage-subject__actions:has(.matchday-round) .stage-competitions {
  margin: 0;
}

.pitch-site--app .stage-subject__actions:has(.matchday-round) .stage-competitions__menu {
  left: auto;
  right: -10px;
}

.pitch-site--app .matchday-round {
  display: flex;
  gap: 6px;
}

.pitch-site--app .matchday-round__step {
  align-items: center;
  border: 2px solid var(--ps-cream-soft);
  border-radius: 6px;
  color: var(--ps-cream);
  display: inline-flex;
  font-size: 16px;
  height: 28px;
  justify-content: center;
  text-decoration: none;
  width: 28px;
}

.pitch-site--app a.matchday-round__step:hover {
  border-color: var(--ps-yellow);
  color: var(--ps-yellow);
}

.pitch-site--app span.matchday-round__step {
  border-color: rgba(217, 213, 200, 0.35);
  color: var(--ps-cream-soft);
}

.pitch-site--app .matchday-live {
  align-items: center;
  color: var(--ps-cream);
  display: inline-flex;
  gap: 6px;
}

.pitch-site--app .matchday-live::before {
  background: var(--ps-red);
  border-radius: 50%;
  content: "";
  height: 8px;
  width: 8px;
}

@media (max-width: 69.999rem) {
  .pitch-site--app .matchday {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .pitch-site--app .matchday__table {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 44.999rem) {
  .pitch-site--app .matchday {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-s);
  }

  .pitch-site--app .matchday__table {
    grid-row: auto;
  }
}
