/* ─── Marcatori / Player List (SportsPress) ─── */

/* Nascondi caption e reset tabella */
.player-list-wrapper .sp-table-caption {
    display: none !important;
}

/* Mostra solo i primi 5 nella card principale (sia marcatori che ammoniti) */
.player-list-wrapper:not(.player-list-modal) tbody tr:nth-child(n+6) {
    display: none;
}

.player-list-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

/* Nascondi intestazioni di colonna */
.player-list-wrapper thead {
    display: none;
}

/* ── Riga singola giocatore ── */
.player-list-wrapper tbody tr {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(225, 227, 228, 0.4);
    transition: background-color 0.15s ease;
}

.player-list-wrapper tbody tr:hover {
    background-color: rgba(0, 32, 104, 0.03);
}

/* ── Colonna Giocatore (nome) ── */
.player-list-wrapper td {
    padding: 0;
}

/* Il nome occupa tutto lo spazio disponibile */
.player-list-wrapper tbody tr td:first-child {
    flex: 1;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: #191c1d;
}

.player-list-wrapper tbody tr td:first-child a {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: #191c1d;
    text-decoration: none;
}

.player-list-wrapper tbody tr td:first-child a:hover {
    color: #002068;
}

/* Eventuale avatar/foto */
.player-list-wrapper tbody tr td:first-child img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 10px;
    background: #f3f4f5;
}

/* ── Colonna Goals (ultima colonna) ── */
.player-list-wrapper tbody tr td:last-child {
    text-align: right;
    white-space: nowrap;
    min-width: 60px;
}

/* ── Colonna Team (Logo invece del nome) ── */
.player-list-wrapper td.data-team {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
}

.player-list-wrapper td.data-team a {
    font-size: 0 !important; /* Nasconde il testo del nome squadra */
    line-height: 0 !important;
    display: block;
}

/* Logo della Squadra - Specifico */
.player-list-wrapper .sp-team-logo,
.player-list-wrapper td.data-team img {
    width: 28px !important;
    height: 28px !important;
    max-width: none !important;
    border-radius: 4px;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,32,104,0.1));
    transition: transform 0.2s ease;
}

.player-list-wrapper tbody tr:hover .sp-team-logo,
.player-list-wrapper tbody tr:hover td.data-team img {
    transform: scale(1.15);
}

/* Nascondi esplicitamente la foto del giocatore (tonda) se appare */
.player-list-wrapper .sp-player-photo,
.player-list-wrapper td:first-child img:not(.sp-team-logo) {
    display: none !important;
}

/* Numero di goal – grande, blu, grassetto */
.player-list-wrapper tbody tr td:last-child::before {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: #002068;
    line-height: 1;
    transition: transform 0.2s ease;
}

.player-list-wrapper tbody tr:hover td:last-child::before {
    transform: scale(1.1);
}

/* Etichetta "GOAL" sottostante */
.player-list-wrapper tbody tr td:last-child::after {
    content: 'GOAL';
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #747684;
    margin-top: 2px;
    text-align: right;
}

/* Il numero vero della cella */
.player-list-wrapper tbody tr td:last-child {
    font-family: 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: #002068;
    line-height: 1;
    transition: transform 0.2s ease;
}
