/* ==========================================================================
   BASE.CSS — Canonical
   ========================================================================== */

/* Tokens globais */
:root{
  /* Core colors */
  --rl-bg: #0e0e0e;
  --rl-surface: #141414;        /* cards / boxes */
  --rl-surface-2: #1b1b1b;      /* hover / raised */
  --rl-border: rgba(255,255,255,.10);
  --rl-hover: #343434;
  --rl-cor: #5c0404;

  /* Text */
  --rl-text: rgba(255,255,255,.92);
  --rl-muted: #B5B5BE;
  --rl-placeholder: rgba(181,181,190,.75);

  /* Brand / CTA */
  --rl-accent: rgb(209 74 23);
  --rl-accent-hover: rgb(255 124 33);

  /* Shadows */
  --rl-shadow: 0 10px 28px rgba(0,0,0,.55);
	
  /* glass */
  --rl-glass: rgba(0,0,0,.55);
  --rl-glass-blur: 10px;	
	
  /* Radius */
  --rl-radius: 14px;

  /* Typography */
  --rl-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
             Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;

  /* Transitions */
  --rl-fast: 140ms ease;

  /* Focus */
  --rl-focus: rgba(80,1,106,.25);

  /* Header (glass) */
  --rl-header-h: 72px;
  --rl-header-bg: rgba(14,14,14,.78);
  --rl-header-border: rgba(255,255,255,.08);
  --rl-header-blur: 14px;

  /* Overlay/panels */
  --rl-overlay: rgba(0,0,0,.62);
  --rl-panel: var(--rl-surface);
  --rl-panel-border: var(--rl-border);

  /* Footer */
  --rl-footer-border: rgba(255,255,255,.08);
  --rl-footer-pad: 24px;

  /* Search (pill) */
  --rl-search-bg: #101010;
  --rl-search-icon: #9999a5;

  /* Nav menu (capsule) */
  --rl-nav-size: 38px;
  --rl-nav-open: 160px;
  --rl-nav-gap: 10px;

  --rl-nav-pill: rgba(255,255,255,.06);
  --rl-nav-pill-hover: rgba(255,255,255,.10);

  --rl-nav-icon-bg: rgba(255,255,255,.07);
  --rl-nav-icon-bg-hover: rgba(80,1,106,.22);
  --rl-nav-icon-bg-active: var(--rl-accent);
}

/* ==========================================================================
   Base essentials
   ========================================================================== */

*,
*::before,
*::after{ box-sizing: border-box; }

html{
  background: var(--rl-bg);
  color: var(--rl-text);
  font-family: var(--rl-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body{
  margin: 0;
  background: var(--rl-bg);
  color: var(--rl-text);
  font-family: inherit;
}

a{
  color: inherit;
  text-decoration: none;
  transition: color var(--rl-fast), opacity var(--rl-fast);
}

a:hover{ color: var(--rl-accent); }

img,
svg,
video{
  display: block;
  max-width: 100%;
  height: auto;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.025) 0px,
      rgba(255,255,255,.025) 1px,
      transparent 1px,
      transparent 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,.04) 0px,
      rgba(0,0,0,.04) 1px,
      transparent 1px,
      transparent 4px
    );

  opacity: .28;
}

/* ==========================================================================
   Base layout
   ========================================================================== */

.mwidth,
.rl-container{
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.rl-stack{ display: grid; gap: 16px; }
.rl-section{ padding: 24px 0; }

.rl-surface{
  background: var(--rl-surface);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius);
  box-shadow: var(--rl-shadow);
}

.rl-grid{ display: grid; gap: 16px; }
.rl-grid--12{ grid-template-columns: repeat(12, minmax(0, 1fr)); }
.rl-col-12{ grid-column: span 12; }
.rl-col-8{  grid-column: span 8;  }
.rl-col-6{  grid-column: span 6;  }
.rl-col-4{  grid-column: span 4;  }
.rl-col-3{  grid-column: span 3;  }

.rl-row{ display: flex; gap: 12px; align-items: center; }

.rl-divider{
  border: 0;
  border-top: 1px solid var(--rl-border);
  margin: 24px 0;
}

/* ==========================================================================
   Header (estrutura)
   ========================================================================== */

.az-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--rl-header-bg);
  border-bottom: 1px solid var(--rl-header-border);
  backdrop-filter: blur(var(--rl-header-blur));
  -webkit-backdrop-filter: blur(var(--rl-header-blur));
}

.az-header__inner{
  position: relative; /* necessário para centralizar o menu */
  height: var(--rl-header-h);
  display: flex;
  align-items: center;
  gap: 16px;

  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

@media (max-width: 768px){
  .az-header__inner{
    width: calc(100% - 24px);
  }
}

/* Logo */
.az-logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}

.az-logo__img{
  height: 50px;
  width: auto;
}

/* Burger (mobile) — mantido neutro */
.az-burger{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--rl-border);
  background: var(--rl-surface);
  color: var(--rl-text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.az-burger svg{
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.az-burger{
  display: none;
}


/* ==========================================================================
   Nav menu (nav-menu) — baseado no seu exemplo
   - Centralizado no header
   - Expande no hover (desktop)
   ========================================================================== */

.nav-menu{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.nav-menu__wrap{
  display: flex;
  align-items: center;
  gap: var(--rl-nav-gap);
}

/* item fechado */
.nav-menu .button{
  width: var(--rl-nav-size);
  height: var(--rl-nav-size);
  overflow: hidden;
  border-radius: 999px;
  background: var(--rl-nav-pill);
  transition: width 220ms ease, background var(--rl-fast), transform var(--rl-fast), box-shadow var(--rl-fast);
}

.nav-menu .button > a{
  height: var(--rl-nav-size);
  display: flex;
  align-items: center;
  color: var(--rl-text);
  text-decoration: none;
}

/* bolinha do ícone */
.nav-menu .icon{
  width: var(--rl-nav-size);
  height: var(--rl-nav-size);
  flex: 0 0 var(--rl-nav-size);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rl-nav-icon-bg);
  transition: background var(--rl-fast), transform var(--rl-fast);
}

/* SVG */
.nav-menu .icon svg{
  width: 16px;
  height: 16px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* label */
.nav-menu .label{
  white-space: nowrap;
  margin-left: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--rl-text);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--rl-fast), transform var(--rl-fast);
  pointer-events: none;
}

/* hover expande (somente desktop com hover) */
@media (hover:hover){
  .nav-menu .button:hover{
    width: var(--rl-nav-open);
    background: var(--rl-nav-pill-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,.22);
  }

  .nav-menu .button:hover .label{
    opacity: 1;
    transform: translateX(0);
  }

  .nav-menu .button:hover .icon{
    background: var(--rl-accent);
    transform: translateY(-1px);
  }
}

/* ativo aberto — usando :has quando disponível */
.nav-menu .button:has(a[aria-current="page"]){
  background: var(--rl-nav-pill-hover);
  box-shadow: 0 10px 18px rgba(0,0,0,.22);
}

/* fallback manual */
.nav-menu .button.is-active{
  width: var(--rl-nav-open);
  background: var(--rl-nav-pill-hover);
  box-shadow: 0 10px 18px rgba(0,0,0,.22);
}
.nav-menu .button.is-active .label{
  opacity: 1;
  transform: translateX(0);
}
.nav-menu .button.is-active .icon{
  background: var(--rl-nav-icon-bg-active);
  color: #fff;
}

/* remove tooltips/caixinhas antigas (caso exista algo legado) */
.nav-menu .button::before,
.nav-menu .button::after,
.nav-menu a::before,
.nav-menu a::after{
  display: none !important;
  content: none !important;
}

/* ==========================================================================
   Search (desktop) — pill com ícone interno
   ========================================================================== */

.az-search{
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* pill */
.az-search__form{
  position: relative;
  display: flex;
  align-items: center;

  width: 340px;
  height: 44px;

  border-radius: 999px;
  background: var(--rl-search-bg);
  border: 1px solid rgba(255,255,255,.06);

  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  transition: border-color var(--rl-fast), box-shadow var(--rl-fast), background var(--rl-fast);
}

.az-searchbtn{
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);

  width: 21px;
  height: 21px;
  padding: 0;
  border: 0;
  background: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--rl-search-icon);
  cursor: pointer;
}

.az-searchbtn svg,
.az-searchbtn svg *{
  display: block;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1 !important;
  visibility: visible !important;
}

.az-search__input{
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  outline: none;

  padding-left: 44px;
  padding-right: 18px;

  color: var(--rl-text);
  font: inherit;
}

.az-search__input::placeholder{ color: var(--rl-placeholder); }

/* foco: sem anel roxo forte (clean) */
.az-search__form:focus-within{
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

/* ==========================================================================
   Header components — Drawer + Searchsheet (base)
   ========================================================================== */

/* Drawer */
.az-drawer{
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}

.az-drawer[aria-hidden="true"]{ visibility: hidden; }
.az-drawer[aria-hidden="false"]{ visibility: visible; pointer-events: auto; }

.az-drawer__backdrop{
  position: absolute;
  inset: 0;
  background: var(--rl-overlay);
  opacity: 0;
  transition: opacity var(--rl-fast);
}

.az-drawer[aria-hidden="false"] .az-drawer__backdrop{ opacity: 1; }

.az-drawer__panel{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 320px;

  background: var(--rl-panel);
  border-right: 1px solid var(--rl-panel-border);
  box-shadow: var(--rl-shadow);

  transform: translateX(-100%);
  transition: transform var(--rl-fast);
  display: flex;
  flex-direction: column;
}

.az-drawer[aria-hidden="false"] .az-drawer__panel{ transform: translateX(0); }

.az-drawer__top{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px;
  border-bottom: 1px solid var(--rl-border);
}

.az-drawer__close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--rl-border);
  background: var(--rl-surface-2);
  color: var(--rl-text);
  cursor: pointer;
  transition: transform var(--rl-fast), background var(--rl-fast), border-color var(--rl-fast);
}

.az-drawer__close:hover{
  background: var(--rl-surface);
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
}

.az-drawer__nav{
  padding: 12px;
  display: grid;
  gap: 6px;
}

.az-drawer__item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  color: var(--rl-text);
  transition: background var(--rl-fast), transform var(--rl-fast);
}

.az-drawer__item:hover{
  background: var(--rl-surface-2);
  transform: translateY(-1px);
}

.az-drawer__icon{
  width: 18px;
  height: 18px;
  display: inline-flex;
  color: var(--rl-muted);
}

.az-drawer__item:hover .az-drawer__icon{ color: var(--rl-text); }

/* Searchsheet */
.az-searchsheet{
  position: fixed;
  inset: 0;
  z-index: 1300;
  pointer-events: none;
}

.az-searchsheet[aria-hidden="true"]{ visibility: hidden; }
.az-searchsheet[aria-hidden="false"]{ visibility: visible; pointer-events: auto; }

.az-searchsheet__backdrop{
  position: absolute;
  inset: 0;
  background: var(--rl-overlay);
  opacity: 0;
  transition: opacity var(--rl-fast);
}

.az-searchsheet[aria-hidden="false"] .az-searchsheet__backdrop{ opacity: 1; }

.az-searchsheet__panel{
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: min(720px, calc(100% - 32px));

  background: var(--rl-panel);
  border: 1px solid var(--rl-panel-border);
  border-radius: var(--rl-radius);
  box-shadow: var(--rl-shadow);

  opacity: 0;
  transition: opacity var(--rl-fast), transform var(--rl-fast);
}

.az-searchsheet[aria-hidden="false"] .az-searchsheet__panel{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.az-searchsheet__form{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.az-searchsheet__icon{
  width: 18px;
  height: 18px;
  display: inline-flex;
  color: var(--rl-muted);
}

.az-searchsheet__input{
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--rl-text);
  font: inherit;
}

.az-searchsheet__input::placeholder{ color: var(--rl-placeholder); }

.az-searchsheet__close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--rl-border);
  background: var(--rl-surface-2);
  color: var(--rl-text);
  cursor: pointer;
  transition: transform var(--rl-fast), background var(--rl-fast), border-color var(--rl-fast);
}

.az-searchsheet__close:hover{
  background: var(--rl-surface);
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER — versão nova (2 colunas) + ícones SVG
   ========================================================================== */

.rl-footer{
  margin-top: 48px;
  padding: 36px 0;
  background: var(--rl-bg);
  border-top: 1px solid rgba(255,255,255,.08);
}

.rl-footer__grid{
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 28px;
  align-items: start;
}

.rl-footer__meta{
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.rl-footer__meta a{
  color: var(--rl-muted);
  font-size: 13px;
}

.rl-footer__meta a:hover{ color: var(--rl-text); }

.rl-footer__by{
  margin: 0 0 8px;
  color: var(--rl-muted);
  font-size: 13px;
}

.rl-footer__copy{
  margin: 0 0 10px;
  color: var(--rl-text);
  font-size: 13px;
  opacity: .92;
}

.rl-footer__desc{
  margin: 0 0 16px;
  color: var(--rl-muted);
  font-size: 13px;
  line-height: 1.6;
}

.rl-footer__notice{
  display: grid;
  gap: 10px;
  color: var(--rl-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.rl-footer__notice strong{ color: var(--rl-text); }

.rl-footer__title{
  margin: 0 0 12px;
  color: var(--rl-text);
  font-size: 14px;
  font-weight: 700;
}

.rl-footer__links{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 5px;
}

.rl-footer__links a{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rl-muted);
  font-size: 13px;
}

.rl-footer__links a:hover{ color: var(--rl-accent-hover); }

/* ícone SVG */
.rl-ico{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .9;
}

.rl-ico svg{
  width: 16px;
  height: 16px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* responsivo */

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px){
  :root{ --rl-header-h: 68px; --rl-nav-open: 140px; --rl-nav-gap: 8px; }

  .mwidth,
  .rl-container{ width: calc(100% - 32px); }

  /* reduz busca */
  .az-search__form{ width: 280px; }
}

@media (max-width: 900px){
  .az-search__form{ width: 240px; }

}

@media (max-width: 768px){
  :root{ --rl-header-h: 64px; }

  .mwidth,
  .rl-container{ width: calc(100% - 24px); }

  /* menu via drawer */
  .nav-menu{ display: none; }

  /* usa searchsheet */
  .az-search__form{ display: none; }

  .az-header__inner{ gap: 12px; }
  .az-logo{ min-width: 0; }
  .az-logo__img{ height: 34px; }

  .az-drawer__panel{ width: min(360px, 88vw); }
  .az-searchsheet__panel{ top: 16px; width: calc(100% - 24px); }

  .az-footer{ padding: 18px 0; }
}

@media (max-width: 480px){
  :root{ --rl-header-h: 60px; }

  .mwidth,
  .rl-container{ width: calc(100% - 20px); }

  .az-logo__img{ height: 32px; }
  .az-searchbtn{ width: 44px; height: 44px; }
  .az-drawer__panel{ width: 92vw; }
  .az-searchsheet__form{ padding: 12px; gap: 10px; }
}
@media (max-width: 768px){
  /* mostra burger apenas no mobile */
  .az-burger{
    display: inline-flex;
  }
}

.az-search-toggle{ display:none; }

@media (max-width: 768px){
  /* manter itens nas extremidades e logo absoluto no centro */
  .az-header__inner{
    justify-content: space-between;
    gap: 12px;
  }

  /* Logo centralizado */
  .az-logo{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: auto;
    z-index: 2;
  }
  .az-logo__img{ height: 34px; }

  /* Esconde a barra de busca grande no mobile (já existia), e mostra o botão */
  .az-search__form{ display:none !important; }

  .az-search{
    margin-left: auto;
    display: flex;
    align-items: center;
    z-index: 3;
  }

  .az-search-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--rl-surface);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 10px 18px rgba(0,0,0,.22);
  }
  .az-search-toggle svg, .az-search-toggle svg *{
    display: block;
    fill: none;
    stroke: rgba(255,255,255,.85);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/* =================================================
   PESQUISA (search.php)
   Padrão visual igual Lista + Calendário
   - Corrige cards “gigantes” garantindo grid na busca
================================================= */

/* alinhamento geral com header */
.rl-search-page{
  font-family: var(--rl-font);
  color: var(--rl-text);
}

/* container central, igual Lista e Calendário */
.rl-search-page .rl-list-page{
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 18px 16px 28px;
}

.rl-list-page .rl-list-grid,
.rl-search-page .rl-list-grid,
.rl-tax-page .rl-list-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

/* título */
.rl-search-title{
  margin: 6px 0 14px;
  font-size: 22px;
  font-weight: 900;
  color: var(--rl-text);
}

.rl-search-term{
  color: var(--rl-accent);
  word-break: break-word;
}

/* =================================================
   GRID (aqui está a correção do “card gigante”)
   Força o mesmo grid na Busca, independente do escopo antigo
================================================= */
.rl-search-page .rl-list-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.rl-search-page .rl-search-title{
  position: relative;
  margin: 0 0 28px;
  padding: 0;

  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

/* termo pesquisado (destacado, mas respeitoso) */
.rl-search-page .rl-search-term{
  color: var(--rl-accent);
  letter-spacing: normal;
  text-transform: none;
}

/* traço com fade (igual home) */
.rl-search-page .rl-search-title::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;

  width: 220px;
  height: 2px;
  border-radius: 999px;

  background: linear-gradient(
    90deg,
    var(--rl-muted),
    rgba(181,181,190,.55) 35%,
    rgba(181,181,190,0) 100%
  );

  pointer-events: none;
}

@media (max-width: 1180px){
  .rl-search-page .rl-list-grid{ grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 980px){
  .rl-search-page .rl-list-grid{ grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px){
  .rl-search-page .rl-list-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px){
  .rl-search-page .rl-list-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* ajuste fino mobile */
@media (max-width: 768px){
  .rl-search-page .rl-search-title{
    font-size: 15px;
  }
  .rl-search-page .rl-search-title::after{
    width: 180px;
  }
}

/* =================================================
   PAGINAÇÃO (usa o mesmo estilo “A–Z / pills” que você aprovou)
   O the_posts_pagination usa .nav-links + .page-numbers
================================================= */
.rl-search-page .nav-links{
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* links e current como pills sólidos */
.rl-search-page .nav-links .page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 36px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 12px;

  border: 1px solid #2a2a2a;
  background: #1b1b1b; /* sólido, anti-textura */
  color: var(--rl-text);

  font-size: 13px;
  font-weight: 900;
  text-decoration: none;

  background-image: none !important;
  box-shadow: none !important;
  opacity: 1 !important;

  transition: background var(--rl-fast), transform var(--rl-fast), border-color var(--rl-fast);
  user-select: none;
}

.rl-search-page .nav-links .page-numbers:hover{
  background: #242424;
  border-color: #3a3a3a;
  transform: translateY(-1px);
}
.rl-search-page .nav-links .page-numbers:active{
  transform: translateY(0);
}

.rl-search-page .nav-links .page-numbers.current{
  background: var(--rl-accent);
  border-color: var(--rl-accent);
  color: #fff;
}

/* =================================================
   VAZIO (reaproveita visual do calendário)
================================================= */
.rl-search-page .rl-cal-empty{
  margin-top: 16px;
}


/* =================================================
   TAXONOMIA: GÊNERO (taxonomy-rl_anime_genero.php)
   Simples: título estilo home + grid + paginação
================================================= */

.rl-tax-page{
  font-family: var(--rl-font);
  color: var(--rl-text);
}

.rl-tax-wrap{
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 18px 16px 28px;
}

/* título da lista de gêneros — padrão Home */
.rl-gen-title{
  position: relative;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

/* linha decorativa igual Home */
.rl-gen-title::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 220px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--rl-muted), rgba(181, 181, 190, .55) 35%, rgba(181, 181, 190, 0) 100%);
    pointer-events: none;
}

/* título “estilo home” (uppercase + linha) */
.rl-tax-title{
  position: relative;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

/* termo do gênero destacado */
.rl-tax-term{
  color: var(--rl-accent);
  letter-spacing: normal;
}

/* linha abaixo (sólida, sem transparência / sem fade) */
.rl-tax-title::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 220px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--rl-muted), rgba(181, 181, 190, .55) 35%, rgba(181, 181, 190, 0) 100%);
    pointer-events: none;
}

/* paginação no padrão pill sólido (igual você aprovou) */
.rl-tax-page .nav-links{
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rl-tax-page .nav-links .page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 36px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 12px;

  border: 1px solid #2a2a2a;
  background: #1b1b1b;
  color: var(--rl-text);

  font-size: 13px;
  font-weight: 900;
  text-decoration: none;

  background-image: none !important;
  box-shadow: none !important;
  opacity: 1 !important;

  transition: background var(--rl-fast), transform var(--rl-fast), border-color var(--rl-fast);
  user-select: none;
}

button.rl-modal__close {
    display: none;
}

.rl-tax-page .nav-links .page-numbers:hover{
  background: #242424;
  border-color: #3a3a3a;
  transform: translateY(-1px);
}

.rl-tax-page .nav-links .page-numbers:active{
  transform: translateY(0);
}

.rl-tax-page .nav-links .page-numbers.current{
  background: var(--rl-accent);
  border-color: var(--rl-accent);
  color: #fff;
}

@media (max-width: 768px){
  .az-header__inner{
    width: calc(100% - 24px);
  }
}

@media (max-width: 768px){
  .rl-tax-title{ font-size: 15px; }
  .rl-tax-title::after{ width: 180px; }
}

@media (max-width: 768px){
  .rl-gen-title{
    font-size: 15px;
  }
  .rl-gen-title::after{
    width: 180px;
  }
}

/* ======================================================================
   Responsive helpers — grids colapsam para 1 coluna no mobile
   (Seguro: só afeta telas menores)
====================================================================== */

@media (max-width: 900px){
  .rl-col-8,
  .rl-col-6,
  .rl-col-4,
  .rl-col-3{
    grid-column: span 12;
  }
}

@media (max-width: 768px){
  .rl-footer__grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* =================================================
   404 (novo) — estilo igual ao mock (pet + texto + botões)
   Tudo sólido (anti-textura)
================================================= */

.rl-404-page{
  font-family: var(--rl-font);
  color: var(--rl-text);
}

.rl-404-wrap{
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 26px 16px 34px;
}

.rl-404-card{
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 22px;
}

.rl-404-grid{
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 26px;
  align-items: center;
}

/* Pet */
.rl-404-pet{
  display: flex;
  align-items: center;
  justify-content: center;
}

.rl-404-pet img{
  width: min(360px, 100%);
  height: auto;
  display: block;
}

/* Texto */
.rl-404-title{
  margin: 0 0 8px;
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
}

.rl-404-kicker{
  display: block;
  font-size: 64px;
  letter-spacing: .02em;
}

.rl-404-main{
  display: block;
  font-size: 42px;
  font-weight: 700;
  opacity: 1;
}

.rl-404-desc{
  margin: 0 0 18px;
  color: var(--rl-muted);
  font-size: 14px;
}

/* “Talvez isso te ajude” */
.rl-404-help{
  margin-top: 8px;
}

.rl-404-helpLabel{
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
}

.az-drawer__sep{
  height: 1px;
  background: var(--rl-border);
  margin: 8px 6px;
  opacity: 1;
}

.az-drawer__subttl{
  margin: 10px 8px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rl-muted);
}

/* Botões */
.rl-404-actions{
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 14px;
  max-width: 860px;
}

.rl-404-btn{
  height: 54px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: #1b1b1b;
  color: var(--rl-text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background-image: none !important;
  box-shadow: none !important;
  opacity: 1 !important;

  transition: background var(--rl-fast), transform var(--rl-fast), border-color var(--rl-fast);
}

.rl-404-btn:hover{
  background: #242424;
  border-color: #3a3a3a;
  transform: translateY(-1px);
}

.rl-404-btn:active{
  transform: translateY(0);
}

.rl-404-btn--primary{
  background: var(--rl-accent);
  border-color: var(--rl-accent);
  color: #fff;
}

.rl-404-btn--primary:hover{
  background: var(--rl-accent-hover);
  border-color: var(--rl-accent-hover);
}

/* Responsivo */
@media (max-width: 980px){
  .rl-404-grid{
    grid-template-columns: 1fr;
    text-align: left;
  }

  .rl-404-pet{
    order: 2;
  }

  .rl-404-actions{
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .rl-404-kicker{ font-size: 46px; }
  .rl-404-main{ font-size: 28px; }
}
