.tournament-bracket {
    padding: 20px;
    overflow-x: auto;
}

.bracket-container {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    min-width: max-content;
    padding: 10px 0; 
}

.bracket-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.winners-bracket,
.losers-bracket {
    position: relative;
}

.bracket-label {
    font-weight: bold;
    color: #f7f7f7;
    margin-bottom: 10px;
    padding-left: 10px;
}

.losers-bracket .match {
    background: #323132;
}

.round {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    flex: 1;
}

.round-title {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: #f7f7f7;
}

.matches-container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
    flex: 1;
}

.match {
    border: 1px solid #5a5b75;
    border-radius: 4px;
    background: #1b1b1b;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    margin: 0 0 25px 0;
}

/*.match::after {
    content: '';
    position: absolute;
    right: -25px;
    top: 49%;
    width: 25px;
    height: 2px;
    background: #5a5b75;
}*/

.round:last-child .match::after {
    display: none;
}

.player {
    padding: 0.75rem 1.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #5a5b75;
}

.player:last-child {
    border-bottom: none;
}

.player-name {
    font-weight: 500;
}

.player-name.winner {
    /*color: #28a745;*/
    font-weight: 700;
}

.seed {
    color: #f7f7f7;
    font-size: 0.8em;
}

.format-commander .match {
    min-height: 120px;
}

@media (max-width: 768px) {
    .bracket-container {
        gap: 30px;
    }

    .round {
        min-width: 150px;
    }
}