/* /melhores — community top-rated archive */

.best-page{background:var(--cream)}

.best-hero-lead{margin:0 0 14px}
.best-hero-actions{margin-top:18px}
.best-hero-floaters img{animation:best-float 8s ease-in-out infinite}
.best-hero-floaters img:nth-child(1){right:8%;bottom:-6%;left:auto;transform:rotate(-10deg)}
.best-hero-floaters img:nth-child(2){right:26%;top:14%;left:auto;width:clamp(85px,10vw,140px);opacity:.36;transform:rotate(12deg);animation-delay:-2.5s}
.best-hero-floaters img:nth-child(3){right:42%;bottom:10%;left:auto;width:clamp(70px,8vw,110px);opacity:.22;transform:rotate(-16deg);animation-delay:-4s}
@keyframes best-float{0%,100%{translate:0 0}50%{translate:0 -12px}}

.best-content{padding-top:32px;padding-bottom:56px}

.best-section-head{margin:0 0 20px}
.best-section-head h2{
  margin:4px 0 8px;font-size:clamp(1.45rem,2.6vw,1.9rem);
  letter-spacing:-.03em;color:var(--forest);
}
.best-section-head p{margin:0;font-size:14px;color:var(--muted);max-width:52ch;line-height:1.45}
.best-section-head--rank{margin-top:8px}

/* —— Champion —— */
.best-podium-section{margin:0 0 36px}
.best-champ{
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  gap:0;align-items:stretch;overflow:hidden;
  border-radius:22px;background:#041f17;color:#eef3ee;
  box-shadow:0 24px 48px rgba(4,31,23,.18);
  animation:best-rise .65s cubic-bezier(.22,1,.36,1) both;
}
@keyframes best-rise{
  from{opacity:0;transform:translateY(18px)}
  to{opacity:1;transform:none}
}
.best-champ-visual{
  position:relative;display:grid;place-items:center;
  min-height:320px;padding:28px 24px;
  background:
    radial-gradient(70% 80% at 50% 40%,rgba(177,238,120,.16),transparent 60%),
    linear-gradient(160deg,#06291e 0%,#0a3a2a 100%);
  text-decoration:none;overflow:hidden;
}
.best-champ-glow{
  position:absolute;inset:18% 22%;border-radius:50%;
  background:radial-gradient(circle,rgba(201,162,39,.28),transparent 68%);
  pointer-events:none;filter:blur(8px);
}
.best-champ-visual img{
  position:relative;z-index:1;width:min(72%,280px);height:auto;
  object-fit:contain;filter:drop-shadow(0 22px 36px rgba(0,0,0,.35));
  transition:transform .45s cubic-bezier(.22,1,.36,1);
}
.best-champ:hover .best-champ-visual img{transform:translateY(-6px) scale(1.02)}
.best-champ-body{
  display:flex;flex-direction:column;justify-content:center;gap:10px;
  padding:clamp(28px,4vw,44px);background:linear-gradient(145deg,#052419,#0a3328);
}
.best-champ-medal{
  display:inline-flex;align-self:flex-start;align-items:center;
  padding:6px 12px;border-radius:999px;
  background:linear-gradient(120deg,#c9a227,#e6aa47);color:#1a1608;
  font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
}
.best-champ-score{
  display:flex;align-items:baseline;gap:8px;margin-top:4px;
}
.best-champ-score strong{
  font-family:var(--serif);font-size:clamp(2.6rem,5vw,3.4rem);
  line-height:1;letter-spacing:-.04em;color:#fff;
}
.best-champ-score > span{color:#e6aa47;font-size:1.4rem}
.best-champ-score small{font-size:13px;color:#9fb5a6;font-weight:650}
.best-champ-body h3{
  margin:4px 0 0;font-family:var(--serif);
  font-size:clamp(1.55rem,3vw,2.1rem);letter-spacing:-.03em;line-height:1.1;
}
.best-champ-body h3 a{color:#fff;text-decoration:none}
.best-champ-body h3 a:hover{color:var(--lime)}
.best-champ-meta{margin:0;font-size:14px;color:#b7caba;line-height:1.4}
.best-champ-body .button{margin-top:10px;align-self:flex-start}

/* —— Runners-up —— */
.best-runners{
  display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px;
}
.best-runner{
  display:grid;grid-template-columns:140px minmax(0,1fr);gap:0;
  border-radius:18px;overflow:hidden;background:#fff;
  border:1px solid #e5e0d4;
  transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s ease;
  animation:best-rise .65s cubic-bezier(.22,1,.36,1) both;
}
.best-runner--2{animation-delay:.08s}
.best-runner--3{animation-delay:.16s}
.best-runner:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 32px rgba(7,27,21,.1);
}
.best-runner-visual{
  display:grid;place-items:center;padding:16px 12px;
  background:linear-gradient(160deg,#eef3ee,#e4ebe4);
  text-decoration:none;
}
.best-runner-visual img{
  width:100%;max-width:110px;height:auto;object-fit:contain;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.12));
}
.best-runner-body{
  display:flex;flex-direction:column;justify-content:center;gap:6px;
  padding:18px 18px 18px 16px;min-width:0;
}
.best-runner-medal{
  display:inline-flex;align-self:flex-start;
  padding:4px 10px;border-radius:999px;
  font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
}
.best-runner--2 .best-runner-medal{background:#d8dcda;color:#2a302e}
.best-runner--3 .best-runner-medal{background:#e4d2bf;color:#4a3420}
.best-runner-score{display:flex;align-items:baseline;gap:5px}
.best-runner-score strong{font-family:var(--serif);font-size:1.55rem;line-height:1;color:var(--forest)}
.best-runner-score > span{color:#c9a227;font-size:14px}
.best-runner-score small{font-size:12px;color:var(--muted);font-weight:650}
.best-runner-body h3{
  margin:2px 0 0;font-size:1.05rem;letter-spacing:-.02em;line-height:1.2;
}
.best-runner-body h3 a{color:var(--ink);text-decoration:none}
.best-runner-body h3 a:hover{color:var(--forest)}
.best-runner-body p{
  margin:0;font-size:12px;color:var(--muted);line-height:1.35;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

/* —— Tools —— */
.best-tools{
  display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;
  margin:0 0 22px;position:sticky;top:0;z-index:20;
  padding:12px 0;background:linear-gradient(180deg,rgba(247,245,238,.98) 70%,rgba(247,245,238,.88));
  backdrop-filter:blur(10px);
}
@media (max-width:850px){
  .best-tools{top:var(--site-header-h,70px)}
}
.best-tools .search-field{
  flex:1 1 220px;max-width:380px;min-height:44px;background:#fff;border-color:#ddd9ce;
}
.best-sort{
  display:inline-flex;padding:3px;border-radius:999px;
  background:#ebe6da;border:1px solid #ddd7c8;gap:2px;
}
.best-sort-btn{
  appearance:none;border:0;cursor:pointer;background:transparent;
  padding:8px 14px;border-radius:999px;font:inherit;font-size:12px;font-weight:750;
  color:var(--muted);transition:background .15s ease,color .15s ease;
}
.best-sort-btn:hover{color:var(--ink)}
.best-sort-btn.is-active{background:#fff;color:var(--forest);box-shadow:0 2px 8px rgba(7,27,21,.08)}
.best-count{margin-left:auto;font-size:12px;font-weight:650;color:var(--muted)}
.best-count strong{color:var(--ink);font-family:var(--serif);font-size:18px;font-weight:700}

/* —— Grid —— */
.best-rank-section{margin:0 0 28px}
.best-page .jersey-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 14px;
}
.best-page .jersey-card[hidden],
.best-page [data-best-item][hidden]{display:none!important}

.jersey-rating-badge{
  position:absolute;top:10px;right:10px;z-index:3;
  display:inline-flex;align-items:center;gap:4px;
  padding:5px 9px;border-radius:999px;
  background:rgba(255,253,241,.94);border:1px solid rgba(230,170,71,.35);
  color:#8a6a1a;font-size:12px;font-weight:800;line-height:1;
  box-shadow:0 4px 12px rgba(7,27,21,.08);pointer-events:none;
}
.jersey-rating-badge small{font-weight:650;opacity:.7;font-size:10px}
.jersey-rank{
  position:absolute;top:10px;left:10px;z-index:3;
  display:inline-grid;place-items:center;
  min-width:2em;height:2em;padding:0 6px;border-radius:999px;
  background:var(--forest);color:#fff;font-size:11px;font-weight:800;
  box-shadow:0 4px 12px rgba(7,27,21,.16);pointer-events:none;
}
.jersey-card{position:relative}
.jersey-card .jersey-stage{position:relative}
.jersey-card.has-rank .shirt-new-badge{top:auto;bottom:10px;left:10px}

.best-empty{
  text-align:center;padding:28px 16px;color:var(--muted);font-size:14px;
}
.best-empty--page{
  max-width:420px;margin:24px auto 48px;padding:48px 20px;
}
.best-empty--page h2{
  margin:8px 0 10px;font-size:clamp(1.4rem,3vw,1.8rem);color:var(--forest);
}
.best-empty--page p{margin:0 0 20px;line-height:1.45}
.best-empty--page .button{margin:0 auto}

@media (max-width:900px){
  .best-champ{grid-template-columns:1fr}
  .best-champ-visual{min-height:260px}
  .best-runners{grid-template-columns:1fr}
  .best-runner{grid-template-columns:120px minmax(0,1fr)}
  .best-page .jersey-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .best-hero-floaters img:nth-child(n+3){display:none}
  .best-count{margin-left:0}
}
@media (max-width:640px){
  .best-page .jersey-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .best-hero-floaters img:nth-child(n+2){display:none}
  .best-champ-visual{min-height:220px;padding:20px}
  .best-runner{grid-template-columns:100px minmax(0,1fr)}
  .best-sort{width:100%;justify-content:stretch}
  .best-sort-btn{flex:1;text-align:center}
}
@media (prefers-reduced-motion:reduce){
  .best-hero-floaters img,
  .best-champ,
  .best-runner{animation:none}
}
