/* Bari News: statistiche della stagione, stile biancorosso */

.bari-statistiche { text-align: left; }
.bst-stagione { margin: 0 0 18px; font-size: 0.9rem; color: var(--bp-tenue); text-align: center; }

.bst-sezione { margin: 0 0 34px; }
.bst-titolo {
	margin: 0 0 14px;
	padding-bottom: 6px;
	border-bottom: 3px solid var(--bp-rosso);
	font-size: 1.35rem;
	line-height: 1.2;
}

.bst-nota { margin: 8px 0 0; font-size: 0.8rem; color: var(--bp-tenue); }

/* Riquadri */
.bst-riquadro {
	background: var(--bp-sfondo);
	border-top: 4px solid var(--bp-rosso);
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	padding: 14px 18px 16px;
	margin-bottom: 16px;
	min-width: 0;
}
.bst-due { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bst-due .bst-riquadro { margin-bottom: 0; }
.bst-sezione > .bst-due { margin-bottom: 16px; }

/* Numeri grandi */
.bst-numeri {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}
.bst-numero {
	padding: 14px 10px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--bp-rosso) 0%, var(--bp-rosso-scuro) 100%);
	color: #fff;
	text-align: center;
}
.bst-numero strong { display: block; font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bst-numero span { display: block; margin-top: 4px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.9; }

/* Barra vittorie / pareggi / sconfitte */
.bst-vnp { display: flex; gap: 3px; height: 30px; margin-bottom: 16px; border-radius: 6px; overflow: hidden; }
.bst-vnp span {
	display: flex; align-items: center; justify-content: center;
	min-width: 0; padding: 0 6px;
	color: #fff; font-size: 0.8rem; font-weight: 700; white-space: nowrap; overflow: hidden;
}
.bst-vnp-V { background: var(--bp-verde); }
.bst-vnp-N { background: var(--bp-grigio); }
.bst-vnp-P { background: var(--bp-rosso); }

/* Tabelle */
.bst-tabella-scorri { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bst-tabella { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.bst-tabella th {
	padding: 7px 6px;
	border-bottom: 2px solid var(--bp-rosso);
	font-size: 0.75rem; text-transform: uppercase; color: var(--bp-tenue);
	text-align: center; white-space: nowrap;
}
.bst-tabella td { padding: 7px 6px; border-bottom: 1px solid var(--bp-linea); text-align: center; font-variant-numeric: tabular-nums; }
.bst-tabella tbody th { border-bottom: 1px solid var(--bp-linea); text-align: left; font-size: 0.9rem; text-transform: none; color: var(--bp-testo); font-weight: 600; }
.bst-tabella th:first-child,
.bst-tabella td.bst-nome { text-align: left; }
.bst-tabella td.bst-nome { white-space: nowrap; }
.bst-tabella tbody tr:hover td { background: #fdf1f3; }
.bst-forte { font-weight: 700; color: var(--bp-rosso); }
.bst-casa-trasf td:last-child { background: #fafafa; }

/* Ordinamento */
.bst-ordina th[data-bst-col] { cursor: pointer; user-select: none; }
.bst-ordina th[data-bst-col]:hover,
.bst-ordina th[data-bst-col]:focus-visible { color: var(--bp-rosso); outline: none; }
.bst-ordina th.bst-giu::after { content: " ▼"; color: var(--bp-rosso); }
.bst-ordina th.bst-su::after { content: " ▲"; color: var(--bp-rosso); }
.bst-giocatori td:first-child { position: sticky; left: 0; background: var(--bp-sfondo); }

/* Primi in classifica */
.bst-migliori { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.bst-migliore {
	padding: 12px 14px;
	border-left: 4px solid var(--bp-rosso);
	border-radius: 8px;
	background: #fdf1f3;
}
.bst-migliore strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.bst-migliore small { color: var(--bp-tenue); font-size: 0.85rem; }

/* Ultime partite e serie */
.bst-ultime { display: flex; gap: 6px; margin-top: 8px; }
.bst-ultime .bp-esito { width: 34px; height: 34px; font-size: 0.95rem; text-decoration: none; color: #fff !important; }
.bst-elenco { margin: 6px 0 0; padding-left: 18px; }
.bst-elenco li { margin: 3px 0; }
.bst-record { list-style: none; padding: 0; }
.bst-record li { padding: 6px 0; border-bottom: 1px solid var(--bp-linea); }
.bst-record li:last-child { border-bottom: 0; }
.bst-record span { display: inline-block; min-width: 190px; font-weight: 600; }
.bst-record a { color: var(--bp-rosso) !important; }

/* Punti partita dopo partita */
.bst-percorso {
	display: flex; align-items: flex-end; gap: 3px;
	height: 170px; margin-top: 12px; padding-top: 18px;
	border-bottom: 2px solid var(--bp-linea);
}
.bst-barra {
	position: relative; flex: 1 1 0; min-width: 6px; max-width: 34px;
	border-radius: 3px 3px 0 0; text-decoration: none;
	transition: opacity 0.15s ease;
}
.bst-barra:hover,
.bst-barra:focus-visible { opacity: 0.75; }
.bst-barra span {
	position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%);
	font-size: 0.68rem; font-weight: 700; color: var(--bp-tenue);
}
.bst-barra-V { background: var(--bp-verde); }
.bst-barra-N { background: var(--bp-grigio); }
.bst-barra-P { background: var(--bp-rosso); }
.bst-legenda { margin: 8px 0 0; font-size: 0.78rem; color: var(--bp-tenue); }
.bst-pallino { display: inline-block; width: 10px; height: 10px; margin: 0 4px 0 8px; border-radius: 2px; vertical-align: -1px; }
.bst-pallino:first-child { margin-left: 0; }
.bst-pallino-gf { background: var(--bp-rosso); }
.bst-pallino-gs { background: #b9bcc3; }

/* Gol per fascia: subiti a sinistra, fatti a destra */
.bst-fasce.bst-fasce-gol { table-layout: fixed; }
.bst-fasce.bst-fasce-gol th { width: 64px; }
.bst-fasce.bst-fasce-gol td.bst-n { width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.bst-fasce.bst-fasce-gol .bst-fascia-gs,
.bst-fasce.bst-fasce-gol .bst-fascia-gf { width: auto; }
.bst-fasce.bst-fasce-gol .bst-fascia-barra { display: block; width: 100%; margin: 0; }
.bst-fasce.bst-fasce-gol .bst-fascia-gs { padding-right: 2px; }
.bst-fasce.bst-fasce-gol .bst-fascia-gf { padding-left: 2px; }

/* Barre orizzontali (fasce di minuti, pubblico, moduli) */
.bst-fasce { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.88rem; }
.bst-fasce th { width: 1%; padding: 5px 10px 5px 0; text-align: left; white-space: nowrap; font-weight: 600; }
.bst-fasce th a { color: inherit !important; text-decoration: none; }
.bst-fasce th small { font-weight: 400; color: var(--bp-tenue); }
.bst-fasce td { padding: 5px 0; }
.bst-fasce td > * { vertical-align: middle; }
.bst-fascia-gs { width: 50%; text-align: right; }
.bst-fascia-gf { text-align: left; }
.bst-fascia-barra { display: inline-block; width: calc(100% - 64px); height: 12px; }
.bst-fascia-barra span { display: block; height: 100%; border-radius: 3px; background: var(--bp-rosso); }
.bst-fascia-gs .bst-fascia-barra span { margin-left: auto; background: #b9bcc3; }
.bst-fascia-gs .bst-fascia-barra { margin-right: 4px; }
.bst-fascia-gf .bst-fascia-barra { margin-left: 4px; }
.bst-pubblico .bst-fascia-gf .bst-fascia-barra,
.bst-due .bst-fascia-gf .bst-fascia-barra { width: calc(100% - 80px); margin-left: 0; margin-right: 6px; }
.bst-num { display: inline-block; min-width: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bst-fascia-gs .bst-num { text-align: right; }

@media (max-width: 700px) {
	.bst-due { grid-template-columns: 1fr; gap: 12px; }
	.bst-numero strong { font-size: 1.6rem; }
	.bst-numeri { grid-template-columns: repeat(2, 1fr); }
	.bst-record span { display: block; min-width: 0; }
	.bst-percorso { height: 130px; gap: 2px; }
	.bst-barra span { display: none; }
	.bst-vnp span { font-size: 0.7rem; }
}
