.fiv-search-trigger {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  height: 100%;
}
.fiv-search-trigger:hover { color: #b50010; }
.fiv-search-trigger--mobile {
  position: absolute;
  z-index: 10000;
  width: 30px;
  height: 30px;
  padding: 0;
  background: rgba(0,0,0,.04);
  border-radius: 50%;
}
li.fiv-search-trigger-li { display: flex; align-items: center; }

#fiv-search-panel {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0,0,0,.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
#fiv-search-panel.fiv-open { opacity: 1; visibility: visible; }
#fiv-search-inner {
  width: min(640px, 92vw);
  margin-top: 12vh;
}
#fiv-search-inputwrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 14px;
  padding: 16px 18px;
  color: #111;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
#fiv-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #111;
  font-size: 17px;
  line-height: 1.2;
}
#fiv-search-go {
  background: none;
  border: none;
  color: rgba(0,0,0,.55);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
#fiv-search-go svg { display: block; }
#fiv-search-go:hover { color: #b8860b; }
#fiv-search-close {
  background: none;
  border: none;
  color: rgba(0,0,0,.45);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
#fiv-search-close:hover { color: #000; }
#fiv-search-results {
  margin-top: 10px;
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
#fiv-search-results:empty { border: none; box-shadow: none; }
.fiv-sr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.07);
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 600;
}
.fiv-sr-row:last-child { border-bottom: none; }
.fiv-sr-row:hover { background: rgba(0,0,0,.04); color: #000; }
.fiv-sr-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}
.fiv-sr-thumb--empty { background: linear-gradient(135deg, #f0f0f0, #e2e2e2); }
.fiv-sr-title { flex: 1; }
.fiv-sr-empty {
  padding: 16px 18px;
  color: rgba(0,0,0,.45);
  font-size: 14px;
}
