.brackets-container {
    padding-top: 100px;
    padding-bottom: 60px;
    overflow-x: auto;
}

.bracket-wrapper {
    display: flex;
    gap: 60px;
    padding: 40px;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    border: 1px solid var(--border);
    min-width: max-content;
}

.round {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    position: relative;
    flex: 1;
}

.match {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 220px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: var(--transition-fast);
}

.match:hover {
    border-color: var(--border-hover);
    transform: scale(1.02);
}

/* Connectors */
.round:not(:last-child) .match::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--border);
}

.round:not(:first-child) .match::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--border);
}

/* Vertical connectors */
.round:not(:last-child) .match:nth-child(odd)::after {
    height: calc(50% + 20px);
    top: 50%;
    border-right: 2px solid var(--border);
    border-top: 2px solid var(--border);
    background: none;
    border-top-right-radius: 8px;
}

.round:not(:last-child) .match:nth-child(even)::after {
    height: calc(50% + 20px);
    bottom: 50%;
    top: auto;
    border-right: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
    background: none;
    border-bottom-right-radius: 8px;
}


.competitor {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

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

.competitor.winner {
    background: rgba(0, 229, 255, 0.1);
    color: var(--text-main);
    font-weight: bold;
}

.competitor.winner .score {
    color: var(--primary);
}

.score {
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .brackets-container { padding-top: 80px; }

    .bracket-wrapper {
        gap: 32px;
        padding: 24px 16px;
        margin: 0 -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .match { width: 170px; }
    .round { gap: 20px; }
    
    .competitor { padding: 8px 12px; font-size: 0.85rem; }
    .score { padding: 1px 6px; font-size: 1rem; }
}

@media (max-width: 480px) {
    .bracket-wrapper { gap: 24px; padding: 20px 12px; }
    .match { width: 150px; }
    .round { gap: 16px; }
    .competitor { font-size: 0.8rem; }
}
