/* MatchTide UI Foundation Stage 5: Unified Match Rows */
body.mt-site-body .mt-ui-match-list,
body.mt-site-body .mt-match-list {
  display: grid;
  gap: 0;
}

body.mt-site-body .mt-ui-match-row-shell {
  display: block;
  position: relative;
}

body.mt-site-body .mt-ui-match-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 0;
  min-height: 68px;
  padding: 14px 0;
  color: var(--mt-ui-color-ink, #050806);
  text-decoration: none;
  outline-offset: 5px;
}

body.mt-site-body .mt-ui-match-row:hover .mt-ui-match-row__name,
body.mt-site-body .mt-ui-match-row:focus-visible .mt-ui-match-row__name {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

body.mt-site-body .mt-ui-match-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  align-items: center;
  min-width: 0;
  color: rgba(5, 8, 6, .48);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .095em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.mt-site-body .mt-ui-match-row__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(76px, auto) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
  min-width: 0;
}

body.mt-site-body .mt-ui-match-row__team {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
}

body.mt-site-body .mt-ui-match-row__team--away {
  justify-content: flex-end;
  text-align: right;
}

body.mt-site-body .mt-ui-match-row__team-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

body.mt-site-body .mt-ui-match-row__logo {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--mt-ui-color-ink, #050806);
  font-size: 11px;
  font-weight: 950;
}

body.mt-site-body .mt-ui-match-row__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.mt-site-body .mt-ui-match-row__name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--mt-ui-color-ink, #050806);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.08;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.mt-site-body .mt-ui-match-row__team.is-target .mt-ui-match-row__name {
  font-weight: 950;
}

body.mt-site-body .mt-ui-match-row__center {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

body.mt-site-body .mt-ui-match-row__score,
body.mt-site-body .mt-ui-match-row__kickoff {
  color: var(--mt-ui-color-ink, #050806);
  font-size: clamp(22px, 1.9vw, 27px);
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: 1;
}

body.mt-site-body .mt-ui-match-row__status {
  color: rgba(5, 8, 6, .52);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .095em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.mt-site-body .mt-ui-match-row__marker {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(5, 8, 6, .07);
  color: rgba(5, 8, 6, .68);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

body.mt-site-body .mt-ui-match-row__marker.is-win {
  background: rgba(152, 241, 45, .24);
  color: var(--mt-ui-color-ink, #050806);
}

body.mt-site-body .mt-ui-match-row__marker.is-loss {
  background: rgba(5, 8, 6, .08);
  color: rgba(5, 8, 6, .42);
}

body.mt-site-body .mt-ui-match-row__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mt-ui-color-accent, #98f12d);
}

body.mt-site-body .mt-ui-match-row--compact {
  min-height: 54px;
  padding: 10px 0;
}

body.mt-site-body .mt-ui-match-row--compact .mt-ui-match-row__main {
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(62px, auto) minmax(0, 1fr);
}

body.mt-site-body .mt-ui-match-row--compact .mt-ui-match-row__logo {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

body.mt-site-body .mt-ui-match-row--compact .mt-ui-match-row__name {
  font-size: 13px;
}

body.mt-site-body .mt-ui-match-row--compact .mt-ui-match-row__score,
body.mt-site-body .mt-ui-match-row--compact .mt-ui-match-row__kickoff {
  font-size: clamp(18px, 1.5vw, 22px);
}

body.mt-site-body .mt-ui-match-row--feature {
  min-height: 0;
  padding: 16px 0;
}

body.mt-site-body .mt-ui-match-row--feature .mt-ui-match-row__main {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
}

body.mt-site-body .mt-ui-match-row--feature .mt-ui-match-row__logo {
  width: clamp(36px, 3vw, 44px);
  height: clamp(36px, 3vw, 44px);
  flex-basis: clamp(36px, 3vw, 44px);
}

body.mt-site-body .mt-ui-match-row--feature .mt-ui-match-row__name {
  font-size: clamp(16px, 1.55vw, 18px);
}

body.mt-site-body .mt-ui-match-row--feature .mt-ui-match-row__score,
body.mt-site-body .mt-ui-match-row--feature .mt-ui-match-row__kickoff {
  font-size: clamp(28px, 2.8vw, 36px);
}

body.mt-site-body .mt-ui-match-row--live .mt-ui-match-row__score {
  color: var(--mt-ui-color-ink, #050806);
}

body.mt-site-body .mt-ui-match-row__action {
  color: rgba(5, 8, 6, .54);
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 640px) {
  body.mt-site-body .mt-ui-match-row {
    min-height: 0;
    padding: 15px 0;
  }

  body.mt-site-body .mt-ui-match-row__main,
  body.mt-site-body .mt-ui-match-row--feature .mt-ui-match-row__main {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  body.mt-site-body .mt-ui-match-row__team,
  body.mt-site-body .mt-ui-match-row__team--away {
    justify-content: flex-start;
    text-align: left;
  }

  body.mt-site-body .mt-ui-match-row__center {
    justify-items: start;
    padding-left: 44px;
    text-align: left;
  }

  body.mt-site-body .mt-ui-match-row__meta {
    padding-left: 0;
  }

  body.mt-site-body .mt-ui-match-row__name {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mt-site-body .mt-ui-match-row,
  body.mt-site-body .mt-ui-match-row * {
    transition: none;
  }
}
