.tournament-bracket { 
    display: flex; 
    gap: 60px; 
    padding: 40px; 
    overflow-x: auto; 
    color: #ecf0f1; 
    align-items: flex-start;
    font-family: 'Inter', sans-serif;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.tournament-bracket.dragging {
    cursor: grabbing;
}

.round-col { 
    display: flex; 
    flex-direction: column; 
    flex: 0 0 140px;
    width: 140px; 
    position: relative; 
}

.round-title { 
    text-align: center; 
    font-size: 0.75rem; 
    font-weight: 800; 
    height: 50px; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64ffda; 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(100, 255, 218, 0.1);
}

.match-item { 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 100%;
}

.match-table { 
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 0;
    background: rgba(23, 42, 69, 0.8); 
    border-radius: 6px;
    overflow: hidden; 
    z-index: 2; 
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    transition: transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.match-table:hover {
    transform: translateX(5px);
    border: 1px solid rgba(100, 255, 218, 0.3);
}

.team-row { 
    background: transparent; 
    transition: all 0.2s; 
}

.team-row.winner { 
    background: rgba(100, 255, 218, 0.1); 
}

.team-row:not(:last-child) td { 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}

.team-logo {
    width: 20px; 
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.team-code { 
    padding: 12px; 
    font-weight: 600; 
    font-size: 0.8rem; 
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    overflow: hidden;
}

.team-score { 
    background: rgba(0, 0, 0, 0.2); 
    width: 40px; 
    text-align: center; 
    font-weight: 700; 
    color: #64ffda; 
    font-size: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.score-predicted { 
    opacity: 0.6; 
    font-style: italic; 
    font-weight: 400; 
}

/* Connecteurs */

.connector-wrapper {
    position: absolute;
    right: -60px;
    width: 60px;
    z-index: 1;
}

.line-horizontal {
    position: absolute;
    height: 1px;
    background: #233554;
    width: 30px;
    top: -0.5px;
}

.line-horizontal.right { 
    right: 0; 
    top: -0.5px;
}

.line-vertical {
    position: absolute;
    width: 1px;
    background: #233554;
    left: 29px;
}

/* Responsive */

@media (max-width: 768px) {

    .round-col { 
        flex: 0 0 90px;
        width: 90px; 
    }

    .round-title {
        font-size: 0.55rem;
        height: 35px;
        margin-bottom: 12px;
    }

    .team-code {
        font-size: 0.55rem;
        gap: 6px;
    }

    .team-score {
        width: 28px;
        font-size: 0.55rem;
    }

    .team-logo {
        width: 14px;
        height: 14px;
    }
}

/* MINI BRACKET */

.mini-tournament-bracket {
    display: flex;
    gap: 4px;
    font-size: 0.7rem;
    overflow-x: auto;
}

.mini-match {
    background: rgba(5, 15, 40, 0.85);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2px 4px;
    border-radius: 4px;
    text-align: left;
}

.mini-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.mini-team {
    display: flex;
    align-items: center;
    gap: 2px;
}