.draft-pick-modal {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 22px 56px rgb(15 23 42 / 0.28);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  max-width: 48rem;
  overflow: hidden;
  padding: 0;
  width: min(48rem, calc(100vw - 2rem));
}

.draft-pick-modal::backdrop {
  background: rgb(15 23 42 / 0.48);
}

.draft-pick-modal[open] {
  display: flex;
  flex-direction: column;
}

.draft-pick-modal table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.draft-pick-modal th,
.draft-pick-modal td {
  border-bottom: 1px solid var(--tlfl-table-border);
  text-align: left;
}

.draft-pick-modal-header {
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-bottom: 1px solid #dbe3ef;
  display: flex;
  flex: 0 0 auto;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.1rem;
}

.draft-pick-modal-header h2 {
  font-size: 1.45rem;
  line-height: 1.1;
  margin: 0;
}

.draft-pick-modal-pick-label {
  background:
    linear-gradient(90deg, rgb(31 85 171 / 0.10), rgb(31 85 171 / 0.03)),
    #f8fafc;
  border-bottom: 1px solid #dbe3ef;
  color: #334155;
  flex: 0 0 auto;
  font-weight: 900;
  margin: 0;
  padding: 0.72rem 1.1rem;
}

.draft-modal-close {
  align-items: center;
  appearance: none;
  background: linear-gradient(180deg, #ffffff, #edf2f7);
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgb(17 24 39 / 0.12), inset 0 1px 0 rgb(255 255 255 / 0.85);
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0;
  font-weight: bold;
  height: 2.35rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: relative;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
  width: 2.35rem;
}

.draft-modal-close::before,
.draft-modal-close::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 1rem;
  position: absolute;
  width: 0.15rem;
}

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

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

.draft-modal-close:hover {
  background: #ffffff;
  border-color: #94a3b8;
  box-shadow: 0 8px 18px rgb(17 24 39 / 0.16), inset 0 1px 0 #ffffff;
  transform: translateY(-1px);
}

.draft-modal-close:focus-visible {
  box-shadow: var(--tlfl-focus-ring);
  outline: 2px solid var(--tlfl-blue-dark);
  outline-offset: 2px;
}

.draft-pick-modal-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.draft-pick-modal-actions {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid #dbe3ef;
  box-shadow: 0 -8px 18px rgb(15 23 42 / 0.06);
  display: flex;
  flex: 0 0 auto;
  gap: 0.75rem;
  justify-content: center;
  margin: 0;
  padding: 0.78rem 1.1rem;
}

.draft-pick-submit-button {
  align-items: center;
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  line-height: 1.1;
  min-height: 2.45rem;
  padding: 0.62rem 0.95rem;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.draft-pick-submit-button {
  background: linear-gradient(180deg, var(--tlfl-blue), var(--tlfl-blue-dark));
  border-color: var(--tlfl-blue-dark);
  box-shadow: 0 6px 14px rgb(31 85 171 / 0.20), inset 0 1px 0 rgb(255 255 255 / 0.16);
  color: #ffffff;
}

.draft-pick-submit-button:hover:not(:disabled) {
  background: var(--tlfl-blue-dark);
  transform: translateY(-1px);
}

.draft-pick-submit-button:disabled {
  box-shadow: none;
  opacity: 0.48;
}

.draft-pick-submit-button:focus-visible {
  box-shadow: var(--tlfl-focus-ring);
  outline: 2px solid var(--tlfl-blue-dark);
  outline-offset: 2px;
}

@media (min-width: 761px) {
  .draft-pick-modal-actions .draft-pick-submit-button {
    font-size: 1.05rem;
    min-height: 3.1rem;
    min-width: 14rem;
    padding: 0.85rem 1.5rem;
  }
}

.draft-player-picker-frame {
  background: #ffffff;
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: auto;
}

.draft-player-picker {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.1rem 1.1rem;
}

.draft-player-picker-loading {
  color: #475569;
  font-weight: 800;
  margin: 0;
  padding: 1rem 1.1rem;
}

.draft-player-picker-search {
  display: grid;
  gap: 0.38rem;
  margin: 0;
}

.draft-player-picker-search label {
  color: #475569;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.draft-player-search-input {
  appearance: none;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #b8c4d7;
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgb(15 23 42 / 0.06);
  color: #111827;
  font: inherit;
  min-height: 2.55rem;
  padding: 0.55rem 0.72rem;
  width: 100%;
}

.draft-player-search-input:focus-visible {
  border-color: var(--tlfl-blue);
  box-shadow: var(--tlfl-focus-ring);
  outline: 0;
}

.draft-player-picker-table {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  overflow: hidden;
}

.draft-player-picker-table th,
.draft-player-picker-table td {
  padding: 0.54rem 0.7rem;
}

.draft-player-picker-table th {
  background: var(--tlfl-table-header-bg);
  color: var(--tlfl-table-header-text);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.draft-player-picker-table tbody tr {
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.draft-player-picker-row {
  cursor: pointer;
}

.draft-player-picker-table tbody tr:hover {
  background: var(--tlfl-table-row-hover);
}

.draft-player-picker-table tbody tr:has(input[type="radio"]:checked) {
  background: var(--tlfl-blue-light);
  box-shadow: inset 4px 0 0 var(--tlfl-blue);
}

.draft-player-picker-radio-cell {
  text-align: center;
  width: 2.9rem;
}

.draft-player-picker-radio-cell input {
  accent-color: var(--tlfl-blue);
  height: 1rem;
  width: 1rem;
}

.draft-player-picker-label {
  align-items: baseline;
  display: flex;
  gap: 0.45rem;
  min-width: 0;
  white-space: nowrap;
}

.draft-player-picker-name {
  color: #111827;
  display: inline-block;
  font-weight: 900;
}

.draft-player-picker-meta {
  color: #64748b;
  display: inline-block;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 800;
  margin-left: 0;
}

.player-modal {
  border: 1px solid color-mix(in srgb, var(--player-modal-primary-color, #1f2937) 14%, #cfd4dc);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgb(17 24 39 / 0.22);
  inset: 50% auto auto 50%;
  margin: 0;
  max-height: calc(100vh - 2rem);
  max-width: 72rem;
  overflow: hidden;
  padding: 0;
  position: fixed;
  transform: translate(-50%, -50%);
  width: min(72rem, calc(100vw - 2rem));
}

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

.player-modal-header {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  padding: 0;
  position: absolute;
  right: 2rem;
  top: 2rem;
  z-index: 5;
}

.player-modal-header::before {
  display: none;
}

.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: 1.9rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: relative;
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  width: 1.9rem;
}

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

.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 - 2rem);
  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-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.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;
}
