/* Trending · barra de filtros (Todo · Fotos · Vídeos · Audios + buscador + Filtros).
 * Diseño de Antonio (2-nov-2026): panel azul noche con esquinas redondeadas, pestañas con borde fino,
 * «Todo» con aro dorado y brillo, buscador oscuro, botón «Filtros» dorado y el escudo PF arriba a la derecha
 * con una línea dorada que sube hasta él. Va el último en la cascada, por eso las reglas llevan «html body». */
html body .trd-page .trd-fbar {
  position: relative; z-index: 30; isolation: isolate; gap: 14px 16px;   /* z-index 30: el menú «Filtros» se abre por encima del mosaico */
  align-items: center;
  margin: 20px 0 18px; padding: 22px 28px 24px; border-radius: 18px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(40, 92, 170, .38) 0%, rgba(40, 92, 170, 0) 55%),
    linear-gradient(135deg, #0B2548 0%, #071A36 55%, #061429 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 16px 40px rgba(4, 16, 36, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
}
/* escudo PF arriba a la derecha */
html body .trd-page .trd-fbar::after {
  content: ""; position: absolute; z-index: 0; right: 36px; top: 14px; width: 76px; height: 60px; pointer-events: none;
  background: url('../assets/branding/escudo-oro.png') center / contain no-repeat;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45));
}
/* línea dorada que sube hasta el escudo */
html body .trd-page .trd-fbar::before {
  content: ""; position: absolute; z-index: 0; right: 106px; top: 10px; width: 230px; height: 78px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 230 94' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23F0C12C' stop-opacity='0'/%3E%3Cstop offset='.55' stop-color='%23F0C12C' stop-opacity='.85'/%3E%3Cstop offset='1' stop-color='%23FFE9A3'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 92C70 84 140 60 192 6' stroke='url(%23g)' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") right top / 100% 100% no-repeat;
  opacity: .95;
}
html body .trd-page .trd-fbar > * { position: relative; z-index: 1; }

/* ── pestañas ── */
html body .trd-page .trd-kinds { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 14px; padding-right: 150px; }
html body .trd-page .trd-kind {
  flex: 0 1 188px; min-width: 150px; height: 52px; gap: 11px; padding: 0 16px 0 8px; justify-content: flex-start;
  color: #fff; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .2); box-shadow: none;
  font: 800 15.5px Lato, Arial, sans-serif;
}
html body .trd-page .trd-kind:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .38); transform: translateY(-1px); }
html body .trd-page .trd-kind i:first-child { width: 38px; height: 38px; font-size: 16px; color: #DCE8F8; background: rgba(255, 255, 255, .1); }
html body .trd-page .trd-kind.k-photo i:first-child,
html body .trd-page .trd-kind.k-video i:first-child { background: rgba(70, 120, 200, .38); }
html body .trd-page .trd-kind.k-audio i:first-child { background: rgba(120, 90, 210, .34); }
html body .trd-page .trd-kn { color: #BFD0E6; opacity: 1; font-weight: 600; font-size: 14.5px; }
/* «Todo» (la pestaña activa): aro dorado con brillo */
html body .trd-page .trd-kind.on {
  color: #fff; background: linear-gradient(180deg, rgba(240, 193, 44, .1), rgba(240, 193, 44, .03)), #08213F;
  border: 2px solid #F0C12C; padding: 0 15px 0 7px;
  box-shadow: 0 0 0 1px rgba(240, 193, 44, .25), 0 0 18px rgba(240, 193, 44, .5), inset 0 0 14px rgba(240, 193, 44, .12);
}
html body .trd-page .trd-kind.on i:first-child { color: #1B1203; background: linear-gradient(180deg, #FFD65C, #E3A71B); box-shadow: 0 2px 8px rgba(227, 167, 27, .5); }
html body .trd-page .trd-kind.on .trd-kn { color: #fff; }
html body .trd-page .trd-kind:focus-visible, html body .trd-page .trd-fil-b:focus-visible { outline: 3px solid #F0C12C; outline-offset: 3px; }

/* ── buscador ── */
html body .trd-page .trd-search { flex: 1 1 320px; height: 52px; }
html body .trd-page .trd-search i { left: 20px; color: #fff; font-size: 17px; }
html body .trd-page .trd-search input {
  padding: 0 20px 0 52px; color: #fff; background: rgba(5, 16, 36, .72); border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .25); font: 600 15.5px Lato, Arial, sans-serif; color-scheme: dark;
}
html body .trd-page .trd-search input::placeholder { color: #B7C7DC; font-weight: 500; opacity: 1; }
html body .trd-page .trd-search input:focus { border-color: #F0C12C; box-shadow: 0 0 0 3px rgba(240, 193, 44, .28), inset 0 2px 8px rgba(0, 0, 0, .25); }

/* ── botón Filtros (dorado) ── */
html body .trd-page .trd-fil-b {
  height: 52px; padding: 0 24px; gap: 11px; color: #1B1203; border: 0; font: 900 15.5px Lato, Arial, sans-serif;
  background: linear-gradient(180deg, #FFD65C 0%, #F0B90F 55%, #E3A100 100%);
  box-shadow: 0 8px 20px rgba(240, 185, 15, .35), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
html body .trd-page .trd-fil-b:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 24px rgba(240, 185, 15, .45), inset 0 1px 0 rgba(255, 255, 255, .55); }
html body .trd-page .trd-fil-b.on { background: linear-gradient(180deg, #FFE08A, #F4B92A); }
html body .trd-page .trd-fil-m { top: 62px; }

/* ── pantallas medianas ── */
@media (max-width: 1100px) {
  html body .trd-page .trd-fbar { padding: 20px 20px 22px; }
  html body .trd-page .trd-kinds { gap: 10px; padding-right: 120px; }
  html body .trd-page .trd-kind { flex-basis: 160px; min-width: 130px; height: 48px; font-size: 14.5px; padding: 0 12px 0 7px; }
  html body .trd-page .trd-kind i:first-child { width: 34px; height: 34px; font-size: 14px; }
  html body .trd-page .trd-fbar::after { width: 62px; height: 49px; right: 26px; top: 14px; }
  html body .trd-page .trd-fbar::before { right: 86px; width: 180px; height: 62px; top: 10px; }
}
/* ── móvil: pestañas en una fila que se desliza, escudo pequeño ── */
@media (max-width: 720px) {
  html body .trd-page .trd-fbar { margin: 14px 0 12px; padding: 14px 12px 14px; border-radius: 16px; gap: 10px; }
  html body .trd-page .trd-fbar::after, html body .trd-page .trd-fbar::before { display: none; }   /* en el móvil las pestañas ocupan todo el ancho: sin escudo para no tapar nada */
  html body .trd-page .trd-kinds { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 -12px; padding: 4px 12px 8px; scrollbar-width: none; }
  html body .trd-page .trd-kind { flex: 0 0 auto; min-width: 0; height: 44px; padding: 0 14px 0 6px; font-size: 14px; }
  html body .trd-page .trd-kind.on { padding: 0 13px 0 5px; }
  html body .trd-page .trd-kind i:first-child { width: 30px; height: 30px; font-size: 13px; }
  html body .trd-page .trd-search { flex: 1 1 150px; height: 46px; min-width: 0; }
  html body .trd-page .trd-search i { left: 16px; font-size: 15px; }
  html body .trd-page .trd-search input { padding-left: 42px; font-size: 14.5px; }
  html body .trd-page .trd-fil-b { height: 46px; padding: 0 16px; max-width: 150px; }
  html body .trd-page .trd-fil-b > i:first-child { display: none; }
}
