/* ...existing code... */
#search-control {
  position: absolute;
  top: 98px;
  right: 10px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: system-ui, Arial, sans-serif;
}

#search-control button {
  background: rgba(255,255,255,0.95);
  border: 0;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2b7a2b;
}

#search-control button:focus { outline: 2px solid #9fe39f; }

#search-control button:disabled {
  opacity: 0.5;   /* buton pasifken sönük */
  cursor: not-allowed; /* el işareti çıkmasın */
}

#search-box {
  display: none;
  min-width: 220px;
  max-width: 320px;
  background: rgba(255,255,255,0.98);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 6px;
}

#search-box.visible,
#search-box.visible * { display: block; }

#search-box.hidden { display: none; }

#search-box input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

#search-results {
  list-style: none;
  margin: 6px 0 0 0;
  padding: 0;
  max-height: 240px;
  overflow: auto;
}

#search-results li {
  padding: 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  color: #111;
}

#search-results li:hover,
#search-results li:focus {
  background: #f1f9f1;
}

#search-results li.no-results {
  color: #666;
  cursor: default;
}
#search-results .searching {
  text-align: center;
  cursor: default;
}
#search-results .searching img{
  width: 220px;
  height: 40px;
  object-fit: cover;
}

/* show box when parent has .visible */
#search-control #search-box.visible { display: block; }
/* ensure button and box are aligned on narrow screens */
@media (max-width: 520px) {
  #search-control { right: 8px; }
  #search-box { min-width: 160px; max-width: 260px; }
}

#search-debug-panel{
  position: fixed;
  bottom: 45px;
  left: 155px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 12px;
  padding-right: 20px;
  border-radius: 8px;
  font-size: 12px;
  max-width: 90%;
  width: 250px;
  max-height: 200px;
  overflow: auto;
  z-index: 9999;
  display: none;
  border: 1px solid #555;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
/* Webkit tarayıcıları (Chrome, Safari, Edge) için scrollbar stilleri */
#search-debug-panel::-webkit-scrollbar {
    width: 8px;
}

#search-debug-panel::-webkit-scrollbar-track {
    background: #222;
    border-radius: 4px;
}

#search-debug-panel::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
}

#search-debug-panel::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}
#search-debug-toggle{
  position: fixed;
  bottom: 10px;
  left: 15px;
  background: #007bff;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  z-index: 10000;
  cursor: pointer;
  font-size: 12px;
}
#search-debug-clear{
  position: absolute;
  bottom: 50px;
  left: 264px;
  background: #3d4241b9;
  color: white !important;
  border: none;
  padding-top: 3px;
  height: 26px;
  width: 28px;
  border-radius: 4px;
  z-index: 10000;
  cursor: pointer;
  font-size: 12px;
}