/* Sport specific additions. Keep the existing OnziQ layout and futsal components. */
.tbwrap:has(svg.tboard) [data-sport="basketball"],.tbwrap:has(svg.tboard) [data-sport="handball"],.tbwrap:has(svg.tboard) [data-sport^="rugby"]{min-width:0}
@media (max-width:700px){.oqf-page .oqf-team{min-width:0}.oqf-page .oqf-team .btn{white-space:normal;text-align:center;line-height:1.25}.oqf-page .oqf-score b{overflow-wrap:anywhere}}
.oqm-roster{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}.oqm-player{display:grid;gap:12px;min-width:0}.oqm-player-open{display:flex;align-items:center;gap:12px;text-align:start;width:100%;min-width:0;background:transparent;color:inherit;border:0;padding:0;cursor:pointer}.oqm-player-open>span:last-child{min-width:0}.oqm-player-open b{display:block;overflow-wrap:anywhere}.oqm-player-open small{display:block;color:var(--muted);margin-top:4px}.oqm-jersey{width:72px;min-width:72px;height:72px;display:grid;place-items:center;background:#e9edef;border-radius:14px;overflow:hidden}.oqm-jersey svg{max-width:92%;max-height:92%}.oqm-player-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.oqm-player-stats>span{display:grid;gap:2px;text-align:center;background:var(--bg2,#242a28);border-radius:12px;padding:10px 5px;font-size:.76rem;color:var(--muted);overflow-wrap:anywhere}.oqm-player-stats b{font-size:1.4rem;color:var(--accent,#d4ff3a)}.oqm-sheet{display:grid;gap:18px}.oqm-profile{display:flex;gap:16px;align-items:center}.oqm-profile-shirt{width:120px;min-width:120px;height:120px;background:#e9edef;border-radius:20px;display:grid;place-items:center;overflow:hidden}.oqm-profile-shirt svg{max-width:94%;max-height:94%}.oqm-profile>div{min-width:0}.oqm-profile p{overflow-wrap:anywhere}.oqm-player-open:focus-visible{outline:3px solid var(--accent,#d4ff3a);outline-offset:3px;border-radius:6px}@media(max-width:420px){.oqm-profile-shirt{width:96px;min-width:96px;height:96px}.oqm-player-stats{gap:4px}.oqm-player-stats>span{font-size:.7rem}}
@media(max-width:900px) and (orientation:portrait){
  .tbgrid:not(.focus):has(.tbwrap[data-sport="basketball"]) .tbside,
  .tbgrid:not(.focus):has(.tbwrap[data-sport="handball"]) .tbside,
  .tbgrid:not(.focus):has(.tbwrap[data-sport="rugby15"]) .tbside,
  .tbgrid:not(.focus):has(.tbwrap[data-sport="rugby7"]) .tbside{order:0!important}
}
@media(max-width:640px){
  .oqm-live .oqf-team{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}
  .oqm-live .oqf-team h3{grid-column:1/-1}
  .oqm-live .oqf-team button{min-width:0;min-height:54px}
}

/* Actions de personnalisation et de remise à zéro, accessibles sans chercher dans la page. */
.oqm-player-actions{display:flex;flex-wrap:wrap;gap:8px}.oqm-player-actions .btn{flex:1 1 180px;min-height:46px}.tn-reset-row{margin:10px 0}.oqm-reset-confirm{width:100%;margin:8px 0}.oqm-reset-confirm .row{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:520px){.oqm-player-actions .btn{flex-basis:100%}.tn-reset-row .btn{flex:1 1 100%;min-height:46px}.oqm-reset-confirm .row .btn{flex:1 1 100%;min-height:46px}}

/* Statistiques multisport lisibles sur petits écrans, sans comprimer les colonnes. */
.oqm-bilan{min-width:0}.oqm-stats-table{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}.oqm-stats-table table{min-width:540px}.oqm-stats-table th,.oqm-stats-table td{padding:10px 12px}.oqm-leader-list,.oqm-result-list{display:grid;gap:8px}.oqm-leader,.oqm-result{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:12px;border-radius:14px;background:var(--bg2,#242a28);min-width:0}.oqm-leader b,.oqm-result b{min-width:0;overflow-wrap:anywhere}.oqm-leader-rank{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--bg,#111);font-weight:800;color:var(--accent,#d4ff3a)}.oqm-leader>span:nth-last-child(2),.oqm-result small{font-size:.82rem;color:var(--muted)}.oqm-leader strong,.oqm-result strong{white-space:nowrap;color:var(--accent,#d4ff3a)}.oqm-result{grid-template-columns:minmax(0,1fr) auto}.oqm-result .oqf-date,.oqm-result small{grid-column:1/-1}.oqm-result b{display:flex;justify-content:space-between;gap:8px}.oqm-result small{line-height:1.4}
@media(min-width:561px){.oqm-scroll-hint{display:none}}
@media(max-width:560px){.oqm-leader{grid-template-columns:auto minmax(0,1fr) auto}.oqm-leader>span:nth-last-child(2){grid-column:2;grid-row:2}.oqm-leader strong{grid-column:3;grid-row:1/3}.oqm-result{padding:10px}.oqm-stats-table th,.oqm-stats-table td{padding:9px 8px}}
