/* Fantasy Player Compare — Start/Sit rail + Compare arena, with the metric board.
   Chrome (topbar, hero, share rail) comes from schedule.css, compare-players.css,
   and fantasy-start-sit.css; only the compare-specific surfaces live here. */

.fpc-studio {
  --fpc-ink: var(--ff-text, #0f172a);
  --fpc-muted: var(--ff-text-muted, #64748b);
  --fpc-line: #d8e3f0;
  --fpc-soft: #f3f7fc;
  --fpc-blue: var(--fh-accent, #1d7bf4);
  --fpc-win: #0f9d58;
  --fpc-win-soft: #e6f6ed;
}

/* ── Arena ──────────────────────────────────────────────────────────── */

.fpc-arena {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.fpc-arena__vs {
  align-self: center;
  font-family: Anton, "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.fpc-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--fpc-line);
  border-radius: 14px;
  background: var(--ff-surface-raised, #fff);
  box-shadow: 0 10px 24px -18px rgba(19, 55, 111, 0.45);
}

.fpc-card.is-lean {
  border-color: rgba(15, 157, 88, 0.45);
  box-shadow: 0 12px 26px -18px rgba(15, 157, 88, 0.55);
}

.fpc-card__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fpc-card__photo {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--fpc-soft);
  flex-shrink: 0;
}

.fpc-card__photo--empty {
  display: block;
  border: 1px dashed var(--fpc-line);
}

.fpc-card__id {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.fpc-card__slot {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fpc-muted);
}

.fpc-card__name {
  font-family: Barlow, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--fpc-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.fpc-card__name:hover {
  color: var(--fpc-blue);
}

.fpc-card__meta {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--fpc-muted);
}

.fpc-card__logo {
  margin-left: auto;
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.fpc-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
}

.fpc-card__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem 0.25rem;
  border-radius: 10px;
  background: var(--fpc-soft);
  text-align: center;
}

.fpc-card__stat span {
  font-family: Barlow, sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--fpc-ink);
}

.fpc-card__stat small {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fpc-muted);
}

.fpc-card__trend {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--fpc-muted);
}

.fpc-card__trend b {
  color: var(--fpc-ink);
}

.fpc-card__trend.is-good b { color: #0f9d58; }
.fpc-card__trend.is-bad b { color: #dc2626; }

.fpc-card__blurb {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--fpc-muted);
}

/* ── Verdict ────────────────────────────────────────────────────────── */

.fpc-verdict {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--fpc-line);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--ff-surface, #f7fbff) 0%, var(--ff-surface-sunken, #eef5fd) 100%);
}

.fpc-verdict__kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fpc-muted);
}

.fpc-verdict__headline {
  display: block;
  margin: 0.15rem 0 0.3rem;
  font-family: Barlow, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--fpc-ink);
}

.fpc-verdict.is-tie .fpc-verdict__headline {
  color: #b45309;
}

.fpc-verdict__summary {
  margin: 0;
  max-width: 56ch;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ff-text-muted, #475569);
}

.fpc-verdict__gauge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  min-width: 132px;
}

.fpc-gauge {
  width: 132px;
  height: 8px;
  border-radius: 999px;
  background: #dbe7f6;
  overflow: hidden;
}

.fpc-gauge__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d7bf4, #0f9d58);
}

.fpc-gauge__value {
  font-family: Barlow, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--fpc-ink);
}

.fpc-gauge__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fpc-muted);
}

.fpc-factors {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem 0.9rem;
  margin: 0;
  padding: 0.65rem 0 0;
  border-top: 1px solid rgba(15, 39, 68, 0.08);
  list-style: none;
}

.fpc-factor__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
}

.fpc-factor__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fpc-ink);
  cursor: help;
}

.fpc-factor__weight {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--fpc-muted);
}

.fpc-factor__bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 0.25rem;
}

.fpc-factor__bar {
  height: 5px;
  border-radius: 999px;
  background: #cbd9ec;
  transition: width 0.25s ease;
}

.fpc-factor__bar--b {
  background: #b9c9e0;
}

.fpc-factor__bar.is-better {
  background: var(--fpc-win);
}

/* ── Metric board ───────────────────────────────────────────────────── */

.fpc-board {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.fpc-block {
  border: 1px solid var(--fpc-line);
  border-radius: 14px;
  background: var(--ff-surface-raised, #fff);
  overflow: hidden;
}

.fpc-block__head {
  padding: 0.7rem 0.9rem 0.55rem;
  border-bottom: 1px solid var(--fpc-line);
  background: var(--fpc-soft);
}

.fpc-block__head h3 {
  margin: 0;
  font-family: Barlow, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fpc-ink);
}

.fpc-block__head p {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--fpc-muted);
}

.fpc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}

/* The column headers already name both players; the caption is for screen readers. */
.fpc-table__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fpc-table thead th {
  padding: 0.55rem 0.95rem;
  border-bottom: 1px solid var(--fpc-line);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fpc-muted);
  text-align: right;
  white-space: nowrap;
}

.fpc-table thead th:first-child {
  text-align: left;
}

.fpc-table tbody th {
  padding: 0.55rem 0.95rem;
  border-bottom: 1px solid #eef3fa;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ff-text-muted, #475569);
  text-align: left;
  white-space: normal;
}

.fpc-table tbody td {
  padding: 0.55rem 0.95rem;
  border-bottom: 1px solid #eef3fa;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fpc-ink);
  text-align: right;
  white-space: nowrap;
}

.fpc-table tbody tr:last-child th,
.fpc-table tbody tr:last-child td {
  border-bottom: none;
}

.fpc-table tbody tr:hover th,
.fpc-table tbody tr:hover td {
  background: var(--ff-surface, #f8fbff);
}

.fpc-table td.is-better {
  color: #0b7a45;
  background: var(--fpc-win-soft);
}

.fpc-metric__label {
  margin-right: 0.3rem;
}

.fpc-metric__tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid rgba(11, 31, 58, 0.16);
  border-radius: 999px;
  background: var(--ff-surface-raised, #fff);
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--fpc-muted);
  cursor: help;
  vertical-align: middle;
}

.fpc-data-note,
.fpc-board-help {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--fpc-muted);
}

.fpc-board-help a {
  color: var(--fpc-blue);
  font-weight: 700;
}

.fpc-result.is-loading {
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

/* ── Empty state + quick picks ──────────────────────────────────────── */

.fpc-empty p.is-error {
  color: #b42318;
  font-weight: 700;
}

.fpc-quick {
  margin-top: 0.75rem;
}

.fpc-quick__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fpc-muted);
}

.fpc-quick__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.fpc-quick__chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--fpc-line);
  border-radius: 999px;
  background: var(--ff-surface-raised, #fff);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--fpc-ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.fpc-quick__chip:hover {
  border-color: rgba(29, 123, 244, 0.45);
  background: #f5f9ff;
}

.fpc-quick__chip small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fpc-muted);
}

/* ── How to read (server-rendered explainer) ────────────────────────── */

.fpc-guide {
  margin-top: 0.85rem;
  padding: 1rem 1.05rem 1.1rem;
}

.fpc-guide__head h2 {
  margin: 0 0 0.35rem;
  font-family: Barlow, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--fpc-ink);
}

.fpc-guide__head p {
  margin: 0;
  max-width: 74ch;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ff-text-muted, #475569);
}

/* Lead definition — first thing a reader (or an answer engine) should pick up. */
.fpc-guide .fpc-guide__head p.fpc-guide__definition {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fpc-ink);
}

.fpc-guide__lean {
  margin-top: 1rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--fpc-line);
  border-radius: 14px;
  background: var(--fpc-soft);
}

.fpc-guide h3 {
  margin: 0 0 0.35rem;
  font-family: Barlow, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fpc-ink);
}

.fpc-guide__lean p {
  margin: 0 0 0.75rem;
  max-width: 74ch;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ff-text-muted, #475569);
}

.fpc-weights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fpc-weight__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
}

.fpc-weight__label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--fpc-ink);
}

.fpc-weight__value {
  font-family: Barlow, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--fpc-blue);
}

.fpc-weight__bar {
  display: block;
  height: 5px;
  margin: 0.3rem 0 0.35rem;
  border-radius: 999px;
  background: #dbe7f6;
  overflow: hidden;
}

.fpc-weight__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d7bf4, #0f9d58);
}

.fpc-weight__tip {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--fpc-muted);
}

.fpc-guide__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.fpc-gloss {
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--fpc-line);
  border-radius: 14px;
  background: var(--ff-surface-raised, #fff);
}

.fpc-gloss__title {
  margin: 0 0 0.2rem;
}

.fpc-gloss__note {
  margin: 0 0 0.6rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--fpc-muted);
}

.fpc-gloss__list {
  margin: 0;
}

.fpc-gloss__row {
  padding: 0.45rem 0;
  border-top: 1px solid #eef3fa;
}

.fpc-gloss__row:first-child {
  border-top: none;
  padding-top: 0;
}

.fpc-gloss__row dt {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--fpc-ink);
}

.fpc-gloss__row dd {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--fpc-muted);
}

.fpc-guide__rules {
  margin-top: 1rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--fpc-line);
  border-radius: 14px;
  background: var(--ff-surface-raised, #fff);
}

.fpc-guide__rules ol {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.fpc-guide__rules li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ff-text-muted, #475569);
}

.fpc-guide__rules strong {
  color: var(--fpc-ink);
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .fpc-verdict {
    grid-template-columns: 1fr;
  }

  .fpc-verdict__gauge {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
}

@media (max-width: 720px) {
  .fpc-arena {
    grid-template-columns: 1fr;
  }

  .fpc-arena__vs {
    justify-self: center;
  }

  .fpc-table {
    font-size: 0.86rem;
  }

  .fpc-table thead th,
  .fpc-table tbody th,
  .fpc-table tbody td {
    padding: 0.5rem 0.7rem;
  }
}
