:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#eef4f0;background:#0d1411}
*{box-sizing:border-box}
body{margin:0;background:linear-gradient(180deg,#111b16,#0a100d);min-height:100vh}
a{color:inherit}
header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #26352d;position:sticky;top:0;background:#0d1411e8;backdrop-filter:blur(12px);z-index:4}
.brand{font-size:20px;font-weight:800;letter-spacing:.08em}
main{max-width:1180px;margin:auto;padding:22px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.card{background:#15221b;border:1px solid #293b31;border-radius:18px;padding:18px;box-shadow:0 10px 30px #0003}
h1,h2,h3{margin-top:0}
label{display:block;font-size:12px;opacity:.75;margin:10px 0 5px}
input,select,button{width:100%;border-radius:10px;border:1px solid #3a5144;background:#0d1711;color:#fff;padding:11px 12px;font:inherit}
button{cursor:pointer;background:#e7f0ea;color:#112018;font-weight:700}
button.secondary{background:#1c2a22;color:#fff}
button.danger{background:#4b1f1f;color:#fff}
.row{display:flex;gap:8px;align-items:center}
.row>*{flex:1}
.muted{opacity:.65}
.badge{display:inline-flex;border:1px solid #456052;border-radius:999px;padding:4px 9px;font-size:12px}
.team{display:flex;gap:12px;align-items:center}
.logo{width:56px;height:56px;border-radius:12px;background:#26372e;object-fit:cover}
.score{font-size:58px;font-weight:900;line-height:1}
.match{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #2b3b32}
.match:last-child{border-bottom:0}
.right{text-align:right}
.center{text-align:center}
.nick{font-weight:800}
.small{font-size:12px}
nav{display:flex;gap:8px;flex-wrap:wrap}
nav button{width:auto}
.hidden{display:none!important}
table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:8px;border-bottom:1px solid #2b3b32;font-size:14px}
.scoreboard-head{display:grid;grid-template-columns:1fr auto 1fr;gap:20px;align-items:center}
.scorebox{text-align:center}
@media(max-width:650px){main{padding:12px}.score{font-size:42px}.match{font-size:13px}.scoreboard-head{gap:8px}}


/*
 * CAP CUP HOME SCORE MEDIA CSS REAL FIX V4
 * Foglio effettivamente caricato dalla homepage.
 */

/* LOGHI SQUADRE */
.capHomePage #board .cap-home-team-logo{
  width:48px !important;
  height:48px !important;
  min-width:48px !important;
  min-height:48px !important;
  max-width:48px !important;
  max-height:48px !important;
  object-fit:cover !important;
  object-position:center !important;
  border-radius:50% !important;
  display:block !important;
  flex:0 0 48px !important;
  margin:0 !important;
  padding:0 !important;
}

/* FOTO GIOCATORI NEI MATCH */
.capHomePage #board .cap-home-player-photo{
  width:30px !important;
  height:30px !important;
  min-width:30px !important;
  min-height:30px !important;
  max-width:30px !important;
  max-height:30px !important;
  object-fit:cover !important;
  object-position:center !important;
  border-radius:50% !important;
  display:inline-block !important;
  vertical-align:middle !important;
  flex:0 0 30px !important;
  margin:0 !important;
  padding:0 !important;
}

/* GIOCATORE + NOME */
.capHomePage #board .cap-home-player{
  display:inline-flex !important;
  align-items:center !important;
  gap:7px !important;
  vertical-align:middle !important;
}

.capHomePage #board .cap-home-player-right{
  justify-content:flex-end !important;
}

/* SEPARATORE COPPIA */
.capHomePage #board .cap-home-pair-sep{
  display:inline-block !important;
  margin:0 5px !important;
}

/* FOTO SINGOLO */
.capHomePage #board .cap-home-single{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}

.capHomePage #board .cap-home-single-photo{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  min-height:42px !important;
  max-width:42px !important;
  max-height:42px !important;
  object-fit:cover !important;
  object-position:center !important;
  border-radius:50% !important;
  display:block !important;
  flex:0 0 42px !important;
  margin:0 !important;
  padding:0 !important;
}

/* MINI LOGO SQUADRA */
.capHomePage #board .cap-home-mini-team-logo{
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  min-height:18px !important;
  max-width:18px !important;
  max-height:18px !important;
  object-fit:cover !important;
  object-position:center !important;
  border-radius:50% !important;
  display:inline-block !important;
  flex:0 0 18px !important;
  margin:0 !important;
  padding:0 !important;
}

.capHomePage #board .cap-home-single-team,
.capHomePage #board .cap-home-prize-team{
  display:flex !important;
  align-items:center !important;
  gap:5px !important;
}

.capHomePage #board .cap-home-prize-player{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
}


/* MOBILE */
@media(max-width:650px){

  .capHomePage #board .cap-home-team-logo{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;
    max-width:38px !important;
    max-height:38px !important;
    flex-basis:38px !important;
  }

  .capHomePage #board .cap-home-player-photo{
    width:26px !important;
    height:26px !important;
    min-width:26px !important;
    min-height:26px !important;
    max-width:26px !important;
    max-height:26px !important;
    flex-basis:26px !important;
  }

  .capHomePage #board .cap-home-single-photo{
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    min-height:36px !important;
    max-width:36px !important;
    max-height:36px !important;
    flex-basis:36px !important;
  }

  .capHomePage #board .cap-home-player{
    gap:4px !important;
  }

  .capHomePage #board .cap-home-pair-sep{
    margin:0 2px !important;
  }
}



/*
 * ============================================================
 * CAP CUP HOME SCORE MOBILE V5
 * ============================================================
 */

.capHomePage #board .capHomeScoreHead{
  min-width:0;
}

.capHomePage #board .capHomeScoreTeam{
  min-width:0;
}

.capHomePage #board .capHomeScoreTeamB{
  justify-content:flex-end;
}

.capHomePage #board .capHomeScoreTeamBody{
  min-width:0;
}

.capHomePage #board .capHomeScoreTeamName{
  min-width:0;

  font-size:
    clamp(15px,1.6vw,22px);

  line-height:1.05;
  font-weight:900;

  overflow-wrap:anywhere;
  text-wrap:balance;
}

.capHomePage #board .capHomeScoreMobileValue{
  display:none;
}


/*
 * Homepage mobile/tablet stretto.
 */
@media(max-width:760px){

  .capHomePage #board .capHomeScoreHead{
    display:grid !important;

    grid-template-columns:
      minmax(0,1fr)
      minmax(0,1fr) !important;

    gap:12px !important;
    align-items:start !important;
  }

  .capHomePage #board .capHomeScoreCenter{
    display:none !important;
  }

  .capHomePage #board .capHomeScoreTeam,
  .capHomePage #board .capHomeScoreTeamB{
    width:100%;
    min-width:0;

    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;

    gap:7px !important;

    text-align:center !important;
  }

  .capHomePage #board .capHomeScoreTeamBody{
    width:100%;
    min-width:0;
    text-align:center;
  }

  .capHomePage #board .capHomeScoreTeamName{
    width:100%;

    font-size:
      clamp(16px,5.4vw,24px) !important;

    line-height:1.02 !important;

    text-align:center !important;

    overflow-wrap:anywhere;
    word-break:normal;
    text-wrap:balance;
  }

  .capHomePage #board .cap-home-team-logo{
    width:
      clamp(56px,15vw,72px) !important;

    height:
      clamp(56px,15vw,72px) !important;

    min-width:
      clamp(56px,15vw,72px) !important;

    min-height:
      clamp(56px,15vw,72px) !important;

    max-width:
      clamp(56px,15vw,72px) !important;

    max-height:
      clamp(56px,15vw,72px) !important;

    flex:
      0 0
      clamp(56px,15vw,72px) !important;

    margin:
      0 auto !important;

    object-fit:contain !important;
  }

  .capHomePage #board .capHomeScoreMobileValue{
    display:block !important;

    margin-top:9px;

    font-size:
      clamp(38px,12vw,58px);

    line-height:.95;
    font-weight:950;
    text-align:center;
  }

}

/* ===== END CAP CUP HOME SCORE MOBILE V5 ===== */
