/* Busca pública: painel, campo da gaveta e página de resultados (includes/busca.php). O cabeçalho fica em busca-cabecalho.css, inline. */
.fb-busca, .fb-gaveta, .fb-result {
  --fb-cor: var(--fooba-destaque, #05866c); --fb-sobre: #fff; --fb-fundo: #fff; --fb-fundo-2: #f0f5f3;
  --fb-tinta: var(--ink, #12201d); --fb-tinta-2: var(--muted, #5b6b67); --fb-linha: #cfd9d6;
  --fb-marca: var(--font-brand, "Foobá!", "fooba", Montserrat, sans-serif); --fb-texto: Montserrat, system-ui, sans-serif;
}
html[data-fa-tema="escuro"] :is(.fb-busca, .fb-gaveta, .fb-result) {
  --fb-cor: var(--fooba-destaque-claro, #07ba96); --fb-sobre: #06231d; --fb-fundo: #18191b; --fb-fundo-2: #26292b;
  --fb-tinta: #f1f4f3; --fb-tinta-2: #a9b4b1; --fb-linha: #43494c;
}
html[data-fa-tema^="contraste-"] :is(.fb-busca, .fb-gaveta, .fb-result) {
  --fb-cor: var(--fa-link); --fb-sobre: var(--fa-fundo); --fb-fundo: var(--fa-fundo); --fb-fundo-2: var(--fa-fundo);
  --fb-tinta: var(--fa-texto); --fb-tinta-2: var(--fa-texto); --fb-linha: var(--fa-texto);
}

/* ---- Formulário ---- */
html body .fb-form { display: flex; align-items: center; gap: 10px; box-sizing: border-box; width: auto; margin: 0; padding: 6px 6px 6px 18px; border: 2px solid var(--fb-linha); border-radius: 999px; background: var(--fb-fundo); transition: border-color .15s; }
html body .fb-form:focus-within { border-color: var(--fb-cor); }
.fb-form > svg { flex: none; width: 22px; height: 22px; color: var(--fb-cor); }
html body .fb-form input[type="search"] { flex: 1; width: auto; min-width: 0; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--fb-tinta); font: 600 20px/1.2 var(--fb-texto); outline: 0; -webkit-appearance: none; appearance: none; }
html body .fb-form input[type="search"]::placeholder { color: var(--fb-tinta-2); opacity: 1; font-weight: 500; }
.fb-form input::-webkit-search-cancel-button { display: none; }
html body .fb-form button[type="submit"] { flex: none; width: auto; height: 48px; min-width: 0; margin: 0; padding: 0 24px; border: 0; border-radius: 999px; background: var(--fb-cor); color: var(--fb-sobre); font: 400 21px/1 var(--fb-marca); text-transform: none; letter-spacing: 0; cursor: pointer; }
html body .fb-form button[type="submit"]:is(:hover, :focus) { background: var(--fb-cor) !important; color: var(--fb-sobre) !important; }
html body .fb-form button[type="submit"]:hover { filter: brightness(.92); }
.fb-busca :is(a, button):focus-visible, .fb-result :is(a, button):focus-visible { outline: 3px solid var(--fb-cor) !important; outline-offset: 2px; }
@media (max-width: 985px) { .fb-form > svg { display: none; } }

/* ---- A. Painel ---- */
.fb-busca { position: absolute; left: 0; right: 0; top: 0; z-index: 99990; background: var(--fb-fundo); color: var(--fb-tinta); font-family: var(--fb-texto); border-top: 1px solid var(--fb-linha); box-shadow: 0 24px 48px rgba(0,0,0,.16); text-align: left; }
.fb-busca__in { max-width: 980px; margin: 0 auto; padding: 28px 20px 32px; }
.fb-veu { position: fixed; inset: 0; z-index: 99980; background: rgba(8,16,14,.5); }
.fb-busca:focus-visible, .fb-form input:focus-visible { outline: 0; }
.fb-topo { display: flex; align-items: center; gap: 12px; }
.fb-topo .fb-form { flex: 1; min-width: 0; }
html body .fb-fechar { flex: none; width: 44px; height: 44px; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 50%; background: transparent; color: var(--fb-tinta); font: 400 30px/1 var(--fb-texto); cursor: pointer; }
html body .fb-fechar:focus { background: transparent !important; color: var(--fb-tinta) !important; }
html body .fb-fechar:hover { background: var(--fb-fundo-2) !important; color: var(--fb-tinta) !important; }
.fb-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; margin-top: 26px; }
html body .fb-rot { margin: 0 0 12px; padding: 0; color: var(--fb-tinta-2); font: 600 14px/1.3 var(--fb-texto); text-transform: none; letter-spacing: 0; text-align: left; }
.fb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
html body .fb-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--fb-fundo-2); color: var(--fb-tinta); font: 600 15px/1 var(--fb-texto); text-decoration: none; }
html body .fb-chips a:hover { background: var(--fb-cor); color: var(--fb-sobre); }
.fb-eds { display: flex; flex-wrap: wrap; gap: 2px 20px; }
html body .fb-eds a { display: inline-flex; align-items: center; min-height: 40px; color: var(--c, var(--fb-cor)); font: 400 21px/1 var(--fb-marca); text-decoration: none; }
html body .fb-eds a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
html[data-fa-tema="escuro"] body .fb-eds a { color: color-mix(in srgb, var(--c) 50%, #fff) !important; }
/* sugestões enquanto digita */
.fb-sug { margin-top: 18px; }
html body .fb-sug ul { margin: 0; padding: 0; list-style: none; }
html body .fb-sug li { margin: 0; padding: 0; list-style: none; }
html body .fb-sug a.fb-s { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; padding: 9px 12px; margin: 0 -12px; border-radius: 12px; color: var(--fb-tinta); text-decoration: none; }
html body .fb-sug a.fb-s:is(:hover, :focus-visible) { background: var(--fb-fundo-2); }
html body .fb-sug img { width: 84px; height: 56px; object-fit: cover; border-radius: 8px; display: block; margin: 0; }
.fb-img { display: block; width: 84px; height: 56px; border-radius: 8px; background: var(--grad-padrao, var(--fb-fundo-2)); overflow: hidden; }
.fb-sug b { display: block; font: 700 17px/1.3 var(--fb-texto); }
html body .fb-sug mark { background: transparent; color: inherit; padding: 0; text-decoration: underline; text-decoration-color: var(--fb-cor); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.fb-sug small { display: block; margin-top: 4px; color: var(--fb-tinta-2); font: 500 13.5px/1.3 var(--fb-texto); }
html body a.fb-todos { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; color: var(--fb-cor); font: 700 16px/1.2 var(--fb-texto); text-decoration: none; }
@media (max-width: 985px) {
  .fb-busca { position: fixed; inset: 0; z-index: 2147483000; overflow: auto; overscroll-behavior: contain; border: 0; box-shadow: none; }
  html.fb-aberta, html.fb-aberta body { overflow: hidden; }
  .fb-busca__in { padding: 14px 16px 40px; }
  .fb-topo { gap: 4px; }
  html body .fb-form { padding: 4px 4px 4px 14px; gap: 8px; }
  html body .fb-form input[type="search"] { height: 44px; font-size: 17px; }
  html body .fb-form button[type="submit"] { height: 44px; padding: 0 16px; font-size: 19px; }
  .fb-colunas { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .fb-sug b { font-size: 16px; }
}

/* ---- C. Campo na gaveta ---- */
.fb-gaveta { padding: 58px 16px 14px; background: transparent; }
html body .fb-gaveta .fb-form { padding: 3px 3px 3px 14px; }
html body .fb-gaveta input[type="search"] { height: 42px; font-size: 16px; }
html body .fb-gaveta button[type="submit"] { height: 42px; padding: 0 14px; font-size: 18px; }

/* ---- Página de resultados ---- */
.fb-result { box-sizing: border-box; max-width: 1276px; margin: 0 auto; padding: 24px 20px 6px; font-family: var(--fb-texto); color: var(--fb-tinta); text-align: left; }
html body .fb-result h1 { margin: 20px 0 14px; padding: 0; color: var(--fb-tinta); font: 800 28px/1.2 var(--fb-texto); text-transform: none; letter-spacing: 0; text-align: left; }
html body .fb-result h1 span { font-weight: 500; color: var(--fb-tinta-2); }
.fb-result .fb-form { max-width: 760px; }
html body .fb-result .fb-dica { margin: 0 0 12px; color: var(--fb-tinta-2); font: 500 16px/1.5 var(--fb-texto); }
.fb-filtros { display: flex; flex-wrap: wrap; gap: 8px; }
html body .fb-filtros a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px; border: 1.5px solid var(--fb-linha); border-radius: 999px; color: var(--fb-tinta); font: 600 14.5px/1 var(--fb-texto); text-decoration: none; white-space: nowrap; }
html body .fb-filtros a[aria-current] { background: var(--fb-cor); border-color: var(--fb-cor); color: var(--fb-sobre); }
.fb-filtros i { font-style: normal; font-weight: 500; opacity: .75; }
@media (max-width: 985px) {
  .fb-result { padding: 16px 16px 4px; }
  html body .fb-result h1 { font-size: 23px; }
  .fb-filtros { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
}

/* Agenda, vídeos, filmes e séries nos resultados: rótulo do tipo e, sem foto, o degradê da marca */
html body .fooba-pg-meta-top .fb-tipo { background: var(--fooba-destaque, #05866c) !important; color: #fff !important; }
html[data-fa-tema="escuro"] body .fooba-pg-meta-top .fb-tipo { background: var(--fooba-destaque-claro, #07ba96) !important; color: #06231d !important; }
html[data-fa-tema^="contraste-"] body .fooba-pg-meta-top .fb-tipo { background: var(--fa-texto) !important; color: var(--fa-fundo) !important; }
html body.search .fooba-pg-card__thumb-empty { background: var(--grad-padrao, linear-gradient(135deg, #07ba96, #406abf)); border-radius: 12px; }
@media (max-width: 767px) { html body.search .fooba-pg-card__thumb-wrap:has(.fooba-pg-card__thumb-empty) { display: none; } }
@media (max-width: 374px) { html body .fb-form { padding-left: 14px; gap: 4px; } html body .fb-form button[type="submit"] { padding: 0 12px; font-size: 17px; } html body .fb-form input[type="search"]::placeholder { font-size: 14px; } }
html[data-fa-tema^="contraste-"] .fb-eds a { color: var(--fa-link) !important; }
