/* ---- Overlay base ---- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 8800;
  display: flex;
}

/* ---- Spotlight ---- */
#spotlight-overlay {
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
  background: rgba(0,0,0,0.04);
}
#spotlight-overlay.show #spotlight { animation: spotPop 0.16s var(--ease-out); }
@keyframes spotPop { from { opacity: 0; transform: scale(0.97) translateY(-8px); } to { opacity: 1; transform: none; } }

#spotlight {
  width: min(640px, 92vw);
  background: var(--vibrancy-light);
  backdrop-filter: blur(50px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  border-radius: 16px;
  border: 0.5px solid rgba(255,255,255,0.4);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  overflow: hidden;
}
.spotlight-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}
.spotlight-icon { color: rgba(0,0,0,0.4); flex: 0 0 auto; }
#spotlight-input {
  flex: 1;
  font-size: 26px;
  font-weight: 300;
  color: #1a1a1a;
  background: transparent;
}
#spotlight-input::placeholder { color: rgba(0,0,0,0.32); }

#spotlight-results {
  max-height: 50vh;
  overflow-y: auto;
  border-top: 0.5px solid rgba(0,0,0,0.12);
}
#spotlight-results:empty { display: none; }
.spot-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  cursor: default;
}
.spot-result.selected { background: var(--accent); color: #fff; }
.spot-result .spot-ic {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex: 0 0 auto;
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 1px 3px rgba(0,0,0,0.2);
}
.spot-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.spot-meta .spot-name { font-size: 14px; font-weight: 500; }
.spot-meta .spot-kind { font-size: 11.5px; opacity: 0.6; }
.spot-result.selected .spot-kind { opacity: 0.85; }
.spot-section {
  padding: 6px 14px 2px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(0,0,0,0.4);
}
