/* --- Stili Globali --- */
:root {
    --rosa-elettrico: #ff00ff;
    --viola: #5e00ff;
    --testo-bianco: #ffffff;
    --sfondo-scuro: rgba(0, 0, 0, 0.7);
    --sfondo-scuro-2: rgba(0, 0, 0, 0.5);
    --bordo-sottile: 1px solid rgba(255, 255, 255, 0.1);
}

body {
    background-image: url('/assets/imm/sfondouml25.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--rosa-elettrico);
    font-family: "ParagrafoFont", Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Layout Giocatori --- */
.giocatori-container {
    background-color: var(--sfondo-scuro);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    margin: 20px auto;
    padding: 15px;
    width: 95%;
    max-width: 1000px;
}

.giocatori-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: var(--bordo-sottile);
}

.giocatori-title {
    font-family: "TitoloFont", Arial, sans-serif;
    color: var(--rosa-elettrico);
    font-size: 1.8rem;
    margin: 0;
    text-transform: uppercase;
}

.giocatori-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "ParagrafoFont", Arial, sans-serif;
}

.giocatori-table thead th {
    background-color: #000;
    color: var(--rosa-elettrico);
    padding: 12px 15px;
    text-align: left;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.giocatori-table tbody tr {
    background-color: var(--sfondo-scuro-2);
    border-bottom: var(--bordo-sottile);
    transition: background-color 0.3s ease;
}

.giocatori-table tbody tr:nth-child(even) {
    background-color: rgba(94,17,247,0.1);
}

/* Escludiamo le righe di dettaglio da questo stile alternato */
.giocatori-table tbody tr.extra-row:nth-child(even),
.giocatori-table tbody tr.extra-row:nth-child(odd) {
    background-color: rgba(0,0,0,0.8) !important;
}

.giocatori-table tbody tr:hover:not(.extra-row) {
    background-color: rgba(255,0,255,0.1);
}

.giocatori-table td {
    padding: 12px 15px;
    color: var(--testo-bianco);
    vertical-align: middle;
    text-transform: uppercase;
}

.posizione-cell {
    font-family: "TitoloFont", Arial, sans-serif;
    color: var(--rosa-elettrico);
    font-size: 1.1rem;
    text-align: center;
    width: 50px;
}

.giocatore-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.giocatore-foto {
    width: 50px; /* Leggermente più grande */
    height: 50px; /* Leggermente più grande */
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent; /* Tolto l'outline rosa */
}

.squadra-logo {
    width: 25px; /* Leggermente più grande */
    height: 25px; /* Leggermente più grande */
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 5px;
    border: none; /* Eliminato l'outline rosa */
}

.punti-cell {
    font-family: "TitoloFont", Arial, sans-serif;
    font-size: 1.1rem;
    text-align: right;
    padding-right: 25px;
}

.toggle-cell {
    text-align: center;
    width: 50px;
}

/* Stile migliorato per le tendine - stile del secondo file */
.toggle-button {
    background: linear-gradient(135deg, var(--rosa-elettrico) 0%, var(--viola) 100%);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(255,0,255,0.3);
}

.toggle-button:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(255,0,255,0.5);
}

.toggle-icon {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}

.extra-row {
    background-color: rgba(0,0,0,0.8) !important;
}

.extra-content {
    padding: 15px;
    color: var(--testo-bianco);
    text-align: left;
}

/* Per schermi mobili - Modifiche specifiche */
@media (max-width: 768px) {
.giocatori-table td {
padding: 6px 4px; /* Reduced padding further */
}

.posizione-cell {
width: 25px; /* Even narrower */
padding-right: 2px; /* Minimal padding */
font-size: 0.9rem; /* Slightly smaller for position number */
}

.giocatore-container {
display: flex;
align-items: center; /* Align items to center vertically */
position: relative;
gap: 5px; /* Reduced gap between photo and text */
}

.giocatore-foto-container {
position: relative;
margin-right: 0px; /* Removed margin here, relying on gap */
}

.giocatore-foto {
width: 32px; /* Made photo smaller */
height: 32px; /* Made photo smaller */
}

/* Logo squadra sovrapposto alla foto */
.squadra-logo-mobile {
bottom: -2px; /* Adjusted position */
right: -2px; /* Adjusted position */
width: 15px; /* Made logo smaller */
height: 15px; /* Made logo smaller */
}

.giocatore-info {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
flex-grow: 1; /* Allow info to take available space */
min-width: 0; /* Prevent content from overflowing flex container */
}

.giocatore-nome {
font-size: 0.5rem; /* Slightly smaller for first name */
line-height: 1;
white-space: nowrap; /* Prevent wrapping for first name */
overflow: hidden; /* Hide overflow */
text-overflow: ellipsis; /* Add ellipsis for overflow */
max-width: 100%; /* Ensure it respects its container */
}

.giocatore-cognome {
font-size: 0.8rem; /* Made surname smaller */
font-weight: bold;
line-height: 1.1;
white-space: nowrap; /* Prevent wrapping for surname */
overflow: hidden; /* Hide overflow */
text-overflow: ellipsis; /* Add ellipsis for overflow */
max-width: 100%; /* Ensure it respects its container */
}

.giocatori-title {
font-size: 1.3rem; /* Slightly smaller title */
}

.punti-cell {
font-size: 0.9rem; /* Smaller font for points */
padding-right: 10px; /* Reduced padding */
white-space: nowrap; /* Prevent points from wrapping */
}

.toggle-cell {
width: 30px; /* Make toggle cell narrower */
}

.toggle-button {
width: 20px; /* Smaller button */
height: 20px; /* Smaller button */
}

.toggle-icon {
width: 12px; /* Smaller icon */
height: 12px; /* Smaller icon */
}
}

@media (max-width: 480px) {
.giocatori-table {
font-size: 0.75rem; /* Even smaller base font for very small screens */
}

.giocatori-table td {
padding: 5px 3px; /* Minimal padding */
}

.giocatore-foto {
width: 28px; /* Even smaller photo */
height: 28px;
}

.squadra-logo-mobile {
width: 12px; /* Even smaller logo */
height: 12px;
}

.giocatore-nome {
font-size: 0.45rem; /* Minimum font size for first name */
}

.giocatore-cognome {
font-size: 0.7rem; /* Minimum font size for surname */
}

.punti-cell {
font-size: 0.85rem; /* Further reduced points font size */
}
}