:root {
    --antas-blue: #0b2f6b;
    --antas-blue-2: #16458e;
    --antas-yellow: #f4cf00;
    --antas-bg: #f4f7fb;
    --antas-text: #15213a;
    --antas-muted: #6f7b8c;
}


/* =========================================================
   PROSSIMA PARTITA
   ========================================================= */

.antas-next-match {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(
            circle at top right,
            rgba(244,207,0,.16),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            var(--antas-blue-2),
            var(--antas-blue)
        );
    box-shadow: 0 22px 55px rgba(11,47,107,.22);
}

.antas-next-match::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            transparent 0 58%,
            rgba(255,255,255,.04) 58% 59%,
            transparent 59%
        ),
        linear-gradient(
            45deg,
            transparent 0 72%,
            rgba(255,255,255,.03) 72% 73%,
            transparent 73%
        );
    pointer-events: none;
}

.antas-next-match-top {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 28px 20px 14px;
}

.antas-next-match-competition {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,255,255,.16);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.antas-next-match-competition span {
    color: var(--antas-yellow);
}

.antas-next-match-title {
    margin: 14px 0 0;
    color: #fff !important;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.5px;
    text-transform: uppercase;
}

.antas-next-match-title::after {
    content: "";
    display: block;
    width: 58px;
    height: 4px;
    margin: 13px auto 0;
    border-radius: 999px;
    background: var(--antas-yellow);
}

.antas-next-match-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 110px 1fr;
    align-items: center;
    gap: 20px;
    padding: 30px 34px 34px;
}

.antas-next-team {
    text-align: center;
}

.antas-next-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.antas-next-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 9px 14px rgba(0,0,0,.18));
}

.antas-next-team-name {
    color: #fff;
    font-size: 19px;
    line-height: 1.15;
    font-weight: 900;
    text-transform: uppercase;
}

.antas-next-versus {
    display: flex;
    align-items: center;
    justify-content: center;
}

.antas-next-versus span {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--antas-yellow);
    color: var(--antas-blue);
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(0,0,0,.18);
    border: 5px solid rgba(255,255,255,.14);
}

.antas-next-match-info {
    position: relative;
    z-index: 1;
    margin: 0 28px 28px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.antas-next-date {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    color: var(--antas-blue);
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.antas-next-time {
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--antas-yellow);
    color: var(--antas-blue);
}

.antas-next-separator {
    color: #a6afbd;
}

.antas-next-venue {
    margin-top: 9px;
    color: var(--antas-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.antas-location-icon {
    color: var(--antas-yellow);
    margin-right: 6px;
}


/* =========================================================
   PARTITE DISPUTATE / RISULTATI
   ========================================================= */

.lte-football-matches {
    margin-top: 8px;
}

.lte-football-matches .lte-item {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            var(--antas-blue-2),
            var(--antas-blue)
        );
    border: 0;
    box-shadow: 0 12px 30px rgba(11,47,107,.16);
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.lte-football-matches .lte-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(11,47,107,.22);
}

.lte-football-matches .lte-header-upcoming {
    display: block;
    margin: 0;
    padding: 9px 12px;
    background: rgba(255,255,255,.08);
    border: 0;
    color: #fff !important;
    text-align: center;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lte-football-matches .lte-teams {
    display: grid;
    grid-template-columns: 1fr 62px 1fr;
    align-items: center;
    gap: 10px;
    padding: 16px 14px 12px;
}

.lte-football-matches .lte-team-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff !important;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.lte-football-matches .lte-team-logo {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: transparent !important;
}

.lte-football-matches .lte-team-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 5px 8px rgba(0,0,0,.14));
}

.lte-football-matches .lte-team-count {
    width: 54px;
    height: 54px;
    margin: auto;
    border-radius: 50%;
    background: var(--antas-yellow);
    color: var(--antas-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 17px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
}

.lte-football-matches .lte-team-count .lte-c,
.lte-football-matches .lte-team-count .lte-d {
    color: var(--antas-blue) !important;
}

.lte-football-matches .lte-score-mob {
    display: none;
}

.lte-football-matches .lte-footer {
    margin: 0 10px 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.lte-football-matches .lte-football-date {
    display: block;
    color: var(--antas-blue) !important;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 900;
    text-transform: uppercase;
}

.lte-football-matches .lte-football-place {
    display: block;
    margin-top: 3px;
    color: var(--antas-muted) !important;
    font-size: 10px;
    line-height: 1.3;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    /* Prossima partita */

    .antas-next-match {
        border-radius: 22px;
    }

    .antas-next-match-top {
        padding: 22px 14px 8px;
    }

    .antas-next-match-competition {
        font-size: 9px;
        padding: 6px 10px;
    }

    .antas-next-match-title {
        font-size: 26px;
    }

    .antas-next-match-title::after {
        width: 46px;
        height: 3px;
        margin-top: 10px;
    }

    .antas-next-match-body {
        grid-template-columns: 1fr 64px 1fr;
        gap: 8px;
        padding: 22px 12px 26px;
    }

    .antas-next-logo {
        width: 92px;
        height: 92px;
        margin-bottom: 12px;
    }

    .antas-next-team-name {
        font-size: 13px;
    }

    .antas-next-versus span {
        width: 54px;
        height: 54px;
        font-size: 17px;
        border-width: 3px;
    }

    .antas-next-match-info {
        margin: 0 12px 14px;
        padding: 14px 11px;
        border-radius: 14px;
    }

    .antas-next-date {
        font-size: 14px;
        gap: 6px;
    }

    .antas-next-time {
        padding: 4px 9px;
    }

    .antas-next-venue {
        font-size: 11px;
    }


    /* Partite disputate */

    .lte-football-matches .lte-item {
        border-radius: 15px;
    }

    .lte-football-matches .lte-header-upcoming {
        padding: 8px 7px;
        font-size: 9px;
    }

    .lte-football-matches .lte-teams {
        grid-template-columns: 1fr 48px 1fr;
        gap: 6px;
        padding: 14px 7px 10px;
    }

    .lte-football-matches .lte-team-logo {
        width: 46px;
        height: 46px;
    }

    .lte-football-matches .lte-team-name {
        gap: 5px;
        font-size: 10px;
    }

    .lte-football-matches .lte-team-count {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }

    .lte-football-matches .lte-footer {
        margin: 0 7px 7px;
        padding: 8px 7px;
        border-radius: 10px;
    }

    .lte-football-matches .lte-football-date {
        font-size: 10px;
    }

    .lte-football-matches .lte-football-place {
        font-size: 9px;
    }
}


/* =========================================================
   TELEFONI MOLTO PICCOLI
   ========================================================= */

@media (max-width: 420px) {

    .antas-next-match-body {
        grid-template-columns: 1fr 52px 1fr;
        padding-left: 8px;
        padding-right: 8px;
    }

    .antas-next-logo {
        width: 78px;
        height: 78px;
    }

    .antas-next-team-name {
        font-size: 11px;
    }

    .antas-next-versus span {
        width: 46px;
        height: 46px;
        font-size: 15px;
    }

    .antas-next-date {
        font-size: 12px;
    }

    .lte-football-matches .lte-teams {
        grid-template-columns: 1fr 44px 1fr;
        gap: 4px;
    }

    .lte-football-matches .lte-team-logo {
        width: 42px;
        height: 42px;
    }

    .lte-football-matches .lte-team-name {
        font-size: 9px;
    }

    .lte-football-matches .lte-team-count {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
}


/* === ANTAS MATCH OPTION A START === */

.lte-football-matches .lte-item {
    display: block;
    background: #102d60 !important;
    border-radius: 18px !important;
    border: 1px solid #294878 !important;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(16,45,96,.15);
    text-decoration: none !important;
}

.lte-football-matches .lte-header-upcoming {
    background: transparent !important;
    color: #f5c52b !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.14) !important;
    padding: 17px 12px !important;
    text-align: center;
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: 1px;
}

.lte-football-matches .lte-teams {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 100px minmax(0,1fr) !important;
    align-items: center;
    gap: 12px !important;
    padding: 26px 18px !important;
}

.lte-football-matches .lte-team-name {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    min-width: 0;
    gap: 12px !important;
    text-align: center;
    color: #fff !important;
    font-size: 15px !important;
    line-height: 1.4;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.lte-football-matches .lte-team-logo {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 82px !important;
    height: 82px !important;
    margin: 0 auto !important;
    background: transparent !important;
}

.lte-football-matches .lte-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
}

.lte-football-matches .lte-team-count {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: auto !important;
    min-width: 100px;
    height: auto !important;
    margin: auto;
    padding: 10px 4px;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 30px !important;
    line-height: 1.2;
    font-weight: 900;
}

.lte-football-matches .lte-team-count .lte-c,
.lte-football-matches .lte-team-count .lte-d {
    color: #fff !important;
    font-size: inherit !important;
    font-weight: 900;
}

.lte-football-matches .lte-score-mob {
    display: none !important;
}

.lte-football-matches .lte-footer {
    margin: 0 !important;
    padding: 16px 14px 19px !important;
    background: #0c254f !important;
    border-radius: 0 !important;
    border-top: 1px solid rgba(255,255,255,.14);
    text-align: center;
    box-shadow: none !important;
}

.lte-football-matches .lte-football-date {
    color: #f5c52b !important;
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1.5;
}

.lte-football-matches .lte-football-place {
    display: block;
    color: #e1e8f4 !important;
    font-size: 12px !important;
    line-height: 1.5;
    margin-top: 5px;
}

@media (max-width: 575px) {
    .lte-football-matches .lte-teams {
        grid-template-columns: minmax(0,1fr) 72px minmax(0,1fr) !important;
        gap: 5px !important;
        padding: 22px 8px !important;
    }

    .lte-football-matches .lte-team-logo {
        width: 56px !important;
        height: 56px !important;
    }

    .lte-football-matches .lte-team-name {
        font-size: 11px !important;
        gap: 9px !important;
    }

    .lte-football-matches .lte-team-count {
        min-width: 0;
        width: 72px !important;
        font-size: 23px !important;
        gap: 3px;
    }

    .lte-football-matches .lte-header-upcoming {
        font-size: 10px !important;
    }
}

/* === ANTAS MATCH OPTION A END === */


/* ANTAS ALIGNMENT FIX START */

/* Disposizione orizzontale delle squadre */
.lte-football-matches .lte-teams {
    display: grid !important;
    grid-template-columns:
        minmax(0,1fr) 100px minmax(0,1fr) !important;
    align-items: center !important;
    justify-items: center !important;
    gap: 14px !important;
    min-height: 190px !important;
}

/* Allineamento nomi e loghi */
.lte-football-matches .lte-teams > .lte-team-name {
    position: static !important;
    float: none !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 120px !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
    text-align: center !important;
    line-height: 1.3 !important;
    font-size: 15px !important;
    color: white !important;
}

/* Squadra sinistra */
.lte-football-matches .lte-team-1 {
    grid-column: 1 !important;
}

/* Squadra destra */
.lte-football-matches .lte-team-2 {
    grid-column: 3 !important;
}

/* Posizione e dimensioni loghi */
.lte-football-matches .lte-team-logo {
    position: static !important;
    float: none !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 84px !important;
    height: 84px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
}

/* Logo vero */
.lte-football-matches .lte-team-logo img {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transform: none !important;
}

/* Risultato centrale */
.lte-football-matches .lte-teams > .lte-team-count {
    position: static !important;
    grid-column: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: 100px !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Eliminazione riquadri neri dei punteggi */
.lte-football-matches .lte-team-count > span {
    position: static !important;
    display: inline-block !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    color: white !important;
    font-size: 34px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
}

/* Punteggi mobile duplicati */
.lte-football-matches .lte-score-mob {
    display: none !important;
}

/* Smartphone */
@media (max-width:575px) {
    .lte-football-matches .lte-teams {
        grid-template-columns:
            minmax(0,1fr) 76px minmax(0,1fr) !important;
        gap: 6px !important;
        min-height: 145px !important;
        padding: 16px 8px !important;
    }

    .lte-football-matches .lte-teams > .lte-team-name {
        min-height: 100px !important;
        gap: 8px !important;
        font-size: 11px !important;
    }

    .lte-football-matches .lte-team-logo {
        width: 60px !important;
        height: 60px !important;
    }

    .lte-football-matches .lte-teams > .lte-team-count {
        width: 76px !important;
    }

    .lte-football-matches .lte-team-count > span {
        font-size: 24px !important;
    }
}

/* ANTAS ALIGNMENT FIX END */


/* ANTAS COMPACT MATCH START */

/* Scheda più compatta */
.lte-football-matches .lte-item {
    min-height: 0 !important;
    height: auto !important;
}

/* Intestazione */
.lte-football-matches .lte-header-upcoming {
    padding: 9px 12px !important;
    line-height: 1.2 !important;
}

/* Zona squadre */
.lte-football-matches .lte-teams {
    min-height: 0 !important;
    height: auto !important;
    padding: 12px 16px !important;
    gap: 12px !important;
}

/* Squadre */
.lte-football-matches .lte-teams > .lte-team-name {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    gap: 6px !important;
}

/* Loghi */
.lte-football-matches .lte-team-logo {
    width: 70px !important;
    height: 70px !important;
}

/* Risultato */
.lte-football-matches .lte-teams > .lte-team-count {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
}

/* Informazioni partita */
.lte-football-matches .lte-footer {
    padding: 10px 12px 12px !important;
    min-height: 0 !important;
}

.lte-football-matches .lte-football-place {
    margin-top: 2px !important;
}

/* Smartphone */
@media (max-width:575px) {
    .lte-football-matches .lte-teams {
        padding: 12px 8px !important;
        gap: 5px !important;
    }

    .lte-football-matches .lte-team-logo {
        width: 54px !important;
        height: 54px !important;
    }

    .lte-football-matches .lte-teams > .lte-team-name {
        gap: 5px !important;
    }

    .lte-football-matches .lte-footer {
        padding: 9px 8px 10px !important;
    }
}

/* ANTAS COMPACT MATCH END */

