.listing-filters,
.scores-filters {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
}

.listing-filter,
.scores-filter {
  display: grid;
  min-width: min(100%, 220px);
  gap: 7px;
}

.listing-filter label,
.scores-filter label {
  color: #666666;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.listing-filter select,
.scores-filter select {
  min-height: 46px;
  padding: 0 42px 0 14px;
  background: #ffffff;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  color: #111111;
  font: inherit;
}

.match-card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.5vw, 28px);
  background: #ffffff;
  border: 1px solid #dcdcdc;
  color: #111111;
}

.match-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #111111;
  content: "";
}

.match-card--live::before {
  background: #ce2029;
}

.match-card__header {
  display: flex;
  margin-bottom: 22px;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.match-card__meta {
  margin: 0;
  color: #686868;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.075em;
  line-height: 1.45;
  text-transform: uppercase;
}

.match-card__status {
  flex: 0 0 auto;
  padding: 6px 9px;
  background: #efefef;
  color: #333333;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.match-card--live .match-card__status {
  background: #ce2029;
  color: #ffffff;
}

.match-card__teams {
  display: grid;
  gap: 10px;
}

.match-card__team {
  display: grid;
  min-width: 0;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.match-card__logo-frame {
  display: grid;
  width: 52px;
  height: 52px;
  overflow: hidden;
  background: #f1f1f1;
  place-items: center;
}

.match-card__logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.match-card__logo-fallback {
  color: #4b4b4b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.match-card__team-details {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.match-card__team-name {
  overflow: hidden;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-card__team-abbreviation {
  color: #747474;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-card__score {
  min-width: 38px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  text-align: right;
}

.match-card__footer {
  display: flex;
  margin: 20px 0 0;
  padding-top: 15px;
  border-top: 1px solid #e7e7e7;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.match-card__detail {
  margin: 0;
  color: #555555;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.match-card--live .match-card__detail {
  color: #a3151d;
}

.match-card__share {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid #111111;
  background: transparent;
  color: #111111;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.match-card__share:hover,
.match-card__share:focus-visible {
  background: #111111;
  color: #ffffff;
  outline: none;
}

.match-card__share:focus-visible {
  outline: 2px solid #ce2029;
  outline-offset: 3px;
}

.match-card:target {
  border-color: #ce2029;
  box-shadow: 0 0 0 3px rgba(206, 32, 41, 0.16);
}

.match-card__coverage {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e7e7e7;
}

.match-card__coverage-title {
  margin: 0 0 10px;
  color: #6a6a6a;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.match-card__coverage ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 8px;
}

.match-card__coverage a {
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-matches {
  width: min(100%, 820px);
  margin: 0 auto clamp(32px, 5vw, 58px);
}

.article-matches__heading {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  gap: 14px;
}

.article-matches__heading h2 {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-matches__heading::after {
  height: 1px;
  background: #d8d8d8;
  content: "";
  flex: 1;
}

.article-matches__list {
  display: grid;
  gap: 12px;
}

.article-matches__status {
  margin: 0;
  color: #686868;
}

.article-matches__status[data-type="error"] {
  color: #a11a1a;
}

.article__area {
  display: inline-block;
  margin-left: 12px;
  padding-left: 13px;
  border-left: 1px solid #cfcfcf;
  color: #666666;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scores-page {
  padding: clamp(58px, 8vw, 112px) clamp(20px, 5vw, 76px)
    clamp(88px, 12vw, 160px);
}

.scores-page__inner {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.scores-page__header {
  max-width: 920px;
}

.scores-page__header h1 {
  margin: 0;
  font-size: clamp(3.5rem, 9vw, 8.2rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.scores-page__intro {
  max-width: 600px;
  margin: 24px 0 0;
  color: #5f5f5f;
  font-size: 1.05rem;
  line-height: 1.6;
}

.scores-page__status {
  min-height: 1.5em;
  margin: 28px 0 0;
  color: #656565;
}

.scores-page__status[data-type="error"] {
  color: #a11a1a;
}

.scores-section {
  margin-top: clamp(52px, 7vw, 86px);
}

.scores-section--shared {
  margin-top: clamp(34px, 5vw, 58px);
}

.scores-section__heading {
  display: flex;
  margin-bottom: 22px;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.scores-section__heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.05em;
}

.scores-section__count {
  margin: 0 0 5px;
  color: #6b6b6b;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scores-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.scores-grid--shared {
  grid-template-columns: minmax(0, 1fr);
  max-width: 580px;
}

.scores-empty {
  margin: 0;
  padding: 28px;
  background: #f5f5f5;
  color: #686868;
  grid-column: 1 / -1;
}

.scores-load-more {
  display: block;
  min-height: 48px;
  margin: 28px auto 0;
  padding: 0 28px;
  background: #111111;
  border: 1px solid #111111;
  color: #ffffff;
  cursor: pointer;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.scores-load-more:hover,
.scores-load-more:focus-visible {
  background: #ffffff;
  color: #111111;
}

.scores-load-more:focus-visible {
  outline: 2px solid #ce2029;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .scores-grid {
    grid-template-columns: 1fr;
  }

  .listing-filters,
  .scores-filters {
    align-items: stretch;
  }

  .listing-filter,
  .scores-filter {
    width: 100%;
  }

  .match-card__header,
  .scores-section__heading {
    align-items: flex-start;
  }

  .article__area {
    display: block;
    width: fit-content;
    margin: 10px 0 0;
    padding: 0;
    border: 0;
  }
}

@media (max-width: 430px) {
  .match-card__team {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 11px;
  }

  .match-card__logo-frame {
    width: 44px;
    height: 44px;
  }

  .match-card__logo {
    width: 36px;
    height: 36px;
  }

  .match-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
