/* ===== Career-Mode shell (Phase 1: sidebar + topbar frame) ===== */
.fr-shell{ display:flex; align-items:stretch; min-height:72vh; border-radius:16px; overflow:hidden; border:1px solid #1d2735; background:#0a0e14; text-align:left; }
.fr-sidebar{ flex:0 0 248px; display:flex; flex-direction:column; padding:18px 14px; background:linear-gradient(180deg,#0d1118,#0a0d12); border-right:1px solid #1b2430; }
.fr-badge{ text-align:center; padding:14px 8px 16px; border-bottom:1px solid #1b2430; margin-bottom:12px; }
.fr-badge-logo{ width:64px; height:64px; margin:0 auto 8px; display:flex; align-items:center; justify-content:center; border-radius:14px; border:2px solid #FF2F92; color:#FF2F92; font-weight:800; font-size:22px; letter-spacing:.04em; background:rgba(255,47,146,.06); }
.fr-badge-kicker{ font-size:10px; letter-spacing:.18em; color:#7d8a9c; }
.fr-badge-name{ font-size:17px; font-weight:800; color:#fff; margin-top:2px; }
.fr-badge-gm{ font-size:12px; color:#8fa3ba; margin-top:2px; }
.fr-nav-label{ font-size:10px; letter-spacing:.16em; color:#5f6b7c; text-transform:uppercase; padding:4px 8px 8px; }
.fr-nav{ display:flex; flex-direction:column; gap:2px; flex:1; }
.fr-nav-item{ display:flex; align-items:center; gap:11px; padding:10px 12px; border:0; border-left:3px solid transparent; border-radius:8px; background:transparent; color:#aab6c6; font:inherit; font-size:14px; cursor:pointer; text-align:left; }
.fr-nav-item:hover{ background:rgba(255,255,255,.04); color:#fff; }
.fr-nav-item.active{ background:rgba(255,47,146,.10); border-left-color:#FF2F92; color:#fff; font-weight:600; }
.fr-nav-ico{ width:20px; text-align:center; }
.fr-nav-exit{ margin-top:12px; padding:10px 12px; border:1px solid #2a3442; border-radius:8px; background:transparent; color:#9fb0c4; font:inherit; cursor:pointer; }
.fr-nav-exit:hover{ border-color:#FF2F92; color:#fff; }
.fr-main{ flex:1; min-width:0; display:flex; flex-direction:column; }
.fr-topbar{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 22px; border-bottom:1px solid #1b2430; background:#0b0f16; }
.fr-eyebrow{ font-size:11px; letter-spacing:.2em; color:#FF2F92; font-weight:700; }
.fr-h1{ margin:2px 0 8px; font-size:28px; font-weight:800; color:#fff; line-height:1; }
.fr-pills{ display:flex; flex-wrap:wrap; gap:6px; }
.fr-pill{ padding:3px 10px; border-radius:99px; background:#172230; border:1px solid #243243; color:#a9b8c9; font-size:12px; font-weight:600; }
.fr-advance{ flex:0 0 auto; padding:11px 18px; border:0; border-radius:10px; background:linear-gradient(180deg,#ff3b6b,#d61f4f); color:#fff; font-weight:800; letter-spacing:.02em; cursor:pointer; box-shadow:0 6px 18px rgba(214,31,79,.3); }
.fr-advance:hover{ filter:brightness(1.07); }
.fr-section-body{ flex:1; padding:20px 22px; }
.fr-section-body > .res-card{ background:transparent; border:0; padding:0; box-shadow:none; width:auto; max-width:none; margin-inline:0; overflow:visible; }
.fr-card-panel{ padding:16px 18px; border:1px solid #1d2735; border-radius:14px; background:linear-gradient(180deg,#10161f,#0b1017); }
.fr-stub{ text-align:center; padding:48px 18px; }
.fr-stub-ico{ font-size:40px; }
.fr-stub-title{ font-size:20px; font-weight:800; color:#fff; margin:8px 0 4px; }
@media (max-width:760px){
  .fr-shell{ flex-direction:column; }
  .fr-sidebar{ flex-basis:auto; flex-direction:row; flex-wrap:wrap; border-right:0; border-bottom:1px solid #1b2430; }
  .fr-badge{ flex:1 1 100%; }
  .fr-nav{ flex-direction:row; flex-wrap:wrap; }
  .fr-nav-item{ flex:1 1 auto; }
  .fr-h1{ font-size:22px; }
  .fr-topbar{ flex-wrap:wrap; }
}

/* ===== Global career-shell overflow guard =====
   Career sections render in a column ~250px narrower than the viewport, but several
   franchise layouts were built for the old full-width card and only collapse via
   VIEWPORT media queries — so at desktop widths they overflow the column and clip.
   Force them to fit the column here (never hide content). */
.fr-section-body{ min-width:0; }
.fr-section-body .season-board,
.fr-section-body .fr-card-panel,
.fr-section-body .fr-front-office,
.fr-section-body .fr-dashboard{ min-width:0; max-width:100%; }
/* wide 2-col desks -> stack to the full column width */
.fr-section-body .fr-market-layout,
.fr-section-body .fr-office-market-shell,
.fr-section-body .fr-office-shell,
.fr-section-body .fr-transfer-grid,
.fr-section-body .fr-setup-grid,
.fr-section-body .fr-setting-grid.two,
.fr-section-body .fr-office-row{ grid-template-columns:minmax(0,1fr); }
/* stat strips -> wrap responsively to the container, not the viewport */
.fr-section-body .fr-office-summary,
.fr-section-body .fr-pulse-grid,
.fr-section-body .fr-dashboard .res-stats{ grid-template-columns:repeat(auto-fit, minmax(150px,1fr)); }
/* The embedded market sits in a narrow career column; stack rows here so .fr-shell never clips them. */
.fr-section-body .fr-front-office .fr-market-row{ grid-template-columns:minmax(0,1fr); }
.fr-section-body .fr-front-office .fr-market-head-row{ display:none; }
.fr-section-body .fr-front-office .fr-market-table .fr-market-rating{ text-align:left; }
.fr-section-body .fr-front-office .fr-market-actions,
.fr-section-body .fr-front-office .fr-market-actions-col{ align-content:stretch; }
.fr-section-body .fr-front-office .fr-market-actions .btn,
.fr-section-body .fr-front-office .fr-market-pick{ width:100%; min-width:0; }
.fr-section-body .fr-front-office .fr-transfer-row{ grid-template-columns:minmax(0,1fr); }
.fr-section-body .fr-front-office .fr-transfer-money,
.fr-section-body .fr-front-office .fr-transfer-action{ justify-self:stretch; text-align:left; justify-items:start; }
.fr-section-body .fr-front-office .fr-transfer-action .btn{ width:100%; min-width:0; }
/* let grid/flex cell content shrink instead of forcing the column wider than itself —
   broad on purpose (min-width:0 only drops min-content sizing; fixed widths are kept) */
.fr-section-body :is([class*="-grid"],[class*="-row"],[class*="-stats"],[class*="-shell"],[class*="-layout"],.fr-roster,.fr-summary,.fr-league-detail) > *{ min-width:0; }

/* ===== Career-Mode summary strip (Phase 2: 4 glass panels) ===== */
.fr-summary{ display:grid; grid-template-columns:repeat(auto-fit, minmax(200px,1fr)); gap:14px; margin-bottom:18px; }
.fr-panel{ padding:16px; border:1px solid #1d2735; border-radius:14px; background:linear-gradient(180deg,rgba(22,30,42,.7),rgba(13,18,26,.7)); }
.fr-panel-h{ font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:#8fa3ba; font-weight:700; margin-bottom:10px; }
.fr-fin-name{ font-size:15px; font-weight:800; color:#fff; margin-bottom:8px; }
.fr-fin-row{ display:flex; justify-content:space-between; align-items:center; padding:4px 0; color:#c2cedd; font-size:13px; }
.fr-fin-row b{ color:#fff; }
.fr-fin-row.total{ margin-top:6px; padding-top:8px; border-top:1px solid #243243; }
.fr-fin-row.total b{ color:#7fb89a; font-size:15px; }
.fr-fin-row.total.over b{ color:#ff8a8a; }
.fr-rc-row{ display:flex; gap:8px; }
.fr-rc{ flex:1; text-align:center; padding:8px 4px; border:1px solid #243243; border-radius:10px; background:rgba(16,21,30,.5); }
.fr-rc b{ display:block; font-size:24px; font-weight:800; color:#fff; line-height:1; }
.fr-rc span{ font-size:11px; color:#8fa3ba; }
.fr-rc.warn b{ color:#ffcf4d; }
.fr-mini-pills{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.fr-mini-pill{ padding:3px 9px; border-radius:99px; background:#172230; border:1px solid #243243; color:#a9b8c9; font-size:11px; font-weight:600; }
.fr-rating-num{ font-family:'Teko',sans-serif; font-size:46px; line-height:.9; font-weight:700; }
.fr-rating-num small{ font-size:14px; color:#8fa3ba; margin-left:4px; font-family:inherit; }
.fr-rating-bar{ height:7px; border-radius:99px; background:#1a2532; overflow:hidden; margin:8px 0 10px; }
.fr-rating-bar i{ display:block; height:100%; border-radius:99px; }
.fr-synergy{ display:flex; align-items:center; gap:8px; font-size:12px; color:#8fa3ba; margin:-2px 0 8px; }
.fr-synergy b{ color:#7cd0ff; font-size:14px; }
.fr-why-h{ font-size:11px; color:#7d8a9c; text-transform:uppercase; letter-spacing:.06em; margin-bottom:4px; }
.fr-why{ margin:0; padding-left:16px; color:#c2cedd; font-size:12px; line-height:1.5; }
.fr-why-ok{ color:#7fb89a; font-size:13px; }
.fr-panel-actions .fr-act{ display:block; width:100%; margin-bottom:8px; box-sizing:border-box; }
.fr-act-ai{ background:linear-gradient(180deg,#7c4dff,#5a2fd6); border:0; color:#fff; font-weight:700; }
.fr-act-ai:hover{ filter:brightness(1.08); }
@media (max-width:980px){ .fr-summary{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px){ .fr-summary{ grid-template-columns:1fr; } }
.fr-office-now{ margin-bottom:14px; font-size:14px; color:#c2cedd; }
.fr-office-now b{ color:#fff; font-weight:800; letter-spacing:.02em; }

/* ===== Manage Team PlayerCards (Phase 3) ===== */
.fr-pc-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(220px,1fr)); gap:12px; margin-top:10px; }
.fr-pc-bench-h{ margin-top:18px; }
.fr-pc{ padding:14px; border:1px solid #243243; border-radius:14px; background:linear-gradient(180deg,#121925,#0d131c); }
.fr-pc-empty{ display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; border-style:dashed; color:#7d8a9c; min-height:120px; }
.fr-pc-top{ display:flex; align-items:center; gap:10px; }
.fr-pc-av{ width:42px; height:42px; flex:0 0 42px; display:flex; align-items:center; justify-content:center; border-radius:11px; border:2px solid #344a5e; font-weight:800; font-size:15px; background:rgba(255,255,255,.03); }
.fr-pc-id{ flex:1; min-width:0; }
.fr-pc-name{ font-weight:800; color:#fff; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fr-pc-c{ color:#ffcf4d; }
.fr-pc-status{ font-size:10px; letter-spacing:.1em; color:#8fa3ba; }
.fr-pc-ovr{ font-family:'Teko',sans-serif; font-size:30px; line-height:1; font-weight:700; text-align:center; }
.fr-pc-ovr small{ font-size:11px; color:#8fa3ba; display:block; font-family:inherit; line-height:1; }
.fr-pc-pills{ display:flex; gap:6px; margin:10px 0; }
.fr-pc-pill{ padding:3px 9px; border-radius:8px; background:#172230; border:1px solid #243243; color:#a9b8c9; font-size:11px; font-weight:700; }
.fr-pc-pill.role{ color:#7cd0ff; border-color:#2a4a5e; }
.fr-pc-meta{ display:flex; gap:8px; }
.fr-pc-meta > div{ flex:1; padding:7px 9px; border-radius:9px; background:rgba(16,21,30,.55); }
.fr-pc-meta span{ display:block; font-size:10px; color:#8fa3ba; }
.fr-pc-meta b{ color:#fff; font-size:13px; }
.fr-pc-actions{ margin-top:10px; display:flex; gap:6px; align-items:center; }
.fr-pc-actions .btn-mini{ padding:6px 12px; font-size:12px; }
.fr-pc-release{ background:transparent; border:1px solid #5a2a2a; color:#ff9a9a; }
.fr-pc-release:hover{ border-color:#ff7a7a; }
.fr-pc-locked{ font-size:11px; color:#7d8a9c; }
.fr-pc-captain{ border-color:#6b5a1f; box-shadow:inset 0 0 0 1px rgba(255,207,77,.10); }
.fr-pc-iscap{ font-size:11px; color:#ffcf4d; font-weight:700; }
.fr-pc-makecap{ background:transparent; border:1px solid #2a4a5e; color:#7cd0ff; }
.fr-pc-makecap:hover{ border-color:#ffcf4d; color:#ffcf4d; }
.fr-pc-makecap small{ opacity:.8; font-weight:700; }
