/* Match-statistics content rendered inside the shared detail-view shell. */
.match-statistics-section p, .match-statistics-section li { font-size: var(--text-sm); line-height: 1.4; }
.match-statistics-section ul { padding-left: 1.2rem; }
.match-statistics-players { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.match-statistics-note { color: var(--dim); font-size: var(--text-xs); line-height: 1.6; margin: 1rem .25rem; }
.match-forecast {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(320px, 1.6fr) minmax(150px, .7fr);
  align-items: center;
  gap: 1rem;
  min-height: 48px;
  margin-top: -3rem;
}
.match-forecast-question { margin-bottom: 0; }
.match-forecast-control { min-width: 0; }
.match-forecast-action { display: flex; align-items: center; gap: 1rem; justify-self: end; min-width: 0; }
.match-forecast-action .text-link { margin-top: 0; }
.match-forecast-change { white-space: nowrap; }
.match-forecast-own-notice { color: var(--dim); font-size: var(--text-sm); text-align: center; }
.match-forecast-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.live-point-team-button.match-forecast-choice {
  min-height: 48px;
  gap: 0;
  padding: .35rem;
}
.live-point-team-button.match-forecast-choice span { font-size: var(--text-sm); }
.match-forecast-choice:is([data-match-forecast-prediction="2:0"], [data-match-forecast-prediction="2:1"]) { --forecast-choice-color: var(--team-one); }
.match-forecast-choice:is([data-match-forecast-prediction="1:2"], [data-match-forecast-prediction="0:2"]) { --forecast-choice-color: var(--team-two); }
.live-point-team-button.match-forecast-choice { border-color: var(--forecast-choice-color, var(--border)); }
.live-point-team-button.match-forecast-choice.active { box-shadow: inset 0 0 0 2px var(--bg); }
.live-point-team-button.match-forecast-choice:is(:hover, :focus-visible):not(:disabled) { border-color: var(--accent); }
.live-point-team-button.match-forecast-choice:not(.active):is(:hover, :focus-visible):not(:disabled) { color: var(--accent); }
.match-forecast-result-wrap { position: relative; min-width: 0; }
.match-forecast-result { display: grid; gap: .35rem; min-width: 0; }
.match-forecast-percentages {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
}
.match-forecast-percentage {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.match-forecast-percentage--team-one { color: var(--team-one); }
.match-forecast-percentage--team-two { justify-content: flex-end; color: var(--team-two); }
.match-forecast-own-tip-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.match-forecast-bar {
  display: block;
  position: relative;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: transparent;
}
.match-forecast-bar::before,
.match-forecast-bar::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  width: calc(50% - 2px);
  height: 100%;
  border-radius: inherit;
  background: var(--border);
}
.match-forecast-bar::before { left: 0; }
.match-forecast-bar::after { right: 0; }
.match-forecast-bar > span {
  position: absolute;
  z-index: 1;
  top: 0;
  height: 100%;
  border-radius: inherit;
}
.match-forecast-team-one { right: 50%; background: var(--team-one); }
.match-forecast-team-two { left: 50%; background: var(--team-two); }
.match-forecast-bar.has-both-team-colors .match-forecast-team-one { right: calc(50% + 2px); }
.match-forecast-bar.has-both-team-colors .match-forecast-team-two { left: calc(50% + 2px); }
.match-forecast-result-wrap.is-guest-locked .match-forecast-result { opacity: .3; }
.match-forecast-login {
  position: absolute;
  inset: 60% auto auto 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100% - 1rem);
  border: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 1rem;
  border-radius: 12px;
  color: var(--accent);
}
.match-forecast-login:is(:hover, :focus-visible) { opacity: .7; }
.match-forecast-status { color: var(--dim); font-size: var(--text-sm); text-align: center; }
.match-forecast-message {
  grid-column: 2;
  color: var(--negativ);
  font-size: var(--text-sm);
  text-align: center;
}
.match-statistics-ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.match-statistics-ranking-panel,
.match-statistics-impact-panel { min-width: 0; margin-top: 0; }
.match-statistics-side-panels { display: grid; gap: 4rem; min-width: 0; }
.match-statistics-ranking-wrap { margin: 0; overflow-x: hidden; }
table.rt.match-statistics-ranking { width: 100%; min-width: 0; margin: 0 !important; table-layout: fixed; }
.match-statistics-team-1 { --statistics-team-color: var(--team-one); }
.match-statistics-team-2 { --statistics-team-color: var(--team-two); }
#detail-view-dialog[data-mode="statistics"] .match-detail-team-1 { --statistics-team-color: var(--team-one); }
#detail-view-dialog[data-mode="statistics"] .match-detail-team-2 { --statistics-team-color: var(--team-two); }
#detail-view-dialog[data-mode="statistics"] .match-detail-team .match-detail-player {
  border-color: var(--statistics-team-color);
}
#detail-view-dialog[data-mode="statistics"] .match-detail-team .match-detail-player-photo {
  border: 2px solid var(--statistics-team-color);
}
table.rt.match-statistics-ranking tbody tr { background: transparent; }
table.rt.match-statistics-ranking tbody tr.match-statistics-ranking-player {
  background: color-mix(in srgb, var(--statistics-team-color) 10%, var(--surface2));
}
table.rt.match-statistics-ranking tbody tr.match-statistics-ranking-player:hover {
  background: color-mix(in srgb, var(--statistics-team-color) 16%, var(--surface));
}
.match-statistics-ranking tbody tr.match-statistics-ranking-other td {
  padding-top: .2rem !important;
  padding-bottom: .2rem !important;
  color: var(--dim);
  font-size: var(--text-xs);
}
.match-statistics-ranking tbody tr.match-statistics-ranking-other .rank-position {
  font-size: var(--text-xs);
}

.match-statistics-ranking th,
.match-statistics-ranking td { padding: 6px 8px !important; }
.match-statistics-ranking .col-rank { width: 62px; }
table.rt.match-statistics-ranking .col-rank {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.match-statistics-ranking.has-rank-change .col-rank {
  width: 40px;
  padding-left: 8px !important;
  padding-right: 2px !important;
  white-space: nowrap;
}
.match-statistics-ranking .col-rank-change {
  width: 24px;
  padding-left: 0 !important;
  padding-right: 8px !important;
  text-align: center;
  white-space: nowrap;
}
.match-statistics-ranking .col-name { width: auto; min-width: 0; overflow: hidden; }
.match-statistics-ranking .col-games,
.match-statistics-ranking .col-wins,
.match-statistics-ranking .col-points,
.match-statistics-ranking .col-diff { width: 72px; }
.match-statistics-ranking :is(th, td):is(.col-games, .col-wins, .col-points, .col-diff) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.match-statistics-ranking .col-diff { padding-right: 1rem !important; }
.match-statistics-ranking .player-profile-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-statistics-rank-position { white-space: nowrap; }
.match-statistics-rank-change { display: block; color: var(--dim); font-size: .82em; font-weight: 700; line-height: 1; text-align: center; }
.match-statistics-rank-change.up { color: var(--positiv); }
.match-statistics-rank-change.down { color: var(--negativ); }
.match-statistics-ranking .r1 .rank-position { color: var(--gold); }
.match-statistics-ranking .r2 .rank-position { color: var(--silver); }
.match-statistics-ranking .r3 .rank-position { color: var(--bronze); }
.match-statistics-ranking tbody tr.match-statistics-ranking-qualified td:first-child {
  box-shadow: inset 3px 0 0 var(--text);
}
.match-statistics-ranking tbody tr.match-statistics-ranking-player td:last-child {
  box-shadow: inset -3px 0 0 var(--statistics-team-color);
}
.match-statistics-ranking tbody tr.match-statistics-ranking-other.match-statistics-ranking-qualified td:first-child {
  box-shadow: inset 3px 0 0 var(--muted);
}
.match-statistics-context {
  display: grid;
  gap: .5rem;
  text-wrap: balance;
  text-align: center;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.match-statistics-context p { font-size: var(--text-sm); line-height: 1.45; }
.match-statistics-relationship-name { appearance: none; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.match-statistics-relationship-record { white-space: nowrap; }
.match-statistics-impact-groups { display: grid; gap: 1.1rem; }
.match-statistics-impact-player h3 { margin: 0 0 .3rem; }
.match-statistics-impact-player ul { margin: 0; }
.match-statistics-impact-player-name { font-size: var(--text-base); }
#detail-view-dialog[data-mode="statistics"] .viewer-player { color: var(--accent2); font-weight: 700; }
#detail-view-dialog[data-mode="statistics"] .player-profile-link:is(:hover, :focus-visible, :active) { color: var(--accent) !important; border-color: var(--accent); }
.match-statistics-empty-impact { color: var(--dim); }
.match-statistics-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}
.match-statistics-form-scroll { overflow-x: visible; }
.match-statistics-form-team {
  display: grid;
  align-content: start;
  gap: 1.5rem;
  min-width: 0;
}
.match-statistics-form-player {
  display: grid;
  gap: .65rem;
  min-width: 0;
  text-align: center;
}
.match-statistics-form-name {
  overflow: hidden;
  font-size: var(--text-sm);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-statistics-form-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 22px;
  white-space: nowrap;
}
.match-statistics-form-group { display: inline-flex; align-items: center; flex: 0 0 auto; }
.match-statistics-form-chips .form-chip { position: relative; flex: 0 0 auto; margin-left: 0; opacity: 1; }
.match-statistics-form-chips .form-training {
  border: 2px solid currentColor;
  background: var(--bg);
}
.match-statistics-form-chips .form-training.form-win { color: var(--positiv); }
.match-statistics-form-chips .form-training.form-loss { color: var(--negativ); }
.match-statistics-form-chips .form-training.form-win.form-tiebreak { color: color-mix(in srgb, var(--positiv) 35%, orange); }
.match-statistics-form-chips .form-training.form-loss.form-tiebreak { color: color-mix(in srgb, var(--negativ) 35%, orange); }
.match-statistics-form-group.is-multi-match .form-chip + .form-chip { margin-left: -7.33px; }
.match-statistics-form-group.is-multi-match .form-chip:focus-visible,
.match-statistics-form-group.is-multi-match .form-chip:hover { z-index: 1; }
.match-statistics-section:has(> .match-statistics-graph) > .widget-label { margin-bottom: 0; }
.match-statistics-heading { display: flex; align-items: center; gap: 5px; width: fit-content; }
.match-statistics-heading-help { justify-content: flex-start; }
.match-statistics-graph-picker {
  margin: 1rem 0 0;
}
.match-statistics-graph-picker.match-scope-toggle {
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.match-statistics-graph-picker.match-scope-toggle button {
  min-width: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: .55rem .5rem;
  transition: color .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.match-statistics-graph-picker.match-scope-toggle button:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.match-statistics-graph-picker.match-scope-toggle button.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.match-statistics-player-picker,
.match-statistics-team-picker { display: none; }
.match-statistics-team-player-1 { --statistics-player-color: var(--statistics-team-color); }
.match-statistics-team-player-2 { --statistics-player-color: color-mix(in srgb, var(--statistics-team-color) 55%, var(--text)); }
.match-statistics-graph { position: relative; display: flex; overflow-x: auto; height: 590px; overscroll-behavior-x: contain; container-type: inline-size; }
.match-statistics-svg { flex: 1 0 1000px; min-width: 100%; max-width: none; overflow: hidden; }
.match-statistics-svg text { fill: var(--text); font-size: 13px; font-family: var(--font-mono); }
.match-statistics-svg .match-statistics-value { font-size: 11px; }
.match-statistics-svg .match-statistics-start-value { fill: var(--dim); }
.match-statistics-svg .match-statistics-win-value { fill: var(--positiv); }
.match-statistics-svg .match-statistics-loss-value { fill: var(--negativ); }
.match-statistics-svg .match-statistics-result-value { fill: var(--statistics-player-color, var(--statistics-team-color, var(--accent))); }
.match-statistics-svg .match-statistics-delta-value.pos { fill: var(--positiv); }
.match-statistics-svg .match-statistics-delta-value.neg { fill: var(--negativ); }
.match-statistics-svg .match-statistics-delta-value.neu { fill: var(--dim); }
.match-statistics-svg .match-statistics-player-label { font-size: var(--text-base); font-family: var(--font-body); }
.match-statistics-svg .match-statistics-player-label.viewer-player { fill: var(--accent2); font-weight: 700; }
.match-statistics-peak-star { stroke-linejoin: round; stroke-width: 1.8; }
.match-statistics-peak-star.possible { fill: none; stroke: var(--positiv); }
.match-statistics-peak-star.achieved { fill: var(--statistics-player-color, var(--statistics-team-color, var(--accent))); stroke: var(--statistics-player-color, var(--statistics-team-color, var(--accent))); }
.match-statistics-axis { position: sticky; left: 0; flex: 0 0 60px; order: -1; margin-right: -60px; z-index: 1; height: 516px; }
.match-statistics-axis span { position: absolute; right: 9px; transform: translateY(-50%); font: var(--text-xs) var(--font-mono); color: var(--dim); }
.match-statistics-grid { fill: none; stroke: var(--border); }
.match-statistics-line { fill: none; stroke: var(--statistics-player-color, var(--statistics-team-color, var(--accent))); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.match-statistics-dot { fill: var(--statistics-player-color, var(--statistics-team-color, var(--accent))); }
.match-statistics-projection-band { stroke: none; fill-opacity: .5; }
.match-statistics-projection-band.win { fill: var(--positiv); }
.match-statistics-projection-band.loss { fill: var(--negativ); }
.match-statistics-forecast-line { fill: none; stroke: var(--statistics-player-color, var(--statistics-team-color, var(--accent))); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 5 5; }
.match-statistics-forecast-dot { fill: var(--statistics-player-color, var(--statistics-team-color, var(--accent))); }
.match-statistics-projection-range { stroke: none; fill-opacity: .2; }
.match-statistics-projection-range.win { fill: var(--positiv); }
.match-statistics-projection-range.loss { fill: var(--negativ); }
.match-statistics-player-graph { transition: opacity .18s ease, transform .18s ease; }
.match-statistics-skeleton { display: grid; gap: 1.5rem; }
.match-statistics-skeleton-card { display: grid; gap: 1rem; min-height: 165px; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; }
.match-statistics-skeleton-card .loading-skeleton { display: block; height: 20px; }
.match-statistics-skeleton-card .loading-skeleton:first-child { height: 65px; }
.match-statistics-skeleton-meta { height: 48px; }
.match-statistics-skeleton-history { height: 100px; }
.match-statistics-skeleton-graph { height: 430px; }
.match-statistics-notice { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 5000; max-width: calc(100% - 2rem); padding: 1rem; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; }
.article-match.has-partie-detail { position: relative; }
.article-match-action { position: absolute; inset: 0; width: 100%; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.article-match-action:is(:hover, :focus-visible) ~ .article-match-result { color: var(--accent); }
.article-match-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.has-partie-detail .article-player-link { position: relative; z-index: 1; }
.has-partie-detail .article-match-result { pointer-events: none; }
[data-match-statistics] { cursor: pointer; }
[data-match-statistics]:focus-visible, .match-statistics-graph:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button.cup-match-status { width: 100%; color: inherit; font: inherit; border: 0; background: transparent; }

#detail-view-dialog[data-presentation="panel"] .match-forecast {
  grid-template-columns: minmax(0, 1fr);
  gap: .7rem;
  margin-top: -1rem;
  padding: .85rem .35rem;
}
#detail-view-dialog[data-presentation="panel"] .match-forecast-question { text-align: center; }
#detail-view-dialog[data-presentation="panel"] .match-forecast-action {
  align-items: center;
  justify-self: center;
}
#detail-view-dialog[data-presentation="panel"] .match-forecast-message { grid-column: 1; }
#detail-view-dialog[data-presentation="panel"] .match-statistics-players {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
#detail-view-dialog[data-presentation="panel"] .match-statistics-section { padding: 1rem .7rem; }
#detail-view-dialog[data-presentation="panel"] .match-statistics-form-row {
  gap: .75rem;
}
#detail-view-dialog[data-presentation="panel"] .match-statistics-ranking-layout {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
#detail-view-dialog[data-presentation="panel"] .match-statistics-ranking th,
#detail-view-dialog[data-presentation="panel"] .match-statistics-ranking td {
  padding-left: 4px !important;
  padding-right: 4px !important;
}
#detail-view-dialog[data-presentation="panel"] .match-statistics-ranking .col-rank { width: 38px; }
#detail-view-dialog[data-presentation="panel"] .match-statistics-ranking.has-rank-change .col-rank {
  width: 34px;
  padding-left: 4px !important;
  padding-right: 0 !important;
}
#detail-view-dialog[data-presentation="panel"] .match-statistics-ranking .col-rank-change {
  width: 22px;
  padding-right: 2px !important;
}
#detail-view-dialog[data-presentation="panel"] .match-statistics-ranking .col-games,
#detail-view-dialog[data-presentation="panel"] .match-statistics-ranking .col-points { width: 58px !important; }
#detail-view-dialog[data-presentation="panel"] .match-statistics-ranking .col-diff { width: 48px !important; }
#detail-view-dialog[data-presentation="panel"] .match-statistics-ranking .col-wins { display: none; }
#detail-view-dialog[data-presentation="panel"] .match-statistics-graph {
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
#detail-view-dialog[data-presentation="panel"] .match-statistics-player-picker { display: none; }
#detail-view-dialog[data-presentation="panel"] .match-statistics-team-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}
#detail-view-dialog[data-presentation="panel"] .match-statistics-player-graph {
  opacity: 0;
  transform: translateX(var(--statistics-panel-offset));
}
#detail-view-dialog[data-presentation="panel"] .match-statistics-player-graph.match-statistics-team-player-2 {
  transform: translateX(calc(var(--statistics-panel-offset) + min(0px, calc(50cqw - 500px))));
}
#detail-view-dialog[data-presentation="panel"] .match-statistics-player-graph.is-team-selected { opacity: 1; }
#detail-view-dialog[data-presentation="panel"] .match-statistics-player-graph:not(.is-team-selected) :is(.match-statistics-value, .match-statistics-peak-star, .match-statistics-player-label) { display: none; }

@container match-detail-panel (min-width: 900px) {
  #detail-view-dialog[data-presentation="panel"] .match-statistics-ranking-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }
}

@container match-detail-panel (min-width: 1100px) {
  #detail-view-dialog[data-presentation="panel"] .match-forecast {
    grid-template-columns: minmax(150px, .7fr) minmax(320px, 1.6fr) minmax(150px, .7fr);
    gap: 1rem;
    margin-top: -3rem;
    padding: 0;
  }
  #detail-view-dialog[data-presentation="panel"] .match-forecast-question { text-align: left; }
  #detail-view-dialog[data-presentation="panel"] .match-forecast-action { justify-self: end; }
  #detail-view-dialog[data-presentation="panel"] .match-forecast-message { grid-column: 2; }
  #detail-view-dialog[data-presentation="panel"] .match-statistics-players {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
  #detail-view-dialog[data-presentation="panel"] .match-statistics-section { padding: 0; }
  #detail-view-dialog[data-presentation="panel"] .match-statistics-form-row { gap: 1rem; }
  #detail-view-dialog[data-presentation="panel"] .match-statistics-ranking th,
  #detail-view-dialog[data-presentation="panel"] .match-statistics-ranking td {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  #detail-view-dialog[data-presentation="panel"] .match-statistics-ranking .col-rank { width: 62px; }
  #detail-view-dialog[data-presentation="panel"] .match-statistics-ranking.has-rank-change .col-rank {
    width: 40px;
    padding-left: 8px !important;
    padding-right: 2px !important;
  }
  #detail-view-dialog[data-presentation="panel"] .match-statistics-ranking .col-rank-change {
    width: 24px;
    padding-right: 8px !important;
  }
  #detail-view-dialog[data-presentation="panel"] .match-statistics-ranking .col-games,
  #detail-view-dialog[data-presentation="panel"] .match-statistics-ranking .col-points { width: 72px !important; }
  #detail-view-dialog[data-presentation="panel"] .match-statistics-ranking .col-diff { width: 72px !important; }
  #detail-view-dialog[data-presentation="panel"] .match-statistics-ranking .col-wins {
    display: table-cell;
    width: 72px !important;
  }
}

@media (max-width: 768px) {
  .match-forecast {
    grid-template-columns: minmax(0, 1fr);
    gap: .7rem;
    padding: .85rem .35rem;
  }
  .match-forecast-question { text-align: center; }
  .match-forecast-action { align-items: center; justify-self: center; }
  .match-forecast-message { grid-column: 1; }
  .live-point-team-button.match-forecast-choice { min-height: 54px; padding: .5rem; }
  .match-statistics-heading-help .help-tooltip { right: auto; left: 0; }
  .match-statistics-players { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .match-statistics-section { padding: 1rem .7rem; }
  .match-statistics-context { gap:.7rem; }
  .match-statistics-form-row { grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }
  .match-statistics-form-group.is-multi-match .form-chip + .form-chip { margin-left: -6px; }
  .match-statistics-ranking-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .match-statistics-ranking th,
  .match-statistics-ranking td {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  .match-statistics-ranking .col-rank { width: 38px; }
  .match-statistics-ranking.has-rank-change .col-rank {
    width: 34px;
    padding-left: 4px !important;
    padding-right: 0 !important;
  }
  .match-statistics-ranking .col-rank-change {
    width: 22px;
    padding-right: 2px !important;
  }
  .match-statistics-ranking .col-games,
  .match-statistics-ranking .col-points { width: 58px !important; }
  .match-statistics-ranking .col-diff { width: 48px !important; }
  .match-statistics-ranking .col-wins { display: none; }
  #detail-view-dialog:not([data-presentation="panel"]) .match-statistics-player-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }
  .match-statistics-graph-picker.match-scope-toggle button {
    min-width: 0;
    overflow: hidden;
    padding: .35rem .3rem;
    font-size: var(--text-xs);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .match-statistics-graph {
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }
  #detail-view-dialog:not([data-presentation="panel"]) .match-statistics-player-graph {
    opacity: .15;
    transform: translateX(var(--statistics-mobile-offset));
  }
  #detail-view-dialog:not([data-presentation="panel"]) .match-statistics-player-graph.is-player-selected { opacity: 1; }
  #detail-view-dialog:not([data-presentation="panel"]) .match-statistics-player-graph:not(.is-player-selected) :is(.match-statistics-value, .match-statistics-peak-star) { display: none; }
  #detail-view-dialog:not([data-presentation="panel"]) .match-statistics-player-label { display: none; }
}
#final-four-view-switcher[hidden] { display: none; }
.match-statistics-skeleton .loading-skeleton { background: linear-gradient(100deg, var(--skeleton-base) 20%, var(--skeleton-highlight) 38%, var(--skeleton-base) 56%); background-size: 220% 100%; animation: skeleton-shimmer 1.45s ease-in-out infinite; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .match-statistics-skeleton .loading-skeleton { animation: none; } }
.match-statistics-section, .match-statistics-graph { min-width: 0; }
