/* ── SEARCH MODAL ── */
#search-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.sm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.sm-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #181818;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.sm-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: #555;
}

#sm-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #f0f0f0;
  font-weight: 300;
}

#sm-input::placeholder { color: #555; }

.sm-esc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  background: #222;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 2px 7px;
  color: #555;
  cursor: pointer;
  flex-shrink: 0;
}

#sm-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

#sm-results::-webkit-scrollbar { width: 4px; }
#sm-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.sm-hint {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: #555;
  font-weight: 300;
}

.sm-result {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 8px;
  transition: background 0.1s;
}

.sm-result:hover { background: rgba(255,255,255,0.05); }

.sm-result-title {
  font-size: 14px;
  font-weight: 500;
  color: #f0f0f0;
  font-family: 'Syne', sans-serif;
}

.sm-result-desc {
  font-size: 12px;
  color: #666;
  font-weight: 300;
}
