/* ranking-arcade.css — one shared "arcade leaderboard" look for every ranking page
   (most-viewed Punjabi/Indian, most-liked, most-commented, yearly).
   MUST load AFTER data-tables-modern.css: it corrects that file's mobile column rules,
   which hid column 6 (Likes) — the very metric the Most-Liked page ranks by. */

/* ── Site-wide PAGE TITLE treatment ─────────────────────────────────────
   Owner liked the song page's title style, so every page's H1 now shares it:
   gold accent, heavy weight, tight leading, slight negative tracking.
   Only the *style* is shared — each page keeps its own responsive SIZE, so the
   compact ranking heroes stay compact and the song/movie titles stay large. */
.hero-section h1,
.page-header h1,
.song-page .song-title,
h1.page-title {
  color: var(--accent, #e8b84a);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.012em;
}
/* the white "highlight" word inside a title (e.g. Most Viewed <span>Punjabi Songs</span>) */
.hero-section h1 span,
.page-header h1 span { color: var(--text-primary, #fff); font-weight: 800; }

/* ── Hero: compact + squared ────────────────────────────────────────── */
.hero-section {
  text-align: center;
  padding: 11px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.hero-section h1 {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.hero-subtitle { font-size: 0.8rem; margin-bottom: 0; }

/* ── Ranking tabs: squared, bold, uppercase ─────────────────────────── */
.rank-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}
.rank-tab {
  padding: 9px 15px;
  background: var(--bg-card, #161b22);
  border: 1px solid var(--border, #30363d);
  border-radius: 3px;
  color: var(--text-secondary, #8b949e);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: all 0.15s;
}
.rank-tab:hover {
  border-color: var(--accent, #e8b84a);
  color: var(--accent, #e8b84a);
  background: rgba(232, 184, 74, 0.10);
}
.rank-tab.active {
  background: var(--accent, #e8b84a);
  border-color: var(--accent, #e8b84a);
  color: #141018;            /* dark on gold — never white */
}

/* ── Leaderboard table: squared, bold, tabular figures ──────────────── */
.tp-table-wrap #mytable thead th {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 0 !important;
}
.tp-table-wrap #mytable tbody td {
  border-radius: 0 !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.tp-table-wrap #mytable .rank-col,
.tp-table-wrap #mytable .views-col,
.tp-table-wrap #mytable .metric-col,
.tp-table-wrap #mytable .rating-col {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.tp-table-wrap #mytable .rank-col { font-size: 0.95rem; }
.tp-table-wrap #mytable .tp-song-name > a { font-weight: 700; }
.tp-table-wrap #mytable .tp-song-thumb img { border-radius: 3px !important; }

/* Readability: the rank numbers and the artist subtitle were rendering at only ~5:1
   (var(--tp-text-muted) -> #8b949e) at 12–13px, which is what made the tables look washed out. */
.tp-table-wrap #mytable td.rank-col { color: #aab4bf !important; }
.tp-table-wrap .tp-song-sub { color: #a9b3bd !important; font-weight: 600; }

/* whole row navigates to the song page */
.tp-table-wrap #mytable tbody tr.song-row { cursor: pointer; }
.tp-table-wrap #mytable tbody tr.song-row:hover {
  background: rgba(232, 184, 74, 0.07) !important;
  box-shadow: inset 3px 0 0 var(--accent, #e8b84a);
}

/* ── Mobile: always show the metric the page RANKS BY ───────────────── */
@media (max-width: 768px) {
  /* rating is the least useful column on a phone — drop it */
  .tp-table-wrap #mytable th:nth-child(5),
  .tp-table-wrap #mytable td.rating-col { display: none !important; }

  /* Pages ranking by likes/comments mark their wrapper .rank-by-metric:
     show that column (data-tables-modern hides col 6 by default — which is
     exactly what hid Likes on the Most-Liked page) and drop Views, since the
     view count already appears under the song title. */
  .tp-table-wrap.rank-by-metric #mytable th:nth-child(6),
  .tp-table-wrap.rank-by-metric #mytable td.metric-col { display: table-cell !important; }
  .tp-table-wrap.rank-by-metric #mytable th:nth-child(4),
  .tp-table-wrap.rank-by-metric #mytable td.views-col { display: none !important; }

  .rank-tabs { gap: 6px; margin-bottom: 12px; }
  .rank-tab { padding: 8px 11px; font-size: 0.66rem; letter-spacing: 0.05em; }
  .hero-section { padding: 9px 12px; margin-bottom: 10px; }
  .hero-section h1 { font-size: 1.08rem; }
  .hero-subtitle { font-size: 0.74rem; }
}
@media (max-width: 480px) {
  .hero-section h1 { font-size: 1rem; }
  .rank-tab { padding: 7px 9px; font-size: 0.62rem; }
}

/* light theme */
[data-theme="light"] .rank-tab { background: #f6f8fa; border-color: rgba(27,31,36,.14); color: #57606a; }
[data-theme="light"] .rank-tab:hover { color: #8a6508; border-color: #8a6508; background: rgba(184,134,11,.08); }
[data-theme="light"] .rank-tab.active { background: #e8b84a; border-color: #e8b84a; color: #141018; }
