#bracket .section-sub {
  max-width: 760px;
}

#bracket .bracket-scroll {
  padding: 8px 0 20px;
}

#bracket .bracket {
  align-items: stretch;
  gap: 34px;
  min-width: 1240px;
}

#bracket .round {
  position: relative;
  justify-content: center;
  gap: 16px;
}

#bracket .round:not(.final)::after {
  content: "";
  position: absolute;
  top: 48px;
  right: -18px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(245, 245, 247, .32) 15%, rgba(245, 245, 247, .32) 85%, transparent);
  pointer-events: none;
}

#bracket .round h4 {
  position: sticky;
  top: 76px;
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 8px;
  padding: 7px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(5, 5, 7, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#bracket .slot {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 118px;
  flex-direction: column;
  justify-content: center;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transform: translateZ(0);
  transition:
    background .25s var(--ease),
    border-color .25s var(--ease),
    transform .25s var(--ease);
}

#bracket .slot::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -34px;
  width: 34px;
  border-top: 1px solid rgba(245, 245, 247, .28);
  pointer-events: none;
}

#bracket .round.final .slot::after {
  display: none;
}

#bracket .slot:hover,
#bracket .slot:focus-visible {
  background: #ffffff0b;
  border-color: rgba(245, 245, 247, .35);
  outline: none;
  transform: translateY(-2px);
}

#bracket .slot-flow {
  display: block;
  margin-bottom: 8px;
  color: #f5f5f799;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

#bracket .slot-team {
  min-width: 0;
}

#bracket .slot-team.win::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(245, 245, 247, .14);
}

.md-watch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 8px 14px;
  border: 1px solid rgba(245, 245, 247, .26);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
  line-height: 1;
  text-decoration: none;
  transition: background .2s var(--ease), transform .2s var(--ease);
}

.md-watch-link:hover,
.md-watch-link:focus-visible {
  background: #dff7ff;
  color: var(--ink);
  outline: none;
  transform: translateY(-1px);
}

@media (max-width: 880px) {
  #bracket .bracket {
    min-width: 1080px;
  }

  #bracket .slot {
    min-height: 110px;
  }

  #bracket .round h4 {
    top: 68px;
  }
}

/* ============================================================
   Knockout redesign — symmetric converging bracket
   ============================================================ */
:root {
  --wc-ko-accent: #5ad6ff;
}

#bracket .section-sub {
  max-width: 640px;
}

#bracket .bracket-scroll {
  padding: 10px 0 28px;
  -webkit-overflow-scrolling: touch;
}

.wc-ko {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 22px;
  min-width: 1440px;
  position: relative;
  padding: 8px 4px 4px;
}

.wc-ko-side {
  display: flex;
  gap: 22px;
  flex: 0 0 auto;
}

.wc-ko-col {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 12px;
  flex: 0 0 auto;
  position: relative;
}

.wc-ko-col.col-R32 { width: 196px; }
.wc-ko-col.col-R16 { width: 176px; }
.wc-ko-col.col-QF  { width: 166px; }
.wc-ko-col.col-SF  { width: 158px; }

.wc-ko-col h4 {
  position: sticky;
  top: 76px;
  z-index: 3;
  align-self: center;
  width: fit-content;
  margin: 0 auto 6px;
  padding: 6px 13px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(5, 5, 7, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .05em;
  white-space: nowrap;
}

@media (min-width: 1001px) {
  .wc-ko-col {
    padding-top: 46px;
  }

  .wc-ko-col h4 {
    position: absolute;
    top: 0;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
  }
}

/* ---- tile ---- */
.wc-ko-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 12px 10px;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 8px 22px rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  transition: transform .28s var(--ease), background .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease), opacity .28s var(--ease), filter .28s var(--ease);
}

.wc-ko-tile:hover,
.wc-ko-tile:focus-visible {
  border-color: rgba(255, 255, 255, .24);
  transform: translateY(-2px);
  outline: none;
}

.wc-ko-when {
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #f5f5f766;
}

.wc-ko-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wc-ko-team img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}

.wc-ko-team em {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-family: var(--display);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 600;
  color: #f5f5f7cc;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wc-ko-team b {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: #f5f5f7;
}

.wc-ko-team.win em { color: #fff; }
.wc-ko-team.tbd em { color: #f5f5f759; }

.wc-ko-flow {
  margin-top: 1px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .03em;
  color: #f5f5f77a;
}

.wc-ko-open {
  align-self: flex-start;
  margin-top: 5px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: transparent;
  color: #f5f5f7aa;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.wc-ko-open:hover,
.wc-ko-open:focus-visible {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  outline: none;
}

/* ---- connector lines (SVG overlay drawn by the bracket component) ---- */
.wc-ko-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
/* keep tiles painted above the line layer */
.wc-ko-side,
.wc-ko-center { position: relative; }

.wc-ko-line {
  fill: none;
  stroke: rgba(245, 245, 247, .18);
  stroke-width: 1.5;
  transition: stroke .28s var(--ease);
}
.wc-ko-line.off { stroke: rgba(245, 245, 247, .06); }
.wc-ko-line.on {
  stroke: rgba(90, 214, 255, .8);
  stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(90, 214, 255, .4));
}

/* ---- highlight states ---- */
.wc-ko.has-focus .wc-ko-tile.is-off {
  opacity: .3;
  filter: saturate(.45);
}
.wc-ko-tile.is-feed {
  border-color: rgba(255, 255, 255, .18);
}

.wc-ko-tile.is-path {
  border-color: rgba(90, 214, 255, .5);
  background: rgba(90, 214, 255, .07);
  box-shadow: 0 0 22px rgba(90, 214, 255, .15), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.wc-ko-tile.is-focus {
  border-color: rgba(90, 214, 255, .85);
  background: rgba(90, 214, 255, .12);
  box-shadow: 0 0 0 1px rgba(90, 214, 255, .5), 0 0 34px rgba(90, 214, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: translateY(-2px);
}
.wc-ko-tile.is-hover { border-color: rgba(255, 255, 255, .26); }

.wc-ko-tile.is-next {
  border: 1px dashed rgba(90, 214, 255, .5);
  background: rgba(90, 214, 255, .06);
  box-shadow: 0 0 18px rgba(90, 214, 255, .1);
}

/* ---- center: medallion + final + third ---- */
.wc-ko-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 236px;
  flex: 0 0 auto;
}

.wc-medallion {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
  border: 1px solid rgba(251, 233, 166, .35);
  animation: wcChampGlow 6s var(--ease) infinite;
}
.wc-medallion::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
}
.wc-medallion-top {
  font-family: var(--display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(251, 233, 166, .85);
  margin-bottom: 3px;
}
.wc-medallion-year {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(180deg, #fbe9a6, #d29a2a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes wcChampGlow {
  0%, 100% { box-shadow: 0 0 24px rgba(246, 216, 121, .16), inset 0 0 20px rgba(246, 216, 121, .07); }
  50%      { box-shadow: 0 0 40px rgba(246, 216, 121, .3), inset 0 0 26px rgba(246, 216, 121, .12); }
}

.wc-ko-final-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.wc-ko-final-label {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(251, 233, 166, .9);
}
.wc-ko-center .wc-ko-tile {
  width: 100%;
  border-color: rgba(251, 233, 166, .26);
  background: rgba(251, 233, 166, .05);
}
.wc-ko-center .wc-ko-tile.is-focus,
.wc-ko-center .wc-ko-tile.is-path {
  border-color: rgba(90, 214, 255, .7);
  background: rgba(90, 214, 255, .1);
}

.wc-ko-third {
  width: 100%;
  opacity: .82;
}
.wc-ko-third-label {
  display: block;
  margin-bottom: 5px;
  text-align: center;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f5f5f766;
}
.wc-ko-third .wc-ko-tile {
  border-color: rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .035);
}

/* ---- clear path button ---- */
.wc-ko-clear-wrap {
  display: flex;
  justify-content: center;
  margin: 2px 0 14px;
}
.wc-ko-clear {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid rgba(90, 214, 255, .4);
  border-radius: 999px;
  background: rgba(90, 214, 255, .08);
  color: var(--wc-ko-accent);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .2s var(--ease);
}
.wc-ko-clear:hover { background: rgba(90, 214, 255, .16); }
.wc-ko-clear span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(90, 214, 255, .18);
  font-size: 12px;
}

/* ---- responsive: stack the two halves ---- */
@media (max-width: 1000px) {
  .wc-ko {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    gap: 14px;
  }
  .wc-ko-side {
    flex-direction: column;
    gap: 14px;
  }
  .wc-ko-side.right { flex-direction: column-reverse; }
  .wc-ko-col {
    width: 100% !important;
  }
  .wc-ko-col h4 { top: 68px; }
  .wc-ko-lines { display: none; }
  .wc-ko-center {
    width: 100%;
    order: -1;
  }
}

/* ---- full-bleed the bracket so it fills the screen and stays centred ---- */
#bracket.section {
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

@media (min-width: 1001px) {
  #bracket .bracket-scroll {
    width: 94vw;
    max-width: 94vw;
    margin-left: calc(50% - 47vw);
    margin-right: calc(50% - 47vw);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px 24px 8px;
  }
  .wc-ko {
    flex: none;
    width: max-content;
    justify-content: center;
  }
}
