/* Search results dropdown/list */
.results{
  position: relative;
  margin-top: 4px;
}
.results-panel{
  position: relative;
  width: 100%;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 5;
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  max-height: calc(90vh - 60px);
}
.results-panel.drop-up{
  top: auto;
  bottom: auto;
}
.results-panel.open{
  display:flex;
}
.picker-header{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}
.picker-columns{
  display:flex;
  gap:8px;
  min-height:320px;
  max-height:calc(90vh - 120px);
  flex:1;
}
.picker-column{
  flex:1;
  background:#f8fafc;
  border-radius:10px;
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.continents-column{ flex:0 0 140px; }
.nations-column{ flex:0 0 200px; }
.teams-column{
  flex:1;
  background:white;
  border:1px solid #eef2ff;
}
.column-title{
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color: var(--muted);
  margin:0;
}
.picker-list{
  flex:1;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:4px;
  padding-right:4px;
}
.picker-item{
  border:1px solid transparent;
  border-radius:8px;
  padding:6px 8px;
  background:transparent;
  text-align:left;
  font-weight:600;
  color: var(--text);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  font-size:.85rem;
}
.picker-item .count{
  font-size:.8rem;
  color: var(--muted);
}
.picker-item:hover{
  background:white;
  border-color:#dbeafe;
}
.picker-item.active{
  border-color: var(--primary);
  background:#eef2ff;
  color: var(--primary-600);
}
.picker-team{
  border:1px solid #e5e7eb;
  background:white;
  border-radius:10px;
  padding:8px 10px;
  text-align:left;
  cursor:pointer;
  font-size:.9rem;
  display:flex;
  align-items:center;
  gap:10px;
}
.picker-team:hover{
  border-color: var(--primary);
  box-shadow:0 0 0 2px rgba(37,99,235,.08);
}
.picker-team.active{
  border-color: var(--primary);
  box-shadow:0 0 0 2px rgba(37,99,235,.18);
}
.team-title{
  font-weight:700;
}
.team-chip{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
}
.team-media{
  display:flex;
  align-items:center;
  gap:6px;
}
.team-info{
  display:flex;
  flex-direction:column;
  gap:4px;
  flex:1;
}
.team-logo-thumb{
  width:34px;
  height:34px;
  border-radius:6px;
  border:none;
  object-fit:contain;
  background:transparent;
  flex-shrink:0;
}
.team-kit-thumb{
  width:36px;
  height:36px;
  object-fit:contain;
  border:none;
  background:transparent;
  flex-shrink:0;
}
.results-panel .team-logo-thumb,
.results-panel .team-kit-thumb{
  display:none;
}
.team-logo-thumb.is-generic,
.team-kit-thumb.is-generic{
  display:none;
}
.team-info{
  display:flex;
  flex-direction:column;
  gap:4px;
  flex:1;
}
.team-tags{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  font-size:.75rem;
  color: var(--muted);
  margin-top:4px;
}
.logo-upload-btn{
  border:none;
  background:transparent;
  color: var(--primary);
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  cursor:pointer;
  font-weight:700;
  padding:0;
  margin-left:auto;
}
.logo-upload-btn.disabled{
  opacity:0.4;
  cursor:not-allowed;
}
.picker-empty{
  padding:20px;
  text-align:center;
  color: var(--muted);
}
.picker-manage-btn{
  display:inline-block;
  margin:8px auto 0;
  padding:6px 14px;
  border-radius:999px;
  border:1px solid var(--primary);
  color: var(--primary);
  font-weight:600;
  font-size:.85rem;
  text-decoration:none;
}
.picker-add-btn{
  border:none;
  background: var(--primary);
  color:white;
  padding:10px 18px;
  border-radius:999px;
  font-weight:600;
  cursor:pointer;
  box-shadow: var(--shadow);
}
.picker-add-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  box-shadow:none;
}
.tag{
  padding:2px 8px;
  border-radius:999px;
  background:#eef2ff;
  color:#312e81;
  font-weight:500;
}
.tag-faint{
  background:#f3f4f6;
  color:#6b7280;
}
.rating-pill{
  font-weight:600;
}
@media (max-width: 720px){
  .picker-columns{
    flex-direction:column;
    max-height:none;
  }
  .picker-column{
    flex:0 0 auto;
  }
}
