/* Contenitore principale con sfondo */
.lfl-stats {
  width: 100%;
  max-width: 382px;
  height: 707.7px;
  border: 2px solid #000;
  font-family: 'Poppins', sans-serif !important;
  background-image: url('/wp-content/plugins/live-football-lineups/bkg_stats.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: flex;
  flex-direction: column;
}

/* Forza Poppins anche su tutti i figli */
.lfl-stats * {
  font-family: 'Poppins', sans-serif !important;
}

/* Corpo */
.lfl-stats .lfl-sidebar-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  background: transparent !important;
}

/* Ogni blocco = 1/8 dell'altezza disponibile */
.lfl-stat-block {
  height: calc((707.7px - 52px) / 8 - 4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent !important;
  margin: 0;
  padding: 0;
}

/* Titolo statistica */
.lfl-stat-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  line-height: 0;
  margin-bottom: 2px;
  margin-top: 25px;
}

/* Riga con layout a 3 colonne */
/* Riga con layout a 3 colonne fisse */
/* Riga con layout a 3 colonne fisse */
/* Riga con layout a 3 colonne fisse e larghezze bloccate */
/* Riga con layout a 3 colonne fisse */
.lfl-stat-row {
  display: grid;
  grid-template-columns: 80px 220px 80px; /* colonne laterali più larghe */
  align-items: center;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

.lfl-stat-value-home,
.lfl-stat-value-away {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  display: flex;
  justify-content: center; /* centrati orizzontalmente nella colonna */
  align-items: center;     /* centrati verticalmente */
}







/* Barra centrale */
.lfl-stat-bar {
  height: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #e0e0e0;
  display: flex;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25); /* ombra leggera */
	border: 1px solid #ccc; /* bordo grigio chiaro */
}






.lfl-stat-home,
.lfl-stat-away {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
}

/* Header */
.lfl-stats .lfl-sidebar-header {
  background-image: url('/wp-content/plugins/live-football-lineups/bgk_team.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #fff;
}

.lfl-stats .lfl-sidebar-header img {
  height: 30px;
  background: white;
  border-radius: 4px;
  padding: 2px;
}

.lfl-highlight {
  background: rgba(255, 215, 0, 0.2); /* giallo trasparente tipo oro */
  border-radius: 4px;
  padding: 2px 4px;
}



/*NUOVO*/

.lfl-sidebar {
  width: 100%;
  max-width: 382px;
  height: 707.7px; /* altezza fissa */
  border: 2px solid #000;
  font-family: 'Poppins', sans-serif;
  background: #fff; /* sfondo tabella generale bianco */
  color: #000;
  display: flex;
  flex-direction: column;
}

/* Header squadra */
.lfl-sidebar-header {
  background-image: url('/wp-content/plugins/live-football-lineups/bgk_team.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 10px;
  font-weight: bold;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  border-bottom: 2px solid #fff; /* bordo inferiore bianco 2px */
}

.lfl-sidebar-header img {
  height: 30px;
  width: auto;
  background: white;
  border-radius: 4px;
  padding: 2px;
}

/* Corpo tabella */
.lfl-sidebar-body {
  display: flex;
  flex-direction: column;
  height: calc(707.7px - 52px); /* Altezza totale meno header */
}

/* Riga giocatore */
.lfl-sidebar-player {
  display: flex;
  align-items: stretch;
  border-bottom: 2px solid #fff;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  height: calc((707.7px - 52px) / 11); /* Altezza fissa per 11 righe */
}

/* Numero maglia */
.lfl-num-box {
  background-color: #000;
  color: #fff;
  font-weight: 700;
  border-right: 2px solid #fff;
  width: 40px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
}

/* Nome giocatore */
.lfl-name-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  gap: 6px;
  background-color: #000;
  color: #fff;
}

/* Nome giocatore sostituito */
.lfl-name-box.substituted {
  position: relative;
  background: linear-gradient(
    135deg,
    #fa0202 55%,  
    #545454 55%
  );
  overflow: hidden;
}

.lfl-name-box.substituted::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* Ombra solo sul bordo diagonale */
  background: linear-gradient(
    135deg,
    transparent 54%,
    rgba(0, 0, 0, 0.4) 55%,
    transparent 56%
  );
  
  pointer-events: none;
}




.lfl-name-main {
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.6); /* x, y, blur, colore */
}

.lfl-substituted-name {
  font-size: 16px;
  color: #ccc;
  flex-shrink: 0;
  white-space: nowrap;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.6); /* x, y, blur, colore */
}

/* Icona sostituzione */
.lfl-in-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url('/wp-content/plugins/live-football-lineups/sub.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

.lfl-standings {
  width: 100%;
  max-width: 382px;
  height: 707.7px;
  border: 2px solid #000;
  font-family: 'Poppins', sans-serif !important;
  background-image: url('/wp-content/plugins/live-football-lineups/bkg_stats.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: flex;
  flex-direction: column;
	
}
.lfl-standings * {
  font-family: 'Poppins', sans-serif !important;
}
.lfl-standings table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  color: #fff;
}
.lfl-standings th,
.lfl-standings td {
  padding: 4px;
  font-size: 14px;
  text-align: left;
}
.lfl-standings tr:nth-child(even) {
  background-color: rgba(255,255,255,0.05);
}

/* Contenitore classifica Serie A compatto */
.lfl-table {
    width: 100%;
    max-width: 382px;
    height: 707.7px; /* Altezza totale del box */
    border: 2px solid #000;
    font-family: 'Poppins', sans-serif !important;
    background: url('/wp-content/plugins/live-football-lineups/bgk_classifica.png') center/cover no-repeat #000 !important;
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* Spazio per banner in alto */
}

/* Forza Poppins anche sui figli */
.lfl-table * {
    font-family: 'Poppins', sans-serif !important;
}

/* Tabella interna */
.lfl-table table {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
    background-color: transparent !important;
    color: #fff;
}

/* Corpo della tabella */
.lfl-table tbody {
    height: 100%;
}

/* Righe più compatte */
.lfl-table tbody tr {
    height: 28px; /* Altezza fissa ridotta per fare spazio al banner */
}

/* Celle */
.lfl-table th,
.lfl-table td {
    padding: 2px 4px; /* Padding ridotto */
    font-size: 15px; /* Testo leggermente più piccolo */
    text-align: center;
    background-color: transparent !important;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.6); /* x, y, blur, colore */
}

/* Colonna nomi in maiuscolo e grassetto */
.lfl-table td:nth-child(2) {
    text-transform: uppercase;
    font-weight: bold;
    text-align: left;
}

/* Righe alternate */
.lfl-table tr:nth-child(even) {
    background-color: rgba(255,255,255,0.05) !important;
}

/* Logo squadra */
.lfl-table td img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 3px;
}