:root {
    --primary-color: #019ee3;
    --success-color: #28a745;
    --naranja-neutral: #ffb74d;
    --failure-color: #d62727;
}

.titulo1 {
    color: var(--primary-color);
    font-weight: 800;
}

.summary-card {
    border: none;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 5px;
}

.win {
    color: var(--success-color);
}

.loss {
    color: var(--failure-color) !important;
}

.draw {
    color: var(--naranja-neutral) !important;
}

.uppercase {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table-responsive {
    border-radius: 15px;
    background: white;
    border: none;
}

.matches-table thead th {
    background: #f8f9fa;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    padding: 15px;
}

.score-badge {
    background: #f0f2f5;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    color: #333;
    display: inline-block;
}

.win-row {
    border-left: 6px solid var(--success-color);
}

.loss-row {
    border-left: 6px solid var(--failure-color);
}

.draw-row {
    border-left: 6px solid var(--naranja-neutral);
}

.info-btn {
    color: var(--primary-color);
    font-size: 1.4rem;
    transition: 0.2s;
    text-decoration: none;
}

@media (max-width: 991px) {

    body .container .table-responsive,
    body .container table.matches-table {
        display: block !important;
        background: transparent !important;
        border: none !important;
    }

    body .container table.matches-table tbody,
    body .container table.matches-table tr,
    body .container table.matches-table td {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        position: relative !important;
    }

    body .container table.matches-table thead {
        display: none !important;
    }

    body .container table.matches-table td::before {
        content: none !important;
    }

    body .container table.matches-table tbody tr {
        margin-bottom: 12px !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        padding: 12px !important;
        text-align: center !important;
        align-items: center !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid #eee;
    }

    .win-row {
        border-top: 5px solid #28a745 !important;
    }

    .loss-row {
        border-top: 5px solid #c91a1a !important;
    }

    .draw-row {
        border-top: 5px solid #ffb74d !important;
    }

    body .container table.matches-table td {
        padding: 2px 0 !important;
        border: none !important;
    }

    body .container table.matches-table td[data-label="Fecha / Torneo"] .fw-bold {
        font-size: 0.9rem !important;
    }

    body .container table.matches-table td[data-label="Fecha / Torneo"] .extra-small {
        font-size: 0.7rem !important;
    }

    body .container table.matches-table td[data-label="Rival"] .text-dark {
        font-size: 1.3rem !important;
        font-weight: 700 !important;
        margin: 4px 0 !important;
    }

    .score-badge {
        font-size: 1.2rem !important;
        padding: 4px 20px !important;
        margin: 5px 0;
    }

    body .container table.matches-table td[data-label="Condición"] .badge {
        font-size: 0.7rem !important;
        padding: 3px 10px !important;
    }

    body .container table.matches-table td[data-label*="Ficha"] {
        margin-top: 8px !important;
        padding-top: 8px !important;
        border-top: 1px solid #f5f5f5 !important;
    }

    .info-btn {
        background: transparent !important;
        color: var(--primary-color) !important;
        padding: 5px 0 !important;
        width: auto !important;
        font-size: 0.8rem !important;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
}