/* ===== RL Trends ===== */

.rl-trends-page .rl-list-page{
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.rl-trends-page{
  font-family: var(--rl-font);
}

.rl-trends-header{
  display: grid;
  gap: 10px;
}

.rl-trends-title{
    position: relative;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

.rl-trends-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;
}

.rl-trends-sub{
  margin: 0;
  color: var(--rl-muted);
}

.rl-trends-total{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--rl-surface);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius);
}

/* ==============================
   Header: título + KPI na mesma linha
================================ */

.rl-trends-topbar{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  align-items: center;
}

.rl-trends-sub{
  margin: 0;
  color: var(--rl-muted);
  font-size: 13px;
}

/* Box KPI (menor, minimalista) */
.rl-trends-kpi{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    min-width: 250px;
    height: 56px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    background: #1b1b1b;
    background-image: none !important;
    box-shadow: none !important;
    text-decoration: none;
    color: var(--rl-text);
    transition: background var(--rl-fast), transform var(--rl-fast), border-color var(--rl-fast);
    z-index: 1;
}

.rl-trends-kpi__ico svg{
  width: 16px;
  height: 16px;
  display: block;
}

.rl-trends-kpi__lbl{
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--rl-muted);
    line-height: 1;
}

.rl-trends-kpi__val{
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.15;
    font-size: 14px;
    font-weight: 900;
}

/* Mobile: empilha para não apertar */
@media (max-width: 720px){
  .rl-trends-topbar{
    flex-direction: column;
    align-items: stretch;
  }
  .rl-trends-kpi{
    justify-content: space-between;
  }
}

.rl-trends-total__lbl{
  color: var(--rl-muted);
  font-size: 14px;
}

.rl-trends-total__num{
  color: var(--rl-text);
  font-weight: 700;
}

/* ===== TOP 3 editorial ===== */

.rl-trends-top3{
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.rl-trend-feature{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding: 14px;
  background: var(--rl-surface);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius);
  box-shadow: var(--rl-shadow);
  z-index: 1;
}

.rl-trend-feature__media{
  position: relative;
  display: block;
  border-radius: calc(var(--rl-radius) - 4px);
  overflow: hidden;
  background: var(--rl-surface-2);
  border: 1px solid var(--rl-border);
}

.rl-trend-feature__img{
  display: block;
  width: 100%;
  height: auto;
}

.rl-trend-feature__rank{
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid var(--rl-border);
  color: var(--rl-text);
  font-weight: 800;
  letter-spacing: .3px;
}

.rl-trend-feature__body{
  display: grid;
  gap: 10px;
  min-width: 0;
}

.rl-trend-feature__title{
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.rl-trend-feature__title a{
  color: var(--rl-text);
  text-decoration: none;
}

.rl-trend-feature__title a:hover{
  color: var(--rl-text);
  text-decoration: underline;
}

.rl-trend-feature__meta{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.rl-trend-meta{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    min-width: 170px;
    height: 56px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    background: #1b1b1b;
    background-image: none !important;
    box-shadow: none !important;
    text-decoration: none;
    color: var(--rl-text);
    transition: background var(--rl-fast), transform var(--rl-fast), border-color var(--rl-fast);
    z-index: 1;
}

.rl-trend-meta__lbl{
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--rl-muted);
    line-height: 1;
}

.rl-trend-meta__val{
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.15;
    font-size: 14px;
    font-weight: 900;
}

.rl-trend-feature__syn{
  margin: 0;
  color: var(--rl-muted);
  line-height: 1.5;
}

.rl-trend-feature__views{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rl-muted);
}

.rl-trend-views__num{
  color: var(--rl-text);
  font-weight: 800;
}

/* ===== Grid 4–20 ===== */
.rl-trends-grid-wrap{
  margin-top: 18px;
}

.rl-trends-card .rl-trends-rank{
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--rl-surface-2);
  border: 1px solid var(--rl-border);
  color: var(--rl-text);
  font-weight: 800;
  z-index: 2;
}

.rl-trends-views-mini{
  color: var(--rl-muted);
  font-weight: 500;
  opacity: .85;
  font-size: 13px;
}

/* TOP 3: destaque sutil */

.rl-trend-feature{
  transition: border-color var(--rl-fast), transform var(--rl-fast);
}

.rl-trend-feature:hover{
  transform: translateY(-2px);
}

/* Badge rank no grid (4-20) */
.rl-trends-card .rl-trends-rank{
  font-size: 13px;
  padding: 6px 10px;
  letter-spacing: .2px;
  box-shadow: 0 8px 18px rgba(0,0,0,.45);
}

.rl-trend-meta__head{
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.15;
	font-size: 14px;
    font-weight: 900;
}

.rl-trend-meta__ico svg{
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.rl-trend-feature__rank-ico{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.12); /* default (vai ser sobrescrito no top 3) */
}

.rl-trend-feature__rank-ico svg{
  width: 44px;
  height: 44px;
  display: block;
   filter:
    drop-shadow(0 0 6px rgba(0,0,0,.45))
    drop-shadow(0 8px 14px rgba(0,0,0,.55));
}

.rl-trend-feature__rank-txt{
  position: relative;
  z-index: 2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2px;
  color: #111;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}

/* 🥇 #1 dourado */
.rl-trend-feature--1 .rl-trend-feature__rank-ico{ color: #e0b341; }
.rl-trend-feature--1 .rl-trend-feature__rank-txt{ color: #2b1a00; }

/* 🥈 #2 prata */
.rl-trend-feature--2 .rl-trend-feature__rank-ico{ color: #bfc3c7; }
.rl-trend-feature--2 .rl-trend-feature__rank-txt{ color: #1b1b1b; }

/* 🥉 #3 bronze */
.rl-trend-feature--3 .rl-trend-feature__rank-ico{ color: #b87333; }
.rl-trend-feature--3 .rl-trend-feature__rank-txt{ color: #2a1400; }


/* Título do card em 2 linhas */
.rl-trends-card .rl-home-anime__name{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0px; /* mantém altura consistente */
}

.rl-trend-feature__media{
  aspect-ratio: 3 / 4;
}
.rl-trend-feature__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Responsivo ===== */
@media (min-width: 1200px){
  .rl-trends-page .rl-list-page{
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 860px){
  .rl-trend-feature{
    grid-template-columns: 120px 1fr;
  }

  .rl-trend-feature__meta{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
	
.rl-list-page .rl-list-grid, .rl-search-page .rl-list-grid, .rl-tax-page .rl-list-grid{
    grid-template-columns: repeat(5, 1fr);
  }
	
}

@media (max-width: 640px){
.rl-list-page .rl-list-grid, .rl-search-page .rl-list-grid, .rl-tax-page .rl-list-grid{
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 520px){
  .rl-trend-feature{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px){
  .rl-trends-kpi,
  .rl-trend-meta{
    min-width: 0;   /* deixa o grid encolher sem quebrar */
    width: 100%;
  }
}

@media (max-width: 520px){
  .rl-trends-title::after{
    width: min(220px, 60vw);
  }
}

/* =====================================================
   MOBILE — CARDS EM 2 COLUNAS (LISTAS / TRENDS / SEARCH)
   NÃO altera desktop nem tablet
===================================================== */
@media (max-width: 520px){
.rl-list-page .rl-list-grid, .rl-search-page .rl-list-grid, .rl-tax-page .rl-list-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
