/* ==========================================================================
   VOLLEYSCORE — Ruban des sets et scénarios au classement
   ========================================================================== */
.rb { padding:12px 12px 4px; border-bottom:1px solid var(--border); }
.rb-teams { display:flex; flex-wrap:wrap; gap:6px 16px; margin-bottom:10px; font-size:13px; font-weight:700; }
.rb-teams span { display:inline-flex; align-items:center; gap:6px; }
.rb-teams i { width:12px; height:12px; border-radius:2px; display:inline-block; }
.rb-row { display:grid; grid-template-columns:repeat(var(--n, 5), minmax(0, 190px)); gap:8px; }
.rb-set { position:relative; display:flex; flex-direction:column; gap:6px; padding:9px 10px 0; border:1px solid var(--border); border-radius:3px; background:var(--bg-card); overflow:hidden; min-height:118px; }
.rb-set.unknown { background:var(--bg-subtle); border-style:dashed; }
.rb-set.live { border-color:var(--red); box-shadow:0 0 0 1px var(--red) inset; }
.rb-top { display:flex; justify-content:space-between; align-items:center; gap:4px; font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--text-dim); }
.rb-tag { font-style:normal; font-size:10px; font-weight:900; padding:1px 5px; border-radius:2px; letter-spacing:.04em; }
.rb-tag.ot { background:#FEF3C7; color:#7A5300; }
.rb-tag.cl { background:var(--bg-subtle); color:var(--text-muted); box-shadow:inset 0 0 0 1px var(--border); }
.rb-tag.live { background:var(--red); color:#fff; animation:rbPulse 1.6s ease-in-out infinite; }
@keyframes rbPulse { 50% { opacity:.55; } }
.rb-score { display:flex; align-items:baseline; justify-content:center; gap:6px; font-family:'JetBrains Mono',monospace; font-size:24px; font-weight:800; color:var(--text-muted); }
.rb-score b.w { color:var(--text-main); }
.rb-score i { font-style:normal; color:var(--text-dim); font-size:16px; }
.rb-split { display:flex; height:6px; border-radius:3px; overflow:hidden; background:var(--bg-subtle); }
.rb-split span { display:block; height:100%; }
.rb-run { text-align:center; font-size:12px; font-family:'JetBrains Mono',monospace; color:var(--text-dim); }
.rb-run::before { content:'Sets '; font-family:Inter,sans-serif; }
.rb-set.unknown .rb-run::before, .rb-set.live .rb-run::before { content:''; }
.rb-win { margin:2px -10px 0; height:26px; display:flex; align-items:center; justify-content:center; }
.rb-win .team-logo, .rb-win img { filter:drop-shadow(0 0 2px rgba(255,255,255,.9)); }
.rb-facts { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.rb-fact { display:inline-flex; align-items:center; gap:6px; padding:4px 9px; border-radius:3px; background:var(--green-soft); color:var(--green); font-weight:800; font-size:12px; }
.rb-chart { margin-top:12px; }
.rb-chart-lbl { display:flex; justify-content:space-between; gap:8px; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:var(--text-dim); }
.rb-chart-lbl span:first-child, .rb-chart-lbl span:last-child { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:34%; }
.rb-chart svg { width:100%; height:110px; display:block; overflow:visible; }
.rb-zero { stroke:var(--border-strong); stroke-width:1; stroke-dasharray:4 4; }
.rb-grid { stroke:var(--border); stroke-width:1; }
.rb-line { fill:none; stroke:var(--text-main); stroke-width:2; vector-effect:non-scaling-stroke; }
.rb-val { font-family:'JetBrains Mono',monospace; font-size:11px; font-weight:800; fill:var(--text-muted); }

/* Scénarios */
.sc-table td, .sc-table th { white-space:nowrap; }
.sc-table th { font-size:12px; }
.sc-table th .team-logo, .sc-table th img { vertical-align:middle; }
.sc-rank { display:inline-flex; align-items:center; justify-content:center; min-width:36px; padding:2px 6px; border-radius:3px; font-family:'JetBrains Mono',monospace; font-weight:800; background:var(--bg-subtle); }
.sc-rank.po { background:var(--green-soft); color:var(--green); }
.sc-table em { font-style:normal; font-size:12px; font-weight:800; margin-left:6px; font-family:'JetBrains Mono',monospace; }
.sc-table em.up { color:var(--green); } .sc-table em.down { color:#A50D25; } .sc-table em.eq { color:var(--text-dim); }
.sc-table tr.actual td { background:#FEF9E7; }
.sc-act { font-size:11px; font-weight:800; color:#7A5300; background:#FEF3C7; padding:1px 6px; border-radius:2px; margin-left:4px; font-family:Inter,sans-serif; }
[data-theme="dark"] .sc-table tr.actual td { background:rgba(212,160,23,.12); }

@media (max-width: 760px) {
  .rb-row { grid-template-columns:repeat(var(--n, 5), minmax(64px, 1fr)); overflow-x:auto; scrollbar-width:none; padding-bottom:4px; }
  .rb-row::-webkit-scrollbar { display:none; }
  .rb-score { font-size:18px; }
  .rb-set { padding:7px 6px 0; min-height:104px; }
  .rb-win { margin:2px -6px 0; }
  .rb-run::before { content:''; }
}

.set-table td.set-cur { color:var(--red); font-weight:800; box-shadow:inset 0 -2px 0 var(--red); }

/* Écart de points set par set (barres divergentes aux couleurs des clubs) */
.rb-flow { margin-top: 4px; }
.rb-flow-h { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.rb-flow-h span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-flow-h i { flex: none; width: 10px; height: 10px; border-radius: 2px; }
.rb-flow-g { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; margin-top: 26px; margin-bottom: 20px; }
/* couleurs du site (rouge = domicile, bleu = extérieur) : toujours lisibles, même quand le club joue en noir */
.rb-flow .h { background: var(--court, #E11D2E); } .rb-flow .a { background: var(--zone, #4AA3DF); }
.rb-c { display: grid; grid-template-rows: 64px auto 64px; }
.rb-up, .rb-dn { position: relative; display: flex; justify-content: center; }
.rb-up { align-items: flex-end; } .rb-dn { align-items: flex-start; }
.rb-up span, .rb-dn span { position: relative; width: min(46px, 70%); min-height: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.rb-up span { border-radius: 6px 6px 0 0; } .rb-dn span { border-radius: 0 0 6px 6px; }
.rb-up em, .rb-dn em { position: absolute; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px; font-weight: 800; color: var(--text-main); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rb-up em { bottom: calc(100% + 3px); } .rb-dn em { top: calc(100% + 3px); }
.rb-axis { display: grid; justify-items: center; gap: 1px; padding: 6px 0; border-top: 1px solid var(--border-strong, var(--border)); border-bottom: 1px solid var(--border); }
.rb-axis b { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--text-dim); }
.rb-axis small { font-size: 12px; font-weight: 700; color: var(--text-main); font-variant-numeric: tabular-nums; }
.rb-flow-t { margin: 10px 0 0; font-size: 13px; color: var(--text-muted); }
.rb-flow-t b { color: var(--text-main); }
