/* AmmiraBet. Azzurro Napoli e bianco, strisce di maglia, numeri da divisa. */

@font-face {
    font-family: "Archivo";
    src: url("fonts/archivo-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light dark;

    /* Chiaro: fondo azzurro Napoli, schede e classifica bianche con testo navy. */
    --ground: #0a5f96;
    --chalk: #ffffff;
    --muted: #e3f1f9;
    --line: rgba(255, 255, 255, 0.28);
    --line-strong: rgba(255, 255, 255, 0.55);
    --kit-outline: rgba(255, 255, 255, 0.6);

    --surface: #ffffff;
    --surface-hover: #f1f8fc;
    --on-surface: #0a2a44;
    --on-surface-muted: #4a6a82;
    --surface-line: rgba(10, 42, 68, 0.14);
    --surface-line-strong: rgba(10, 42, 68, 0.32);
    --surface-kit-outline: rgba(10, 42, 68, 0.35);

    --live: #d62b16;
    --azzurro-ink: #0b6fad;
    --zone-top: #0b6fad;
    --zone-mid: #a86500;
    --zone-out: #d62b16;
    --win: #1f9d55;

    --font: "Archivo", system-ui, "Segoe UI", Roboto, sans-serif;
    --pad: clamp(16px, 4vw, 40px);
    --maxw: 1180px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scuro: il fondo si scurisce, le schede diventano navy con testo chiaro. */
:root[data-theme="dark"] {
    color-scheme: dark;
    --ground: #071826;
    --chalk: #eaf4fa;
    --muted: #a9c3d4;
    --line: rgba(234, 244, 250, 0.16);
    --line-strong: rgba(234, 244, 250, 0.36);
    --kit-outline: rgba(255, 255, 255, 0.5);

    --surface: #0f2a40;
    --surface-hover: #153650;
    --on-surface: #eaf4fa;
    --on-surface-muted: #9db8ca;
    --surface-line: rgba(234, 244, 250, 0.14);
    --surface-line-strong: rgba(234, 244, 250, 0.32);
    --surface-kit-outline: rgba(255, 255, 255, 0.4);

    --live: #ff6a4d;
    --azzurro-ink: #58bfee;
    --zone-top: #4db3ff;
    --zone-mid: #f2a93b;
    --zone-out: #ff6a4d;
    --win: #5fd38d;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --ground: #071826;
        --chalk: #eaf4fa;
        --muted: #a9c3d4;
        --line: rgba(234, 244, 250, 0.16);
        --line-strong: rgba(234, 244, 250, 0.36);
        --kit-outline: rgba(255, 255, 255, 0.5);

        --surface: #0f2a40;
        --surface-hover: #153650;
        --on-surface: #eaf4fa;
        --on-surface-muted: #9db8ca;
        --surface-line: rgba(234, 244, 250, 0.14);
        --surface-line-strong: rgba(234, 244, 250, 0.32);
        --surface-kit-outline: rgba(255, 255, 255, 0.4);

        --live: #ff6a4d;
        --azzurro-ink: #58bfee;
        --zone-top: #4db3ff;
        --zone-mid: #f2a93b;
        --zone-out: #ff6a4d;
        --win: #5fd38d;
    }
}

/* Sulle superfici (schede e pannello) i token di testo e linea passano ai valori di superficie. */
.panel,
.card {
    --chalk: var(--on-surface);
    --muted: var(--on-surface-muted);
    --line: var(--surface-line);
    --line-strong: var(--surface-line-strong);
    --ground: var(--surface);
    --kit-outline: var(--surface-kit-outline);
    color: var(--on-surface);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--ground);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font: 400 1rem/1.45 var(--font);
    font-stretch: 100%;
    color: var(--chalk);
    background-color: var(--ground);
    font-variant-numeric: tabular-nums;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--chalk);
    color: var(--ground);
}

a {
    color: inherit;
    text-decoration: none;
}

:focus-visible {
    outline: 2px solid var(--chalk);
    outline-offset: 3px;
    border-radius: 2px;
}

button {
    font: inherit;
    color: inherit;
}

* {
    scrollbar-color: var(--line-strong) transparent;
}

/* ---------- Testata ---------- */

.top {
    border-bottom: 1px solid var(--line);
}

.top__in {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--pad);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.brand img {
    width: 40px;
    height: 40px;
    display: block;
    border-radius: 22%;
    border: 1px solid var(--line-strong);
    background: var(--surface);
}

.brand__name {
    font-size: 1.45rem;
    font-weight: 850;
    font-stretch: 72%;
    letter-spacing: 0.005em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: clamp(14px, 3vw, 28px);
}

.nav a {
    position: relative;
    padding: 22px 0 19px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--chalk);
}

.nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--chalk);
}

/* ---------- Pagina ---------- */

.page {
    flex: 1;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(24px, 5vw, 48px) var(--pad) 64px;
}

.page__head {
    margin-bottom: clamp(24px, 4vw, 40px);
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 850;
    font-stretch: 70%;
    line-height: 1;
    text-transform: uppercase;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.6rem, 8vw, 4.6rem);
    letter-spacing: -0.005em;
}

.lede {
    margin: 12px 0 0;
    max-width: 52ch;
    color: var(--muted);
}

/* Una colonna: pannello classifica, schede partita sul fondo. */
.panel {
    padding: clamp(16px, 3vw, 28px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.stack > * + * {
    margin-top: clamp(32px, 5vw, 48px);
}

.cards {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 14px 16px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.card:hover {
    border-color: var(--line-strong);
    background-color: var(--surface-hover);
}

.card--live {
    border-color: var(--live);
    box-shadow: inset 0 0 0 1px var(--live);
}

.card__top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}

.card__st--live {
    color: var(--live);
}

.card:focus-visible,
.fx:focus-visible {
    outline-offset: 2px;
}

.card__when {
    font-weight: 500;
}

.card__row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.card__row .kit {
    width: 24px;
    height: 34px;
    border-radius: 3px;
}

.card__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.1rem;
    font-weight: 700;
}

.card__n {
    font-size: 2.3rem;
    font-weight: 850;
    font-stretch: 68%;
    line-height: 1;
}

.card__row--lose .card__name,
.card__row--lose .card__n {
    color: var(--muted);
    font-weight: 600;
}

.block + .block {
    margin-top: clamp(28px, 4vw, 40px);
}

.block__head {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 40px;
    margin-bottom: 12px;
}

.block__head h3 {
    font-size: 0.9rem;
    font-stretch: 100%;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.more {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 20px 0 0;
    font-weight: 600;
}

.more a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.day {
    margin: 18px 0 8px;
    font-size: 0.85rem;
    font-stretch: 100%;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.block__head h2 {
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

/* Linea di gesso dopo il titolo. */
.block__head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
    order: 1;
}

.block__head > :last-child:not(:first-child) {
    order: 2;
}

.block__meta {
    font-size: 0.85rem;
    color: var(--muted);
}

/* ---------- Strisce di maglia ---------- */

.kit {
    display: inline-block;
    flex: none;
    width: 14px;
    height: 20px;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        var(--k1, #5c6b62) 0 33.34%,
        var(--k2, var(--k1, #5c6b62)) 33.34% 66.67%,
        var(--k3, var(--k1, #5c6b62)) 66.67% 100%
    );
    box-shadow: inset 0 0 0 1px var(--kit-outline);
}

/* Stemmi delle squadre. Sul tema scuro stanno su una base chiara per non sparire. */
.crest {
    flex: none;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.card__row .crest {
    width: 32px;
    height: 32px;
}

.standings .crest {
    width: 24px;
    height: 24px;
}

:root[data-theme="dark"] .crest {
    padding: 2px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .crest {
        padding: 2px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.92);
    }
}

/* Nelle righe partita le strisce hanno scala di maglia. */
.fx .kit {
    width: 24px;
    height: 36px;
    border-radius: 3px;
}

.standings .kit {
    width: 18px;
    height: 24px;
}

/* ---------- Partite ---------- */

.fixtures {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.fx {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
    transition: background-color 0.2s var(--ease);
}

.fx:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.fx--live {
    background-color: rgba(255, 255, 255, 0.16);
}

.fx__st {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.fx__st--live {
    color: #ffffff;
    font-weight: 850;
}

.fx__team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 600;
}

.fx__team--home {
    justify-content: flex-end;
    text-align: right;
}

.fx__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx__score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    min-width: 96px;
    font-size: 2.7rem;
    font-weight: 850;
    font-stretch: 68%;
    line-height: 1;
}

.fx__score i {
    font-style: normal;
    font-weight: 400;
    color: var(--muted);
}

.fx__vs {
    font-size: 0.8rem;
    font-weight: 700;
    font-stretch: 100%;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Il punteggio cambia peso quando qualcuno segna. */
.bump b {
    animation: bump 1.4s var(--ease);
}

@keyframes bump {
    0% {
        font-weight: 400;
        color: var(--live);
    }
    25% {
        font-weight: 900;
        color: var(--live);
    }
    100% {
        font-weight: 850;
        color: inherit;
    }
}

/* ---------- Classifica ---------- */

.tabs {
    display: flex;
    gap: 4px;
}

.tab {
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.tab:hover {
    color: var(--chalk);
}

.tab[aria-selected="true"] {
    background: var(--chalk);
    border-color: var(--chalk);
    color: var(--ground);
}

.table-wrap {
    overflow-x: auto;
}

.standings {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.standings th {
    padding: 0 6px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: right;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line-strong);
}

.standings th:nth-child(3) {
    text-align: left;
}

.standings td {
    padding: 9px 6px;
    text-align: right;
    border-bottom: 1px solid var(--line);
}

.standings .rail {
    width: 4px;
    padding: 0;
    background: var(--rail, transparent);
}

.standings .pos {
    width: 34px;
    padding-left: 10px;
    font-size: 1.15rem;
    font-weight: 850;
    font-stretch: 68%;
    text-align: left;
}

.standings .team {
    text-align: left;
}

.standings .teamline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.standings .pts {
    font-size: 1.15rem;
    font-weight: 850;
    font-stretch: 68%;
}

.standings .opt {
    display: none;
}

@media (min-width: 520px) {
    .standings .opt {
        display: table-cell;
    }
}

.form {
    display: inline-flex;
    gap: 3px;
    vertical-align: middle;
}

.form i {
    width: 8px;
    height: 14px;
    border-radius: 1px;
    background: var(--line-strong);
}

.form .w {
    background: var(--win);
}

.form .l {
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--muted);
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.is-napoli .teamline span,
.is-napoli .pts {
    color: var(--azzurro-ink);
}

.is-napoli td {
    background: rgba(18, 160, 215, 0.14);
}

.bench-label {
    margin: 14px 0 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
    color: var(--muted);
}

.legend li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend i {
    width: 4px;
    height: 14px;
    background: var(--c);
}

.zone-top { --rail: var(--zone-top); }
.zone-mid { --rail: var(--zone-mid); }
.zone-out { --rail: var(--zone-out); }

/* ---------- Giornate ---------- */

.stepper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stepper button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s var(--ease);
}

.stepper button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.16);
}

.stepper button:disabled {
    opacity: 0.35;
    cursor: default;
}

.stepper svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stepper strong {
    min-width: 8.5ch;
    text-align: center;
    font-size: 0.95rem;
}

/* ---------- Stati ---------- */

.skel {
    height: 54px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent) 0 0 / 220% 100%;
    animation: skel 1.4s linear infinite;
}

@keyframes skel {
    from { background-position: 120% 0; }
    to { background-position: -120% 0; }
}

.note {
    margin: 0;
    padding: 20px 0;
    color: var(--muted);
}

.note button {
    margin-left: 8px;
    padding: 0;
    border: none;
    background: none;
    color: var(--chalk);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* ---------- Partita ---------- */

.back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
}

.back:hover {
    color: var(--chalk);
}

.back svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero__ctx {
    margin: 0 0 18px;
    font-size: 0.9rem;
    color: var(--muted);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(8px, 3vw, 32px);
}

.hero__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    min-width: 0;
}

.hero__team img {
    width: clamp(44px, 10vw, 72px);
    height: clamp(44px, 10vw, 72px);
    object-fit: contain;
}

:root[data-theme="dark"] .hero__team img {
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hero__team img {
        padding: 8px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.92);
    }
}

.hero__team h2 {
    font-size: clamp(1.15rem, 4vw, 1.9rem);
    overflow-wrap: anywhere;
}

.hero__score {
    display: flex;
    align-items: baseline;
    gap: clamp(6px, 2vw, 16px);
    font-size: clamp(3.6rem, 15vw, 6rem);
    font-weight: 850;
    font-stretch: 66%;
    line-height: 0.9;
}

.hero__score i {
    font-style: normal;
    font-weight: 300;
    color: var(--muted);
}

.hero__score--none {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    color: var(--muted);
    font-weight: 700;
    font-stretch: 100%;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero__state {
    margin: 16px 0 0;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--muted);
}

.hero__state--live {
    display: table;
    margin-left: auto;
    margin-right: auto;
    padding: 2px 12px;
    border-radius: 999px;
    background: #d62b16;
    color: #ffffff;
}

.kitbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 10px;
    margin-top: 24px;
    gap: 2px;
}

.kitbar span {
    background: linear-gradient(90deg, var(--k1) 50%, var(--k2, var(--k1)) 50%) 0 0 / 36px 100%;
    box-shadow: inset 0 0 0 1px var(--kit-outline);
}

.win {
    margin: 18px 0 0;
    text-align: center;
    font-weight: 850;
    font-stretch: 80%;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
}

.win button {
    margin-left: 10px;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--chalk);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px 24px;
    margin: 32px 0 0;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.facts dt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.facts dd {
    margin: 2px 0 0;
    font-weight: 600;
}

.detail {
    margin-top: clamp(32px, 5vw, 48px);
}

.detail h2 {
    margin-bottom: 14px;
    font-size: 1.15rem;
}

/* Cronaca: una linea centrale, casa a sinistra e trasferta a destra. */
.timeline {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--line-strong);
}

.ev {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    align-items: center;
    padding: 8px 0;
}

.ev__side {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ev__side small {
    display: block;
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--muted);
}

.ev__home {
    text-align: right;
    padding-right: 8px;
}

.ev__away {
    text-align: left;
    padding-left: 8px;
}

.ev__mid {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0;
    background: var(--ground);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--muted);
}

.ev__mid svg {
    width: 16px;
    height: 16px;
}

.ev--goal .ev__side {
    font-size: 1.05rem;
}

.ev--goal .ev__mid {
    color: var(--chalk);
}

.sub-in {
    color: #bff0d4;
}

.sub-out {
    color: var(--muted);
}

.stat {
    padding: 10px 0;
}

.stat__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-weight: 700;
}

.stat__row span {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted);
    text-align: center;
}

.stat__bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    height: 6px;
    margin-top: 6px;
}

.stat__bar i {
    display: block;
    background: var(--line);
}

.stat__bar i:first-child {
    display: flex;
    justify-content: flex-end;
}

.stat__bar b {
    display: block;
    height: 100%;
    outline: 1px solid rgba(255, 255, 255, 0.75);
    outline-offset: 0;
}

.lineups {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.lineup h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.lineup h3 small {
    font-weight: 500;
    color: var(--muted);
    font-stretch: 100%;
    text-transform: none;
}

.lineup p {
    margin: 0 0 8px;
    font-size: 0.88rem;
    color: var(--muted);
}

.lineup ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lineup li {
    display: flex;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

.lineup li span {
    width: 1.8rem;
    font-weight: 800;
    font-stretch: 70%;
    color: var(--muted);
}

.lineup .bench {
    margin-top: 12px;
    opacity: 0.8;
}

/* ---------- Piè di pagina ---------- */

.foot {
    border-top: 1px solid var(--line);
    padding: 20px var(--pad);
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.foot p {
    margin: 0;
}

.theme {
    margin-top: 12px;
    padding: 6px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--chalk);
    cursor: pointer;
    transition: background-color 0.2s var(--ease);
}

.theme:hover {
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 420px) {
    .top__in {
        gap: 10px;
    }

    .brand {
        gap: 8px;
    }

    .brand__name {
        font-size: 1.1rem;
    }

    .brand img {
        width: 32px;
        height: 32px;
    }

    .nav {
        gap: 12px;
    }

    .nav a {
        font-size: 0.88rem;
    }

    .fx .kit {
        width: 18px;
        height: 30px;
    }

    .ev {
        grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    }

    .ev__side {
        font-size: 0.9rem;
    }

    .fx {
        grid-template-columns: 44px minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 6px;
        padding-left: 0;
        padding-right: 0;
    }

    .fx__score {
        min-width: 72px;
        font-size: 2.1rem;
    }

    .fx__team {
        gap: 6px;
        font-size: 0.92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
