body{
    font-family:Arial,Helvetica,sans-serif;
    margin:30px;
    background:#f4f6f8;
    color:#222;
}

.wrapper{
    max-width:1500px;
    margin:0 auto;
}

/* ==========================
   MENU CAMPIONATI
   ========================== */

.league-menu{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:22px;
}

.league-menu a{
    display:inline-block;
    padding:6px 12px;
    border:1px solid #d8dee6;
    border-radius:6px;
    background:#fff;
    color:#0a57c5;
    text-decoration:none;
    transition:.2s;
}

.league-menu a:hover{
    background:#eef5ff;
    border-color:#1d4e89;
    text-decoration:none;
}

.active-league{
    background:#1d4e89 !important;
    border-color:#1d4e89 !important;
    color:#fff !important;
    font-weight:bold;
}

/* ==========================
   TITOLO PAGINA
   ========================== */

.page-title{
    display:flex;
    align-items:center;
    gap:25px;
    margin-top:15px;
    margin-bottom:10px;
}

.page-title h2{
    margin:0;
    font-size:42px;
    font-weight:700;
}

.round{
    color:#1d4f91;
    font-weight:bold;
    font-size:34px;
}

.last-update{
    margin-bottom:25px;
    color:#666;
    font-size:14px;
    font-style:italic;
}

/* ==========================
   TITOLI
   ========================== */

h1{
    margin-bottom:10px;
}

h2{
    margin:25px 0;
}

h3{
    margin:0;
}

a{
    color:#0a57c5;
    text-decoration:none;
}

a:hover{
    text-decoration:underline;
}

/* ==========================
   GRIGLIA GIOCATORI
   ========================== */

.players-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
    margin-bottom:35px;
}

.player-box{
    background:#fff;
    border-radius:12px;
    padding:16px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.player-box h3{
    text-align:center;
    margin-bottom:12px;
    font-size:18px;
}

.player-box table{
    width:100%;
    border-collapse:collapse;
    font-size:13px;
}

.player-box th{
    background:#1d4e89;
    color:#fff;
    padding:7px;
    font-weight:bold;
}

.player-box td{
    padding:6px;
    border-bottom:1px solid #ececec;
}

.player-box tr:nth-child(even){
    background:#fafafa;
}

.player-box tr:hover{
    background:#f3f8ff;
}

/* ==========================
   CLASSIFICA SQUADRE
   ========================== */

.team-title{
    margin-top:10px;
    margin-bottom:15px;
}

.teams-table{
    width:420px;
    border-collapse:collapse;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.teams-table th{
    background:#1d4e89;
    color:#fff;
    padding:9px;
}

.teams-table td{
    padding:8px;
    border-bottom:1px solid #ececec;
}

.teams-table tr:nth-child(even){
    background:#fafafa;
}

.teams-table tr:hover{
    background:#f3f8ff;
}

/* ==========================
   RESPONSIVE
   ========================== */

@media(max-width:1200px){

    .players-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:700px){

    body{
        margin:15px;
    }

    .league-menu{
        gap:8px;
    }

    .league-menu a{
        font-size:13px;
        padding:5px 9px;
    }

    .page-title{
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
    }

    .page-title h2{
        font-size:30px;
    }

    .round{
        font-size:26px;
    }

    .players-grid{
        grid-template-columns:1fr;
    }

    .teams-table{
        width:100%;
    }

}