/* One contained horizontal canvas at every viewport width. */
.knockout-shell { position: relative; min-width: 0; }
.knockout-hint { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; color: var(--text); }
.knockout-hint svg { width: 24px; height: 24px; flex: none; stroke: var(--gold); }
.knockout-shell .knockout-scroll { overflow-x: auto; overflow-y: hidden; max-width: 100%; padding: 4px 4px 16px; scrollbar-width: auto; }
.knockout-scroll:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bracket.postseason-tree.knockout-tree { position: relative; display: flex; flex-direction: row; align-items: stretch !important; gap: 48px; width: max-content; min-width: 100%; }
.bracket.postseason-tree.knockout-tree .knockout-round { flex: 0 0 280px; width: 280px; min-width: 280px; max-width: 280px; padding: 0; margin: 0; border: 0; background: none; }
.knockout-round > header { min-height: 100px; padding: 12px 8px; border-bottom: 2px solid var(--gold); }
.knockout-round > header h2 { font-size: 20px; margin: 0 0 8px; }
.knockout-round > header .stage-state { display: block; margin: 4px 0; color: var(--muted); font-size: 14px; }
.knockout-round .postseason-content { display: flex; flex-direction: column; justify-content: space-around; gap: 24px; height: calc(100% - 100px); padding: 16px 0; }
.knockout-tree .series { flex: none; position: relative; z-index: 1; width: 100%; margin: 0; background: var(--bg-2); }
.knockout-tree .series:hover { transform: none; }
.knockout-tree .series { padding: 10px 12px; }
.knockout-tree .series h3 { margin: 0; padding-right: 20px; font-size: 16px; line-height: 1.4; }
.knockout-tree .series-meta { margin: 4px 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.knockout-tree .series-row { min-height: 32px; font-size: 16px; line-height: 1.4; }
.knockout-tree .series-next, .knockout-tree .series-qualified { margin: 6px 0 0; padding: 4px 0 0; font-size: 14px; line-height: 1.4; }
.series-time { display: inline-block; white-space: nowrap; }
.knockout-tree .series-open { position: absolute; inset: 0; z-index: 2; display: block; padding: 8px 12px; list-style: none; cursor: pointer; }
.knockout-tree .series-open > [aria-hidden] { position: absolute; right: 12px; top: 8px; color: var(--gold); }
.knockout-tree .series-open::-webkit-details-marker { display: none; }
.knockout-tree .series-open:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
.knockout-tree .series:has(.series-open:hover) { border-color: var(--gold); }
.knockout-tree .postseason-games[open] > summary { bottom: auto; min-height: 44px; }
.knockout-tree .postseason-games[open] > summary > [aria-hidden] { transform: rotate(180deg); }
.knockout-tree .postseason-games li { font-size: 14px; line-height: 1.4; }
.knockout-tree .series-row.won { font-weight: 800; }
.knockout-tree .series-row.lost, .knockout-tree .series-row.lost b { color: var(--muted); }
.knockout-tree .series-row .tn { white-space: normal; overflow-wrap: anywhere; overflow: visible; }
.knockout-lines { position: absolute; inset: 0; pointer-events: none; width: 100%; height: 100%; overflow: visible; }
.knockout-lines path { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: .65; }
.knockout-lines path.is-pending { stroke-dasharray: 5 4; opacity: .4; }
.knockout-shield { width: 24px; height: 28px; flex: none; color: var(--muted); }
@media (max-width: 700px) {
  .knockout-shell::after { content: ''; position: absolute; top: 44px; right: 0; bottom: 20px; width: 24px; background: linear-gradient(to right, transparent, var(--bg)); pointer-events: none; }
  .knockout-shell.at-end::after { opacity: 0; }
  .bracket.postseason-tree.knockout-tree .knockout-round { flex-basis: 272px; width: 272px; min-width: 272px; max-width: 272px; }
}
