/* =====================================================================
   MASTERS LEAGUE - statistiche.css
   Stile "notte di coppa" per le sole pagine statistiche pubbliche
   (contenitore .ml-stats): blu notte, fasci di luce, accenti azzurro e
   viola. Nessuna immagine esterna: solo CSS sopra lo stadio del sito.
   Font del sito (Oswald) invariato.
   ===================================================================== */

.ml-stats {
    --st-notte: #040a26;
    --st-blu: #0b2a8a;
    --st-royal: #1747c8;
    --st-azzurro: #22e4ff;
    --st-viola: #a43bff;
    --st-testo: #ffffff;
    --st-tenue: #a9bde8;
    --st-oro: #ffcc33;
    background:
        radial-gradient(ellipse 70% 45% at 50% -8%, rgba(34, 228, 255, 0.10), transparent 70%),
        radial-gradient(ellipse 50% 40% at 100% 45%, rgba(164, 59, 255, 0.09), transparent 70%),
        radial-gradient(ellipse 45% 35% at 0% 85%, rgba(23, 71, 200, 0.20), transparent 70%),
        linear-gradient(180deg, #040a26 0%, #071a5c 55%, #040a26 100%) !important;
    color: var(--st-testo);
}

/* ---------- Sfondo della sezione ---------- */
.ml-stats .ml-bgstyletwo {
    background: transparent;
}
/* Fasci di luce dall'alto */
.ml-stats .ml-bgstyletwo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        conic-gradient(from 180deg at 50% -15%,
            transparent 0deg 150deg,
            rgba(140, 210, 255, 0.04) 158deg, transparent 166deg,
            rgba(140, 210, 255, 0.03) 176deg, transparent 184deg,
            rgba(140, 210, 255, 0.04) 194deg, transparent 202deg,
            transparent 210deg 360deg);
}
/* Trama di linee diagonali sottili in basso a sinistra */
.ml-stats .ml-bgstyletwo::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45%;
    height: 55%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    background: repeating-linear-gradient(115deg, transparent 0 14px, rgba(34, 228, 255, 0.18) 14px 15px);
    -webkit-mask-image: linear-gradient(35deg, #000 0%, transparent 70%);
    mask-image: linear-gradient(35deg, #000 0%, transparent 70%);
}
/* Il blocco grigio/giallo diventa un pannello diagonale luminoso */
.ml-stats .ml-bgboxone {
    background: transparent !important;
}
.ml-stats .ml-bgboxone::before {
    display: none;
}
.ml-stats .ml-bgboxtwo {
    width: calc(31.5% + 70px);
    background: linear-gradient(160deg, rgba(23, 71, 200, 0.38) 0%, rgba(164, 59, 255, 0.22) 60%, rgba(4, 10, 38, 0.2) 100%) !important;
    -webkit-clip-path: polygon(70px 0, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(70px 0, 100% 0, 100% 100%, 0 100%);
}
.ml-stats .ml-bgboxtwo::before,
.ml-stats .ml-bgboxtwo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--st-azzurro), var(--st-viola));
}
/* Bordo luminoso lungo la diagonale (linea netta + alone) */
.ml-stats .ml-bgboxtwo::before {
    -webkit-clip-path: polygon(70px 0, 73px 0, 3px 100%, 0 100%);
    clip-path: polygon(70px 0, 73px 0, 3px 100%, 0 100%);
}
.ml-stats .ml-bgboxtwo::after {
    opacity: 0.1;
    -webkit-clip-path: polygon(70px 0, 88px 0, 18px 100%, 0 100%);
    clip-path: polygon(70px 0, 88px 0, 18px 100%, 0 100%);
}
/* Silhouette del giocatore luminosa invece che nera */
.ml-stats .ml-pointstablewrapper figure img {
    filter: invert(1) sepia(1) saturate(3) hue-rotate(175deg) brightness(0.95);
    opacity: 0.55;
}

/* ---------- Riquadro della statistica ---------- */
.ml-stats .bkpage,
.ml-stats .bkpagecenter {
    position: relative;
    margin-left: 0;
    margin-right: 0;
    padding: 26px 18px 18px;
    border: 1px solid rgba(34, 228, 255, 0.25);
    border-radius: 16px;
    background-image:
        linear-gradient(180deg, rgba(4, 10, 38, 0.72) 0%, rgba(11, 42, 138, 0.55) 55%, rgba(4, 10, 38, 0.88) 100%),
        url('../images/bk_page.jpg');
    background-size: cover;
    background-position: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 14px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    counter-reset: st-pos;
}
/* Riflesso luminoso sul bordo superiore */
.ml-stats .bkpage::before,
.ml-stats .bkpagecenter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--st-azzurro), var(--st-viola), transparent);
    box-shadow: none;
}
.ml-stats .bkpage br,
.ml-stats .bkpagecenter > br {
    display: none;
}

/* ---------- Titolo ---------- */
.ml-stats .bkpage > div:first-child,
.ml-stats .bkpagecenter > div:first-child {
    margin-bottom: 14px;
    color: var(--st-tenue) !important;
}
.ml-stats .bkpage > div:first-child > span:first-of-type,
.ml-stats .bkpagecenter > div:first-child > span:first-of-type {
    display: block;
    color: var(--st-testo) !important;
    font-family: 'Oswald', sans-serif;
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(4, 10, 38, 0.6);
}
.ml-stats .bkpage > div:first-child::after,
.ml-stats .bkpagecenter > div:first-child::after {
    content: '';
    display: block;
    width: 90px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--st-azzurro), var(--st-viola));
    box-shadow: none;
}
/* Sottotitoli (es. "Stagione 9", "I Vincitori") */
.ml-stats .bkpage > div:first-child span:not(:first-of-type),
.ml-stats .bkpagecenter > div:first-child span:not(:first-of-type) {
    color: var(--st-tenue) !important;
    letter-spacing: 0.5px;
}

/* ---------- Tabelle: niente bordi bianchi del tema ---------- */
.ml-stats .bkpage table,
.ml-stats .bkpagecenter table {
    margin: 0;
    background: transparent;
}
.ml-stats .bkpage th,
.ml-stats .bkpage td,
.ml-stats .bkpagecenter th,
.ml-stats .bkpagecenter td {
    border: 0 !important;
    background: transparent;
}
/* Intestazione colonne */
.ml-stats .bkpage > table th,
.ml-stats .bkpagecenter th {
    padding-bottom: 6px;
    color: var(--st-azzurro) !important;
    font-style: normal !important;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 11px !important;
}

/* ---------- Classifiche top 5: righe a scheda con posizione ---------- */
.ml-stats .bkpage > div[class*="col-md-12"]:not(:first-child) {
    position: relative;
    margin: 0 0 8px;
    padding-left: 46px !important;
    border: 1px solid rgba(34, 228, 255, 0.18);
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(23, 71, 200, 0.55) 0%, rgba(11, 42, 138, 0.35) 55%, rgba(4, 10, 38, 0.45) 100%);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    counter-increment: st-pos;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ml-stats .bkpage > div[class*="col-md-12"]:not(:first-child):hover {
    border-color: rgba(34, 228, 255, 0.6);
    box-shadow: none;
    transform: translateX(3px);
}
/* Badge della posizione */
.ml-stats .bkpage > div[class*="col-md-12"]:not(:first-child)::before {
    content: counter(st-pos);
    position: absolute;
    left: 9px;
    top: 50%;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border: 1px solid rgba(34, 228, 255, 0.7);
    border-radius: 50%;
    background: rgba(34, 228, 255, 0.12);
    color: var(--st-testo);
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
    text-shadow: none;
}
/* Podio: oro (colore del sito), argento, bronzo */
.ml-stats .bkpage > div[class*="col-md-12"]:not(:first-child):nth-of-type(2)::before {
    border-color: transparent;
    background: linear-gradient(160deg, #ffe08a, var(--st-oro) 45%, #b8860b);
    color: #2a1d00;
    box-shadow: none;
}
.ml-stats .bkpage > div[class*="col-md-12"]:not(:first-child):nth-of-type(3)::before {
    border-color: transparent;
    background: linear-gradient(160deg, #ffffff, #c9d3e3 45%, #8592a8);
    color: #1d2433;
}
.ml-stats .bkpage > div[class*="col-md-12"]:not(:first-child):nth-of-type(4)::before {
    border-color: transparent;
    background: linear-gradient(160deg, #ffd1a6, #d98f52 45%, #8f5326);
    color: #2a1406;
}
.ml-stats .bkpage > div[class*="col-md-12"]:not(:first-child):nth-of-type(2) {
    border-color: rgba(255, 204, 51, 0.55);
    box-shadow: none;
}
/* Testi delle righe */
.ml-stats .bkpage td a,
.ml-stats .bkpagecenter td a {
    color: var(--st-testo) !important;
    text-shadow: 0 2px 6px rgba(4, 10, 38, 0.8) !important;
    transition: color 0.2s;
}
.ml-stats .bkpage td a:hover,
.ml-stats .bkpagecenter td a:hover {
    color: var(--st-azzurro) !important;
    text-decoration: none;
}
.ml-stats .bkpage td span[style*="font-size: 28px"],
.ml-stats .bkpage td span[style*="font-size:28px"],
.ml-stats .bkpage td span[style*="font-size: 24px"] {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: var(--st-testo);
    text-shadow: 0 1px 3px rgba(4, 10, 38, 0.6) !important;
}
.ml-stats .bkpage td img,
.ml-stats .bkpagecenter td img {
    border-radius: 3px;
}

/* ---------- Albo d'oro (campionati e coppe) ---------- */
.ml-stats .bkpagecenter table td {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}
.ml-stats .bkpagecenter table tr {
    border-bottom: 1px solid rgba(34, 228, 255, 0.12);
    transition: background 0.2s;
}
.ml-stats .bkpagecenter table tr:nth-child(even) {
    background: rgba(23, 71, 200, 0.18);
}
.ml-stats .bkpagecenter table tr:hover {
    background: rgba(34, 228, 255, 0.12);
}

/* ---------- Footer delle statistiche ---------- */
.ml-stats .ml-footer {
    background: transparent !important;
}
.ml-stats .ml-footerbar_grey {
    background: rgba(4, 10, 38, 0.55) !important;
    border-top: 1px solid rgba(34, 228, 255, 0.2);
}

/* ---------- Tablet e smartphone ---------- */
@media (max-width: 767px) {
    .ml-stats .ml-bgboxtwo {
        display: none;
    }
    .ml-stats .bkpage,
    .ml-stats .bkpagecenter {
        margin-left: 10px;
        margin-right: 10px;
        padding: 20px 10px 12px;
        border-radius: 14px;
    }
    .ml-stats .bkpage > div[class*="col-md-12"]:not(:first-child) {
        padding-left: 40px !important;
    }
    .ml-stats .bkpage > div[class*="col-md-12"]:not(:first-child)::before {
        left: 7px;
        width: 26px;
        height: 26px;
        margin-top: -13px;
        font-size: 14px;
        line-height: 24px;
    }
    .ml-stats .bkpage > div[class*="col-md-12"]:not(:first-child):hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ml-stats .bkpage > div[class*="col-md-12"] {
        transition: none;
    }
}

/* Valori con unità (es. "1,2 MRD €", "846,2 Mln €"): su una sola riga,
   colonna adattata al contenuto e unità più piccola */
/* Colonna dei valori a larghezza fissa e uguale in intestazione e righe,
   così i numeri restano allineati in colonna */
.ml-stats .bkpage td[style*="width:20%"],
.ml-stats .bkpage th[style*="width:20%"] {
    width: 150px !important;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .ml-stats .bkpage td[style*="width:20%"],
    .ml-stats .bkpage th[style*="width:20%"] {
        width: 96px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
    /* Valori più compatti per lasciare spazio ai nomi */
    .ml-stats .bkpage td[style*="width:20%"] > span {
        font-size: 19px !important;
    }
    /* Nomi a capo solo tra parole intere (mai a metà parola) */
    .ml-stats .bkpage td a,
    .ml-stats .bkpage td {
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
    /* Trasferimenti: colonna squadra larga quanto serve */
    .ml-stats .bkpage td[style*="width:47%"] {
        width: auto !important;
    }
}
.ml-stats .bkpage td span > span {
    font-size: 0.62em;
    letter-spacing: 0;
    opacity: 0.85;
}
@media (max-width: 767px) {
    /* Loghi squadra più piccoli per lasciare spazio a nome e valore */
    .ml-stats .bkpage td[style*="width:60px"] {
        width: 44px !important;
        padding-left: 0;
        padding-right: 0;
    }
    .ml-stats .bkpage td[style*="width:60px"] img {
        width: 40px !important;
    }
}

/* Colonna bandiera di larghezza identica in intestazione e righe */
.ml-stats .bkpage td[style*="width:35px"],
.ml-stats .bkpage th[style*="width:35px"] {
    width: 46px !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
    box-sizing: border-box;
}

/* =====================================================================
   SCHEDE SQUADRA E CALCIATORE (index/squadra, index/calciatore)
   Stesso stile delle statistiche applicato al riquadro .ml-pointstable
   ===================================================================== */
.ml-stats-scheda .ml-pointstable {
    position: relative;
    padding: 24px 22px 18px;
    border: 1px solid rgba(34, 228, 255, 0.25);
    border-radius: 16px;
    background-image:
        linear-gradient(180deg, rgba(4, 10, 38, 0.80) 0%, rgba(11, 42, 138, 0.62) 55%, rgba(4, 10, 38, 0.90) 100%),
        url('../images/bk_page.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 30px rgba(0, 0, 0, 0.35);
    color: #fff;
}
.ml-stats-scheda .ml-pointstable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22e4ff, #a43bff, transparent);
}
/* Intestazione: nome, campionato, valore */
.ml-stats-scheda .ml-section-heading {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(34, 228, 255, 0.18);
    background: transparent !important;
}
.ml-stats-scheda .ml-section-heading h1,
.ml-stats-scheda .ml-section-heading h2[style*="font-size: 36px"] {
    color: #fff !important;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(4, 10, 38, 0.6);
}
.ml-stats-scheda .ml-section-heading h5,
.ml-stats-scheda .ml-section-heading h5[style] {
    color: #22e4ff !important;
    letter-spacing: 0.5px;
}
.ml-stats-scheda .ml-section-heading h2[style*="#eebb22"] {
    color: #fff !important;
}
.ml-stats-scheda .ml-section-heading h4,
.ml-stats-scheda .ml-section-heading h6 {
    color: #a9bde8 !important;
}
.ml-stats-scheda .ml-section-heading a {
    color: #fff;
}
.ml-stats-scheda .ml-section-heading a:hover {
    color: #22e4ff;
}
/* Titoli di sezione (Il Team, Carriera, Trasferimenti) */
.ml-stats-scheda .ml-description h4 {
    display: inline-block;
    margin: 6px 0 12px;
    padding-bottom: 6px;
    color: #fff !important;
    font-family: 'Oswald', sans-serif;
    font-size: 20px !important;
    font-style: italic;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #22e4ff, #a43bff) 1;
}
.ml-stats-scheda .ml-description h4 .glyphicon {
    color: #22e4ff;
}
.ml-stats-scheda .ml-description {
    color: #e8ecf8;
}
/* Tabelle: intestazione blu e righe semitrasparenti */
.ml-stats-scheda .ml-pointstable table {
    width: 100%;
    background: transparent !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(34, 228, 255, 0.18);
}
.ml-stats-scheda .ml-pointstable table th,
.ml-stats-scheda .ml-pointstable table thead th {
    background: rgba(23, 71, 200, 0.75) !important;
    color: #22e4ff !important;
    border: 0 !important;
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.ml-stats-scheda .ml-pointstable table td {
    background: rgba(4, 10, 38, 0.45) !important;
    color: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(34, 228, 255, 0.10) !important;
}
.ml-stats-scheda .ml-pointstable table tbody tr:nth-child(even) td {
    background: rgba(23, 71, 200, 0.22) !important;
}
.ml-stats-scheda .ml-pointstable table tbody tr:hover td {
    background: rgba(34, 228, 255, 0.10) !important;
}
/* Righe di intestazione interne alla tabella carriera (sfondi grigi inline) */
.ml-stats-scheda .ml-pointstable table tr[style*="#f4f4f4"] td,
.ml-stats-scheda .ml-pointstable table td[style*="#e3e3e3"] {
    background: rgba(23, 71, 200, 0.55) !important;
    color: #22e4ff !important;
    font-weight: 600;
}
.ml-stats-scheda .ml-pointstable table td[style*="border-right"] {
    border-right: 1px solid rgba(34, 228, 255, 0.25) !important;
}
.ml-stats-scheda .ml-pointstable table a {
    color: #fff !important;
}
.ml-stats-scheda .ml-pointstable table a:hover {
    color: #22e4ff !important;
    text-decoration: none;
}
.ml-stats-scheda .ml-pointstable table img {
    border-radius: 3px;
}
/* Disclaimer e pubblicità sotto il riquadro su sfondo scuro */
.ml-stats-scheda .ml-bgpattrant,
.ml-stats-scheda .ml-bgpattrant p {
    color: #a9bde8;
}
@media (max-width: 767px) {
    .ml-stats-scheda .ml-pointstable {
        margin: 0;
        padding: 18px 12px 12px;
        border-radius: 14px;
    }
    .ml-stats-scheda .ml-section-heading h1,
    .ml-stats-scheda .ml-section-heading h2[style*="font-size: 36px"] {
        font-size: 26px !important;
    }
    .ml-stats-scheda .ml-section-heading h2[style*="#eebb22"] {
        font-size: 24px !important;
    }
}

/* Testi scuri/grigi scritti inline nelle celle: resi leggibili sul fondo scuro */
.ml-stats-scheda .ml-pointstable table span[style*="#333"],
.ml-stats-scheda .ml-pointstable table a[style*="#333"] {
    color: #fff !important;
}
.ml-stats-scheda .ml-pointstable table span[style*="#aaa"] {
    color: #a9bde8 !important;
}
/* Lo sfondo bianco inline delle righe non deve trasparire sotto le celle */
.ml-stats-scheda .ml-pointstable table tr,
.ml-stats-scheda .ml-pointstable table tr[style] {
    background: transparent !important;
}
@media (max-width: 767px) {
    /* Importi e stelle su una riga: la tabella scorre di lato nel suo riquadro */
    .ml-stats-scheda .ml-pointstable table td {
        white-space: nowrap;
    }
}

/* =====================================================================
   HOME PAGE: contatori e "Ranking Mondiale" nello stile notte
   (solo le due sezioni con .ml-stats-contatori e .ml-stats-ranking)
   ===================================================================== */
/* Fasci di luce: qui la sezione stessa ha la classe .ml-bgstyletwo */
.ml-stats.ml-bgstyletwo {
    position: relative;
    overflow: hidden;
}
.ml-stats.ml-bgstyletwo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: conic-gradient(from 180deg at 50% -15%,
        transparent 0deg 150deg,
        rgba(140, 210, 255, 0.04) 158deg, transparent 166deg,
        rgba(140, 210, 255, 0.03) 176deg, transparent 184deg,
        rgba(140, 210, 255, 0.04) 194deg, transparent 202deg,
        transparent 210deg 360deg);
}

/* ---------- Contatori ---------- */
.ml-stats-contatori {
    padding-top: 50px;
    padding-bottom: 50px;
}
.ml-stats-contatori .ml-statistics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    float: none;
}
.ml-stats-contatori .ml-statistic {
    width: auto;
    float: none;
    overflow: hidden;
    padding: 22px 12px 18px;
    border: 1px solid rgba(34, 228, 255, 0.22);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(23, 71, 200, 0.45) 0%, rgba(4, 10, 38, 0.55) 100%);
}
.ml-stats-contatori .ml-statistic span.ml-icon {
    top: 10px;
    right: 14px !important;
    font-size: 56px;
    line-height: 56px;
    color: rgba(34, 228, 255, 0.22);
}
.ml-stats-contatori .ml-statistic h2 {
    color: #fff;
    font-style: italic;
    text-shadow: 0 2px 4px rgba(4, 10, 38, 0.6);
}
.ml-stats-contatori .ml-statistic h3 {
    color: #22e4ff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ---------- Ranking Mondiale ---------- */
.ml-stats-ranking .ml-pointstable {
    position: relative;
    margin: 60px 0 40px;
    padding: 24px 22px 10px;
    border: 1px solid rgba(34, 228, 255, 0.25);
    border-radius: 16px;
    background-image:
        linear-gradient(180deg, rgba(4, 10, 38, 0.78) 0%, rgba(11, 42, 138, 0.60) 55%, rgba(4, 10, 38, 0.88) 100%),
        url('../images/bk_page.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 30px rgba(0, 0, 0, 0.35);
}
.ml-stats-ranking .ml-pointstable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22e4ff, #a43bff, transparent);
}
.ml-stats-ranking .ml-section-heading {
    margin-bottom: 14px;
    border: 0;
    text-align: center;
}
.ml-stats-ranking .ml-section-heading h2 {
    color: #fff;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(4, 10, 38, 0.6);
}
.ml-stats-ranking .ml-section-heading h2::after {
    content: '';
    display: block;
    width: 90px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, #22e4ff, #a43bff);
}
.ml-stats-ranking .ml-section-heading::before,
.ml-stats-ranking .ml-section-heading::after {
    display: none;
}
/* Righe come schede (spazio tra le righe dentro la slide, così lo slider misura bene) */
.ml-stats-ranking .swiper-slide {
    padding-bottom: 8px;
}
.ml-stats-ranking .ml-pointtable {
    display: flex;
    align-items: center;
    margin: 0;
    border: 1px solid rgba(34, 228, 255, 0.18);
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(23, 71, 200, 0.55) 0%, rgba(11, 42, 138, 0.35) 55%, rgba(4, 10, 38, 0.45) 100%);
    color: #fff;
    transition: border-color 0.2s;
}
.ml-stats-ranking .ml-pointtable:hover {
    border-color: rgba(34, 228, 255, 0.6);
}
.ml-stats-ranking .ml-pointtable > div {
    float: none;
}
.ml-stats-ranking .ml-pointtable a,
.ml-stats-ranking .ml-pointtable a[style*="#333"] {
    color: #fff !important;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
}
.ml-stats-ranking .ml-pointtable a:hover {
    color: #22e4ff !important;
    text-decoration: none;
}
/* Punteggio */
.ml-stats-ranking .ml-pointtable > div:last-child {
    text-align: right;
    padding-right: 16px !important;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
}
.ml-stats-ranking .ml-pointtable img {
    border-radius: 3px;
}
@media (max-width: 767px) {
    .ml-stats-contatori .ml-statistics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .ml-stats-contatori .ml-statistic h2 {
        font-size: 42px;
        line-height: 50px;
    }
    .ml-stats-contatori .ml-statistic h3 {
        font-size: 13px;
    }
    .ml-stats-ranking .ml-pointstable {
        margin: 30px 0 30px;
        padding: 18px 12px 6px;
        border-radius: 14px;
    }
    .ml-stats-ranking .ml-pointtable a {
        font-size: 15px;
    }
    .ml-stats-ranking .ml-pointtable > div:last-child {
        font-size: 17px;
        padding-right: 10px !important;
    }
}
/* Contatori: niente margini del tema tra un riquadro e l'altro (la griglia ha già gli spazi) */
.ml-stats-contatori .ml-statistic {
    margin: 0 !important;
}
@media (max-width: 767px) {
    .ml-stats-contatori {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .ml-stats-contatori .ml-statistic span.ml-icon {
        font-size: 40px;
        line-height: 40px;
    }
}
/* Ranking in home: nome su una riga (le righe dello slider hanno altezza fissa) */
.ml-stats-ranking .ml-pointtable > div:first-child {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ml-stats-ranking .ml-pointtable > div:last-child {
    flex: 0 0 auto;
    width: auto;
}
@media (max-width: 767px) {
    .ml-stats-ranking .ml-pointtable > div:first-child img:first-child {
        width: 26px !important;
    }
    .ml-stats-ranking .ml-pointtable > div:first-child img {
        width: 24px !important;
    }
}

/* Schede squadra/calciatore: banner pubblicitario più in alto e riquadro
   distanziato sotto il banner (prima il riquadro risaliva di 40px sopra di esso) */
.ml-stats-scheda ins.adsbygoogle {
    margin-top: 110px !important;
}
.ml-stats-scheda .ml-pointstablewrapper {
    margin-top: 24px !important;
}
@media (max-width: 767px) {
    .ml-stats-scheda ins.adsbygoogle {
        margin-top: 140px !important;
    }
    .ml-stats-scheda .ml-pointstablewrapper {
        margin-top: 16px !important;
    }
}

/* ---------- A capo nelle righe: nome / squadra / dettagli su righe distinte ---------- */
.ml-stats .bkpage td br,
.ml-stats .bkpagecenter td br {
    display: inline;
}

/* ---------- Messaggio "competizione non ancora iniziata": nessun badge né riga ---------- */
.ml-stats .bkpage > div.ml-stats-vuoto::before {
    display: none !important;
}
.ml-stats .bkpage > div.ml-stats-vuoto {
    padding-left: 15px !important;
    border-color: transparent !important;
    background: transparent !important;
    transform: none !important;
}

/* ---------- BIG MATCH: scheda della sfida nello stile notte ---------- */
.ml-stats .ml-bigmatch {
    position: relative;
    width: 100%;
    float: left;
    padding: 0 6px 6px;
    text-align: center;
}
.ml-stats .ml-bigmatch-titolo {
    margin: 4px 0 22px;
    color: #9fb3e0;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-style: italic;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ml-stats .ml-bigmatch-titolo br {
    display: inline;
}
.ml-stats .ml-bigmatch-sfida {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 26px 14px;
    border: 1px solid rgba(34, 228, 255, 0.25);
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(23, 71, 200, 0.5) 0%, rgba(4, 10, 38, 0.55) 50%, rgba(23, 71, 200, 0.5) 100%);
}
.ml-stats a.ml-bigmatch-squadra {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff !important;
    text-decoration: none;
}
.ml-stats a.ml-bigmatch-squadra img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
    transition: transform 0.2s;
}
.ml-stats a.ml-bigmatch-squadra:hover img {
    transform: scale(1.06);
}
.ml-stats a.ml-bigmatch-squadra span {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.ml-stats a.ml-bigmatch-squadra small {
    color: #22e4ff;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.ml-stats .ml-bigmatch-vs {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(160deg, #ffe08a, #ffcc33 45%, #b8860b);
    color: #2a1d00;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-style: italic;
    font-weight: 700;
    line-height: 58px;
}
@media (max-width: 480px) {
    .ml-stats a.ml-bigmatch-squadra img {
        width: 64px;
        height: 64px;
    }
    .ml-stats a.ml-bigmatch-squadra span {
        font-size: 19px;
    }
    .ml-stats .ml-bigmatch-vs {
        width: 44px;
        height: 44px;
        font-size: 17px;
        line-height: 44px;
    }
}

/* Cella nome calciatore (nome / squadra / dettagli) su smartphone: nome più
   compatto per stare su una riga, righe secondarie piccole */
@media (max-width: 480px) {
    .ml-stats .bkpage td:has(> a[href*="/calciatore/"]) > a:first-child {
        font-size: 18px !important;
        line-height: 1.15;
    }
    .ml-stats .bkpage td:has(> a[href*="/calciatore/"]) {
        line-height: 1.25;
    }
    .ml-stats .bkpage td[style*="width:20%"],
    .ml-stats .bkpage th[style*="width:20%"] {
        width: 86px !important;
    }
    .ml-stats .bkpage td[style*="width:35px"],
    .ml-stats .bkpage th[style*="width:35px"] {
        width: 40px !important;
    }
}
