/* =====================================================================
   JM RADIO — classement.css : page Classements (Top Hits Automne / US)
   ===================================================================== */

/* Onglets */
.cl-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; max-width: 640px; }
.cl-tab { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--jm-border, rgba(255,255,255,.07)); background: var(--jm-panel, rgba(12,16,27,.78)); color: #CBD5E1; font-family: inherit; cursor: pointer; text-align: left; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.cl-tab:hover { border-color: rgba(251, 191, 36, 0.35); transform: translateY(-1px); }
.cl-tab-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.05); color: #94A3B8; font-size: 1rem; transition: all .2s ease; }
.cl-tab-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.cl-tab-txt b { font-size: 0.98rem; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-tab-txt small { font-size: 0.75rem; color: var(--text-secondary); font-weight: 600; margin-top: 2px; }
.cl-tab.active { border-color: rgba(251, 191, 36, 0.55); background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(12, 16, 27, 0.85)); }
.cl-tab.active .cl-tab-ico { background: var(--gradient-gold); color: #111; }
.cl-tab[data-chart="us"].active .cl-tab-ico { background: linear-gradient(135deg, #3B82F6, #1D4ED8); color: #fff; }
.cl-tab[data-chart="us"].active { border-color: rgba(59, 130, 246, 0.55); background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(12, 16, 27, 0.85)); }

/* Tableau */
.cl-board { position: relative; padding: 22px; border-radius: var(--jm-radius, 22px); background: var(--jm-panel, rgba(12,16,27,.78)); border: 1px solid var(--jm-border, rgba(255,255,255,.07)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cl-board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.cl-board-head h2 { margin: 0; font-size: 1.35rem; font-weight: 900; color: #fff; letter-spacing: -0.2px; }
.cl-board-head p { margin: 4px 0 0; color: var(--text-secondary); font-size: 0.88rem; max-width: 620px; }
.cl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); color: #fff; font-family: inherit; font-size: 0.85rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: all .2s ease; }
.cl-btn i { color: var(--gold); }
.cl-btn:hover { border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.08); }

/* Podium */
.cl-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; margin: 0 auto 22px; max-width: 860px; }
.cl-podium:empty { display: none; }
.cl-pod { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); color: #fff; font-family: inherit; text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.cl-pod:hover { transform: translateY(-3px); border-color: rgba(251, 191, 36, 0.35); }
.cl-pod.rank-1 { order: 2; border-color: rgba(251, 191, 36, 0.45); background: linear-gradient(180deg, rgba(251, 191, 36, 0.12), rgba(255, 255, 255, 0.02)); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.cl-pod.rank-2 { order: 1; }
.cl-pod.rank-3 { order: 3; }
.cl-pod-cover { position: relative; display: block; width: min(210px, 100%); margin: 0 auto; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #0F172A; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4); }
.cl-pod.rank-2 .cl-pod-cover, .cl-pod.rank-3 .cl-pod-cover { width: min(170px, 100%); }
.cl-pod-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.cl-pod:hover .cl-pod-cover img { transform: scale(1.04); }
.cl-medal { position: absolute; top: 6px; left: 6px; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.05rem; color: #111; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); z-index: 2; }
.cl-pod.rank-1 .cl-medal { background: linear-gradient(135deg, #FDE68A, #F59E0B); width: 44px; height: 44px; font-size: 1.2rem; }
.cl-pod.rank-2 .cl-medal { background: linear-gradient(135deg, #F1F5F9, #94A3B8); }
.cl-pod.rank-3 .cl-medal { background: linear-gradient(135deg, #FDBA74, #B45309); }
.cl-pod-meta { display: flex; flex-direction: column; min-width: 0; text-align: center; }
.cl-pod-meta b { font-size: 1rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-pod.rank-1 .cl-pod-meta b { font-size: 1.12rem; }
.cl-pod-meta span { font-size: 0.82rem; color: var(--gold); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* Icône lecture sur les pochettes */
.cl-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity .2s ease; }
.cl-play i { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gradient-gold); color: #111; font-size: 1.1rem; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); }
.cl-pod:hover .cl-play, .cl-pod.playing .cl-play, .cl-pod.loading .cl-play { opacity: 1; }

/* Égaliseur (titre en cours d'écoute) */
.cl-eq { position: absolute; right: 8px; bottom: 8px; display: none; align-items: flex-end; gap: 2px; height: 16px; padding: 4px 5px; border-radius: 6px; background: rgba(0, 0, 0, 0.6); }
.cl-eq i { width: 3px; height: 100%; background: var(--gold); border-radius: 2px; animation: clEq .9s ease-in-out infinite; transform-origin: bottom; }
.cl-eq i:nth-child(2) { animation-delay: .2s; } .cl-eq i:nth-child(3) { animation-delay: .4s; }
@keyframes clEq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.playing .cl-eq { display: inline-flex; }
.cl-pod.playing { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.4), 0 18px 40px rgba(0, 0, 0, 0.35); }

/* Liste 4 → N (2 colonnes sur grand écran, ordre de haut en bas) */
.cl-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; }
.cl-list:empty { display: none; }
.cl-row { break-inside: avoid; display: grid; grid-template-columns: 34px 48px minmax(0, 1fr) 36px; align-items: center; gap: 12px; padding: 8px 10px; margin-bottom: 6px; border-radius: 14px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.025); cursor: pointer; transition: background .15s ease, border-color .15s ease; outline: none; }
.cl-row:hover, .cl-row:focus-visible { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.08); }
.cl-row.playing { background: rgba(251, 191, 36, 0.09); border-color: rgba(251, 191, 36, 0.35); }
.cl-rank { font-size: 1.05rem; font-weight: 900; color: #64748B; text-align: center; font-variant-numeric: tabular-nums; }
.cl-row.playing .cl-rank { color: var(--gold); }
.cl-cover { position: relative; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: #0F172A; }
.cl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-cover .cl-eq { right: 50%; bottom: 50%; transform: translate(50%, 50%); }
.cl-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cl-meta b { font-size: 0.92rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-meta span { font-size: 0.78rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-play-btn { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.1); color: #CBD5E1; font-size: 0.78rem; transition: all .15s ease; }
.cl-row:hover .cl-play-btn { background: var(--gradient-gold); border-color: transparent; color: #111; }
.cl-row.playing .cl-play-btn, .cl-row.loading .cl-play-btn { background: var(--gradient-gold); border-color: transparent; color: #111; }

/* États */
.cl-loading { padding: 50px 10px; text-align: center; color: var(--text-secondary); font-weight: 600; }
.cl-loading i { color: var(--gold); margin-right: 8px; }
.cl-loading[hidden], .cl-empty[hidden] { display: none; }
.cl-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 46px 16px 30px; }
.cl-empty-ico { width: 64px; height: 64px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #93C5FD; background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.3); margin-bottom: 6px; }
.cl-empty b { font-size: 1.15rem; color: #fff; }
.cl-empty p { margin: 0 0 10px; color: var(--text-secondary); font-size: 0.9rem; max-width: 420px; }
.cl-board[data-chart="us"] .cl-pod-meta span { color: #93C5FD; }

/* Responsive */
@media (max-width: 1200px) { .cl-list { columns: 1; } }
@media (max-width: 700px) {
    .cl-tabs { gap: 8px; }
    .cl-tab { padding: 10px; gap: 9px; border-radius: 14px; }
    .cl-tab-ico { width: 34px; height: 34px; border-radius: 10px; font-size: 0.9rem; }
    .cl-tab-txt b { font-size: 0.84rem; white-space: normal; line-height: 1.15; }
    .cl-board { padding: 14px; border-radius: 18px; }
    .cl-board-head { align-items: flex-start; margin-bottom: 14px; }
    .cl-board-head h2 { font-size: 1.15rem; }
    .cl-podium { gap: 8px; margin-bottom: 14px; }
    .cl-pod { padding: 8px; gap: 8px; border-radius: 14px; }
    .cl-pod-cover { border-radius: 10px; }
    .cl-pod-cover, .cl-pod.rank-2 .cl-pod-cover, .cl-pod.rank-3 .cl-pod-cover { width: 100%; }
    .cl-medal { width: 28px; height: 28px; font-size: 0.85rem; top: 4px; left: 4px; }
    .cl-pod.rank-1 .cl-medal { width: 32px; height: 32px; font-size: 0.95rem; }
    .cl-pod-meta b, .cl-pod.rank-1 .cl-pod-meta b { font-size: 0.8rem; }
    .cl-pod-meta span { font-size: 0.7rem; }
    .cl-play i { width: 40px; height: 40px; font-size: 0.9rem; }
    .cl-row { grid-template-columns: 26px 44px minmax(0, 1fr) 32px; gap: 10px; padding: 7px 8px; }
    .cl-cover { width: 44px; height: 44px; }
    .cl-play-btn { width: 32px; height: 32px; }
}
/* Évolution (▲ ▼ = NEW) — publiée depuis /gestion */
.cl-rank { display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1; }
.cl-mv, .cl-pod-mv { display: inline-flex; align-items: center; justify-content: center; gap: 1px; font-weight: 900; line-height: 1; white-space: nowrap; border-radius: 6px; }
.cl-mv { font-size: 0.6rem; padding: 2px 4px; }
.cl-mv i, .cl-pod-mv i { font-size: 0.85em; }
.cl-pod-mv { position: absolute; top: 8px; right: 8px; z-index: 2; font-size: 0.72rem; padding: 4px 7px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.cl-mv.up, .cl-pod-mv.up { color: #34D399; background: rgba(6, 78, 59, 0.55); }
.cl-mv.down, .cl-pod-mv.down { color: #FCA5A5; background: rgba(127, 29, 29, 0.55); }
.cl-mv.same, .cl-pod-mv.same { color: #CBD5E1; background: rgba(30, 41, 59, 0.7); }
.cl-mv.new, .cl-pod-mv.new { color: #111; background: linear-gradient(135deg, #FDE68A, #F59E0B); }
