/* The public song search (shared/_song_search, song-search.js). */
.sgs { max-width: 620px; margin: 0 auto; text-align: left; }
.sgs-field { position: relative; display: flex; }
.sgs-field .fa {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: #8b9ab0; font-size: 1rem; pointer-events: none;
}
.sgs-input {
  flex: 1; width: 100%; min-width: 0; height: 52px; padding: 0 16px 0 44px;
  font-size: 16px; /* under 16px iOS zooms the page on focus */
  color: #e5ecf3; background: #0d1117; border: 1px solid #3a4a5c; border-radius: 26px;
  -webkit-appearance: none; appearance: none;
}
.sgs-input::placeholder { color: #8b9ab0; }
.sgs-input:focus { outline: none; border-color: #dba800; box-shadow: 0 0 0 3px rgba(219, 168, 0, .25); }
.sgs-status { color: #9aa6b2; font-size: .82rem; min-height: 0; margin: 0; padding: 0 18px; }
.sgs.is-open .sgs-status { margin-top: 8px; }
.sgs-status:empty { display: none; }
.sgs-results { list-style: none; margin: 8px 0 0; padding: 0; }
.sgs-results:empty { display: none; }
.sgs-item { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sgs-song {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 10px;
  background: #111820; border: 1px solid #1f2a35; border-radius: 12px; text-decoration: none;
}
.sgs-song:hover, .sgs-song:focus { border-color: #dba800; text-decoration: none; outline: none; }
.sgs-cover { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #1b2531; }
.sgs-meta { min-width: 0; }
.sgs-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: #e5ecf3; font-size: .95rem; font-weight: 600; line-height: 1.3;
}
.sgs-sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgs-sub { color: #8b9ab0; font-size: .78rem; margin-top: 2px; }
.sgs-mp3 {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 48px;
  padding: 0 12px; border-radius: 12px; background: #2d6a2d; color: #fff; font-size: .82rem; font-weight: 700;
  text-decoration: none;
}
.sgs-mp3::before { content: "\f019"; font-family: FontAwesome; margin-right: 6px; font-weight: normal; }
.sgs-mp3-none { flex-shrink: 0; width: 64px; }
.sgs-mp3:hover, .sgs-mp3:focus { background: #378237; color: #fff; text-decoration: none; }
.sgs-more {
  flex: 1; height: 42px; border: 1px dashed #3a4a5c; border-radius: 12px; background: none; color: #dba800;
  font-size: .85rem; cursor: pointer;
}
.sgs-more:focus { outline: none; border-color: #dba800; }
.sgs-hint { flex: 1; color: #6b7a8d; font-size: .8rem; text-align: center; padding: 6px; }
@media (max-width: 480px) {
  .sgs-song { padding: 6px 8px; gap: 10px; }
  .sgs-cover { width: 44px; height: 44px; }
  .sgs-mp3 { min-width: 56px; height: 44px; padding: 0 10px; }
  .sgs-mp3-none { width: 56px; }
}
.sgs-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
