.scrim-directory #teamDetails {
  width: min(1200px, calc(100% - 16px));
  max-height: 96dvh;
  padding: 0;
  border-radius: 12px;
}
#teamDetails #closeTeamDetails, #scrimLineupPreview > button {
  float: none;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 3px 5px 3px auto;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1;
}
#teamDetails #closeTeamDetails:focus-visible {
  outline: 1px solid #56d9ff;
  outline-offset: 1px;
}
.gsml-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  isolation: isolate;
  container-type: inline-size;
  background: white url("images/gsml-roster-base.jpg") center / 100% 100% no-repeat;
  font-family: "Barlow Condensed", Impact, sans-serif;
  text-transform: uppercase;
}
.gsml-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("images/gsml-roster-shade.png") center / 100% 100% no-repeat;
}
.gsml-team-logo {
  position: absolute;
  left: 5.4%;
  top: 1.3%;
  width: 9.1%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}
:is(#teamDetails, #scrimProfileLineup, #scrimLineupPreview, .profile-poster-shell) .gsml-poster h2 {
  position: absolute;
  inset: 1% 17% auto 15.8%;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #111;
  text-shadow: 0 0 .3cqw white, 0 0 .5cqw white;
  font: italic 900 5.8cqw/1.1 "Barlow Condensed", Impact, sans-serif;
}
.gsml-lineup {
  position: absolute;
  inset: 19% 5.7% 20% 5.6%;
  display: grid;
  grid-template-columns: repeat(5, 18%);
  justify-content: space-between;
}
.gsml-slot { position: relative; min-width: 0; }
.gsml-photo {
  display: block;
  width: 100%;
  height: 84%;
  object-fit: cover;
  object-position: center top;
}
.gsml-caption {
  position: absolute;
  z-index: 1;
  inset: 75% 0 auto;
  text-align: center;
  color: white;
  line-height: 1.1;
  text-shadow: 0 1px 3px black;
}
.gsml-caption small, .gsml-caption strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gsml-caption small { font: 700 1.55cqw/1.2 Arial, sans-serif; margin-bottom: .4cqw; }
.gsml-caption strong { font-size: 2.25cqw; font-weight: 900; font-style: italic; }
.gsml-stats {
  position: absolute;
  inset: 90.4% 1% 2.3%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 2.65cqw;
  font-weight: 800;
}
.gsml-role-art {
  position: absolute;
  z-index: 1;
  inset: 0 0 -4%;
  pointer-events: none;
  background: url("images/gsml-poster-roles.png") no-repeat;
  background-size: 100cqw 56.25cqw;
  background-position: calc(-5.6cqw - var(--slot) * 18.184cqw) -10.6875cqw;
}
.gsml-role-art { clip-path: inset(85% 0 0); }

#scrimProfileLineup { width: 100%; min-width: 0; margin-block: 12px; }
#scrimLineupPreview { padding: 0; }

.profile-poster-shell { position:relative; margin-bottom:14px; border-radius:10px; overflow:hidden; background:#0a192a; }
.profile-poster-shell .profile-poster-content { margin:0; cursor:zoom-in; }
.profile-poster-actions { position:absolute; right:1%; bottom:10%; display:flex; gap:4px; padding:3px; border-radius:10px; background:#09192ad9; }
.profile-poster-actions button, #scrimFullPoster header :is(button,a) { display:grid; place-items:center; width:32px; height:32px; padding:0; border:1px solid #31516a; border-radius:8px; background:#132c40; color:#b8efff; cursor:pointer; }
#scrimFullPoster { width:min(1280px,96vw); max-height:96dvh; box-sizing:border-box; padding:0; border:1px solid #32526b; border-radius:12px; background:#09192a; color:#eff8ff; }
#scrimFullPoster::backdrop { background:#020815dc; }
#scrimFullPoster header { display:flex; align-items:center; gap:6px; padding:5px 8px; }
#scrimFullPoster header strong { flex:1; font-size:14px; }
#scrimFullPoster header svg { width:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
#scrimFullPoster [hidden] { display:none; }
#scrimFullPoster p { padding:0 12px; }
.poster-zoom-pane { max-height:calc(94dvh - 46px); overflow:auto; }
#scrimFullPoster .poster-zoom { display:block; width:100%; min-height:0; padding:0; border:0; background:transparent; cursor:zoom-in; }
#scrimFullPoster .poster-zoom.enlarged { width:max(1600px,150%); cursor:zoom-out; }
.poster-zoom img { display:block; width:100%; height:auto; }

.gsml-poster .gtml-roster-badge { position:absolute; left:82.75%; top:-3.5%; width:14.4%; height:auto; pointer-events:none; }
.laga-roster-poster{background-image:url('images/laga-roster-base-glcs-v3.png')}
.laga-roster-poster .laga-poster-roster-label{position:absolute;left:16%;top:12.6%;width:28%;height:5.8%;display:flex;align-items:center;background:transparent;color:#111;font:italic 900 2.8cqw/1 "Barlow Condensed",Impact,sans-serif;white-space:nowrap}
.gsml-poster .laga-poster-badge{left:84.75%;top:.8%;width:10.5%;height:auto}
#lagaTeamPanel.laga-profile-poster-ready>.laga-profile-heading,#lagaTeamPanel.laga-profile-poster-ready>#lagaPlayerLineup{display:none}
#lagaProfilePoster{width:100%;margin:0 0 16px}
#lagaProfilePoster .profile-poster-actions button{min-width:32px;padding:0}
