.fc-header-search {
  position: relative;
  overflow: visible;
  z-index: 70;
}

.fc-header-search.is-searching button {
  cursor: progress;
}

.fc-header-search.is-searching button .fc-icon {
  animation: fc-search-pulse 0.8s ease-in-out infinite alternate;
}

.fc-search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  z-index: 120;
  max-height: min(68vh, 520px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(19, 219, 255, 0.26);
  border-radius: 15px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 47, 209, 0.12), transparent 12rem),
    linear-gradient(180deg, rgba(18, 8, 34, 0.99), rgba(7, 4, 13, 0.99));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.56), 0 0 32px rgba(19, 219, 255, 0.12);
}

.fc-search-panel[hidden] {
  display: none !important;
}

.fc-search-status {
  margin: 0;
  padding: 9px 10px 10px;
  color: var(--fc-text-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.fc-search-results {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fc-search-result a,
.fc-search-all {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  text-decoration: none;
}

.fc-search-result a:hover,
.fc-search-result a:focus-visible,
.fc-search-result a.is-keyboard-active {
  border-color: rgba(19, 219, 255, 0.28);
  outline: none;
  background: rgba(19, 219, 255, 0.08);
  color: var(--fc-cyan);
}

.fc-search-all {
  justify-content: space-between;
  margin-top: 7px;
  border-color: rgba(255, 47, 209, 0.22);
  background: rgba(255, 47, 209, 0.08);
  color: var(--fc-lavender);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fc-search-all::after {
  content: "→";
  color: var(--fc-cyan);
  font-size: 16px;
}

.fc-search-all:hover,
.fc-search-all:focus-visible {
  border-color: rgba(255, 47, 209, 0.42);
  outline: none;
  background: rgba(255, 47, 209, 0.14);
  color: #fff;
}

@keyframes fc-search-pulse {
  from { opacity: 0.45; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1.04); }
}

@media (max-width: 640px) {
  .fc-search-panel {
    max-height: min(62vh, 440px);
  }

  .fc-search-result a {
    min-height: 48px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-header-search.is-searching button .fc-icon {
    animation: none;
  }
}
