/* Court Ascent v1.24 — profil gracza + publiczne rankingi */

.home-profile-strip{
  display:grid;
  grid-template-columns:minmax(170px,1.25fr) repeat(4,minmax(90px,.62fr)) auto;
  gap:10px;
  align-items:center;
  margin:0 0 18px;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(35,120,216,.11),rgba(242,140,40,.07));
}
.home-profile-copy,.home-profile-stat{display:flex;flex-direction:column;gap:3px}
.home-profile-copy span,.home-profile-stat span{font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:900}
.home-profile-copy strong{font-size:14px}
.home-profile-stat strong{font-size:18px}
.home-profile-stat small{font-size:8px;color:var(--muted)}
.home-profile-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}

.profile-page,.rankings-page{max-width:1160px}
.profile-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin:8px 0 18px}
.profile-hero h1,.rankings-head h1{font-size:clamp(34px,5vw,54px);line-height:1;margin:7px 0 8px}
.profile-hero p,.rankings-head p{margin:0}
.profile-meta{display:grid;grid-template-columns:auto auto;gap:5px 12px;align-items:center;min-width:210px}
.profile-meta span{font-size:8px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:900}
.profile-meta strong{font-size:11px}
.profile-meta .navbtn{grid-column:1/-1;text-align:center;margin-top:4px}

.profile-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.profile-module{border:1px solid var(--line);border-radius:18px;padding:17px;background:linear-gradient(180deg,rgba(20,34,56,.97),rgba(11,20,33,.97));box-shadow:var(--shadow)}
.profile-module.history{border-color:rgba(242,140,40,.28)}
.profile-module.career{border-color:rgba(35,120,216,.34)}
.profile-module-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.profile-module-head span{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--orange);font-weight:950}
.profile-module-head a{font-size:9px;color:#c6ddf6;font-weight:900}
.profile-main-value{display:block;font-size:38px;line-height:1;margin:18px 0 5px}
.profile-module>small{color:var(--muted);font-size:9px}
.profile-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:15px}
.profile-stat-grid>div{border:1px solid rgba(88,123,160,.24);border-radius:10px;padding:9px;background:rgba(6,17,29,.36)}
.profile-stat-grid span{display:block;font-size:7px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:900}
.profile-stat-grid strong{display:block;margin-top:3px;font-size:12px}

.profile-careers{margin-top:14px!important;overflow:visible!important}
.profile-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.profile-section-head h2{margin:0 0 4px}
.profile-section-head p{margin:0}
.profile-career-list{display:grid;gap:8px;margin-top:14px}
.profile-career-list article{display:grid;grid-template-columns:minmax(180px,1.6fr) repeat(4,minmax(80px,.7fr)) auto;gap:10px;align-items:center;border:1px solid rgba(88,123,160,.24);border-radius:12px;padding:11px;background:rgba(7,20,34,.44)}
.profile-career-list article>div{display:flex;flex-direction:column;gap:2px}
.profile-career-list article span{font-size:8px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.profile-career-list article>div:first-child span{text-transform:none;letter-spacing:0}
.profile-career-list article strong{font-size:11px}
.profile-career-list article small{font-size:7px;color:var(--muted)}
.profile-empty{padding:22px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:11px;margin-top:12px}
.profile-empty a{color:#ffd0a0;text-decoration:underline}

.rankings-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-bottom:14px}
.ranking-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0 14px}
.ranking-tabs a{border:1px solid var(--line);background:#0c1726;color:#c6d4e4;border-radius:10px;padding:9px 11px;font-size:9px;font-weight:950}
.ranking-tabs a.active{border-color:rgba(242,140,40,.58);background:rgba(242,140,40,.12);color:#ffd09c}
.ranking-panel{overflow:visible!important}
.ranking-title{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.ranking-title h2{margin:0 0 5px}
.ranking-title p{margin:0;color:var(--muted);font-size:10px;line-height:1.5}
.ranking-title>span{border:1px solid var(--line);border-radius:999px;padding:6px 8px;color:var(--muted);font-size:8px;font-weight:900;white-space:nowrap}
.ranking-table-wrap{overflow-x:auto;margin-top:12px}
.ranking-table{width:100%;border-collapse:collapse;min-width:720px}
.ranking-table th,.ranking-table td{padding:10px 9px;border-bottom:1px solid var(--line);text-align:left;font-size:10px}
.ranking-table th{font-size:8px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.ranking-table td strong{font-size:11px}
.ranking-table td small{display:inline-flex;margin-left:6px;padding:2px 5px;border-radius:999px;background:rgba(242,140,40,.13);color:#ffc487;font-size:7px;font-weight:950}
.ranking-table tr.is-me{background:rgba(35,120,216,.09)}
.ranking-table tr.is-me td:first-child{border-left:2px solid var(--blue)}
.rank-pos{font-weight:950;width:55px}
.rank-main{font-size:14px!important;font-weight:950;color:#fff}
.ranking-note{color:var(--muted);font-size:9px;line-height:1.55;margin:10px 2px}

@media(max-width:980px){
  .home-profile-strip{grid-template-columns:repeat(4,1fr)}
  .home-profile-copy{grid-column:1/-1}
  .home-profile-actions{grid-column:1/-1;justify-content:flex-start}
  .profile-module-grid{grid-template-columns:1fr 1fr}
  .profile-module.career{grid-column:auto}
  .profile-career-list article{grid-template-columns:minmax(180px,1.5fr) repeat(2,minmax(90px,.7fr)) auto}
  .profile-career-list article>div:nth-of-type(4),
  .profile-career-list article>div:nth-of-type(5){display:none}
}
@media(max-width:680px){
  .home-profile-strip{grid-template-columns:1fr 1fr}
  .home-profile-copy,.home-profile-actions{grid-column:1/-1}
  .profile-hero,.rankings-head,.profile-section-head{flex-direction:column;align-items:stretch}
  .profile-meta{min-width:0}
  .profile-module-grid{grid-template-columns:1fr}
  .profile-module.career{grid-column:auto}
  .profile-career-list article{grid-template-columns:1fr 1fr auto}
  .profile-career-list article>div:first-child{grid-column:1/-1}
  .profile-career-list article>div:nth-of-type(3){display:none}
  .profile-career-list article>a{grid-column:3;grid-row:2}
}


/* v1.26.3 — układ 2x2 strony głównej */
.choice-grid.court-modules{
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
}
.choice-grid.court-modules .choice{
  width:auto;
  min-width:0;
}

/* cztery główne moduły profilu w równym układzie 2x2 */
.profile-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.profile-module.draft{border-color:rgba(242,140,40,.42)}

@media(max-width:760px){
  .choice-grid.court-modules{grid-template-columns:1fr}
}

/* v1.26.4 — finalne wymuszenie 2x2 */
.profile-module-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.profile-module-grid .profile-module.career{grid-column:auto!important}
@media(max-width:760px){
  .profile-module-grid{grid-template-columns:1fr!important}
}
