.matchups {
  position: relative;
  padding: 80px 0 120px;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, transparent, #101b30 20%, #101b30 85%, transparent);
}
.matchups *,
.matchups *::before,
.matchups *::after {
  box-sizing: border-box;
}
.matchups__inner {
  width: min(1160px, 88%);
  margin: auto;
}
.matchups__stats {
  display: flex;
  justify-content: center;
  padding-bottom: 40px;
  font-family: "DINPro-Medium", sans-serif;
  margin: 0 -40px 32px;
  padding: 20px 0;
  gap: 0;
  background: transparent;
  border-bottom: 1px solid #ffffff14;
  color: #bdcbd9;
}
.matchups__stats p {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
  border-right: 1px solid #ffffff20;
}
.matchups__stats strong {
  font:
    48px "DINPro-Bold",
    sans-serif;
  color: #fff;
}
.matchups__section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 0 0 24px;
}
.matchups__section-head h3 {
  font:
    30px "DINPro-Bold",
    sans-serif;
}
.matchups__section-head p {
  color: #bdcbd9;
  text-align: right;
  font-size: 14px;
}
.matchups__bo {
  display: inline-block;
  padding: 3px 8px;
  background: #a5edf3;
  color: #071322;
  font:
    14px "DINPro-Bold",
    sans-serif;
  vertical-align: middle;
  margin-inline: 8px;
}
.matchups__groups {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.matchups__group {
  --group: #8ee5ec;
  border: 0;
  background: #ffffff04;
  color: #f4f6fc;
}
.matchups__group--b {
  --group: #fa91b6;
}
.matchups__group--c {
  --group: #b2b3ff;
}
.matchups__group--d {
  --group: #ffd46f;
}
.matchups__group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #ffffff25;
  font:
    14px "DINPro-Medium",
    sans-serif;
  border-bottom-color: #ffffff14;
  color: #dce1ec;
  position: relative;
  overflow: hidden;
  background: #23334e;
  padding-right: 34px;
}
.matchups__group h4 {
  display: flex;
  gap: 12px;
  align-items: center;
}
.matchups__group h4 strong {
  color: var(--group);
  font:
    40px "DINPro-Bold",
    sans-serif;
  font-style: italic;
}
.matchups__group header > span {
  color: #a6b7c8;
  font-size: 14px;
  z-index: 1;
}
.matchups__group ul {
  padding: 0 18px 12px;
  list-style: none;
  display: grid;
  grid-template-rows: repeat(6, minmax(52px, auto));
}
.matchups__group li {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #ffffff15;
  font-weight: 600;
  letter-spacing: 0;
  min-height: 0;
  gap: 12px;
  font-size: 18px;
  border-bottom-color: #ffffff10;
}
.matchups__group li:last-child {
  border-bottom: 0;
}
.matchups__scroll {
  overflow-x: auto;
  padding: 4px 2px 20px;
  scrollbar-color: #708eab #142438;
  scrollbar-width: thin;
}
.matchups__scroll:focus-visible {
  outline: 2px solid #a5edf3;
  outline-offset: 6px;
}
.matchups__scroll-hint {
  display: none;
  color: #a5edf3;
  font-size: 14px;
  margin-bottom: 12px;
}
.matchups__bracket {
  min-width: 760px;
}
.matchups__round-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}
.matchups__round-head h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font:
    20px "DINPro-Bold",
    sans-serif;
  gap: 10px;
}
.matchups__half-label {
  margin: 28px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ffffff25;
  color: #a5edf3;
  font:
    14px "DINPro-Medium",
    sans-serif;
  letter-spacing: 0.16em;
  border-left: 3px solid #8ee5ec;
  padding: 0 0 8px 10px;
}
.matchups__half {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}
.matchups__round {
  display: grid;
  position: relative;
}
.matchups__round--16 {
  grid-template-rows: repeat(4, 64px);
  gap: 16px;
}
.matchups__round--qf {
  grid-template-rows: repeat(2, 144px);
  gap: 16px;
  align-items: center;
}
.matchups__round--sf {
  align-items: center;
}
.matchups__match {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border: 1px solid #72879a;
  background: #ffffff06;
}
.matchups__match > span {
  color: #a6b7c8;
  font:
    14px "DINPro-Medium",
    sans-serif;
}
.seed {
  font:
    28px "DINPro-Bold",
    sans-serif;
}
.seed--a {
  color: #8ee5ec;
}
.seed--b {
  color: #fa91b6;
}
.seed--c {
  color: #b2b3ff;
}
.seed--d {
  color: #ffd46f;
}
.matchups__match--next {
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
  padding: 10px;
  min-height: 100px;
}
.matchups__match--next > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px 0;
  color: #a6b7c8;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
.matchups__match--next > span::before,
.matchups__match--next > span::after {
  content: "";
  width: 32px;
  border-top: 1px solid #72879a;
}
.matchups__match--next small {
  color: #a5edf3;
  font:
    14px "DINPro-Bold",
    sans-serif;
  margin-bottom: 5px;
}
.matchups__match--next p {
  font-size: 14px;
}
.matchups__round--16 .matchups__match::after {
  content: "";
  position: absolute;
  left: 100%;
  width: 33px;
  height: 41px;
  border-top: 1px solid #72879a;
  border-right: 1px solid #72879a;
  top: 50%;
}
.matchups__round--16 .matchups__match:nth-child(even)::after {
  top: auto;
  bottom: 50%;
  border-top: 0;
  border-bottom: 1px solid #72879a;
}
.matchups__match--next::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 33px;
  border-top: 1px solid #72879a;
}
.matchups__round--qf .matchups__match::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 33px;
  height: 81px;
  border-top: 1px solid #72879a;
  border-right: 1px solid #72879a;
}
.matchups__round--qf .matchups__match:nth-child(even)::after {
  top: auto;
  bottom: 50%;
  border-top: 0;
  border-bottom: 1px solid #72879a;
}
.matchups__medals {
  display: grid;
  gap: 16px;
  margin-top: 0;
  background: transparent;
  color: #fff;
  padding: 40px;
}
.matchups__medal {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 32px;
  padding: 24px 32px;
  border-left: 3px solid #b2b3ff;
  background: #ffffff08;
}
.matchups__medal h4 {
  font:
    24px "DINPro-Bold",
    sans-serif;
  margin-bottom: 8px;
}
.matchups__medal header p {
  font-size: 14px;
  color: #bdcbd9;
}
.matchups__medal header p:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.matchups__medal header p:last-child .matchups__bo {
  margin: 0;
}
.matchups__medal > div {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  text-align: center;
  font-size: 16px;
}
.matchups__medal > div > span {
  font:
    16px "DINPro-LightItalic",
    sans-serif;
  color: #a6b7c8;
}
.matchups__medal--final {
  border-color: #ffd46f;
}
.matchups__medal--final h4 {
  color: #ffd46f;
}
.matchups__medal .matchups__bo {
  background: #253b50;
  color: #a5edf3;
}
.matchups__medal--final .matchups__bo {
  background: #393529;
  color: #ffd46f;
}
.matchups__group-stage {
  background: transparent;
  color: #fff;
  padding: 0 40px 40px;
}
.matchups__stats p:last-child {
  border-right: 0;
}
.matchups__section-head h3,
.matchups__medals-title {
  font-family: "DINPro-Bold", sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.035em;
}
.matchups__group-stage .matchups__section-head p {
  color: #bdcbd9;
}
.matchups__group-stage .matchups__bo {
  background: #a5edf3;
  color: #101b30;
}
.matchups__group header::before,
.matchups__group header::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 80px;
  height: 100%;
  pointer-events: none;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.matchups__group header::before {
  background: #8da9cb66;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 80' preserveAspectRatio='none'%3E%3Cpath d='M60 0Q52 48 8 80M74 0Q66 48 22 80M88 0Q80 48 36 80M102 0Q94 48 50 80' fill='none' stroke='white' stroke-width='1'/%3E%3C/svg%3E");
}
.matchups__group header::after {
  background: var(--group);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 80' preserveAspectRatio='none'%3E%3Cpath d='M96 40Q86 66 62 80H96Z' fill='white'/%3E%3C/svg%3E");
}
.matchups__group--a ul {
  grid-template-rows: repeat(5, minmax(62.4px, auto));
}
.matchups__group li::before {
  content: "";
  flex: 0 0 3px;
  height: 17px;
  background: var(--group);
}
.matchups__knockout {
  padding: 40px;
  background: transparent;
  border-top: 1px solid #ffffff14;
}
.matchups__half-label--lower {
  color: #fa91b6;
  border-left-color: #fa91b6;
}
.matchups__half .matchups__match--next {
  border-color: #75c8db80;
}
.matchups__half--lower .matchups__match--next {
  border-color: #dc80a780;
}
.matchups__half--lower small {
  color: #fa91b6;
}
.matchups .seed--a {
  --seed: #8ee5ec;
}
.matchups .seed--b {
  --seed: #fa91b6;
}
.matchups .seed--c {
  --seed: #b2b3ff;
}
.matchups .seed--d {
  --seed: #ffd46f;
}
.matchups .seed::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--seed);
}
.matchups .seed:first-child::before {
  left: 0;
}
.matchups .seed:last-child::before {
  right: 0;
}
.matchups__medals-title {
  margin-bottom: 8px;
}
.matchups__medal,
.matchups__medal--final {
  background: #ffffff05;
}
.matchups__medal header {
  border-right: 1px solid #ffffff20;
}
.matchups__mobile {
  display: none;
}
.matchups__slot--a {
  color: #8ee5ec;
}
.matchups__slot--b {
  color: #fa91b6;
}
.matchups__slot--c {
  color: #b2b3ff;
}
.matchups__slot--d {
  color: #ffd46f;
}
.matchups__slot {
  font-weight: 700;
}
.matchups__round-meta {
  color: #bdcbd9;
  font-size: 14px;
  margin-top: 8px;
}
.matchups__description {
  color: #bdcbd9;
  font-size: 12px;
  margin: 0;
}
.matchups__fixture {
  position: relative;
  border: 1px solid #72879a;
  background: #ffffff06;
}
.matchups__panel .matchups__fixture .matchups__match {
  min-height: 88px;
  padding-bottom: 30px;
  border: 0;
  background: transparent;
}
.matchups__destination {
  position: absolute;
  bottom: 8px;
  right: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding-top: 5px;
  border-top: 1px solid #ffffff14;
  color: #a6b7c8;
  font-size: 12px;
  white-space: nowrap;
}
.matchups__destination b {
  color: #bdcbd9;
  font: 12px "DINPro-Medium", sans-serif;
  letter-spacing: 0.04em;
}
@media (max-width: 1050px) {
  .matchups__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .matchups__scroll-hint {
    display: block;
  }
  .matchups__stats {
    gap: 32px;
  }
  .matchups__medal {
    grid-template-columns: 210px 1fr;
    gap: 20px;
    padding: 20px;
  }
}
@media (max-width: 600px) {
  .matchups {
    padding: 48px 0 64px;
  }
  .matchups__inner {
    width: 90%;
  }
  .matchups__stats {
    gap: 0;
    justify-content: space-between;
    padding-bottom: 24px;
    font-size: 14px;
    margin: 0 -16px 24px;
    padding: 16px 8px;
  }
  .matchups__stats p {
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    text-align: center;
  }
  .matchups__stats strong {
    font-size: 32px;
  }
  .matchups__section-head {
    display: block;
    margin-top: 0;
  }
  .matchups__section-head h3 {
    font-size: 26px;
  }
  .matchups__section-head p {
    text-align: left;
    margin-top: 12px;
    font-size: 14px;
  }
  .matchups__groups {
    gap: 12px;
  }
  .matchups__group header {
    padding: 10px;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px 8px;
  }
  .matchups__group h4 {
    gap: 8px;
    font-size: 12px;
  }
  .matchups__group h4 strong {
    font-size: 32px;
  }
  .matchups__group header > span {
    font-size: 12px;
  }
  .matchups__group ul {
    padding: 0 10px 8px;
  }
  .matchups__group li {
    min-height: 64px;
    gap: 7px;
    font-size: 14px;
    overflow-wrap: anywhere;
  }
  .matchups__medal {
    display: block;
    padding: 20px 16px;
  }
  .matchups__medal header {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #ffffff20;
    border-right: 0;
    border-bottom-color: #ffffff20;
  }
  .matchups__medal > div {
    font-size: 14px;
    gap: 12px;
  }
  .matchups__group-stage {
    padding: 0 16px 24px;
  }
  .matchups__knockout,
  .matchups__medals {
    padding: 28px 16px;
  }
  .matchups__group ul,
  .matchups__group--a ul {
    grid-template-rows: none;
    grid-auto-rows: minmax(64px, auto);
  }
  .matchups__group li::before {
    flex-basis: 2px;
  }
}
@media (max-width: 359px) {
  .matchups__groups {
    grid-template-columns: 1fr;
  }
  .matchups__group li {
    min-height: 48px;
  }
}
@media (max-width: 767px) {
  .matchups--switchable .matchups__knockout,
  .matchups--switchable .matchups__medals {
    display: none;
  }
  .matchups__mobile {
    display: block;
    padding: 28px 16px;
    border-top: 1px solid #ffffff14;
  }
  .matchups__mobile > h3 {
    font:
      26px "DINPro-Bold",
      sans-serif;
    margin-bottom: 20px;
  }
  .matchups__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 20px;
  }
  .matchups__tabs button {
    min-height: 48px;
    padding: 10px 6px;
    border: 1px solid #72879a;
    background: #15283b;
    color: #fff;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
  }
  .matchups__tabs button[aria-selected="true"] {
    background: #a5edf3;
    color: #071322;
    border-color: #a5edf3;
    font-weight: 700;
  }
  .matchups__tabs button:focus-visible,
  .matchups__panel:focus-visible {
    outline: 2px solid #ffd46f;
    outline-offset: 3px;
  }
  .matchups__panel {
    display: grid;
    gap: 12px;
  }
  .matchups__panel[hidden] {
    display: none;
  }
  .matchups__round-overview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ffffff25;
  }
  .matchups__round-format {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bdcbd9;
    font-size: 12px;
    margin-left: auto;
  }
  .matchups__round-overview .matchups__round-meta {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.04em;
  }
  .matchups__round-overview .matchups__bo {
    margin: 0;
    flex-shrink: 0;
    background: #253b50;
    color: #a5edf3;
  }
  .matchups__panel > .matchups__half-label {
    margin: 8px 0 4px;
  }
  .matchups__panel .matchups__match {
    min-height: 64px;
  }
  .matchups__panel .matchups__match--next {
    min-height: 110px;
  }
  .matchups__panel .matchups__match::before,
  .matchups__panel .matchups__match::after {
    display: none;
  }
  .matchups__panel .matchups__medal {
    min-width: 0;
    display: block;
    padding: 20px 16px;
  }
  .matchups__panel .matchups__medal header {
    border-right: 0;
    border-bottom: 1px solid #ffffff20;
    margin-bottom: 16px;
    padding-bottom: 16px;
  }
  .matchups__panel .matchups__medal > div {
    font-size: 14px;
    gap: 10px;
  }
}
