.search-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.search-hero {
  padding: 36px 0 24px;
}

.search-heading {
  text-align: center;
  margin: 30px auto 26px;
}

.search-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
}

.search-heading p {
  margin: 12px auto 0;
  max-width: 580px;
  opacity: .68;
  font-size: 1rem;
}

.global-search-box {
  display: flex;
  align-items: center;
  width: min(760px, 100%);
  margin: 0 auto;
  min-height: 58px;
  padding: 0 18px;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .055);
  box-shadow:
    0 14px 44px rgba(0, 0, 0, .18);
}

.global-search-box:focus-within {
  border-color: rgba(255, 255, 255, .30);
  background: rgba(255, 255, 255, .075);
}

.global-search-icon {
  flex: 0 0 auto;
  font-size: 1.45rem;
  opacity: .62;
}

.global-search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.05rem;
}

.global-search-box input::placeholder {
  color: inherit;
  opacity: .42;
}

.search-result-info {
  min-height: 24px;
  margin: 4px 0 22px;
  text-align: center;
  opacity: .62;
  font-size: .94rem;
}

.search-section {
  margin: 38px 0 50px;
}

.search-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.search-section-heading h2 {
  margin: 0;
  font-size: 1.4rem;
}

.result-count {
  opacity: .55;
  font-size: .9rem;
}

.artist-search-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(245px, 1fr));
  gap: 12px;
}

.artist-search-result {
  display: block;
  padding: 18px 19px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 15px;
  background: rgba(255, 255, 255, .045);
  color: inherit;
  text-decoration: none;
  transition:
    transform .15s ease,
    border-color .15s ease,
    background .15s ease;
}

.artist-search-result:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .075);
}

.artist-search-name {
  display: block;
  font-weight: 700;
  line-height: 1.3;
}

.artist-search-meta {
  display: block;
  margin-top: 6px;
  opacity: .54;
  font-size: .86rem;
}

.release-search-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.release-search-result {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  min-height: 112px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
  cursor: pointer;
  transition:
    transform .15s ease,
    border-color .15s ease,
    background .15s ease;
}

.release-search-result:hover,
.release-search-result:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .075);
  outline: none;
}

.release-search-art {
  min-height: 112px;
  background: rgba(255, 255, 255, .04);
}

.release-search-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
}

.release-search-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 112px;
  font-size: 1.8rem;
  opacity: .28;
}

.release-search-body {
  min-width: 0;
  padding: 14px 15px;
}

.release-search-type {
  margin-bottom: 5px;
  opacity: .48;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.release-search-title {
  margin: 0;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 750;
}

.release-search-artist {
  margin: 5px 0 0;
  overflow: hidden;
  opacity: .72;
  font-size: .88rem;
  line-height: 1.3;
}

.release-search-date {
  margin: 8px 0 0;
  opacity: .46;
  font-size: .78rem;
}

.search-welcome {
  padding: 76px 24px;
  text-align: center;
}

.search-welcome-icon {
  margin-bottom: 13px;
  font-size: 2.4rem;
  opacity: .28;
}

.search-welcome h2 {
  margin: 0;
}

.search-welcome p {
  margin: 9px 0 0;
  opacity: .56;
}

@media (max-width: 620px) {
  .search-main {
    width: min(100% - 20px, 1180px);
  }

  .search-hero {
    padding-top: 24px;
  }

  .search-heading {
    margin-top: 24px;
  }

  .global-search-box {
    min-height: 54px;
    border-radius: 15px;
  }

  .artist-search-grid {
    grid-template-columns: 1fr;
  }

  .release-search-grid {
    grid-template-columns: 1fr;
  }

  .release-search-result {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .release-search-art,
  .release-search-art img,
  .release-search-placeholder {
    min-height: 105px;
  }
}


/* ====================================================
   Release grid — match Year browser
==================================================== */

.release-search-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(180px, 1fr)
    );

  gap: 13px;
}


.release-search-result {
  display: block;

  min-width: 0;

  overflow: hidden;

  border:
    1px solid rgba(255,255,255,.08);

  border-radius: 16px;

  background: #15171d;

  color: inherit;

  cursor: pointer;

  transition:
    transform .15s ease,
    border-color .15s ease;
}


.release-search-result:hover,
.release-search-result:focus-visible {
  transform: translateY(-2px);

  border-color:
    rgba(215,174,104,.35);

  outline: none;
}


.release-search-art {
  width: 100%;

  aspect-ratio: 1 / 1;

  min-height: 0;

  background: #101216;
}


.release-search-art img {
  display: block;

  width: 100%;
  height: 100%;

  min-height: 0;

  object-fit: cover;
}


.release-search-placeholder {
  display: grid;
  place-items: center;

  width: 100%;
  height: 100%;
  min-height: 0;

  color:
    rgba(255,255,255,.14);

  font-size: 48px;
}


.release-search-body {
  min-width: 0;

  padding: 12px;
}


.release-search-title {
  margin: 0;

  font-size: 14px;
  line-height: 1.3;

  font-weight: 700;
}


.release-search-artist {
  margin: 5px 0 0;

  color: #9699a3;

  font-size: 11px;
  line-height: 1.35;
}


/* Old horizontal-card elements are no longer used. */

.release-search-type,
.release-search-date {
  display: none;
}


@media (max-width: 600px) {

  .release-search-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 9px;
  }


  .release-search-result {
    border-radius: 16px;
  }


  .release-search-body {
    padding: 12px;
  }

}


/* ====================================================
   Song / Work search
==================================================== */

.song-search-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(280px, 1fr)
    );

  gap: 10px;
}


.song-search-result {
  display: grid;

  grid-template-columns:
    42px minmax(0,1fr) 18px;

  align-items: center;

  gap: 10px;

  min-width: 0;

  padding: 14px;

  border:
    1px solid
    rgba(255,255,255,.09);

  border-radius: 15px;

  background:
    rgba(255,255,255,.045);

  color: inherit;

  text-decoration: none;

  transition:
    transform .15s ease,
    border-color .15s ease,
    background .15s ease;
}


.song-search-result:hover,
.song-search-result:focus-visible {
  transform:
    translateY(-2px);

  border-color:
    rgba(215,174,104,.35);

  background:
    rgba(255,255,255,.07);

  outline: none;
}


.song-search-icon {
  display: grid;

  place-items: center;

  width: 42px;
  height: 42px;

  border-radius: 12px;

  background:
    rgba(215,174,104,.10);

  color: #d7ae68;

  font-size: 20px;
}


.song-search-body {
  display: block;

  min-width: 0;
}


.song-search-title {
  display: block;

  overflow: hidden;

  font-size: 14px;

  line-height: 1.3;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.song-search-meta {
  display: block;

  margin-top: 5px;

  color: #9699a3;

  font-size: 11px;
}


.song-search-arrow {
  color: #d7ae68;

  font-size: 24px;

  opacity: .65;
}


@media (max-width: 620px) {

  .song-search-grid {
    grid-template-columns:
      1fr;
  }

}
