.pairwise-leagues {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.league-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.league-heading {
    text-align: center;
    font-size: 1.3rem;
    color: #2563eb;
    margin: 4px 0 -4px;
}

.league-heading.nl {
    color: #dc2626;
}

.tb-row {
    grid-template-columns: minmax(160px, 2.4fr) repeat(3, 0.8fr);
}

.tie-marker {
    color: #2563eb;
    font-weight: 700;
    font-size: 0.6em;
    margin-left: 1px;
}

.nl .tie-marker {
    color: #dc2626;
}

.nl .tie-entry-number {
    background: #dc2626;
}

.tie-explainer {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 18px 20px;
}

.tie-explainer-title {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 12px;
}

.tie-entry + .tie-entry {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.tie-entry-header {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.92rem;
}

.tie-entry-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 6px;
}

.tie-entry-record {
    color: #94a3b8;
    font-weight: 500;
}

.tie-entry-steps {
    margin-top: 6px;
    padding-left: 26px;
}

.tie-entry-step {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #475569;
}

.bracket-card {
    padding-bottom: 4px;
}

.bracket {
    display: flex;
    gap: 12px;
    padding: 18px 16px 6px;
}

.bracket-round {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 16px;
}

.bracket-round-title {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 2px;
}

.bracket-game {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.bracket-team {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
}

.bracket-team.winner {
    color: #1e293b;
    background: white;
}

.bracket-team + .bracket-team {
    border-top: 1px solid #e2e8f0;
}

.bracket-seed {
    font-size: 0.65rem;
    color: #cbd5e1;
    width: 10px;
    flex-shrink: 0;
}

.bracket-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.4;
}

.bracket-team.winner .bracket-logo {
    opacity: 1;
}

.bracket-team-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bracket-note {
    font-size: 0.66rem;
    line-height: 1.4;
    color: #94a3b8;
    padding: 5px 8px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

.bracket-champion {
    text-align: center;
    margin: 10px 16px 16px;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    background: #eff6ff;
    color: #2563eb;
}

.nl .bracket-champion {
    background: #fef2f2;
    color: #dc2626;
}

@media (max-width: 900px) {
    .pairwise-leagues {
        grid-template-columns: 1fr;
    }

    .tb-row {
        grid-template-columns: minmax(140px, 2.4fr) repeat(3, 0.8fr);
    }
}

@media (max-width: 600px) {
    .tb-row {
        grid-template-columns: minmax(110px, 1.6fr) repeat(3, 0.7fr);
    }

    .bracket {
        flex-direction: column;
    }

    .bracket-round {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .bracket-game {
        flex: 1;
        min-width: 130px;
    }
}
