/* Search as a centered modal over a blurred backdrop */
.live-search-panel {
  inset: 0;
  top: 0;
  z-index: 40;
  padding: 96px 20px 28px;
  background: rgba(19, 14, 16, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-height: 100dvh;
}

.live-search-panel > .shell {
  width: min(860px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  padding: 0 26px 10px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
  animation: search-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes search-pop {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.live-search-results {
  max-height: calc(100dvh - 210px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #e8dcdc transparent;
}

@media (max-width: 800px) {
  .live-search-panel {
    top: 0;
    padding: 76px 14px 18px;
    border-radius: 0;
    max-height: 100dvh;
  }

  .live-search-panel > .shell {
    width: 100%;
    border-radius: 22px;
    padding: 0 16px 8px;
  }

  .live-search-results {
    max-height: calc(100dvh - 170px);
  }
}