.bracket-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 20px;
    gap: 40px;
    align-items: flex-start;
}

.round-column {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.round-title {
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.2em;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.places-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.padding {
    width: 100%;
}

.match-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.slot {
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.slot:hover {
    border-color: #3498db;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.slot-content {
    text-align: center;
    padding: 0 5px;
    font-size: 0.9em;
    z-index: 2;
    width: 100%;
}


.participant-number {
    font-size: 0.8em;
    color: #6c757d;
    margin-top: 2px;
}

.connector {
    position: absolute;
    width: 100%;
    height: 25px;
    left: 0;
    z-index: 0;
}

.round-1 .connector {
    top: 35px;
}

.round-2 .connector {
    top: 20px;
}

.round-3 .connector {
    top: 20px;
}

.round-4 .connector {
    top: 20px;
}

.connector::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #3498db;
    transform: translateX(-50%);
}

.connector::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 50%;
    height: 2px;
    background-color: #3498db;
    transform: translateX(-50%);
}

.round-column:not(:first-child) .connector::after {
    width: 50%;
    left: 0;
}

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

    .round-column {
        min-width: 250px;
    }

    .slot-content {
        font-size: 0.85em;
    }
}

