.bb-bracket { --bracket-red: #e84652; --bracket-gold: #d2b575; min-width: 0; }
.bb-bracket .cups-section-title { align-items: flex-start; }
.bb-bracket-caption { margin: 10px 0 0; color: #a49ba8; font-size: 14px; }
.bb-bracket-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 26px 0 18px; flex-wrap: wrap; }
.bb-bracket-toolbar button { min-height: 42px; padding: 9px 16px; border: 1px solid #ffffff16; border-radius: 5px; color: #b9b7bf; background: rgba(255,255,255,.035); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; transition: color .18s, border-color .18s, background .18s; font: inherit; font-size: 14px; }
.bb-bracket-toolbar button:hover { color: #fff; border-color: #ffffff45; background: rgba(255,255,255,.09); }
.bb-bracket-toolbar button:disabled { cursor: default; opacity: .35; }
.bb-bracket-modes { display: inline-flex; gap: 5px; }
.bb-bracket-modes button[aria-pressed="true"] { color: #fff; border-color: #ffffff32; background: rgba(255,255,255,.10); box-shadow: none; }
.bb-bracket-tools { display: flex; align-items: center; gap: 12px; }
.bb-bracket-tools > button { display: inline-flex; align-items: center; gap: 16px; }
.bb-bracket-tools > button span { font-size: 20px; color: #d4c6cf; line-height: 1; }
.bb-bracket-zoom { display: flex; align-items: center; background: rgba(255,255,255,.035); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid #ffffff16; border-radius: 5px; }
.bb-bracket-zoom button { padding: 0; min-width: 36px; min-height: 40px; border: 0; background: transparent; font-size: 20px; }
.bb-bracket-zoom output { min-width: 49px; padding: 0 3px; text-align: center; color: #c6becb; font-size: 14px; font-variant-numeric: tabular-nums; }
.bb-bracket-viewport { position: relative; max-width: 100%; min-width: 0; max-height: none; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; scrollbar-color: #ffffff45 transparent; scrollbar-width: thin; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.bb-bracket-viewport.is-full { height: 620px; max-height: 620px; overflow-y: auto; }
.bb-bracket-stage { position: relative; margin-inline: auto; }
.bb-bracket-canvas { position: absolute; left: 0; top: 0; transform-origin: top left; isolation: isolate; }
.bb-bracket-connectors { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.bb-bracket-path { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1; opacity: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bb-bracket-path.is-champion-path { stroke: rgba(255,255,255,.6); opacity: 1; stroke-width: 1; }
.bb-bracket-round-label { position: absolute; top: 8px; text-align: center; font-size: 14px; color: #a6a3ae; font-weight: 500; line-height: 1.4; }
.bb-bracket-round-label.is-final { color: #d4bc86; text-transform: uppercase; letter-spacing: .07em; font-size: 14px; }
.bb-bracket-match { position: absolute; z-index: 1; display: flex; flex-direction: column; padding: 0; box-sizing: border-box; border: 0; border-radius: 0; background: rgba(255,255,255,.05); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #a1a1aa; text-decoration: none; overflow: visible; box-shadow: none; transition: background .18s; }
a.bb-bracket-match:hover { background: rgba(255,255,255,.10); box-shadow: none; }
.bb-bracket-match:focus-visible { outline: 2px solid #ff7379; outline-offset: 3px; z-index: 3; }
.bb-bracket-match-top { position: absolute; top: -20px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; height: 18px; color: #a1a1aa; font-size: 14px; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bb-bracket-open { color: #a1a1aa; font-size: 16px; line-height: 1; }
a.bb-bracket-match:hover .bb-bracket-open { color: #fff; }
.bb-bracket-team { display: flex; align-items: center; justify-content: space-between; flex: 0 0 32px; height: 32px; padding: 0 7px; box-sizing: border-box; gap: 6px; font-family: inherit; font-size: 14px; line-height: 1.1; }
.bb-bracket-team + .bb-bracket-team { border-top: 1px solid rgba(255,255,255,.08); }
.bb-bracket-team > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-bracket-team b { flex: 0 0 14px; text-align: right; font-family: Oswald, sans-serif; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: #a1a1aa; }
.bb-bracket-team.is-winner { color: #fff; font-weight: 700; }
.bb-bracket-team.is-winner b { color: #fff; }
.bb-bracket-team.is-empty { color: #71717a; }
.bb-bracket-match-status { position: absolute; bottom: -19px; left: 0; right: 0; display: block; color: #a1a1aa; font-size: 14px; line-height: 1.1; white-space: nowrap; }
.bb-bracket-match.is-bye { background: rgba(255,255,255,.035); }
.bb-bracket-match.is-final { padding: 0; border: 0; border-radius: 0; background: rgba(255,255,255,.05); box-shadow: none; }
a.bb-bracket-match.is-final:hover { background: rgba(255,255,255,.10); }
.bb-bracket-match.is-final .bb-bracket-match-top { color: #d4bb85; }
.bb-bracket-champion { position: absolute; display: flex; flex-direction: column; align-items: center; text-align: center; color: #aaa7b0; font-size: 14px; gap: 5px; line-height: 1.3; padding: 0 5px; box-sizing: border-box; }
.bb-bracket-crown { color: #d3b779; display: block; height: 25px; margin-bottom: 2px; }
.bb-bracket-champion strong { color: #f4f4f5; font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.bb-bracket-legend { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 0; color: #a69bab; font-size: 14px; line-height: 1.5; flex-wrap: wrap; }
.bb-bracket-legend > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.bb-bracket-legend i { width: 22px; height: 1px; background: rgba(255,255,255,.6); display: inline-block; }
.bb-bracket-canvas.is-compact .bb-bracket-team { flex-basis: 22px; height: 22px; font-size: 14px; }
.bb-bracket-canvas.is-compact .bb-bracket-team b { font-size: 14px; }
.bb-bracket-canvas.is-compact .bb-bracket-match-top { display: none; }
.bb-bracket-canvas.is-compact .bb-bracket-match.is-final .bb-bracket-match-top { display: flex; top: -16px; height: 14px; font-size: 11px; }
.bb-bracket-canvas.is-compact .bb-bracket-match.is-final .bb-bracket-open { font-size: 13px; }
.bb-bracket-canvas.is-compact .bb-bracket-match-status { bottom: -14px; font-size: 11px; line-height: 1.1; }
.bb-bracket-finder { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,.5fr); gap: 16px; margin: 0 0 20px; }
.bb-bracket-search { display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 8px; min-width: 0; }
.bb-bracket-search > span { grid-column: 1 / -1; }
.bb-bracket-round-select { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bb-bracket-search > span, .bb-bracket-round-select > span { color: #c0bac6; font-size: 14px; line-height: 1.4; }
.bb-bracket-search input, .bb-bracket-round-select select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 13px; box-sizing: border-box; border: 1px solid #ffffff20; border-radius: 4px; background: rgba(255,255,255,.04); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #f4f4f5; font: inherit; font-size: 14px; line-height: 1.4; transition: border-color .18s, background .18s; }
.bb-bracket-search input::placeholder { color: #9d96a6; opacity: 1; }
.bb-bracket-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.bb-bracket-round-select select { cursor: pointer; }
.bb-bracket-round-select option { background: #181214; color: #f4f4f5; }
.bb-bracket-search input:hover, .bb-bracket-round-select select:hover { border-color: #ffffff40; background: rgba(255,255,255,.07); }
.bb-bracket-search button, .bb-bracket-result-pages button { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 44px; min-height: 44px; padding: 8px 13px; box-sizing: border-box; border: 1px solid #ffffff20; border-radius: 4px; background: rgba(255,255,255,.04); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #d4cddc; font: inherit; font-size: 16px; line-height: 1; cursor: pointer; transition: color .18s, border-color .18s, background .18s; }
.bb-bracket-search button { font-size: 25px; }
.bb-bracket-search button:hover, .bb-bracket-result-pages button:hover { color: #fff; border-color: #ffffff45; background: rgba(255,255,255,.10); }
.bb-bracket-search button:disabled, .bb-bracket-result-pages button:disabled { cursor: default; opacity: .35; }
.bb-bracket-finder :is(input,select,button):focus-visible, .bb-bracket-result-pages button:focus-visible, .bb-bracket-result:focus-visible { outline: 2px solid #ff7379; outline-offset: 3px; }
.bb-bracket-findings { margin: 0 0 24px; }
.bb-bracket-findings[hidden] { display: none; }
.bb-bracket-results-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 12px; }
.bb-bracket-results-head p { margin: 0; color: #bbb3c4; font-size: 14px; line-height: 1.5; }
.bb-bracket-result-pages { display: flex; align-items: center; gap: 10px; }
.bb-bracket-result-pages > span { min-width: 48px; text-align: center; color: #bbb3c4; font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.bb-bracket-results { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.bb-bracket-result { display: flex; flex-direction: column; gap: 5px; width: 100%; min-width: 0; min-height: 84px; padding: 12px 14px; box-sizing: border-box; border: 1px solid #ffffff18; border-radius: 4px; background: rgba(255,255,255,.04); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #e4e1e9; font: inherit; text-align: left; cursor: pointer; transition: border-color .18s, background .18s; }
.bb-bracket-result:hover { border-color: #ffffff45; background: rgba(255,255,255,.09); }
.bb-bracket-result > small { margin-bottom: 3px; color: #a9a0b4; font-size: 12px; line-height: 1.4; }
.bb-bracket-result-team { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; font-size: 14px; line-height: 1.45; }
.bb-bracket-result-team > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.bb-bracket-result-team > b { flex: 0 0 20px; text-align: right; color: #f4f4f5; font-family: Oswald,sans-serif; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.bb-bracket-result > em { margin-top: 3px; color: #aaa0b5; font-size: 12px; line-height: 1.4; font-style: normal; }
.bb-bracket-result.is-selected { border-color: #ff7379a6; outline: 1px solid #ff73795c; outline-offset: 0; background: rgba(232,70,82,.10); }
.bb-bracket-result.is-selected:focus-visible { outline: 2px solid #ff7379; outline-offset: 3px; }
.bb-bracket-match.is-search-hit { background: rgba(232,70,82,.10); outline: 1px solid rgba(232,70,82,.45); outline-offset: 0; }
.bb-bracket-match.is-search-hit:hover { background: rgba(232,70,82,.17); }
.bb-bracket-match.is-selected { z-index: 2; background: rgba(232,70,82,.16); outline: 2px solid #ff7379; outline-offset: 1px; }
.bb-bracket-match.is-selected:focus-visible, .bb-bracket-match.is-search-hit:focus-visible { z-index: 3; outline: 2px solid #ff7379; outline-offset: 3px; }
.bb-bracket-path.is-search-path { stroke: #ed6872; stroke-width: 1.5; opacity: 1; }
@media (max-width: 1000px) {
  .bb-bracket-results { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .bb-bracket-toolbar { gap: 12px; }
  .bb-bracket-modes { width: 100%; }
  .bb-bracket-modes button { flex: 1; padding-inline: 10px; }
  .bb-bracket-tools { width: 100%; justify-content: space-between; }
  .bb-bracket-viewport.is-full { height: 560px; max-height: 560px; }
  .bb-bracket-legend { align-items: flex-start; flex-direction: column; }
  .bb-bracket-finder { grid-template-columns: minmax(0,1fr); gap: 14px; }
}
@media (max-width: 520px) { .bb-bracket-results { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { .bb-bracket *, .bb-bracket *::before, .bb-bracket *::after { transition: none !important; scroll-behavior: auto !important; } }
