

.search-panel {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(620px, calc(100vw - 440px));
  transform: translateX(-50%);
}

.search-box {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 18px;
  background: rgba(9, 11, 16, 0.96);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 15px 18px;
  color: #f5f1e7;
  background: transparent;
  font-size: 16px;
}

.search-box input::placeholder {
  color: #9f9b90;
}

.search-box button {
  border: 0;
  border-left: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0 20px;
  color: #111318;
  background: #d4af37;
  font-weight: 800;
  cursor: pointer;
}

.search-results {
  max-height: min(56vh, 520px);
  margin-top: 8px;
  overflow-y: auto;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 16px;
  background: rgba(9, 11, 16, 0.98);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
}

.search-result {
  display: flex;
  width: 100%;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 13px 15px;
  color: #f2efe7;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.search-result:hover,
.search-result:focus {
  background: rgba(212, 175, 55, 0.12);
}

.search-result-icon {
  width: 32px;
  font-size: 20px;
  text-align: center;
}

.search-result-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.search-result-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-text small {
  color: #aaa69d;
  text-transform: capitalize;
}

.search-empty {
  padding: 18px;
  color: #c9c5bc;
}

@media (max-width: 900px) {
  .search-panel {
    top: 86px;
    left: 16px;
    width: calc(100vw - 32px);
    transform: none;
  }

  .search-box input {
    font-size: 14px;
  }

  .search-box button {
    padding: 0 14px;
  }
}
