/* Aevrino global header search overlay */
.homepage-cinematic-header .homepage-search-btn,
.homepage-site-header .homepage-search-btn {
  display: grid !important;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
}
.av-search-overlay[hidden] { display: none !important; }
.av-search-overlay { position: fixed; inset: 0; z-index: 10000; color: #172333; }
.av-search-backdrop { position: absolute; inset: 0; background: rgba(5, 12, 22, .58); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.av-search-dialog { position: relative; z-index: 1; width: calc(100% - 28px); max-width: 1600px; margin: 82px auto 0; background: #fff; border: 1px solid rgba(12, 27, 43, .12); border-radius: 12px; box-shadow: 0 22px 70px rgba(0,0,0,.28); overflow: hidden; animation: avSearchIn .16s ease-out; }
.av-search-form { display: flex; align-items: center; gap: 13px; min-height: 66px; padding: 0 16px 0 22px; border-bottom: 1px solid #e6e9ed; }
.av-search-icon { color: #28394a; font-size: 27px; line-height: 1; flex: 0 0 auto; }
.av-search-form input[type="search"] { flex: 1 1 auto; min-width: 0; width: 100%; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; color: #172333 !important; font: 600 22px/1.4 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; padding: 12px 0 !important; }
.av-search-form input[type="search"]::placeholder { color: #7b8490; opacity: 1; font-weight: 500; }
.av-search-close { flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-left: 1px solid #e7e9ed; border-radius: 0; background: #fff; color: #253447; font-size: 27px; line-height: 1; cursor: pointer; }
.av-search-close:hover { color: #ff5000; background: #fff8f4; }
.av-search-content { padding: 20px 24px 24px; }
.av-search-popular p,.av-search-section-title { margin: 0 0 12px; color: #737c86; font-size: 11px; line-height: 1.4; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.av-search-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.av-search-chips button { min-height: 34px; padding: 7px 13px; border: 1px solid #e0e5eb; border-radius: 999px; background: #fff; color: #28384a; font: 500 12px/1.2 Inter, system-ui, sans-serif; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.av-search-chips button:hover,.av-search-chips button:focus-visible { border-color: #ff5000; background: #fff5ef; color: #b83b00; outline: none; }
.av-search-results { margin-top: 4px; }
.av-search-results[hidden],.av-search-status[hidden] { display: none !important; }
.av-search-result { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 10px 8px; border-top: 1px solid #edf0f3; color: #172333; text-decoration: none; }
.av-search-result:hover,.av-search-result:focus-visible { background: #fff6f1; outline: none; }
.av-search-result img,.av-search-result-image-placeholder { display: grid; place-items: center; flex: 0 0 88px; width: 88px; height: 52px; border-radius: 8px; object-fit: contain; background: #f2f4f6; color: #7d8792; font-size: 12px; font-weight: 800; }
.av-search-result-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
.av-search-result-copy strong { color: #172333; font-size: 14px; line-height: 1.25; font-weight: 750; }
.av-search-result-copy small { color: #737d88; font-size: 12px; line-height: 1.35; }
.av-search-result-arrow { color: #ff5000; font-size: 23px; }
.av-search-empty,.av-search-status { margin: 8px 0 0; color: #6c7783; font-size: 13px; }
body.av-search-open { overflow: hidden; }
@keyframes avSearchIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 650px) {
  .av-search-dialog { width: calc(100% - 16px); margin-top: 72px; border-radius: 10px; }
  .av-search-form { min-height: 58px; padding: 0 10px 0 14px; gap: 9px; }
  .av-search-form input[type="search"] { font-size: 17px; }
  .av-search-close { flex-basis: 34px; width: 34px; height: 38px; }
  .av-search-content { padding: 16px 14px 18px; }
  .av-search-chips { gap: 7px; }
  .av-search-chips button { padding: 7px 10px; font-size: 11px; }
  .av-search-result img,.av-search-result-image-placeholder { flex-basis: 64px; width: 64px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .av-search-dialog { animation: none; } }
