.ggultv-st {
  --st-bg: #ffffff;
  --st-border: #e6e8eb;
  --st-text: #1a1d21;
  --st-muted: #6b7280;
  --st-accent: #1d4ed8;
  --st-head: #f4f6f9;
  --st-win: #16a34a;
  --st-loss: #e11d48;
  --st-draw: #9ca3af;
  max-width: 720px;
  margin: 0 auto;
  background: var(--st-bg);
  border: 1px solid var(--st-border);
  border-radius: 12px;
  overflow: hidden;
  color: var(--st-text);
  font-size: 15px;
  line-height: 1.4;
}

.ggultv-st__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(90deg, #0f172a, #1e293b);
  color: #fff;
}
.ggultv-st__title { font-weight: 700; letter-spacing: .2px; }
.ggultv-st__updated { font-size: 12px; color: #cbd5e1; }

.ggultv-st__msg { padding: 28px 16px; text-align: center; color: var(--st-muted); }

.st-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.st-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.st-table th, .st-table td {
  padding: 9px 8px;
  border-top: 1px solid var(--st-border);
  text-align: center;
}
.st-table thead th {
  border-top: 0;
  background: var(--st-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--st-muted);
}
.st-c { text-align: center; }
.st-rank { font-weight: 800; }
.st-pct { font-weight: 700; }

.st-team { text-align: left; }
.st-table td.st-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.st-logo { width: 22px; height: 22px; object-fit: contain; flex: none; }

.st-table tbody tr:nth-child(odd) { background: rgba(0,0,0,.015); }

/* [ggultv_rank] 최근 5경기 배지 — 배경 없는 테두리형 1:1 정사각, 오른쪽=가장 최근 */
.st-form { display: inline-flex; gap: 3px; vertical-align: middle; white-space: nowrap; }
.st-fb {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  background: none;
}
.st-fb--w { color: #22c55e; border-color: #22c55e; }
.st-fb--d { color: #9ca3af; border-color: #9ca3af; }
.st-fb--l { color: #ef4444; border-color: #ef4444; }

/* 최근5 색칠 점 */
.st-last5 { white-space: nowrap; }
.st-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 2px;
  vertical-align: middle;
}
.st-dot.st-w { background: var(--st-win); }
.st-dot.st-l { background: var(--st-loss); }
.st-dot.st-d { background: var(--st-draw); }
.st-none { color: var(--st-muted); }

@media (max-width: 480px) {
  .ggultv-st { font-size: 13px; }
  .st-table th, .st-table td { padding: 7px 6px; }
  .st-logo { width: 18px; height: 18px; }
  .st-dot { width: 9px; height: 9px; margin: 0 1.5px; }
}

@media (prefers-color-scheme: dark) {
  .ggultv-st {
    --st-bg: #0f1115;
    --st-border: #262a31;
    --st-text: #e5e7eb;
    --st-muted: #9aa3af;
    --st-head: #161a20;
  }
  .st-table tbody tr:nth-child(odd) { background: rgba(255,255,255,.025); }
}

/* [ggultv_rank] 는 컨테이너 전역 최대 폭 100% 사용(컬럼이 많음 — 2026-07-25 사용자 요청).
   [ggultv_standings] 는 기존 720px 유지. */
.ggultv-st.ggultv-rk { max-width: 100%; }

/* 그룹(컨퍼런스) 제목 — [ggultv_rank] 분할 순위표(MLS 동/서 등) */
.ggultv-st .st-group { margin: 16px 12px 8px; font-size: 14px; font-weight: 700; color: var(--st-text); }
.ggultv-st .st-group:first-child, .ggultv-st .st-group:first-of-type { margin-top: 12px; }
.ggultv-rk__src { padding: 8px 12px 10px; font-size: 11px; text-align: right; color: var(--st-muted); }
