/* === Поиск по словарю с кнопкой === */
.dict-search-wrapper {
  position: relative;
  max-width: 580px;
  margin: 20px 0 25px 0;
  font-family: Arial, Helvetica, sans-serif;
}

.dict-search-input-box {
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 0;
}

#dict-search-input {
  flex: 1;
  min-width: 0; /* Не даёт полю ломать вёрстку на узких экранах */
  padding: 12px 16px 12px 42px;
  font-size: 16px;
  color: #f0f0f0;
  background-color: #141414;
  border: 1px solid #333333;
  border-right: none;
  border-radius: 6px 0 0 6px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#dict-search-input::placeholder {
  color: #808080;
}

#dict-search-input:focus {
  background-color: #1a1a1a;
  border-color: #2ee64b;
  box-shadow: 0 0 8px rgba(46, 230, 75, 0.2);
}

#dict-search-btn {
  padding: 0 22px;
  font-size: 15px;
  font-weight: bold;
  color: #2ee64b;
  background-color: #1f1f1f;
  border: 1px solid #333333;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#dict-search-btn:hover {
  background-color: #2ee64b;
  border-color: #2ee64b;
  color: #0d0d0d;
}

#dict-search-btn:active {
  background-color: #25c43e;
}

.dict-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: #2ee64b;
  pointer-events: none;
}

#dict-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: #161616;
  border: 1px solid #333333;
  border-radius: 6px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: none;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  max-height: 320px;
  overflow-y: auto;
}

#dict-search-results li {
  border-bottom: 1px solid #242424;
}

#dict-search-results li:last-child {
  border-bottom: none;
}

#dict-search-results li a {
  display: block;
  padding: 10px 16px;
  color: #e0e0e0;
  text-decoration: none;
  font-size: 15px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#dict-search-results li a:hover {
  background-color: #242424;
  color: #2ee64b;
}

.dict-search-empty {
  padding: 10px 16px;
  color: #888888;
  font-size: 14px;
}
