.custom-search-form{
  --btn-size: 32px;
  --gap: 5px;
  --left-offset: .5rem;
  --right-offset: .5rem;
  --pad-left:  calc(var(--left-offset) + var(--btn-size) + 6px);
  --pad-right: calc(var(--right-offset) + var(--btn-size));
  position: relative;
  max-width: 100%;
  margin: 0;
}
.custom-search-form:has(.voice-search-btn){
  --pad-right: calc(var(--right-offset) + var(--btn-size) + var(--gap) + var(--btn-size));
}
.custom-search-form .search-field[type="search"]{
  width: 100%;
  padding: .5180469716em;
  padding-left: var(--pad-left) !important;
  padding-right: var(--pad-right) !important;
  height: auto;
  box-sizing: border-box;
  font-size: 15px;
  border-radius: 8px;
  background: #03091e;
  border: 1px solid #7ccc2c;
  transition: border-color .2s, box-shadow .2s;
  color: #BECDE3;
  appearance: none;
}
.custom-search-form .search-field:focus{
  border-color: #6cf8fb;
  color: #BECDE3;
  box-shadow: 0 0 5px 0 #6cf8fb;
  outline: none;
}
.custom-search-form input[type=search]::placeholder{ color:#BECDE3; }
.custom-search-form input[type=search]:focus::placeholder{ color:#BECDE3!important; }
.search-icon{
  position: absolute; top: 50%; left: var(--left-offset); transform: translateY(-50%);
  width: var(--btn-size); height: var(--btn-size);
  min-width: var(--btn-size); min-height: var(--btn-size);
  display: flex; align-items: center; justify-content: center;
  color:#becde3; background: none; border: 0; padding: 5px;
  transition: opacity .2s ease;
}
.search-icon:hover{ opacity: .9; }
.search-icon:focus-visible{ outline:2px solid #6cf8fb; outline-offset:2px; border-radius:6px; }
.search-icon svg{ width:20px; height:20px; display:inline-block; pointer-events:none; }
.search-icon .icon-spinner-svg{ display:none; }
.search-icon.is-loading .icon-search-svg{ display:none; }
.search-icon.is-loading .icon-spinner-svg{ display:inline-block; }
.custom-search-voice-clear{
  position: absolute; top: 50%; right: var(--right-offset); transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center; gap: var(--gap); padding: 5px;
}
.voice-search-btn,
.clear-search-input{
  width: var(--btn-size); height: var(--btn-size);
  min-width: var(--btn-size); min-height: var(--btn-size);
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; cursor: pointer;
  color: #8da2c0; line-height: 0; padding: 0;
  transition: color .2s ease, opacity .2s ease;
}
.voice-search-btn:hover, .clear-search-input:hover{ color:#fff; }
.voice-search-btn:focus-visible, .clear-search-input:focus-visible{
  outline:2px solid #6cf8fb; outline-offset:2px; border-radius:6px;
}
.voice-search-btn svg, .clear-search-input svg{ width:20px; height:20px; display:block; }
.custom-search-form:has(.search-field:not(:placeholder-shown)) .clear-search-input{ display:flex; }
.clear-search-input{ display:none; }
.icon-spinner{ animation: spin-spinner 1s linear infinite; }
@keyframes spin-spinner{ 0%{transform:rotate(0)} 100%{transform:rotate(360deg)} }
.custom-search-results{
  position: absolute;
  overflow: hidden;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: .3rem;
  background-color: #070E27;
  border-radius: 8px;
  z-index: 1000;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.1);
}
.custom-search-results ul{
  max-height: 360px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  scrollbar-width: none!important;
  -ms-overflow-style: none!important;
}
.custom-search-results ul::-webkit-scrollbar{ display: none!important; }
.custom-search-results li{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin: 5px;
  border: 1px solid rgba(204, 221, 255, .16);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
.custom-search-results li:hover{ background-color: #24385B; }
.custom-search-results li a{
  display:flex; align-items:center; gap:8px; width:100%; text-decoration:none;
}
.custom-search-results a .search-item-image{ border-radius:8px; }
.search-item-image{
  flex-shrink: 0;
  max-width: 50px;
  max-height: 80px;
  border-radius: 8px;
  object-fit: cover;
}
.search-item-name{
  font-size: 15px;
  font-weight: 500;
  color: #BECDE3;
  line-height: 1.3;
}
.no-results{
  padding: 16px;
  font-size: 14px;
  font-weight: 500;
  color: #BECDE3;
  text-align: center;
}
.see-all-results{
  padding: 12px;
  text-align: center;
  font-size: 14px;
  border-top: 1px solid #253541;
}
.see-all-results a{
  color: #3FA9F5;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.see-all-results a:hover{ color: #64C1FF; }
.recent-searches li a{ width: 100%; }
.recent-searches a{ color:#BECDE3; }
.recent-searches li{ padding:4px 10px; }

.recent-and-featured-results{
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: none!important;
  -ms-overflow-style: none!important;
}
.recent-and-featured-results::-webkit-scrollbar{ display: none!important; }
@media (max-width: 600px){
  .search-item-name{ font-size: 13px; }
}
@media (max-width: 768px){
  .custom-search-results{ z-index: 10000; position: absolute; }
}
