/* ============================================
   ROLLIT — TOP CHARTS CSS
   --------------------------------------------
   The leaderboard rows only. The hero, the media-type filter and the tab bar
   that used to live here belong to the Browse page now (css/browse.cf8221c6.css) —
   Top Charts is one of its categories, not a page of its own.
   ============================================ */

/* ---- SORT ---- */
.charts-sort { display: inline-flex; gap: 6px; }
.chart-sort-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600;
  background: var(--surface2, rgba(255,255,255,.04));
  border: 0.5px solid var(--border2, rgba(255,255,255,.1)); color: var(--muted);
  transition: all .15s;
}
.chart-sort-btn:hover { color: var(--text); border-color: rgba(255,255,255,.22); }
.chart-sort-btn.active { color: var(--gold); border-color: rgba(232,201,107,.4); }
.chart-sort-btn i { font-size: 14px; }

/* ---- LIST ---- */
.charts-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.chart-row {
  display: grid;
  grid-template-columns: 46px 48px 1fr auto auto auto;
  align-items: center; gap: 14px;
  background: var(--surface, #1a1b28);
  border: 0.5px solid var(--border2, rgba(255,255,255,.08));
  border-radius: 12px; padding: 10px 16px 10px 8px; cursor: pointer;
  transition: border-color .16s, transform .16s, background .16s;
}
.chart-row:hover { border-color: rgba(232,201,107,.35); transform: translateX(2px); background: var(--surface2, #20213a); }

.chart-rank {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.7rem; line-height: 1;
  text-align: center; color: var(--dim);
}
.chart-rank.top3 { color: var(--text); }
.chart-rank.rank-1 { color: var(--gold); }
.chart-rank.rank-2 { color: #c8cad4; }
.chart-rank.rank-3 { color: #cd7f4d; }

.chart-poster { width: 48px; height: 68px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.chart-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chart-poster-ph {
  width: 100%; height: 100%; background: var(--surface2, #20213a);
  display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 18px;
}

.chart-info { min-width: 0; }
.chart-name {
  font-size: 15px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chart-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.chart-type {
  font-size: 10px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600;
  color: var(--muted); background: var(--surface2, rgba(255,255,255,.05));
  border: 0.5px solid var(--border2, rgba(255,255,255,.1)); padding: 2px 7px; border-radius: 20px;
}

.chart-verdict { display: flex; align-items: center; }
.chart-score {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.9rem; line-height: 1;
  min-width: 42px; text-align: right;
}
.chart-votes { font-size: 11px; color: var(--dim); min-width: 60px; text-align: right; }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .chart-row { grid-template-columns: 34px 40px 1fr auto auto; gap: 10px; padding: 8px 12px 8px 6px; }
  .chart-verdict { display: none; }              /* drop the verdict glyph to save room */
  .chart-votes { display: none; }
  .chart-score { font-size: 1.5rem; min-width: 34px; }
  .chart-poster { width: 40px; height: 58px; }
}
