.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: start center;
  padding: clamp(1rem, 4vw, 4rem) 1rem;
  background: rgba(1, 4, 9, 0.72);
  backdrop-filter: blur(8px);
}

.search-overlay[hidden] {
  display: none !important;
}

.search-panel {
  width: min(760px, 100%);
  border: 1px solid rgba(55, 120, 218, 0.55);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(11, 15, 22, 0.97), rgba(5, 8, 12, 0.97));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  padding: 1rem;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
}

.search-input {
  width: 100%;
  border: 1px solid rgba(82, 151, 255, 0.35);
  border-radius: 12px;
  background: #0d141d;
  color: #e7f0ff;
  font: inherit;
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
}

.search-close {
  border: 1px solid rgba(87, 148, 241, 0.45);
  background: #0e1622;
  color: #dce7fb;
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
  cursor: pointer;
}

.search-results {
  margin-top: 0.75rem;
  max-height: min(55vh, 420px);
  overflow: auto;
  display: grid;
  gap: 0.35rem;
}

.search-results a {
  display: block;
  text-decoration: none;
  color: #dce7f9;
  padding: 0.7rem 0.65rem;
  border-radius: 10px;
  border: 1px solid transparent;
}

.search-results a:hover,
.search-results a:focus-visible {
  border-color: rgba(74, 157, 255, 0.4);
  background: rgba(18, 56, 99, 0.2);
  color: #7ec3ff;
}

.search-empty {
  margin: 0.4rem 0 0;
  color: #9eb0c9;
  font-size: 0.92rem;
}
