/* SƠ ĐỒ NHÁNH ĐẤU MỞ RỘNG (4 - 32 ĐỘI) VÀ KẾT NỐI ĐẸP THEO ẢNH 4 */
.bracket-tree-scroll-container {
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 4px 22px 4px;
  margin-bottom: 16px;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f1f5f9;
}

.bracket-tree-scroll-container::-webkit-scrollbar {
  height: 8px;
}
.bracket-tree-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 6px;
}
.bracket-tree-scroll-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}
.bracket-tree-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.bracket-columns-flex {
  display: flex;
  gap: 48px;
  min-width: max-content;
  align-items: stretch;
}

.bracket-column-dynamic {
  width: 235px;
  min-width: 235px;
  display: flex;
  flex-direction: column;
}

.bracket-col-header-dynamic {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 18px;
  text-align: left;
}

.bracket-column-matches-flex {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-around;
  gap: 16px;
}

.bracket-match-pair {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: relative;
  flex: 1;
  gap: 14px;
  min-height: 160px;
}

.bracket-match-pair.final-pair {
  justify-content: center;
}

.bracket-connector-branch {
  position: absolute;
  right: -48px;
  top: 0;
  bottom: 0;
  width: 48px;
  pointer-events: none;
  z-index: 2;
}

.bracket-connector-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bracket-connector-branch .connector-status-badge {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}
