/* Comparison-only beta refinements. Shared history controls its own column layout. */
.fo-view {
  --fo-marker-size: 44px;
}

.fo-view .fo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 0;
  margin: 0 0 var(--beta-space-4);
  border: 0;
}

.fo-view .fo-filters legend {
  color: var(--beta-muted);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.fo-view .fo-filter-button {
  min-height: var(--beta-tap);
  padding: 10px 14px;
  border: 1px solid var(--beta-edge);
  border-radius: var(--beta-radius-sm);
  background: var(--beta-panel);
  color: var(--beta-ink);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.fo-view .fo-filter-button[aria-pressed="true"] {
  background: var(--beta-accent);
  border-color: var(--beta-accent);
  color: var(--beta-on-accent);
}

.fo-view .fo-filter-button:focus-visible {
  outline: var(--beta-focus-ring);
  outline-offset: 3px;
}

.fo-view [data-fo-section][hidden] {
  display: none;
}

.fo-view .fo-identity-heading {
  gap: 16px;
  min-height: 104px;
}

.fo-view .fo-image {
  width: 104px;
  height: 104px;
}

.fo-view .fo-headshot {
  width: 96px;
  height: 96px;
}

.fo-view .fo-logo-missing {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--beta-edge);
  border-radius: var(--beta-radius-sm);
  background: var(--beta-soft);
  color: var(--beta-accent);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.fo-view .fo-team-option-image {
  width: 56px;
  height: 49px;
  object-fit: contain;
}

.fo-view .fo-histories > .th-heading h3 {
  font: 600 24px/1.3 var(--beta-font-display);
}

.fo-view .fo-histories > .th-ratings-note {
  font-size: 12px;
  line-height: 1.6;
}

.fo-view .fo-stat-section h3,
.fo-view .fo-availability > h3 {
  font: 600 24px/1.3 var(--beta-font-display);
}

.fo-view .fo-stat-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.fo-view .fo-stat-label-text {
  min-width: 0;
  text-wrap: balance;
}

.fo-view .fo-stat-label .score-icon {
  width: 18px;
  height: 18px;
}

.fo-view .fo-stat-headings {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 1.6fr) minmax(0, 1fr);
}

.fo-view .fo-value-winner {
  border-color: var(--fo-winner-color, var(--beta-accent));
  background: var(--beta-panel);
  background: color-mix(in srgb, var(--fo-winner-color, var(--beta-accent)) 10%, var(--beta-panel));
  color: var(--beta-ink);
  box-shadow: inset 0 0 0 1px var(--beta-panel), 0 0 0 1px var(--beta-rule);
}

.fo-view .fo-bar-wrap {
  margin: 24px 0;
}

.fo-view .fo-bar-boundary {
  display: grid;
  place-items: center;
  width: var(--fo-marker-size);
  height: var(--fo-marker-size);
  box-sizing: border-box;
  border: 1px solid var(--beta-edge);
  border-radius: 50%;
  background: var(--beta-panel);
  box-shadow: none;
  color: var(--beta-muted);
  overflow: hidden;
}

.fo-view .fo-bar-boundary .fo-image {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  font-size: 12px;
}

.fo-view .fo-bar-boundary .fo-initials {
  font-size: 12px;
}

.fo-view .fo-bar-tied {
  background: var(--beta-rail);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.fo-view .fo-availability-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.fo-view .fo-availability-heading h4 {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.fo-view .fo-availability-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .fo-view {
    --fo-marker-size: 36px;
  }

  .fo-view .fo-filter-button {
    font-size: 12px;
    padding: 10px 12px;
  }

  .fo-view .fo-image,
  .schedule-view[data-schedule-key^="game/"] .fo-view.fo-locked .fo-identity .fo-image {
    width: 84px;
    height: 84px;
  }

  .fo-view .fo-headshot,
  .schedule-view[data-schedule-key^="game/"] .fo-view.fo-locked .fo-identity .fo-headshot {
    width: 78px;
    height: 78px;
  }

  .fo-view .fo-identity-heading {
    min-height: 0;
    gap: 10px;
  }

  .schedule-view[data-schedule-key^="game/"] .fo-view.fo-locked .fo-pickers {
    grid-template-rows: repeat(4, auto);
  }

  .schedule-view[data-schedule-key^="game/"] .fo-view.fo-locked .fo-identity {
    grid-row: span 4;
  }

  .schedule-view[data-schedule-key^="game/"] .fo-view.fo-locked .fo-pickers:has(.fo-headshot) {
    grid-template-rows: repeat(6, auto);
  }

  .schedule-view[data-schedule-key^="game/"] .fo-view.fo-locked .fo-identity:has(.fo-headshot) {
    grid-row: span 6;
  }

  .fo-view .fo-stat-label {
    font-size: 16px;
  }

  .fo-view .fo-stat-headings {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 1.5fr) minmax(0, 1fr);
    gap: 4px;
  }

  .fo-view .fo-stat-section h3,
  .fo-view .fo-availability > h3,
  .fo-view .fo-histories > .th-heading h3 {
    font-size: 22px;
  }

  .fo-view .fo-availability-logo {
    width: 56px;
    height: 56px;
  }

  .fo-view .fo-team-option-image {
    width: 48px;
    height: 43px;
  }

  .fo-view .fo-bar-boundary .fo-image {
    width: 100%;
    height: 100%;
  }
}
