.next-match {
  color: inherit;
}

.next-match[hidden] {
  display: none !important;
}

.next-match__matchup {
  align-items: center;
  display: flex;
  justify-content: center;
}

.next-match__flag {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  overflow: hidden;
}

.next-match__flag img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.next-match__flag-fallback {
  align-items: center;
  background: rgba(148, 163, 184, 0.12);
  color: var(--mm-muted);
  display: inline-flex;
  font-size: 0.58rem;
  font-weight: 800;
  height: 100%;
  justify-content: center;
  letter-spacing: 0.04em;
  width: 100%;
}

.next-match__flag-placeholder {
  background: rgba(148, 163, 184, 0.08);
  display: block;
  height: 100%;
  width: 100%;
}

.next-match--desktop {
  align-items: center;
  display: grid;
  justify-items: stretch;
  margin-left: auto;
  margin-top: 0.15rem;
  max-width: var(--next-match-desktop-max-width, 28rem);
  min-width: min(100%, 22rem);
  padding: 0.15rem 0 0.4rem;
  width: 100%;
}

.next-match--desktop .next-match__grid {
  margin-top: 0.15rem;
}

.next-match--desktop .next-match__team {
  align-items: center;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.next-match--desktop .next-match__team--home {
  justify-items: start;
}

.next-match--desktop .next-match__team--guest {
  justify-items: end;
}

.next-match--desktop .next-match__flag {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.25rem;
  box-shadow: 0 0.45rem 1.2rem rgba(0, 0, 0, 0.24);
  height: auto;
  max-width: 100%;
  width: var(--next-match-desktop-flag-width, 8rem);
}

.next-match--desktop .next-match__team-name {
  color: var(--mm-muted);
  font-size: var(--next-match-desktop-team-name-size, 0.74rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: var(--next-match-desktop-flag-width, 8rem);
}

.next-match--desktop .next-match__center {
  align-items: flex-start;
  display: flex;
  justify-content: center;
  min-width: 0;
  text-align: center;
}

.next-match--desktop .next-match__center-frame {
  align-items: center;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  justify-content: center;
  max-width: 100%;
  width: var(--next-match-desktop-flag-width, 8rem);
}

.next-match--desktop .next-match__kicker {
  color: var(--mm-muted);
  font-size: var(--next-match-desktop-kicker-size, 0.66rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.next-match--desktop .next-match__time {
  color: var(--mm-muted);
  font-size: var(--next-match-desktop-time-size, 0.82rem);
  line-height: 1.3;
  white-space: nowrap;
}

.home-next-match-stack {
  --next-match-desktop-flag-width: 8rem;
  --next-match-desktop-max-width: 28rem;
  --next-match-desktop-team-name-size: 0.74rem;
  --next-match-desktop-kicker-size: 0.66rem;
  --next-match-desktop-time-size: 0.82rem;

  align-items: flex-end;
  display: flex;
  flex-direction: column;
  margin-left: auto;
  max-width: var(--next-match-desktop-max-width);
  width: 100%;
}

.home-next-match-stack__updated {
  align-self: flex-end;
}

.home-next-match-stack__stage {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-height: 0;
  width: 100%;
}

.home-next-match-stack .next-match--desktop {
  margin-left: auto;
  margin-right: 0;
}

.site-navbar--with-next-match > .container-fluid {
  position: relative;
}

.next-match--navbar {
  --next-match-navbar-flag-width: 2.50rem;
  --next-match-navbar-gap: 0.2rem;
  --next-match-navbar-date-size: 0.58rem;
  --next-match-navbar-time-size: 0.66rem;

  align-items: center;
  color: var(--site-navbar-link);
  display: grid;
  justify-items: center;
  line-height: 1;
  text-decoration: none;
}

.next-match--navbar:hover,
.next-match--navbar:focus-visible {
  color: var(--site-navbar-link-hover);
  text-decoration: none;
}

.next-match--navbar .next-match__matchup {
  gap: var(--next-match-navbar-gap);
}

.next-match--navbar .next-match__flag {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.18rem;
  box-shadow: 0 0.25rem 0.65rem rgba(0, 0, 0, 0.22);
  height: auto;
  width: var(--next-match-navbar-flag-width);
}

.next-match--navbar .next-match__datetime {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  justify-content: center;
  min-width: 2.9rem;
  text-align: center;
  white-space: nowrap;
}

.next-match--navbar .next-match__date,
.next-match--navbar .next-match__time {
  color: var(--mm-muted);
  line-height: 1;
}

.next-match--navbar .next-match__date {
  font-size: var(--next-match-navbar-date-size);
  font-weight: 700;
}

.next-match--navbar .next-match__time {
  font-size: var(--next-match-navbar-time-size);
}

@media (max-width: 991.98px) {
  .site-navbar--with-next-match > .container-fluid {
    align-items: center;
    display: grid;
    grid-template-areas:
      "brand match toggler"
      "collapse collapse collapse";
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .site-navbar--with-next-match .site-navbar__brand {
    grid-area: brand;
    justify-self: start;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-navbar--with-next-match .site-navbar__next-match {
    grid-area: match;
    justify-self: center;
    position: static;
    transform: none;
  }

  .site-navbar--with-next-match .site-navbar__toggler {
    grid-area: toggler;
    justify-self: end;
  }

  .site-navbar--with-next-match .navbar-collapse {
    grid-area: collapse;
    min-width: 0;
    width: 100%;
  }
}

@media (min-width: 992px) {
  .next-match--navbar {
    display: none !important;
  }
}

.next-match[data-next-match-widget] {
  cursor: pointer;
}


.next-match__open {
  background: transparent;
  border: 0;
  color: inherit;
  display: block;
  font: inherit;
  margin: 0;
  padding: 0;
  text-align: inherit;
  width: 100%;
}

.next-match__open:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.58);
  outline-offset: 0.25rem;
}

.next-match__carousel {
  align-items: center;
  display: flex;
  gap: 0.42rem;
  justify-content: center;
  margin-top: 0.08rem;
  min-height: 1.35rem;
}

.next-match__carousel[hidden],
.next-match__compact-position[hidden] {
  display: none !important;
}

.next-match__carousel-button {
  align-items: center;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: var(--mm-muted);
  display: inline-flex;
  font: inherit;
  font-size: 1rem;
  height: 1.35rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 1.35rem;
}

.next-match__carousel-button:hover,
.next-match__carousel-button:focus-visible {
  background: rgba(96, 165, 250, 0.18);
  border-color: rgba(96, 165, 250, 0.5);
  color: #dbeafe;
  outline: 0;
}

.next-match__carousel-dots {
  align-items: center;
  display: flex;
  gap: 0.3rem;
}

.next-match__carousel-dot {
  background: rgba(148, 163, 184, 0.42);
  border: 0;
  border-radius: 999px;
  height: 0.38rem;
  padding: 0;
  transition: width 120ms ease, background-color 120ms ease;
  width: 0.38rem;
}

.next-match__carousel-dot[aria-selected="true"] {
  background: #93c5fd;
  width: 1rem;
}

.next-match__carousel-dot:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.72);
  outline-offset: 2px;
}

.next-match__carousel-position,
.next-match__compact-position {
  color: var(--mm-muted);
  font-size: 0.56rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.next-match__compact-position {
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: 999px;
  line-height: 1;
  margin-top: 0.2rem;
  padding: 0.12rem 0.3rem;
}

.next-match--navbar .next-match__open {
  align-items: center;
  display: grid;
  justify-items: center;
}

.next-match--desktop .next-match__open {
  border-radius: 0.35rem;
}
