.hero-search-shell {
  position: relative;
  width: min(620px, 100%);
  margin: 26px auto 0;
  z-index: 20;
}

.hero-search-anchor {
  position: relative;
  z-index: 2;
}

.hero-search-form {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 7px 8px 7px 20px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 19px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.045)),
    rgba(9,8,15,.82);
  box-shadow: 0 20px 55px rgba(0,0,0,.32), 0 0 0 1px rgba(123,47,247,.1) inset;
  backdrop-filter: blur(18px);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.hero-search-form::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(110deg, rgba(123,47,247,.85), rgba(255,122,24,.8), rgba(123,47,247,.65));
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .68;
  animation: heroSearchBorder 7s linear infinite;
  pointer-events: none;
}

.hero-search-form:focus-within {
  border-color: rgba(255,122,24,.55);
  box-shadow: 0 22px 60px rgba(0,0,0,.38), 0 0 0 4px rgba(123,47,247,.13);
  transform: translateY(-2px);
}

.hero-search-icon {
  color: #ff9a3d;
  font-size: 18px;
}

.hero-search-input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 12px 0;
  background: transparent;
  color: #fff;
  font: 600 15px/1.3 'Sora', sans-serif;
}

.hero-search-input::placeholder {
  color: rgba(255,255,255,.55);
}

.hero-search-submit {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #7b2ff7, #ff7a18);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 11px 26px rgba(123,47,247,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.hero-search-submit:hover,
.hero-search-submit:focus-visible {
  transform: translateX(2px) scale(1.04);
  box-shadow: 0 14px 32px rgba(255,122,24,.26);
}

.hero-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: min(390px, 52vh);
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 17px;
  background: rgba(9,8,15,.97);
  box-shadow: 0 30px 80px rgba(0,0,0,.58);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-7px) scale(.985);
  transform-origin: top;
  transition: opacity .2s ease, transform .2s ease;
}

.hero-search-shell.is-open .hero-search-results {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

@media (min-width: 769px) {
  .hero-search-form:focus-within {
    transform: none;
  }

  .hero-search-results {
    position: fixed;
    top: var(--hero-results-top, 0);
    left: var(--hero-results-left, 0);
    right: auto;
    width: var(--hero-results-width, 620px);
    z-index: 1200;
  }
}

.hero-search-results > a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 57px;
  padding: 8px 11px;
  border-radius: 12px;
  color: #fff;
  text-align: left;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.hero-search-results > a:hover,
.hero-search-results > a.active {
  background: linear-gradient(100deg, rgba(123,47,247,.2), rgba(255,122,24,.11));
  transform: translateX(3px);
}

.hero-search-results > a > i:first-child {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  color: #ff9a3d;
}

.hero-search-results > a > i:last-child {
  color: rgba(255,255,255,.5);
  font-size: 11px;
}

.hero-search-results > a span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-search-results strong {
  overflow: hidden;
  color: #fff;
  font: 700 13px/1.25 'Sora', sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-search-results small {
  color: rgba(255,255,255,.56);
  font-size: 10px;
}

.hero-search-suggested {
  padding: 4px 11px 8px;
  color: #ff9a3d;
  font: 800 9px/1.2 'Sora', sans-serif;
  letter-spacing: 1.1px;
  text-align: left;
  text-transform: uppercase;
}

.hero-search-correction {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  padding: 11px 13px;
  border: 1px solid rgba(255,122,24,.3);
  border-radius: 11px;
  background: rgba(255,122,24,.1);
  color: #fff;
  cursor: pointer;
}

.hero-search-correction strong {
  color: #ffac5e;
}

.hero-search-empty {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  color: rgba(255,255,255,.65);
  font-size: 12px;
}

.hero-search-quick-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s ease, transform .22s ease;
}

.hero-search-shell.is-open .hero-search-quick-links {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none;
}

.hero-search-quick-links a,
.hero-search-quick-links button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255,255,255,.055);
  color: var(--text-main);
  font: 700 10.5px/1.2 'Sora', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), border-color .3s ease, color .25s ease, box-shadow .32s ease;
}

.hero-search-quick-links a::before,
.hero-search-quick-links button::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(105deg, #7b2ff7 0%, #c53fda 42%, #ff7a18 78%, #ffad38 100%);
  transform: translateX(108%) skewX(-14deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

.hero-search-quick-links a::after,
.hero-search-quick-links button::after {
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -42%;
  width: 26%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  transition: left .58s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
}

.hero-search-quick-links a:hover,
.hero-search-quick-links a:focus-visible,
.hero-search-quick-links button:hover,
.hero-search-quick-links button:focus-visible {
  color: #fff;
  transform: translateY(-3px) scale(1.025);
  border-color: rgba(255,141,55,.85);
  box-shadow: 0 13px 30px rgba(123,47,247,.28), 0 10px 26px rgba(255,122,24,.22), 0 0 18px rgba(197,63,218,.16);
}

.hero-search-quick-links a:hover::before,
.hero-search-quick-links a:focus-visible::before,
.hero-search-quick-links button:hover::before,
.hero-search-quick-links button:focus-visible::before {
  transform: translateX(0) skewX(0);
}

.hero-search-quick-links a:hover::after,
.hero-search-quick-links a:focus-visible::after,
.hero-search-quick-links button:hover::after,
.hero-search-quick-links button:focus-visible::after {
  left: 116%;
  opacity: .9;
}

.hero-search-quick-links a:active,
.hero-search-quick-links button:active {
  transform: translateY(-1px) scale(.98);
}

.hero-search-status,
.hero-search-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.light-mode .hero-search-form {
  border-color: rgba(20,20,30,.13);
  background: rgba(255,255,255,.85);
  box-shadow: 0 18px 45px rgba(20,20,30,.12);
}

body.light-mode .hero-search-input,
body.light-mode .hero-search-quick-links a,
body.light-mode .hero-search-quick-links button {
  color: #17151d;
}

body.light-mode .hero-search-quick-links a:hover,
body.light-mode .hero-search-quick-links a:focus-visible,
body.light-mode .hero-search-quick-links button:hover,
body.light-mode .hero-search-quick-links button:focus-visible {
  color: #fff;
}

body.light-mode .hero-search-input::placeholder {
  color: rgba(20,20,30,.48);
}

body.light-mode .hero-search-results {
  border-color: rgba(32,24,45,.14);
  background: rgba(255,255,255,.98);
  box-shadow: 0 28px 70px rgba(37,25,55,.18), 0 0 0 1px rgba(123,47,247,.06) inset;
}

body.light-mode .hero-search-results > a {
  color: #19151f;
}

body.light-mode .hero-search-results > a:hover,
body.light-mode .hero-search-results > a.active {
  background: linear-gradient(100deg, rgba(123,47,247,.12), rgba(255,122,24,.09));
}

body.light-mode .hero-search-results > a > i:first-child {
  background: linear-gradient(145deg, rgba(123,47,247,.12), rgba(255,122,24,.1));
  color: #7b2ff7;
}

body.light-mode .hero-search-results > a > i:last-child {
  color: rgba(25,21,31,.48);
}

body.light-mode .hero-search-results strong {
  color: #19151f;
}

body.light-mode .hero-search-results small {
  color: rgba(25,21,31,.62);
}

body.light-mode .hero-search-suggested {
  color: #a63fd1;
}

body.light-mode .hero-search-correction {
  border-color: rgba(123,47,247,.22);
  background: linear-gradient(100deg, rgba(123,47,247,.1), rgba(255,122,24,.07));
  color: #19151f;
}

body.light-mode .hero-search-correction strong {
  color: #7b2ff7;
}

body.light-mode .hero-search-empty {
  color: rgba(25,21,31,.66);
}

@keyframes heroSearchBorder {
  to { background-position: 220% 0; }
}

@media (max-width: 768px) {
  .hero-search-shell {
    width: min(100%, 460px);
    margin-top: 21px;
  }

  .hero-search-form {
    min-height: 56px;
    padding-left: 16px;
    border-radius: 17px;
  }

  .hero-search-input {
    font-size: 13px;
  }

  .hero-search-submit {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .hero-search-results {
    max-height: min(360px, 48vh);
  }

  .hero-search-quick-links {
    gap: 7px;
  }

  .hero-search-quick-links a,
  .hero-search-quick-links button {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-search-form::before {
    animation: none;
  }

  .hero-search-form,
  .hero-search-results,
  .hero-search-results > a,
  .hero-search-submit,
  .hero-search-quick-links,
  .hero-search-quick-links a,
  .hero-search-quick-links button,
  .hero-search-quick-links a::before,
  .hero-search-quick-links button::before,
  .hero-search-quick-links a::after,
  .hero-search-quick-links button::after {
    transition: none;
  }
}
