.draft-pick-modal {
  max-width: 48rem;
  width: min(48rem, calc(100vw - 2rem));
}

.draft-pick-modal table {
  width: 100%;
}

.draft-pick-modal th,
.draft-pick-modal td {
  text-align: left;
}

.draft-pick-modal-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.draft-pick-modal-close {
  cursor: pointer;
  font-weight: bold;
}

.player-modal {
  border: 1px solid #cfd4dc;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgb(17 24 39 / 0.22);
  max-height: calc(100vh - 2rem);
  max-width: 72rem;
  padding: 0;
  width: min(72rem, calc(100vw - 2rem));
}

.player-modal::backdrop {
  background: rgb(17 24 39 / 0.48);
}

.player-modal-header {
  align-items: center;
  background:
    linear-gradient(180deg,
      var(--player-modal-primary-color, #000000) 0%,
      var(--player-modal-primary-color, #000000) 55%,
      var(--player-modal-secondary-color, #000000) 100%);
  border-bottom: 1px solid var(--player-modal-secondary-color, #000000);
  box-shadow: inset 0 -0.15rem 0 var(--player-modal-secondary-color, #000000);
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 1rem;
}

.player-modal-close {
  align-items: center;
  background: rgb(255 255 255 / 0.94);
  border: 1px solid rgb(17 24 39 / 0.14);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgb(17 24 39 / 0.20), inset 0 1px 0 rgb(255 255 255 / 0.85);
  color: transparent;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0;
  height: 2.15rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: relative;
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  width: 2.15rem;
}

.player-modal-close::before,
.player-modal-close::after {
  background: #111827;
  border-radius: 999px;
  content: "";
  height: 0.13rem;
  position: absolute;
  width: 0.95rem;
}

.player-modal-close::before {
  transform: rotate(45deg);
}

.player-modal-close::after {
  transform: rotate(-45deg);
}

.player-modal-close:hover {
  background: #ffffff;
  box-shadow: 0 10px 22px rgb(17 24 39 / 0.26), inset 0 1px 0 #ffffff;
  transform: translateY(-1px);
}

.player-modal-close:focus-visible {
  box-shadow: 0 0 0 4px rgb(255 255 255 / 0.78), 0 10px 22px rgb(17 24 39 / 0.26);
  outline: 2px solid #111827;
  outline-offset: 2px;
}

.player-modal-content {
  max-height: calc(100vh - 6rem);
  overflow: auto;
  padding: 1rem;
}

.player-modal-content .player-profile-hero {
  grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr) minmax(19rem, 24rem);
  margin-top: 0;
}

.player-modal-content .player-profile-summary {
  min-width: 0;
  width: auto;
}

.player-modal-content .player-profile-summary h1 {
  font-size: 2rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-modal-content .player-profile-stats-panel {
  min-width: 0;
}

.player-modal-content .player-profile-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.player-modal-content .player-profile-stat {
  min-width: 0;
}

.player-modal-content .player-profile-stat-label,
.player-modal-content .player-profile-stat strong,
.player-modal-content .player-profile-stat-rank {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-modal-content .player-profile-stat strong {
  font-size: 2rem;
}

.player-modal-content .player-profile-actions {
  display: none;
}

.player-modal-loading {
  margin: 0;
}
