/* Stadbeat Season Bar — CSS isolé (préfixe .sbsb). Bloc compact : 2 moitiés identiques (50/50), 2 lignes chacune. */
.sbsb{--sbsb-max:1280px;--sbsb-pad:max(14px,calc((100vw - var(--sbsb-max))/2 + 14px));position:relative;width:100%;margin:0;padding:0;background:var(--sbsb-bg,#0b0b12);color:var(--sbsb-text,#fff);font-family:inherit;font-size:13px;line-height:1.2;-webkit-text-size-adjust:100%;text-align:left;z-index:90;transition:transform .25s ease,opacity .25s ease}
.sbsb,.sbsb *,.sbsb *::before,.sbsb *::after{box-sizing:border-box}
.sbsb b,.sbsb strong{font-weight:800}
.sbsb small{font-size:inherit}

.sbsb[data-placement="auto"]:not(.sbsb--ready){visibility:hidden;height:0;overflow:hidden}
.sbsb--pinned{position:fixed;left:0;right:0;top:0}
.sbsb--hidden{transform:translateY(-100%);opacity:0;visibility:hidden;pointer-events:none}
.sbsb-spacer{display:block;width:100%;height:0;pointer-events:none}

/* Une colonne coupée en deux moitiés identiques */
.sbsb__inner{display:grid;grid-template-columns:1fr 1fr;align-items:stretch}
.sbsb--solo .sbsb__inner{grid-template-columns:1fr}
.sbsb__half{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:5px;padding:7px 18px;height:100%}
.sbsb__l1,.sbsb__l2{display:flex;align-items:center;gap:8px;min-width:0}
.sbsb__l1{justify-content:space-between;min-height:20px}
.sbsb__l2{min-height:16px}

/* Moitié gauche : fond blanc ; moitié droite : fond du bloc ; trait vertical fin au centre */
.sbsb__fin{background:#fff;color:#0f172a;padding-left:var(--sbsb-pad)}
.sbsb__season{padding-right:var(--sbsb-pad);box-shadow:inset 1px 0 0 rgba(255,255,255,.14)}
.sbsb--solo .sbsb__season{padding-left:var(--sbsb-pad);box-shadow:none}

.sbsb__txt{display:flex;align-items:baseline;gap:8px;min-width:0;flex:1 1 auto}
.sbsb__fin-title{font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sbsb__fin-sub{font-size:11px;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sbsb__fig{display:flex;align-items:center;gap:8px;flex:0 0 auto;font-variant-numeric:tabular-nums;white-space:nowrap}
.sbsb__amounts{display:inline-flex;align-items:baseline}
.sbsb__cur{font-size:15px;font-weight:800;color:#0f172a}
.sbsb__goal,.sbsb__remaining{font-size:11px;color:#475569}
.sbsb__pct{font-size:11px;font-weight:700;padding:1px 8px;border-radius:999px;background:#fff3c4;color:#5c4400}

.sbsb__track{position:relative;flex:1 1 auto;height:var(--sbsb-h,10px);max-height:12px;background:var(--sbsb-track,#e5e7eb);border-radius:var(--sbsb-r,999px);overflow:hidden}
.sbsb__fill{position:absolute;top:0;bottom:0;left:0;width:var(--sbsb-p,0%);background:linear-gradient(90deg,var(--sbsb-start,#ffcc03),var(--sbsb-end,#f59e0b));border-radius:inherit;transition:width 1.2s cubic-bezier(.22,1,.36,1)}
.sbsb__ms{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:rgba(15,23,42,.35);z-index:2}

.sbsb__season-title{font-size:12px;font-weight:800;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sbsb__brand{opacity:.75;font-weight:600}
.sbsb__badge{font-size:10px;font-weight:700;padding:1px 8px;border-radius:999px;border:1px solid var(--sbsb-accent,#ffcc03);color:var(--sbsb-accent,#ffcc03);white-space:nowrap;flex:0 0 auto}
.sbsb__badge[data-state="active"]{background:var(--sbsb-accent,#ffcc03);color:#111}
.sbsb__cd-label{font-size:11px;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sbsb__cd{display:inline-flex;gap:4px;margin-left:auto;flex:0 0 auto;font-variant-numeric:tabular-nums}
.sbsb__unit{display:inline-flex;align-items:baseline;justify-content:center;gap:2px;padding:1px 6px;border-radius:5px;background:rgba(255,255,255,.1);min-width:38px}
.sbsb__unit b{font-size:14px;font-weight:800;color:var(--sbsb-accent,#ffcc03)}
.sbsb__unit small{font-size:10px;opacity:.8}
.sbsb__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Tablette */
@media (max-width:1024px){
	.sbsb__half{padding:6px 12px}
	.sbsb__fin{padding-left:14px}.sbsb__season{padding-right:14px}
	.sbsb__fin-sub,.sbsb__brand,.sbsb__remaining{display:none}
}
/* Mobile : on garde les deux moitiés côte à côte (hauteur minimale), contenu essentiel seulement */
@media (max-width:600px){
	.sbsb__half{padding:5px 8px;gap:4px}
	.sbsb__fin-title,.sbsb__cd-label{display:none}
	.sbsb__l1{gap:4px}
	.sbsb__cur{font-size:13px}.sbsb__goal{font-size:10px}
	.sbsb__pct{font-size:10px;padding:0 6px}
	.sbsb__season-title{font-size:11px}
	.sbsb__badge{font-size:9px;padding:0 6px;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
	.sbsb__season-title{flex:0 0 auto;overflow:visible}
	.sbsb__l2{justify-content:space-between}
	.sbsb__cd{margin-left:0;gap:2px;width:100%;justify-content:space-between}
	.sbsb__unit{min-width:0;padding:0 3px;flex:1}
	.sbsb__unit b{font-size:12px}.sbsb__unit small{font-size:9px}
	.sbsb__track{max-height:8px}
}
@media (max-width:360px){
	.sbsb__goal,.sbsb__pct{display:none}
	.sbsb__badge{display:none}
}
@media (prefers-reduced-motion:reduce){.sbsb,.sbsb__fill{transition:none!important}}
