.fp-shell { margin-top: 20px; }

.fp-rotation {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -2px 0 14px;
  padding: 10px 12px;
  border: 1px solid #cfe1f7;
  border-radius: 11px;
  background: #f1f7ff;
  color: #53657d;
  font-size: 9px;
}

.fp-rotation b {
  flex: none;
  color: #0758b7;
  font-size: 8px;
  letter-spacing: .08em;
}

.fp-player.is-used {
  cursor: not-allowed;
  filter: grayscale(.7);
  opacity: .48;
}

.fp-player.is-used:hover {
  border-color: var(--line);
  box-shadow: none;
}

.fp-player.is-used .fp-player__bottom b { color: #c2414f; }

.fp-simulate {
  padding: 9px 12px;
  border: 1px solid #b9d5f4;
  border-radius: 9px;
  background: #eef6ff;
  color: #0758b7;
  cursor: pointer;
  font-family: inherit;
  font-size: 9px;
  font-weight: 850;
}

.fp-simulate:disabled { cursor: wait; opacity: .55; }

.fp-season-row {
  display: grid;
  grid-template-columns: 45px 1.5fr repeat(4, .7fr);
  align-items: center;
  min-height: 50px;
  padding: 0 12px;
  border-bottom: 1px solid #e8edf3;
  font-size: 10px;
  width: 100%;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: #fff;
  color: inherit;
  font-family: inherit;
  text-align: left;
}

.fp-season-row:last-child { border-bottom: 0; }
.fp-season-row.is-head { min-height: 35px; background: var(--n); color: rgba(255,255,255,.55); font-size: 8px; font-weight: 900; }
.fp-season-row > b:last-of-type { color: var(--b); font-size: 15px; }
.fp-season-row.is-simulated[data-sim-user] { cursor: pointer; }
.fp-season-row.is-simulated[data-sim-user]:hover { background: #f2f7fd; }
.fp-sim-modal { width: min(760px,calc(100% - 30px)); }
.fp-sim-strategy { margin: -8px 0 15px; color: #68768c; font-size: 10px; line-height: 1.5; }
.fp-sim-history { max-height: 50vh; margin-top: 13px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.fp-rule-actions { display: flex; gap: 6px; }
.fp-help-modal { width: min(650px,calc(100% - 30px)); }
.fp-help-modal h2 { position: relative; margin: 10px 35px 15px 0; line-height: 1.15; }
.fp-help-intro { margin: -8px 0 17px; color: #68768c; font-size: 11px; }
.fp-help-steps { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.fp-help-steps article { display: flex; gap: 10px; padding: 13px; border: 1px solid #dfe7f1; border-radius: 12px; background: #f7f9fc; }
.fp-help-steps article > b { display: grid; width: 27px; height: 27px; flex: none; place-items: center; border-radius: 9px; background: #e3f0ff; color: #0758b7; font-size: 10px; }
.fp-help-steps article div { display: flex; flex-direction: column; }
.fp-help-steps strong { font-size: 11px; }
.fp-help-steps span { margin-top: 3px; color: #68768c; font-size: 9px; line-height: 1.45; }
.fp-help-faq { margin-top: 16px; }
.fp-help-faq h3 { margin: 0 0 6px; font-size: 13px; }
.fp-help-faq details { border-bottom: 1px solid #e8edf3; }
.fp-help-faq summary { padding: 9px 2px; cursor: pointer; font-size: 10px; font-weight: 800; }
.fp-help-faq details p { margin: -2px 0 10px; color: #68768c; font-size: 9px; }
.fp-modal > .fp-help-start { position: static; width: 100%; margin-top: 16px; padding: 12px; border: 0; border-radius: 10px; background: var(--b); color: #fff; cursor: pointer; font-family: inherit; font-size: 11px; font-weight: 900; }

.fp-history {
  margin-top: 16px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(11,23,48,.06);
}

.fp-history-toggle {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc;
  color: #526177;
  cursor: pointer;
  font-family: inherit;
  font-size: 9px;
  font-weight: 850;
}

.fp-history-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.fp-history-stats > div { padding: 14px; border: 1px solid #dfe7f1; border-radius: 12px; background: #f6f9fc; }
.fp-history-stats small { display: block; color: #718096; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.fp-history-stats strong { display: block; margin-top: 3px; color: var(--ink); font-size: 21px; }
.fp-history-list { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.fp-history-item { display: grid; grid-template-columns: 150px 44px 1fr 70px; align-items: center; gap: 10px; min-height: 62px; padding: 7px 12px; border-bottom: 1px solid #e8edf3; }
.fp-history-item:last-child { border-bottom: 0; }
.fp-history-item time { color: #728198; font-size: 9px; text-transform: capitalize; }
.fp-history-item img { width: 42px; height: 42px; border-radius: 9px; background: #e9eef5; object-fit: contain; }
.fp-history-item div { display: flex; min-width: 0; flex-direction: column; }
.fp-history-item div strong { font-size: 11px; }
.fp-history-item div span { overflow: hidden; color: #728198; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.fp-history-item > b { color: var(--b); font-size: 17px; text-align: right; }
.fp-history-empty { padding: 20px; color: #728198; font-size: 10px; text-align: center; }

@media (max-width: 640px) {
  .fp-shell { margin-top: 10px; }
  .fp-rotation { align-items: flex-start; flex-direction: column; gap: 4px; }
  .fp-season-row { min-width: 570px; }
  .fp-history { padding: 15px; }
  .fp-history-stats { grid-template-columns: repeat(2,1fr); }
  .fp-history-item { grid-template-columns: 44px 1fr 55px; }
  .fp-history-item time { display: none; }
  .fp-rule-actions { min-width: max-content; }
  .fp-help-steps { grid-template-columns: 1fr; }
}

/* French Girls Pick : lecture renforcée des résultats et classements. */
.fp-page .fp-section-head { margin-bottom: 20px; }
.fp-page .fp-section-head span { font-size: 11px; }
.fp-page .fp-section-head h2 { font-size: 29px; }
.fp-page .fp-section-head p { font-size: 12px; }

.fp-page .fp-history-stats { gap: 10px; }
.fp-page .fp-history-stats > div { padding: 17px; }
.fp-page .fp-history-stats small { font-size: 10px; }
.fp-page .fp-history-stats strong { font-size: 26px; }

.fp-page .fp-board-table { border-radius: 14px; }
.fp-page .fp-row {
  min-height: 68px;
  padding-inline: 17px;
  font-size: 13px;
}
.fp-page .fp-row.is-head {
  min-height: 43px;
  font-size: 10px;
}
.fp-page .fp-row b { font-size: 16px; }
.fp-page .fp-row-player { gap: 10px; }
.fp-page .fp-row-player img { width: 44px; height: 44px; border-radius: 10px; }
.fp-page .fp-row-player small { font-size: 10px; }
.fp-page .fp-row-score { font-size: 20px !important; }

.fp-page .fp-season-row {
  min-height: 62px;
  padding-inline: 17px;
  font-size: 13px;
}
.fp-page .fp-season-row.is-head {
  min-height: 43px;
  font-size: 10px;
}
.fp-page .fp-season-row > b:last-of-type { font-size: 19px; }

.fp-page .fpl-row { min-height: 48px; font-size: 12px; }
.fp-page .fpl-row.head { min-height: 35px; font-size: 10px; }
.fp-page .fpl-row b:last-child { font-size: 15px; }

/* Historique : même lisibilité que les tableaux principaux de la V2. */
.fp-page .fp-history-list { border-radius: 14px; }
.fp-page .fp-history-item {
  grid-template-columns: 170px 58px 1fr 90px;
  min-height: 82px;
  gap: 14px;
  padding: 12px 17px;
}
.fp-page .fp-history-item time { font-size: 12px; }
.fp-page .fp-history-item img { width: 54px; height: 54px; border-radius: 12px; }
.fp-page .fp-history-item div strong { font-size: 15px; }
.fp-page .fp-history-item div span { font-size: 12px; line-height: 1.35; }
.fp-page .fp-history-item > b { font-size: 22px; }

@media (max-width: 640px) {
  .fp-page .fp-history-item {
    grid-template-columns: 54px 1fr 65px;
    min-height: 78px;
    gap: 11px;
    padding: 11px;
  }
  .fp-page .fp-history-item time { display: none; }
  .fp-page .fp-history-item div strong { font-size: 14px; }
  .fp-page .fp-history-item div span { font-size: 11px; }
  .fp-page .fp-history-item > b { font-size: 20px; }
}

@media (max-width: 640px) {
  .fp-page .fp-section-head h2 { font-size: 24px; }
  .fp-page .fp-section-head span { font-size: 10px; }
  .fp-page .fp-history-stats strong { font-size: 23px; }
  .fp-page .fp-row { min-width: 720px; }
  .fp-page .fp-season-row { min-width: 620px; }
}

/* Classements harmonisés et avatars des membres. */
.fp-page .fp-row { min-height: 68px; padding-inline: 17px; font-size: 13px; }
.fp-page .fp-row.is-head { min-height: 43px; font-size: 10px; }
.fp-page .fp-row b { font-size: 16px; }
.fp-page .fp-row-manager { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fp-page .fp-row-manager i { overflow: hidden; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.fp-page .fp-member-avatar { display: grid; width: 36px; height: 36px; flex: none; place-items: center; overflow: hidden; border-radius: 50%; background: #e7eef8; color: #1767c7; font-size: 14px; font-style: normal; font-weight: 900; }
.fp-page .fp-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fp-page .fp-row-player { gap: 10px; }
.fp-page .fp-row-player img { width: 44px; height: 44px; border-radius: 10px; }
.fp-page .fp-row-player small { font-size: 10px; }
.fp-page .fp-row-score { font-size: 20px !important; }
.fp-page .fp-season-row { min-height: 62px; padding-inline: 17px; font-size: 13px; }
.fp-page .fp-season-row.is-head { min-height: 43px; font-size: 10px; }
.fp-page .fp-season-manager { display: flex; align-items: center; gap: 10px; }
.fp-page .fp-season-manager .fp-member-avatar { width: 34px; height: 34px; font-size: 13px; }
.fp-page .fp-season-row > b:last-of-type { font-size: 19px; }
