/* Manager page (/career/managers/{id}). Builds on club-page.css (topline, stats row, tabs, cards, table). */
.mgr-page { max-width: 1100px; }

/* Hero: age left, photo centre, current club right; name and badges below. */
.mgr-hero { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: clamp(8px, 6vw, 110px); max-width: 760px; margin: 4px auto 0; text-align: center; }
.mgr-hero__side { display: grid; justify-items: center; gap: 2px; align-self: center; }
.mgr-hero__side > span { color: #9fb0c4; font-size: .74rem; }
.mgr-hero__side--left { justify-self: end; }
.mgr-hero__side--right { justify-self: start; }
.mgr-hero__side--left strong { font-size: clamp(2.6rem, 9vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: #fff; }
.mgr-hero__side small { color: #9fb0c4; font-size: .7rem; }
.mgr-hero__crest { display: grid; place-items: center; width: clamp(52px, 13vw, 64px); aspect-ratio: 1; margin-top: 4px; }
.mgr-hero__crest img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 20px #0008); }
.mgr-hero__link { color: #6fb2ff; font-size: .72rem; text-decoration: none; }
.mgr-hero__link:hover { color: #fff; }
.mgr-hero__none { color: #6d7d90; font-size: 1.6rem; }

.mgr-hero__photo { position: relative; margin: 0; width: clamp(150px, 42vw, 230px); }
.mgr-hero__photo::before { content: ""; position: absolute; inset: 18% -10% 0; border-radius: 50%; background: radial-gradient(closest-side, #1f5fa866, #1f5fa800); z-index: 0; }
.mgr-hero__photo img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 12 / 13; object-fit: contain; object-position: bottom;
  -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.mgr-hero__photo figcaption { position: relative; z-index: 1; margin-top: 2px; font-size: .58rem; }
.mgr-hero__photo figcaption a { color: #6d7d90; text-decoration: none; }

.mgr-hero__eyebrow { grid-column: 1 / -1; margin: 2px 0 0; color: #6fb2ff; font-size: .62rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.mgr-hero h1 { grid-column: 1 / -1; margin: 2px 0 0; font-size: clamp(2rem, 8vw, 2.4rem); font-weight: 300; line-height: 1.05; letter-spacing: -.035em; }
.mgr-hero h1 b { font-weight: 800; }
.mgr-hero__meta { margin-top: 8px; }
.mgr-hero__meta img.catalog-logo { width: 24px; height: 24px; object-fit: contain; }
.mgr-hero__actions { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.mgr-save { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border: 1px solid #ffffff24; border-radius: 10px; background: #111922; color: #dbe7f4; font: inherit; font-size: .84rem; font-weight: 650; cursor: pointer; }
.mgr-save:hover { border-color: #3d8ff0; color: #fff; }
.mgr-save[aria-pressed="true"] { border-color: #2f8d55; background: #15392a; color: #8be3a4; }
.mgr-save[aria-pressed="true"] svg { fill: currentColor; }

.mgr-stats { max-width: 640px; }
.mgr-stats__good { color: #8be3a4 !important; }

/* Overview: setup on the left, details and key players on the right. */
.mgr-overview { display: grid; gap: 16px; padding-top: 18px; }
.mgr-overview[hidden], .mgr-panel[hidden] { display: none; }
@media (min-width: 1000px) { .mgr-overview { grid-template-columns: minmax(0, 1fr) 440px; align-items: start; } }
.mgr-overview__side { display: grid; gap: 14px; }
.mgr-overview__side .club-card + .club-card { margin-top: 0; }
.mgr-page .club-card { padding: 16px; border-radius: 16px; }
.mgr-page .club-card header { align-items: flex-start; }
.mgr-page .club-card h3 { font-size: 1.02rem; }
.mgr-page .club-card header p { margin: 2px 0 0; color: #7f91a6; font-size: .7rem; }
.mgr-page .club-card header svg { color: #6fb2ff; }

/* Pitch with simple markings; players are placed per formation row. */
.mgr-pitch { position: relative; height: calc(var(--rows, 4) * 72px + 44px); margin-top: 4px; border: 1px solid #ffffff1a; border-radius: 12px;
  background: linear-gradient(180deg, #13202b, #0f1b24); overflow: hidden; }
.mgr-pitch::before { content: ""; position: absolute; inset: 10px; border: 1px solid #ffffff14; border-radius: 4px; }
.mgr-pitch__half { position: absolute; left: 10px; right: 10px; top: 50%; border-top: 1px solid #ffffff14; }
.mgr-pitch__circle { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; border: 1px solid #ffffff14; border-radius: 50%; transform: translate(-50%, -50%); }
.mgr-pitch__box { position: absolute; left: 30%; right: 30%; height: 13%; border: 1px solid #ffffff14; }
.mgr-pitch__box--top { top: 10px; border-top: 0; }
.mgr-pitch__box--bottom { bottom: 10px; border-bottom: 0; }
.mgr-slot { position: absolute; z-index: 1; display: grid; justify-items: center; width: 84px; margin-left: -42px; text-align: center; transform: translateY(-50%); }
.mgr-slot a { display: grid; justify-items: center; gap: 2px; color: #fff; text-decoration: none; }
.mgr-slot img { width: 38px; height: 42px; object-fit: cover; object-position: top; border-radius: 50%; background: #1b2836; }
.mgr-slot b { max-width: 84px; overflow: hidden; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.mgr-slot small { color: #8fa0b4; font-size: .56rem; font-weight: 700; }
.mgr-slot em { margin-left: 2px; color: #8be3a4; font-size: .7rem; font-style: normal; font-weight: 800; }
.mgr-setup .club-card__note { margin-top: 10px; }

/* Details list. */
.mgr-details dl { margin: 0; }
.mgr-details dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; border-top: 1px solid #ffffff0d; font-size: .8rem; }
.mgr-details dt { color: #8fa0b4; }
.mgr-details dd { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #eef4fb; text-align: right; }
.mgr-details dd a { display: inline-flex; align-items: center; gap: 6px; color: #eef4fb; text-decoration: none; }
.mgr-details dd a:hover { color: #6fb2ff; }
.mgr-details .nation-flag { width: 20px !important; height: 15px !important; object-fit: contain; }
.mgr-muted { color: #6d7d90; font-size: .72rem; }

/* Key players. */
.mgr-key header a { font-size: .7rem; }
.mgr-key ol { margin: 0; padding: 0; list-style: none; }
.mgr-key li { display: grid; grid-template-columns: 36px minmax(0, 1fr) 34px 34px; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #ffffff0d; }
.mgr-key li img { width: 36px; height: 40px; object-fit: cover; object-position: top; border-radius: 8px; background: #1a2532; }
.mgr-key li a { display: grid; gap: 2px; min-width: 0; color: #fff; text-decoration: none; }
.mgr-key li b { overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.mgr-key li small { color: #8fa0b4; font-size: .66rem; }
.mgr-key li .club-pos { min-width: 28px; height: 17px; margin: 0 4px 0 0; font-size: .58rem; }
.mgr-key__ovr, .mgr-key__pot { display: inline-grid; place-items: center; height: 28px; border-radius: 7px; font-size: .86rem; font-weight: 800; }
.mgr-key__ovr { background: #173826; color: #8be3a4; }
.mgr-key__pot { color: #c9d6e5; }

/* Squad and league manager tabs. */
.mgr-panel { padding-top: 18px; }
.mgr-panel__title { margin: 0 0 12px; font-size: 1.05rem; }
.mgr-colleagues { display: grid; gap: 8px; }
@media (min-width: 700px) { .mgr-colleagues { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mgr-colleague { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid #ffffff14; border-radius: 12px; background: #10171f; color: #fff; text-decoration: none; }
.mgr-colleague:hover { border-color: #3d8ff0; }
.mgr-colleague.is-current { border-color: #2f6db3; background: #11233a; }
.mgr-colleague__photo { width: 44px; height: 48px; object-fit: cover; object-position: top; border-radius: 10px; background: #1a2532; }
.mgr-colleague span { display: grid; gap: 3px; min-width: 0; }
.mgr-colleague b { overflow: hidden; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.mgr-colleague small { display: inline-flex; align-items: center; gap: 6px; overflow: hidden; color: #8fa0b4; font-size: .72rem; white-space: nowrap; }
.mgr-colleague .nation-flag { width: 22px !important; height: 16px !important; object-fit: contain; }

@media (max-width: 767px) {
  .mgr-page { padding-top: 10px; }
  .mgr-hero { column-gap: 6px; }
  .mgr-hero__photo { width: clamp(140px, 44vw, 190px); }
  .mgr-pitch { height: calc(var(--rows, 4) * 70px + 40px); }
  .mgr-slot { width: 70px; margin-left: -35px; }
  .mgr-slot b { max-width: 70px; font-size: .62rem; }
  .mgr-slot img { width: 32px; height: 36px; }
  .mgr-page .club-squad__side { display: block; }
  .mgr-page .club-tabs .cc-section-nav { justify-content: flex-start; gap: 14px; }
}
