/* Water Tower Music — release search overlay and box.
 * The overlay is dark, so everything inside it is light. */

/* ---- header trigger, sitting with the social icons ---- */
#socials a#search_overlay { cursor: pointer; }

/* ---- full-screen overlay ---- */
#search_overlay_full_screen {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999111;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.94);
  overflow-y: auto;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#search_overlay_full_screen[hidden] { display: none; }
#search_overlay_full_screen::-webkit-scrollbar { display: none; }

.search_overlay_inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 90px 20px 60px;
}

/* Stop the page behind scrolling while the overlay is up. */
body.search-overlay-open { overflow: hidden; }

.search_overlay_close {
  position: fixed;
  top: 28px; right: 32px;
  z-index: 9999112;
  padding: 6px;
  min-width: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.search_overlay_close:hover, .search_overlay_close:focus { color: #ccc; background: transparent; }

#search_overlay_full_screen h2 { color: #fff; }

/* ---- the search box ---- */
.release-search-wrap {
  position: relative;
  width: 96%;
  max-width: 520px;
  margin: auto;
}

.release-search-label { display: block; margin-bottom: 8px; color: #fff; }

.release-search-field-wrap { position: relative; width: 100%; }

.release-search-input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 16px;
  outline: none;
}
.release-search-input::placeholder { color: rgba(255, 255, 255, 0.55); }
.release-search-input:focus { border-color: rgba(255, 255, 255, 0.75); }

/* ---- results dropdown ---- */
.release-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 9999;
  display: none;
  width: 100%;
  max-height: 420px;
  overflow-y: auto;
  border-radius: 18px;
  background: #111;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  text-align: left;
}
.release-search-results.is-active { display: block; }

.release-search-list { list-style: none; margin: 0; padding: 8px; }
.release-search-item { margin: 0; padding: 0; }

.release-search-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
}
.release-search-link:hover, .release-search-link:focus { background: rgba(255, 255, 255, 0.08); color: #fff; border: 0; }

.release-search-thumb {
  flex: 0 0 58px;
  width: 58px; height: 58px;
  overflow: hidden;
  border-radius: 8px;
  background: #222;
}
.release-search-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.release-search-placeholder { display: block; width: 100%; height: 100%; background: #222; }

.release-search-content { min-width: 0; }
.release-search-title { display: block; color: #fff; font-size: 15px; line-height: 1.25; text-transform: uppercase; }

.release-search-loading,
.release-search-empty { padding: 16px; color: rgba(255, 255, 255, 0.75); font-size: 14px; }

/* ---- recent releases grid ---- */
.search_popular { margin-top: 10px; }
.search_popular img { border-radius: 25px; border: 2px solid #fff; }
.search_popular a { border: 0; }
.search_popular .uppercase { color: #fff; font-size: .85rem; }

@media screen and (max-width: 799px) {
  .search_overlay_inner { padding: 70px 16px 40px; }
  .search_overlay_close { top: 18px; right: 18px; }
}
