.team-hero,
.athlete-hero{
  position:relative;
  overflow:hidden;
}

.team-hero .public-shell,
.athlete-hero .public-shell{
  position:relative;
  z-index:1;
}

.team-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

.team-kpi{
  padding:22px;
  border-radius:24px;
  background:linear-gradient(180deg,#fff,#f7fbff);
  border:1px solid var(--public-line);
  box-shadow:var(--public-shadow);
}

.team-kpi i,
.stat-chip i,
.profile-list i{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  margin-bottom:12px;
  border-radius:14px;
  background:#edf6ff;
  color:var(--ccdres-blue);
  font-size:20px;
  line-height:1;
}

.team-kpi span{
  display:block;
  color:var(--public-muted);
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.team-kpi strong{
  display:block;
  margin-top:10px;
  font-size:30px;
  color:var(--public-navy);
}

.team-filter{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  padding:22px;
  border-radius:28px;
  background:#fff;
  border:1px solid var(--public-line);
  box-shadow:var(--public-shadow);
  margin-bottom:26px;
}

.team-filter__actions{
  display:flex;
  align-items:end;
  gap:10px;
}

.team-card{
  display:flex;
  flex-direction:column;
  min-height:100%;
}

.team-card__media{
  min-height:240px;
}

.team-card__overlay{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:20px;
}

.team-card__rank{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:54px;
  min-height:54px;
  padding:10px;
  border-radius:20px;
  background:rgba(255,255,255,.92);
  color:var(--public-blue);
  font-size:24px;
  font-weight:900;
}

.team-card__body{
  display:flex;
  flex-direction:column;
  gap:14px;
  flex:1;
}

.team-card__footer{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:auto;
}

.team-stats-grid,
.athlete-stats-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.stat-chip{
  padding:18px;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--public-line);
  box-shadow:var(--public-shadow);
}

.stat-chip span{
  display:block;
  color:var(--public-muted);
  font-size:13px;
}

.stat-chip strong{
  display:block;
  margin-top:8px;
  font-size:28px;
  color:var(--public-navy);
}

.team-layout,
.athlete-layout{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:24px;
}

.chart-panel{
  overflow:hidden;
}

.chart-panel svg{
  width:100%;
  height:auto;
  display:block;
}

.roster-grid,
.athlete-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.roster-card,
.athlete-card{
  overflow:hidden;
  border-radius:28px;
  background:linear-gradient(180deg,#fff,#f7fbff);
  border:1px solid var(--public-line);
  box-shadow:var(--public-shadow);
}

.athlete-card{
  position:relative;
}

.athlete-card__media{
  position:relative;
  min-height:270px;
  background:
    linear-gradient(180deg, rgba(14,42,71,.08), rgba(14,42,71,.38)),
    var(--athlete-photo),
    url('/assets/img/sports/hero-sports.svg');
  background-size:cover;
  background-position:center;
}

.athlete-card__body{
  padding:22px;
}

.athlete-card__badge-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:14px;
}

.athlete-number{
  position:absolute;
  right:18px;
  bottom:18px;
  min-width:58px;
  min-height:58px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  background:rgba(255,255,255,.92);
  color:var(--public-blue);
  font-size:26px;
  font-weight:900;
}

.profile-card{
  padding:30px;
  border-radius:32px;
  background:linear-gradient(145deg,rgba(14,42,71,.96),rgba(27,93,160,.88));
  color:#fff;
  box-shadow:0 26px 60px rgba(14,42,71,.22);
}

.profile-card__head{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:18px;
}

.profile-card__avatar{
  width:92px;
  height:92px;
  border-radius:26px;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.24);
}

.profile-card p{
  color:rgba(255,255,255,.82);
}

.profile-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}

.profile-list div{
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.1);
}

.profile-list i{
  width:36px;
  height:36px;
  margin-bottom:10px;
  background:rgba(255,255,255,.16);
  color:#fff;
}

.profile-list span{
  display:block;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(255,255,255,.64);
}

.profile-list strong{
  display:block;
  margin-top:6px;
  font-size:16px;
}

.coach-card{
  display:flex;
  gap:16px;
  align-items:flex-start;
}

.coach-card__photo{
  width:88px;
  height:88px;
  border-radius:24px;
  object-fit:cover;
}

.lineup-list{
  display:grid;
  gap:18px;
}

.lineup-card{
  padding:22px;
  border-radius:26px;
  background:#fff;
  border:1px solid var(--public-line);
  box-shadow:var(--public-shadow);
}

.lineup-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.lineup-columns ul{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--public-muted);
}

.album-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
}

.mini-chart{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.mini-chart__row{
  display:grid;
  grid-template-columns:96px 1fr 42px;
  gap:10px;
  align-items:center;
  font-size:13px;
  color:var(--public-muted);
}

.mini-chart__bar{
  overflow:hidden;
  height:10px;
  border-radius:999px;
  background:#e7eef6;
}

.mini-chart__bar span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(145deg,var(--public-blue),var(--public-green));
}

.empty-state{
  padding:30px;
  border-radius:28px;
  background:#fff;
  border:1px dashed #bfd3e4;
  color:var(--public-muted);
}

@media (max-width:1080px){
  .team-strip,
  .team-stats-grid,
  .athlete-stats-grid,
  .album-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .roster-grid,
  .athlete-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:860px){
  .team-layout,
  .athlete-layout,
  .lineup-columns,
  .team-filter,
  .profile-list{
    grid-template-columns:1fr;
  }
}

@media (max-width:640px){
  .team-strip,
  .team-stats-grid,
  .athlete-stats-grid,
  .roster-grid,
  .athlete-grid,
  .album-grid{
    grid-template-columns:1fr;
  }
}
