/*
 * J1 順位表（#standings-container）— プレミアリーグ公式に近い見た目・挙動
 * team.html / en/team.html のみ読込。tables.css の汎用 .match-table は上書きしないよう ID スコープで完結。
 *
 * --- タイポグラフィ: サイト全体との差（全体ルール検討用）---
 * - ファミリー: PL の専用フォントは使わず var(--font-body)（base.css: Inter 系）のまま。
 * - サイズ: 表本体 ~0.875rem、見出し th は ja 0.875rem / en 0.8125rem。
 * - 行間・字間: 本ブロックのみ line-height / letter-spacing を指定（PL の詰まり感に寄せる）。
 * - 日本語: ja-font-weights.css が .table-scroll-wrapper thead th に font-weight:500 をかけうる。
 *   本コンテナでは thead th を PL 寄せで 600 に上書き。
 * - PL 公式はセル間の縦罫線なし・行区切りはごく薄い横線のみ。tables.css の .ts-table 共通レイヤーが
 *   偶数行背景・セル枠を付けるため、.ts-table--standings では #standings-container 内で打ち消す。
 * - 横スクロール時は順位・チーム 2 列 sticky。card の overflow:hidden は壊しうるため visible＋枠はラッパーで角丸。
 * - base.css の .reveal-on-scroll は transform/filter で containing block を作り、表内 sticky が「内側スクロール」に
 *   対して効かなくなる。順位表を包む .container.reveal-card では transform を無効化する。
 */

/* reveal: sticky 列は transform 祖先と相性が悪い（スクロール枠がずれる） */
section.container.reveal-card:has(#standings-container) {
  transform: none !important;
  filter: none !important;
  will-change: auto !important;
}

section.container.reveal-card:has(#standings-container).reveal-on-scroll:not(.is-revealed) {
  opacity: 0;
  transform: none !important;
  filter: none !important;
}

section.container.reveal-card:has(#standings-container).reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: none !important;
  filter: none !important;
}

/* base.css: .container:hover の translate も sticky を壊す */
@media (hover: hover) and (pointer: fine) {
  section.container.reveal-card:has(#standings-container):hover {
    transform: none !important;
  }
}

/* ---- トークン（東地区・西地区で同一列幅） ---- */
#standings-container {
  --ts-header-bg: #ffffff;
  --ts-header-fg: #5f5f58;
  --ts-body-fg: #242424;
  --ts-body-fg-muted: #4a4a45;
  --ts-row-divider: rgba(0, 0, 0, 0.06);
  --ts-row-hover: #f5f5f4;
  --ts-rank-cell-bg: #ffffff;
  --ts-standings-font-body: 0.875rem;
  --ts-standings-font-tablet: 0.8125rem;
  --ts-standings-line-height: 1.4;
  --ts-standings-letter-spacing: -0.01em;
  --st-rank-w: 38px;
  --st-pts-w: 36px;
  --st-compact-w: 32px;
  --st-gd-w: 2.75rem;
  --st-form-w: 132px;
  --ts-segment-track: #e8eae8;
  margin-inline: calc(-1 * var(--container-padding-base, 15px));
  width: calc(100% + 2 * var(--container-padding-base, 15px));
  max-width: none;
  box-sizing: border-box;
}

/* tables.css `.ts-table` 共通: 偶数行の薄グレー・全周セル枠を順位表では使わない（PL は白基調・横罫のみ） */
#standings-container .ts-table--standings .ts-table__row:nth-child(even) .ts-table__td {
  background-color: #fff !important;
}

#standings-container .ts-table--standings .ts-table__th,
#standings-container .ts-table--standings .ts-table__td {
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
}

#standings-container .ts-table--standings .ts-table__row.is-hoverable:not(.is-highlight):hover .ts-table__td {
  background: var(--ts-row-hover) !important;
}

#standings-container .ts-table--standings .ts-table__row.is-highlight .ts-table__td {
  background: #e6f3ff !important;
}

/* tables.css の scrollbar-gutter: stable both-edges は左にも溝が付き sticky とズレるため無効化 */
/* 角丸内側で先頭/末尾列が欠けないよう横方向に僅かなインセット（sticky の left はパディング内縁基準） */
#standings-container .table-scroll-wrapper.ts-table--standings {
  padding-block: 0 !important;
  padding-inline: 8px 16px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border: none !important;
  scrollbar-gutter: auto;
}

/* 見出し省略禁止 */
#standings-container .standings-conference-heading {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: var(--color-site-navy, #1a2f5e);
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: keep-all;
  max-width: none;
}

#standings-container .standings-conference-heading:first-child {
  margin-top: 0;
}

/* 横スクロール時も rank + club がズレず固定 */
#standings-container .match-table,
#standings-container .sticky-match-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-family: var(--font-body, inherit);
  font-size: var(--ts-standings-font-body);
  line-height: var(--ts-standings-line-height);
  letter-spacing: var(--ts-standings-letter-spacing);
  font-variant-numeric: tabular-nums;
}

/* 横スクロール: 順位・チーム 2 列 sticky。縦の実線は付けず、チーム列右縁のみ弱い影 */
#standings-container .ts-table__th.is-sticky-left-1,
#standings-container .ts-table__td.is-sticky-left-1 {
  position: sticky !important;
  left: 0;
  z-index: 140;
  box-shadow: none;
}

#standings-container .ts-table__th.is-sticky-left-1 {
  background: var(--ts-header-bg) !important;
  color: var(--ts-header-fg) !important;
}

#standings-container .ts-table__td.is-sticky-left-1.col-rank {
  background: var(--ts-rank-cell-bg) !important;
}

#standings-container .ts-table__th.is-sticky-left-2,
#standings-container .ts-table__td.is-sticky-left-2 {
  position: -webkit-sticky !important;
  position: sticky !important;
  left: var(--ts-sticky-left-col1, 38px) !important;
  z-index: 135;
  box-shadow: 10px 0 18px -12px rgba(0, 0, 0, 0.07);
}

#standings-container .ts-table__th.is-sticky-left-2 {
  background: var(--ts-header-bg) !important;
  color: var(--ts-header-fg) !important;
  box-shadow: 10px 0 18px -12px rgba(0, 0, 0, 0.07);
}

#standings-container .ts-table__td.is-sticky-left-2.col-team {
  background: #fff !important;
}

/* シェル: モバイルはタブ用カードと表カードを分離 */
#standings-container .ts-standings-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  #standings-container .ts-standings-toolbar-card {
    display: none;
  }

  #standings-container .ts-standings-toolbar-card .ts-standings-tabs {
    display: none;
  }

  #standings-container .ts-standings-shell {
    gap: 0;
  }
}

/* タブレット: 一段小さめの字体＋行の縦余白を少し確保 */
@media (min-width: 769px) and (max-width: 1024px) {
  #standings-container .match-table,
  #standings-container .match-table th,
  #standings-container .match-table td {
    font-size: var(--ts-standings-font-tablet);
  }

  #standings-container .match-table thead th {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  #standings-container .match-table tbody td {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }
}

/* 769px 以上: 列幅を CSS 変数で固定（複数表で一致） */
@media (min-width: 769px) {
  #standings-container .match-table {
    table-layout: fixed !important;
    --ts-sticky-left-col1: var(--st-rank-w);
  }

  #standings-container .match-table .col-rank {
    width: var(--st-rank-w) !important;
    min-width: var(--st-rank-w) !important;
    max-width: var(--st-rank-w) !important;
    box-sizing: border-box !important;
  }

  /* チーム名は可変だが広がりすぎないよう上限（PL 寄せ） */
  #standings-container .match-table .col-team {
    width: auto !important;
    min-width: 7rem !important;
    max-width: min(12.5rem, 36vw) !important;
    box-sizing: border-box !important;
  }

  #standings-container .match-table .col-points {
    width: var(--st-pts-w) !important;
    min-width: var(--st-pts-w) !important;
    max-width: var(--st-pts-w) !important;
    box-sizing: border-box !important;
  }

  #standings-container .match-table .col-compact {
    width: var(--st-compact-w) !important;
    min-width: var(--st-compact-w) !important;
    max-width: var(--st-compact-w) !important;
    box-sizing: border-box !important;
  }

  #standings-container .match-table .ts-col-gd {
    width: var(--st-gd-w) !important;
    min-width: var(--st-gd-w) !important;
    max-width: var(--st-gd-w) !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  #standings-container .match-table .ts-col--form {
    width: var(--st-form-w) !important;
    min-width: var(--st-form-w) !important;
    max-width: 140px !important;
    box-sizing: border-box !important;
  }
}

/* 得失点差: 狭列（+/- 付きでも PL に近い幅） */
#standings-container .ts-col-gd {
  max-width: var(--st-gd-w, 2.75rem) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}

#standings-container td.ts-col-gd {
  font-weight: 700;
}

#standings-container .ts-col-gd.goal-diff-positive {
  color: #0066cc !important;
}

#standings-container .ts-col-gd.goal-diff-negative {
  color: #cc0000 !important;
}

#standings-container .ts-col-gd.goal-diff-zero {
  color: var(--color-text, #111) !important;
}

/* モバイル */
@media (max-width: 768px) {
  #standings-container {
    margin-inline: 0;
    width: 100%;
    max-width: 100%;
  }

  #standings-container .standings-conference-heading {
    margin-left: 0;
    margin-right: 0;
    padding-inline: 0;
  }

  /* ネガティブマージンは collapsible の overflow:hidden で角丸・タブが左右に切れるため使わない */
  #standings-container .ts-standings-shell {
    margin-inline: 0;
    width: 100%;
    max-width: 100%;
  }

  /* PL 風セグメントコントロール（トラック一体） */
  #standings-container .ts-standings-toolbar-card {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--ts-border, #e5e7eb);
    background: var(--color-surface, #fff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }

  #standings-container .ts-standings-toolbar-card .ts-standings-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.25rem;
    margin: 0;
    padding: 0.35rem;
    width: 100%;
    box-sizing: border-box;
    background: var(--ts-segment-track);
    border: none;
  }

  #standings-container .ts-standings-toolbar-card .ts-standings-tab {
    flex: 1 1 0;
    min-width: 0;
    appearance: none;
    border: none;
    margin: 0;
    background: transparent;
    color: var(--ts-header-fg);
    padding: 0.5rem 0.35rem;
    border-radius: 0.55rem;
    font-family: var(--font-body, inherit);
    font-size: var(--font-sm, 0.85rem);
    font-weight: 600;
    line-height: var(--ts-standings-line-height);
    letter-spacing: var(--ts-standings-letter-spacing);
    cursor: pointer;
    box-shadow: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  }

  #standings-container .ts-standings-toolbar-card .ts-standings-tab.is-active {
    background: var(--color-surface, #fff);
    color: var(--color-text, #111);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }

  #standings-container .ts-standings-toolbar-card .ts-standings-tab:focus-visible {
    outline: 2px solid var(--color-site-navy, #1a2f5e);
    outline-offset: 2px;
  }

  #standings-container .ts-standings-table-card {
    border-radius: 1rem;
    overflow: visible;
    border: 1px solid var(--ts-border, #e5e7eb);
    background: var(--color-surface, #fff);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  #standings-container .ts-standings-table-card .table-scroll-wrapper.ts-table--standings {
    margin: 0;
    border: none;
    border-radius: 1rem;
    box-shadow: none;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    background: var(--color-surface, #fff);
  }

  #standings-container .standings-conference-heading + .ts-standings-shell {
    margin-top: 0;
  }

  #standings-container .standings-conference-heading:not(:first-child) {
    margin-top: 1.25rem;
  }
}

/* スクロール枠（PC）: 横のみ。縦の二重スクロールを避ける */
#standings-container .ts-standings-table-card .table-scroll-wrapper.ts-table--standings,
#standings-container .ts-standings-shell > .ts-standings-table-card .table-scroll-wrapper.ts-table--standings {
  margin: 0;
  padding-block: 0 !important;
  padding-inline: 8px 16px !important;
  box-sizing: border-box;
  scrollbar-gutter: auto;
}

@media (min-width: 769px) {
  #standings-container .ts-standings-table-card {
    border-radius: 1rem;
    overflow: visible;
    border: 1px solid var(--ts-border, #e5e7eb);
    background: var(--color-surface, #fff);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  #standings-container .ts-standings-table-card .table-scroll-wrapper.ts-table--standings {
    border-radius: 1rem;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    background: var(--color-surface, #fff);
  }
}

#standings-container .ts-table--standings .ts-col--form {
  padding-inline-end: 12px;
}

/* 表本体: PL 風（横罫線中心・ヘッダはライトサーフェス） */
#standings-container .match-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 100%;
  background: var(--color-surface, #fff);
}

#standings-container .match-table thead th {
  background: var(--ts-header-bg) !important;
  color: var(--ts-header-fg) !important;
  font-weight: 600;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
  border: none !important;
  border-bottom: 1px solid var(--ts-row-divider) !important;
  padding: 0.75rem 0.35rem;
  text-align: center;
  vertical-align: middle;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}

html[lang="en"] #standings-container .match-table thead th {
  text-transform: none;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

html[lang="ja"] #standings-container .match-table thead th {
  font-weight: 600;
  letter-spacing: 0.02em;
}

#standings-container .match-table thead th.col-rank,
#standings-container .match-table thead th.is-sticky-left-1:not(.col-team) {
  text-align: left;
  padding-left: 0.35rem;
  padding-right: 0.2rem;
}

#standings-container .match-table thead th.col-team,
#standings-container .match-table thead th.is-sticky-left-2 {
  text-align: left;
  padding-left: 0.45rem;
}

/* tables.css の「勝点ヘッダ白」を上書き（ライトサーフェス上で可読に） */
#standings-container .match-table thead th.col-points,
#standings-container .sticky-match-table thead th.col-points {
  color: var(--ts-header-fg) !important;
}

#standings-container .match-table tbody td {
  border: none !important;
  border-bottom: 1px solid var(--ts-row-divider) !important;
  padding: 0.7rem 0.3rem;
  text-align: center;
  vertical-align: middle;
  background: #fff !important;
  color: var(--ts-body-fg) !important;
  font-weight: 500;
}

#standings-container .match-table tbody td.col-rank {
  background: var(--ts-rank-cell-bg) !important;
  font-weight: 700;
  font-size: inherit;
  color: var(--ts-body-fg) !important;
  text-align: left;
  padding-left: 0.4rem;
}

#standings-container .match-table tbody td.col-team,
#standings-container .match-table tbody td.is-sticky-left-2 {
  text-align: left;
  padding-left: 0.65rem;
  font-weight: 700;
}

#standings-container .match-table tbody td.col-points {
  font-weight: 700 !important;
  font-size: inherit;
  color: var(--ts-body-fg) !important;
}

#standings-container .match-table tbody td.col-compact:not(.ts-col-gd) {
  color: var(--ts-body-fg-muted);
  font-weight: 500;
}

#standings-container .col-team .standings-team-link {
  font-weight: 700;
  color: var(--ts-body-fg) !important;
  text-decoration: none;
}

#standings-container .col-team .standings-team-link:hover {
  text-decoration: underline;
}

#standings-container .match-table tbody tr:last-child td {
  border-bottom: none !important;
}

#standings-container .match-table tbody tr {
  border-bottom: none;
}

#standings-container .match-table tbody tr:not(.standings-highlight):hover td {
  background: var(--ts-row-hover) !important;
}

#standings-container .match-table tbody tr:not(.standings-highlight):hover td.is-sticky-left-1.col-rank {
  background: var(--ts-row-hover) !important;
}

#standings-container .match-table tbody tr:not(.standings-highlight):hover td.is-sticky-left-2.col-team {
  background: var(--ts-row-hover) !important;
}

#standings-container .col-rank {
  color: var(--ts-body-fg) !important;
}

#standings-container .col-team {
  border: none !important;
  background-color: #fff !important;
}

#standings-container thead th.col-team {
  border: none !important;
}

/* 数値ブロックを PL に近い狭ピッチに */
#standings-container .match-table td.col-compact,
#standings-container .match-table th.col-compact {
  padding-left: 0.2rem !important;
  padding-right: 0.2rem !important;
}

#standings-container .match-table td.col-points,
#standings-container .match-table th.col-points {
  padding-left: 0.3rem !important;
  padding-right: 0.3rem !important;
}

#standings-container .match-table td.ts-col-gd,
#standings-container .match-table th.ts-col-gd {
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
}

#standings-container .match-table tbody tr.standings-highlight td {
  background: #e6f3ff !important;
}

#standings-container .match-table tbody tr.standings-highlight td.is-sticky-left-1.col-rank,
#standings-container .match-table tbody tr.standings-highlight td.is-sticky-left-2.col-team {
  background: #e6f3ff !important;
}

#standings-container .match-table tbody tr.standings-highlight:hover td,
#standings-container .match-table tbody tr.standings-highlight:hover td.is-sticky-left-1.col-rank,
#standings-container .match-table tbody tr.standings-highlight:hover td.is-sticky-left-2.col-team {
  background: #d6eaff !important;
}

@supports (background: color-mix(in srgb, red 50%, white)) {
  #standings-container .match-table tbody tr.standings-highlight td {
    background: var(--highlight-bg) !important;
  }

  #standings-container .match-table tbody tr.standings-highlight td.is-sticky-left-1.col-rank,
  #standings-container .match-table tbody tr.standings-highlight td.is-sticky-left-2.col-team {
    background: var(--highlight-bg) !important;
  }

  #standings-container .match-table tbody tr.standings-highlight:hover td,
  #standings-container .match-table tbody tr.standings-highlight:hover td.is-sticky-left-1.col-rank,
  #standings-container .match-table tbody tr.standings-highlight:hover td.is-sticky-left-2.col-team {
    background: color-mix(in srgb, var(--highlight-bg, #e6f3ff) 85%, #000) !important;
  }
}

/* タブレット〜PC の段階非表示 */
@media (max-width: 1200px) and (min-width: 769px) {
  #standings-container .ts-table--standings .ts-col--pl-2 {
    display: none !important;
  }
}

@media (max-width: 960px) and (min-width: 769px) {
  #standings-container .ts-table--standings .ts-col--pl-3 {
    display: none !important;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  #standings-container .ts-table--standings .ts-col--pl-4 {
    display: none !important;
  }
}

/* モバイル列表示切替 */
@media (max-width: 768px) {
  #standings-container .match-table[data-standings-view="short"] {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
    font-variant-numeric: tabular-nums;
    --ts-sticky-left-col1: 36px;
  }

  /* Form タブ: 表の最小幅と Form 列幅を確保（short 共通ルールより後で上書き） */
  #standings-container .match-table[data-standings-view="form"] {
    min-width: 300px !important;
    width: max(100%, 300px) !important;
    table-layout: fixed !important;
    font-variant-numeric: tabular-nums;
    --ts-sticky-left-col1: 36px;
  }

  /*
   * Full: fixed で順位列を固定し sticky の left と厳密に一致（若干余裕を見て欠けを防ぐ）。
   */
  #standings-container .match-table[data-standings-view="full"] {
    min-width: 840px !important;
    width: max(100%, 840px) !important;
    table-layout: fixed !important;
    font-variant-numeric: tabular-nums;
    --ts-sticky-left-col1: 52px;
  }

  /* Short / Form: PL に近い行の上下余白 */
  #standings-container .match-table[data-standings-view="short"] thead th,
  #standings-container .match-table[data-standings-view="short"] tbody td,
  #standings-container .match-table[data-standings-view="form"] thead th,
  #standings-container .match-table[data-standings-view="form"] tbody td {
    padding-top: 0.95rem !important;
    padding-bottom: 0.95rem !important;
  }

  #standings-container .match-table[data-standings-view="short"] .col-rank,
  #standings-container .match-table[data-standings-view="form"] .col-rank {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    padding: 0.95rem 4px !important;
    box-sizing: border-box !important;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Form タブは Pts 列なし（PL と同様） */
  #standings-container .match-table[data-standings-view="short"] .col-points {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 40px !important;
    padding: 0.95rem 4px !important;
    box-sizing: border-box !important;
    font-variant-numeric: tabular-nums;
  }

  #standings-container .match-table[data-standings-view="short"] thead th.col-team,
  #standings-container .match-table[data-standings-view="short"] tbody td.col-team,
  #standings-container .match-table[data-standings-view="form"] thead th.col-team,
  #standings-container .match-table[data-standings-view="form"] tbody td.col-team {
    padding-left: 6px !important;
    padding-right: 5px !important;
  }

  #standings-container .match-table[data-standings-view="short"] .col-team,
  #standings-container .match-table[data-standings-view="form"] .col-team {
    width: auto !important;
    min-width: 0 !important;
    max-width: min(30vw, 92px) !important;
    box-sizing: border-box !important;
  }

  /* 52px border-box = --ts-sticky-left-col1 と同一 */
  #standings-container .match-table[data-standings-view="full"] thead th.col-rank,
  #standings-container .match-table[data-standings-view="full"] tbody td.col-rank {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    padding-left: 6px !important;
    padding-right: 5px !important;
    box-sizing: border-box !important;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #standings-container .match-table[data-standings-view="form"] .ts-col--form,
  #standings-container .match-table[data-standings-view="form"] th.ts-col--form,
  #standings-container .match-table[data-standings-view="form"] td.ts-col--form {
    min-width: 9.5rem !important;
    width: 9.5rem !important;
    max-width: none !important;
    padding-inline-end: 12px !important;
    box-sizing: border-box !important;
  }

  #standings-container .match-table[data-standings-view="full"] th.ts-col--form,
  #standings-container .match-table[data-standings-view="full"] td.ts-col--form {
    min-width: 9.5rem !important;
    width: 9.5rem !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  /* Use content-box for ch-based widths so numeric character space remains precise. */
  #standings-container .match-table[data-standings-view="full"] .col-points {
    width: 3.5ch !important;
    min-width: 3.5ch !important;
    max-width: 4ch !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    box-sizing: content-box;
    font-variant-numeric: tabular-nums;
  }

  #standings-container .match-table[data-standings-view="full"] .col-compact {
    width: 3.25ch !important;
    min-width: 3.25ch !important;
    max-width: 3.75ch !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    box-sizing: content-box;
    font-variant-numeric: tabular-nums;
  }

  #standings-container .match-table[data-standings-view="full"] thead th.col-team,
  #standings-container .match-table[data-standings-view="full"] tbody td.col-team {
    padding-left: 6px !important;
    padding-right: 5px !important;
  }

  #standings-container .match-table[data-standings-view="full"] .col-team {
    width: 108px !important;
    min-width: 96px !important;
    max-width: 118px !important;
  }

  #standings-container .ts-table--standings .ts-col--form {
    min-width: 104px;
  }

  #standings-container .col-team .standings-team-link,
  #standings-container .col-team a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #standings-container .match-table[data-standings-view="short"] .ts-table__th:not(.ts-mobile-col--short),
  #standings-container .match-table[data-standings-view="short"] .ts-table__td:not(.ts-mobile-col--short),
  #standings-container .match-table[data-standings-view="full"] .ts-table__th:not(.ts-mobile-col--full),
  #standings-container .match-table[data-standings-view="full"] .ts-table__td:not(.ts-mobile-col--full),
  #standings-container .match-table[data-standings-view="form"] .ts-table__th:not(.ts-mobile-col--form),
  #standings-container .match-table[data-standings-view="form"] .ts-table__td:not(.ts-mobile-col--form) {
    display: none !important;
  }

  #standings-container .match-table[data-standings-view="full"] .ts-col--pl-2,
  #standings-container .match-table[data-standings-view="full"] .ts-col--pl-3,
  #standings-container .match-table[data-standings-view="full"] .ts-col--pl-4 {
    display: table-cell !important;
  }
}

/* Form: PL 風の円形バッジ */
#standings-container .ts-form {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  align-items: center;
}

#standings-container .ts-form__item {
  font-size: 0.62rem;
  font-weight: 700;
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  line-height: 1;
}

#standings-container .ts-form__item.is-win {
  background: #13cf00;
}

#standings-container .ts-form__item.is-draw {
  background: #76766f;
}

#standings-container .ts-form__item.is-loss {
  background: #d81920;
}
