/* Search */


/* ==============================
   CLEAN NEON SEARCH BAR
============================== */
.search-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 0;
  position: relative;
  z-index: 3; /* keep nav glow from overlapping the search visually */
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(17, 17, 17, 0.7);
  border: 1px solid var(--color-accent);
  border-radius: 50px;
  padding: 6px 10px;
  transition: var(--transition-base);
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
  backdrop-filter: blur(6px);
  width: clamp(220px, 26vw, 420px);
  max-width: 100%;
}

.search-container:hover,
.search-container:focus-within {
  box-shadow: var(--glow-pink);
  border-color: var(--color-accent-strong);
  transform: scale(1.02);
}

.search-bar {
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 10px;
  transition: width 0.3s ease;
}

.search-bar::placeholder {
  color: var(--color-text-dim);
  opacity: 0.8;
}

.search-bar:focus {
  width: clamp(220px, 26vw, 320px);
}

/* Keep navbar stable on smaller widths */
@media (max-width: 1200px) {
  .nav-links { justify-content: flex-start; }
  .search-container { width: clamp(160px, 60vw, 95%); }
  .search-bar { width: auto; }
  .search-bar:focus { width: auto; }
}

.search-button {
  background: var(--color-accent);
  border: none;
  color: var(--color-bg);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.search-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255,105,180,0.18);
}

/* make sure the icon is visible inside the pill */
.search-container .search-button i { color: inherit; }

/* Settings link */
.settings { margin-left: auto; white-space: nowrap; }

/* ── Search results page (extracted from search.html inline styles) ── */
.search-page-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.search-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; }
.search-page-title { color: #ff69b4; margin: 0; }
.search-form-row { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-page-input { background: #0f0f0f; color: #fff; border: 1px solid rgba(255,105,180,0.06); padding: 8px 10px; border-radius: 8px; min-width: 220px; }
.search-scope-label { color: #ccc; font-weight: 700; margin-left: 4px; }
.search-scope-select { background: #111; color: #fff; border: 1px solid rgba(255,105,180,0.06); padding: 8px 10px; border-radius: 8px; }
.search-submit-btn { background: #ff69b4; color: #000; padding: 8px 10px; border-radius: 8px; border: none; font-weight: 700; }
.search-result-card { background: #111; border-radius: 14px; padding: 16px; box-shadow: 0 0 14px rgba(255,105,180,0.15); display: flex; flex-direction: column; gap: 12px; position: relative; }
.search-card-cover { width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; }
.search-card-cover-placeholder { width: 100%; aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg,#222,#333); display: flex; align-items: center; justify-content: center; }
.search-card-title { font-weight: 600; color: #ff69b4; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-card-artist { color: #aaa; font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-card-actions { display: flex; gap: 6px; margin-top: auto; }
.search-rate-btn {
  flex: 1; padding: 6px; border-radius: 8px; font-weight: 700;
  font-size: 0.82rem; text-align: center; cursor: pointer;
  background: #ff69b4; color: #000; border: none; transition: all 0.2s;
}
.search-rate-btn:hover { background: #ff85c8; transform: translateY(-1px); }
.search-add-btn {
  padding: 6px 10px; border-radius: 8px; font-weight: 600;
  font-size: 0.78rem; cursor: pointer;
  background: rgba(255,105,180,0.08); color: #ff69b4;
  border: 1px solid rgba(255,105,180,0.3); transition: all 0.2s;
}
.search-add-btn:hover { background: rgba(255,105,180,0.15); border-color: #ff69b4; }
.search-user-card { background: #111; border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(255,105,180,0.04); }
.search-user-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,105,180,0.2); }
.search-user-avatar-placeholder { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,105,180,0.08); display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,105,180,0.1); }
.search-user-name { font-weight: 600; color: #fff; }
.search-user-username { color: #888; font-size: 0.85rem; }
.search-artist-card { background: #111; border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(255,105,180,0.04); }
.search-artist-img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.search-artist-name { font-weight: 700; color: #fff; font-size: 0.95rem; }
.search-section-heading { color: #ff69b4; font-weight: 700; font-size: 1.1rem; margin: 30px 0 12px 0; }
.search-mb-label { display: inline-block; background: rgba(255,105,180,0.1); color: #ff69b4; padding: 2px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; margin-left: 6px; vertical-align: middle; }
