/* public/assets/css/pages/standings.css
   Uses currentColor + transparent greys so it works in both Light and Dark mode. */
.st { margin-top: 18px; }
.st-empty, .st-note { opacity: .75; font-size: .92rem; margin: 6px 0 14px; }
.st-note { display: flex; align-items: center; gap: 8px; }
.st-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: st-pulse 1.4s infinite; }
@keyframes st-pulse { 50% { opacity: .3; } }

.st-blocks { display: grid; gap: 18px; }
.st-blocks--groups { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }

.st-card { border-radius: 10px; }
.st-card__title { font-size: 1rem; font-weight: 600; margin: 0 0 8px; }
.st-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.st-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.st-table th {
  background: rgba(127, 127, 127, .22); font-weight: 600; text-align: center;
  padding: 9px 8px; white-space: nowrap;
}
.st-table td { text-align: center; padding: 10px 8px; border-bottom: 1px solid rgba(127, 127, 127, .22); white-space: nowrap; }
.st-table tbody tr:hover { background: rgba(127, 127, 127, .08); }
.st-table th.st-team, .st-table td.st-team { text-align: start; }
.st-table .st-pos { width: 36px; }

.st-team { display: table-cell; }
.st-logo { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; margin-inline-end: 8px; }
.st-name { vertical-align: middle; display: inline-block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.st-pts { font-weight: 700; }
.st-pos-gd { color: #22c55e; }
.st-neg-gd { color: #ef4444; }

/* Qualification zones */
.st-row--q td.st-pos  { box-shadow: inset 3px 0 0 #22c55e; }
.st-row--q3 td.st-pos { box-shadow: inset 3px 0 0 #f59e0b; }
[dir="rtl"] .st-row--q td.st-pos  { box-shadow: inset -3px 0 0 #22c55e; }
[dir="rtl"] .st-row--q3 td.st-pos { box-shadow: inset -3px 0 0 #f59e0b; }

/* Form (last 5) */
.st-form { text-align: start; }
.st-f {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px;
  font-size: .68rem; font-weight: 700; color: #fff; margin-inline-end: 3px;
}
.st-f--W { background: #22c55e; }
.st-f--D { background: #9ca3af; }
.st-f--L { background: #ef4444; }

/* "Voir plus" */
.st-more { margin-top: 18px; }
.st-more > summary {
  cursor: pointer; list-style: none; text-align: center; padding: 10px; font-weight: 500;
}
.st-more > summary::-webkit-details-marker { display: none; }
.st-more > summary::after { content: " ⌄"; }
.st-more[open] > summary { display: none; }

.st-legend { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; padding: 0; margin: 14px 0 0; font-size: .85rem; opacity: .85; }
.st-legend li { display: flex; align-items: center; gap: 6px; }
.st-legend__mark { width: 12px; height: 12px; border-radius: 3px; }
.st-legend__mark--q  { background: #22c55e; }
.st-legend__mark--q3 { background: #f59e0b; }

/* Phone */
@media (max-width: 520px) {
  .st-hide-sm { display: none; }
  .st-table { font-size: .85rem; }
  .st-table th, .st-table td { padding: 8px 5px; }
  .st-name { max-width: 120px; }
}

/* Group cards (Poules) */
.st-groups__title { font-size: 1rem; font-weight: 600; margin: 0 0 12px; }
.st-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.st-group-card {
  display: grid; place-items: center; min-height: 100px; padding: 12px; border-radius: 6px;
  background: rgba(127, 127, 127, .28); color: inherit; text-decoration: none; font-size: .95rem;
  transition: background .15s, transform .15s;
}
.st-group-card:hover, .st-group-card:focus-visible { background: rgba(127, 127, 127, .4); color: inherit; transform: translateY(-1px); }
.st-more .st-groups { margin-top: 10px; }
.st-back { display: inline-block; margin-bottom: 10px; color: inherit; opacity: .75; text-decoration: none; font-size: .9rem; }
.st-back:hover { opacity: 1; color: inherit; }
@media (max-width: 520px) { .st-group-card { min-height: 72px; } }
