/* === Модальное окно поиска (обновлено) === */
.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(32, 33, 36, 0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.search-modal-content {
  background: #fff;
  color: #111; /* 👈 читаемый черный текст */
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  width: 700px;
  max-width: 90%;
  padding: 30px 40px;
  position: relative;
  animation: fadeIn 0.3s ease;
  text-align: center;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.search-modal-content h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: 700;
  color: #111;
  font-size: 1.3em;
}

/* Закрывающая кнопка */
.search-close {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 28px;
  color: #555;
  cursor: pointer;
  transition: 0.2s;
}
.search-close:hover { color: #000; }

/* Поле ввода */
#searchInput {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1em;
  margin-bottom: 18px;
  color: #111; /* 👈 черный текст */
  background: #fff;
  transition: all 0.2s;
}
#searchInput:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 4px rgba(74, 144, 226, 0.4);
  outline: none;
}

/* Кнопка поиска */
#searchButton {
  padding: 10px 18px;
  background: #4a90e2;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.25s;
}
#searchButton:hover { background: #3f7fd3; }

/* Результаты поиска */
#searchResults {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  max-height: 320px;
  overflow-y: auto;
  text-align: left;
}

/* Элемент списка */
#searchResults li {
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.2s;
  cursor: pointer;
  color: #111; /* 👈 черный текст */
}
#searchResults li:hover {
  background: #eef2f8;
}

mark {
  background: #fff59d;
  color: #000;
  border-radius: 2px;
  padding: 0 2px;
}

/* Красивый скроллбар */
#searchResults::-webkit-scrollbar {
  width: 10px;
}
#searchResults::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
#searchResults::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4a90e2, #3f7fd3);
  border-radius: 10px;
}
#searchResults::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #3f7fd3, #326ac7);
}

/* Анимация появления */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
