/* RAPZODY V15.4 — TOP SPODYFY
   Page du classement : même univers que l'accueil (accueil.css), avec le vert de la plateforme fictive Spodyfy
   pour les streams. Les rangs de carte (inconnu, rookie, confirmé, superstar) reprennent ceux du jeu. */
.tsp { --sp: #1ed760; --sp-soft: rgba(30, 215, 96, .14); max-width: 860px; margin: 0 auto; padding: calc(var(--nav-h) + var(--ban) + 28px) var(--gut) 64px; display: grid; gap: 34px; }
.tsp-hero { text-align: center; display: grid; gap: 10px; justify-items: center; }
.tsp-title { margin: 0; font: 400 clamp(56px, 14vw, 104px)/.88 "Bebas Neue", Oswald, sans-serif; letter-spacing: .02em; }
.tsp-title span { color: var(--sp); text-shadow: 0 0 30px rgba(30, 215, 96, .35); }
.tsp-sub { margin: 0; max-width: 46ch; color: var(--muted); }
.tsp-chip { margin: 4px 0 0; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(233, 196, 106, .45); color: var(--gold-hi); font-size: 13px; font-weight: 600; }

.tsp-h2 { margin: 0 0 14px; font: 600 15px/1 Oswald, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Ma place */
.tsp-me { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 18px; border-radius: 18px; background: var(--sp-soft); border: 1px solid rgba(30, 215, 96, .35); }
.tsp-me-txt { margin: 0; max-width: 52ch; }
.tsp-me-txt b { color: var(--sp); }
.tsp-me .hp-btn { width: 100%; max-width: 380px; }

/* Podium */
.tsp-podium { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; }
.tsp-podium:empty { display: none; }
.tsp-pod { position: relative; display: grid; justify-items: center; gap: 6px; padding: 16px 10px 14px; border-radius: 18px; text-align: center; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); min-width: 0; }
.tsp-pod--1 { order: 2; padding-top: 24px; border-color: rgba(243, 198, 79, .6); background: linear-gradient(180deg, rgba(243,198,79,.22), rgba(243,198,79,.04)); box-shadow: 0 16px 40px -18px rgba(243,198,79,.6); }
.tsp-pod--2 { order: 1; border-color: rgba(207, 216, 230, .5); }
.tsp-pod--3 { order: 3; border-color: rgba(201, 139, 85, .55); }
.tsp-pod-rank { position: absolute; top: -12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #cfd8e6; color: #111; font: 400 18px/1 "Bebas Neue", Oswald, sans-serif; }
.tsp-pod--1 .tsp-pod-rank { background: #f3c64f; width: 34px; height: 34px; top: -16px; font-size: 22px; }
.tsp-pod--3 .tsp-pod-rank { background: #c98b55; }
.tsp-pod-ava { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center top; background: #111; border: 2px solid rgba(255,255,255,.15); }
.tsp-pod--1 .tsp-pod-ava { width: 80px; height: 80px; border-color: #f3c64f; }
.tsp-pod-name { max-width: 100%; font: 700 16px/1.15 Oswald, sans-serif; letter-spacing: .03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsp-pod-streams { color: var(--sp); font: 700 18px/1 Inter, sans-serif; font-variant-numeric: tabular-nums; }
.tsp-pod-streams small { color: var(--muted); font-size: 11px; font-weight: 600; }
.tsp-pod.is-me, .tsp-row.is-me { outline: 2px solid var(--sp); outline-offset: 2px; }

/* Liste 4 → 50 */
.tsp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tsp-row { display: grid; grid-template-columns: 34px 40px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.tsp-rank { font: 400 22px/1 "Bebas Neue", Oswald, sans-serif; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.tsp-ava { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center top; background: #111; }
.tsp-who { display: grid; min-width: 0; }
.tsp-who b { font: 700 15px/1.2 Oswald, sans-serif; letter-spacing: .03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsp-who small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsp-streams { display: grid; justify-items: end; line-height: 1.1; }
.tsp-streams b { color: var(--sp); font: 700 16px/1.1 Inter, sans-serif; font-variant-numeric: tabular-nums; }
.tsp-streams small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.tsp-ovr { padding: 4px 7px; border-radius: 8px; font: 400 18px/1 "Bebas Neue", Oswald, sans-serif; background: rgba(255,32,43,.16); color: #ff5a72; font-variant-numeric: tabular-nums; }
.tsp-ovr--rookie { background: rgba(243,198,79,.16); color: #f3c64f; }
.tsp-ovr--confirme { background: rgba(159,216,255,.14); color: #cfe9ff; }
.tsp-ovr--superstar { background: linear-gradient(135deg, rgba(159,240,255,.2), rgba(201,167,255,.2)); color: #c9f6ff; }

.tsp-empty { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 28px 18px; border-radius: 18px; border: 1px dashed rgba(255,255,255,.18); color: var(--muted); }
.tsp-empty b { color: var(--txt); }
.tsp-empty p { margin: 0; }
.tsp-empty .hp-btn { margin-top: 6px; }

.tsp-how ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.tsp-how b { color: var(--txt); }

@media (max-width: 560px) {
    .tsp-podium { gap: 6px; }
    .tsp-pod { padding: 14px 6px 10px; }
    .tsp-pod-ava { width: 48px; height: 48px; }
    .tsp-pod--1 .tsp-pod-ava { width: 60px; height: 60px; }
    .tsp-pod-name { font-size: 13px; }
    .tsp-pod-streams { font-size: 14px; }
    .tsp-row { grid-template-columns: 26px 34px minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px; }
    .tsp-row .tsp-ovr { display: none; }
    .tsp-ava { width: 34px; height: 34px; }
}

/* V15.15 — classement des morceaux : artiste + feat, certification */
.tsp-who small i, .tsp-pod-artist i { font-style: normal; color: var(--muted); opacity: .8; }
.tsp-pod-artist { max-width: 100%; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsp-cert { padding: 3px 8px; border-radius: 999px; font: 700 11px/1.2 Inter, sans-serif; white-space: nowrap; }
.tsp-cert--or { background: rgba(243,198,79,.16); color: #f3c64f; }
.tsp-cert--platine { background: rgba(207,216,230,.16); color: #e6edf6; }
.tsp-cert--diamant { background: linear-gradient(135deg, rgba(159,240,255,.2), rgba(201,167,255,.2)); color: #c9f6ff; }
@media (max-width: 560px) { .tsp-row .tsp-cert { display: none; } }

/* V15.26 — joueurs en ligne (en petit) */
.tsp-online { display: flex; align-items: center; justify-content: center; gap: 6px; margin: -6px 0 14px; font-size: 12px; color: rgba(255,255,255,.55); }
.tsp-online i { width: 7px; height: 7px; border-radius: 50%; background: #1ed760; box-shadow: 0 0 6px #1ed760; }
