#bracket-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto;
/*     background: #f8fafc; */
    padding: 30px;
    border-radius: 20px;
    overflow: hidden;
}

#tournament-bracket {
    position: relative;
    height: 100%;
    min-height: 600px;
    overflow: hidden;
}

.bracket {
    position: relative;
    min-height: 1200px;
    display: flex;
    gap: 80px;
    align-items: flex-start;
    min-width: max-content;
    overflow: hidden;
/*     transition: */
/*         height .35s ease;     */
    transition:
        transform .45s cubic-bezier(.22,.61,.36,1),
        height .35s ease;

    will-change: transform;
}

.bracket-nav {

    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-bottom: 20px;
}

.bracket-nav button {

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 10px;

/*     background: #111827; */
/*     color: white; */

    cursor: pointer;

    font-size: 18px;
    font-weight: bold;

    transition: all 0.2s ease;
}

.bracket-nav button:hover:not(:disabled) {

    transform: translateY(-2px);

    background: #1f2937;
}

.bracket-nav button:disabled {

    opacity: 0.35;

    cursor: default;
}

.bracket-lines {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: visible;
}

.bracket-lines path {

    transition:
        d .35s ease;
}

.bracket-line {
    fill: none;
    stroke: #d0d5dd;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.round {
    position: relative;
    width: 260px;
    flex: 0 0 260px;
    transition:
        height .35s ease;
}

.match {
    position: absolute;
    width: 240px;
    min-height: 72px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    box-shadow:
        0 2px 6px rgba(0,0,0,0.04),
        0 8px 20px rgba(0,0,0,0.03);

    overflow: hidden;

/*    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease,
        background .18s ease;*/
    transition:
        top .35s ease,
        transform .2s ease,
        box-shadow .2s ease;

    cursor: default;
}

.match.is-clickable {
    cursor: pointer;
}

.match.is-clickable:hover {
    transform: translateY(-3px);

    box-shadow:
        0 4px 10px rgba(0,0,0,0.06),
        0 10px 24px rgba(0,0,0,0.06);

    border-color: #cfcfcf;
}

.match.is-tbd {
    opacity: .55;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    min-height: 30px;
    transition: all 0.2s ease;
}

.team-info + .team-info {
    border-top: 1px solid #f0f0f0;
}

.team-info.winner {
    position: relative;
        background:
        linear-gradient(
            90deg,
            rgba(255,215,0,.10),
            rgba(255,215,0,.03)
        );

    font-weight: 600;
}

.team-info.winner::before {
    content: '';

    position: absolute;

    left: 0;
    top: 0;

    width: 7px;
    height: 100%;

    background: rgba(255,215,0,.70);
}

/*.team-info.winner strong {
    color: rgba(255,215,0,.70);
}*/


.team-info.loser {
    opacity: 0.72;
}

.team-info img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.team-info span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-info {
    transition: all 0.2s ease;
    border-radius: 6px;
}


