/* Extracted from legacy TorneoPublico partials for JSON renderer parity */

/* Source: _PartidoItem.cshtml */
    /* --- Contenedor de lista --- */
    .partidos-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* --- Match Card --- */
    .match-card {
        background: white;
        border-radius: 12px;
        border: 1px solid #e9ecef;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        padding: 14px 16px;
        transition: box-shadow 0.2s;
    }

    .match-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    /* Indicador de estado con borde superior sutil */
    .match-card.programado {
        border-top: 3px solid #94a3b8;
    }

    .match-card.por-jugar {
        border-top: 3px solid #0ea5e9;
    }

    .match-card.en-vivo {
        border-top: 3px solid #16a34a;
    }

    .match-card.en-cola {
        border-top: 3px solid #f59f00;
    }

    .match-card.asignado {
        border-top: 3px solid #0284c7;
    }

    .match-card.finalizado {
        border-top: 3px solid #64748b;
    }

    /* --- Header --- */
    .match-card-header {
        margin-bottom: 10px;
    }

    .match-card-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
    }

    .match-status-chip {
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        padding: 3px 10px;
        border-radius: 20px;
        background: #f1f3f5;
        color: #555;
    }

    .match-status-chip.programado {
        background: #f1f5f9;
        color: #475569;
    }

    .match-status-chip.por-jugar {
        background: #e0f2fe;
        color: #075985;
    }

    .match-status-chip.en-vivo {
        background: #dcfce7;
        color: #166534;
    }

    .match-status-chip.en-cola {
        background: #fef3c7;
        color: #92400e;
    }

    .match-status-chip.asignado {
        background: #eff6ff;
        color: #1d4ed8;
    }

    .match-status-chip.finalizado {
        background: #e2e8f0;
        color: #334155;
    }

    .match-tag {
        font-size: 0.7rem;
        font-weight: 600;
        padding: 3px 8px;
        border-radius: 6px;
        background: #e9ecef;
        color: #495057;
    }

    .match-tag.accent {
        background: #fff3cd;
        color: #856404;
    }

    /* --- Teams --- */
    .match-teams-container {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .match-team-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 6px 0;
    }

    .match-team-row.winner .team-name {
        color: #2e7d32;
        font-weight: 700;
    }

    .match-trophy {
        color: #ffc107;
        font-size: 0.8rem;
        margin-right: 4px;
    }

    .team-name {
        flex: 1;
        min-width: 0;
        word-wrap: break-word;
        font-size: 0.95rem;
    }

    .team-score {
        display: flex;
        gap: 4px;
        flex-shrink: 0;
    }

    .score-badge {
        background: #e9ecef;
        color: #333;
        padding: 4px 8px;
        border-radius: 6px;
        font-weight: 700;
        font-size: 0.85rem;
        min-width: 28px;
        text-align: center;
    }

    .score-badge.winner {
        background: #2e7d32;
        color: white;
    }

    /* --- Footer --- */
    .match-card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        padding-top: 8px;
        border-top: 1px solid #f1f3f5;
    }

    .match-card-meta {
        display: flex;
        gap: 14px;
        font-size: 0.8rem;
        color: #6c757d;
    }

    .btn-share-match {
        background: none;
        border: none;
        color: #6c757d;
        cursor: pointer;
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
        border-radius: 0.35rem;
        transition: all 0.2s;
    }

    .btn-share-match:hover {
        background: #e3f2fd;
        color: #0288d1;
    }

    /* --- Desktop: equipos lado a lado --- */
    @media (min-width: 768px) {
        .match-teams-container {
            flex-direction: row;
            align-items: center;
            gap: 16px;
        }

        .match-team-row {
            padding: 8px 12px;
        }

        .team-1 {
            flex: 1;
            justify-content: flex-end;
        }

        .team-1 .team-name {
            text-align: right;
            order: 1;
        }

        .team-1 .team-score {
            order: 2;
        }

        .team-2 {
            flex: 1;
            justify-content: flex-start;
        }

        .team-2 .team-score {
            order: 1;
        }

        .team-2 .team-name {
            text-align: left;
            order: 2;
        }

        .team-score {
            flex-direction: column;
            gap: 2px;
        }

        .score-badge {
            font-size: 0.75rem;
            padding: 3px 7px;
            min-width: 24px;
        }
    }

    /* --- Mobile --- */
    @media (max-width: 767px) {
        .match-card {
            padding: 12px 14px;
        }

        .team-name {
            font-size: 0.9rem;
        }

        .score-badge {
            font-size: 0.8rem;
            padding: 3px 6px;
            min-width: 24px;
        }

        .match-card-meta {
            flex-direction: column;
            gap: 2px;
        }
    }

/* Brackets parity with admin details view */
.bracket-admin-container {
    width: 100%;
    overflow-x: auto;
    padding: 1rem 0;
}

.bracket-admin {
    display: flex;
    flex-direction: row-reverse;
    gap: 2.5rem;
    padding: 1rem;
    width: fit-content;
    margin: 0 auto;
}

.bracket-admin .bracket-round {
    display: flex;
    flex-direction: column;
    min-width: 220px;
}

.bracket-admin .round-header {
    text-align: center;
    margin-bottom: 1.25rem;
    height: 40px;
}

.bracket-admin .round-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #212529;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #90caf9;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.bracket-admin .round-matches {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 1;
    gap: 1rem;
}

.bracket-admin .bracket-match {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s;
    margin-bottom: 0;
}

.bracket-admin .bracket-match:hover {
    border-color: #29b6f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(-2px);
}

.bracket-admin .match-info {
    background: #f8f9fa;
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bracket-admin .match-number {
    font-weight: 700;
    color: #29b6f6;
}

.bracket-admin .match-datetime {
    font-size: 0.65rem;
    color: #6c757d;
}

.bracket-admin .match-team {
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    font-size: 0.8rem;
    color: #212529;
}

.bracket-admin .match-team:last-child {
    border-bottom: none;
}

.bracket-admin .match-team:hover {
    background-color: #f8f9fa;
}

.bracket-admin .match-team.winner {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    font-weight: 600;
}

@media (max-width: 768px) {
    .bracket-admin {
        padding: 0.5rem;
        gap: 1rem;
    }

    .bracket-admin .bracket-round {
        min-width: 180px;
    }

    .bracket-admin .round-title {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
}
