/* public/team-picker.css */

#teamPickerModal {
  position: fixed; inset: 0; display: none; place-items: center;
  background: rgba(7,10,20,.64); z-index: 10000;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}

.tp-card {
  width: min(980px, 92vw); max-height: 86vh; overflow: hidden; display: grid;
  grid-template-rows: auto 1fr; background: #0f1623; color: #e2e8f0;
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  box-shadow: 0 14px 48px rgba(0,0,0,.45);
}

.tp-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: linear-gradient(180deg,#121b2b,#101726);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.tp-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: #fff; }
.tp-head .tp-meta { margin-left: auto; display: flex; gap: 10px; align-items: center; color:#9fb0d1; }
.tp-head .tp-close { appearance: none; border: 0; background: #334155; color:#fff;
  padding: 8px 10px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.tp-head .tp-close:hover { filter: brightness(1.08); }

.tp-body {
  display: grid; grid-template-columns: 280px 1fr; gap: 0; min-height: 420px;
}

.tp-col {
  border-right: 1px solid rgba(255,255,255,.06);
  overflow: auto;
}
.tp-col:last-child { border-right: 0; }

.tp-list {
  list-style: none; margin: 0; padding: 0;
}
.tp-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.05);
}
.tp-list li:hover { background: rgba(255,255,255,.05); }
.tp-list li.active { background: rgba(59,130,246,.16); }

.tp-empty {
  padding: 16px; color: #9fb0d1;
}

.tp-players {
  padding: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px;
}

.tp-p {
  display: grid; grid-template-columns: 52px 1fr; gap: 10px;
  background: #0c1321; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 8px;
}
.tp-p .ph { width: 52px; height: 52px; border-radius: 10px; background: #0a1020; object-fit: cover; }
.tp-p .meta { display: grid; gap: 4px; }
.tp-p .nm { font-weight: 800; color: #fff; line-height: 1.2; }
.tp-p .sub { font-size: 12px; color: #9fb0d1; display:flex; gap:8px; align-items:center; }
.tp-p .tl { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; }
.tp-p .slot { margin-left: auto; background:#1f2a44; color:#d3e0ff; padding:2px 6px; font-size:11px; border-radius:6px; }
