/* ══════════════════════════════════════════════════════════════════
   Seasons — list & detail
   ══════════════════════════════════════════════════════════════════ */

/* ── Dot "live" ─────────────────────────────────────────────────── */

.sac-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.75); }
}

/* ══════════════════════════════════════════════════════════════════
   Saison active — grande carte
   ══════════════════════════════════════════════════════════════════ */

.season-active-card {
  display: block;
  position: relative;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: calc(var(--radius) + 2px);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: background .15s, transform .12s, box-shadow .15s;
  box-shadow: 0 0 0 0 rgba(88,101,242,.0);
}

.season-active-card:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(88,101,242,.18);
}

/* Lueur d'arrière-plan accent */
.sac-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88,101,242,.12) 0%, transparent 70%);
  pointer-events: none;
}

.sac-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}

.sac-live-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sac-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 .3rem;
}

.sac-since {
  font-size: .84rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.sac-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
}

.sac-stat { display: flex; flex-direction: column; gap: .1rem; }

.sac-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.sac-stat-label {
  font-size: .78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.sac-cta {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════════
   Saisons passées — liste
   ══════════════════════════════════════════════════════════════════ */

.season-past-list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.season-past-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: background .15s, border-color .15s, transform .12s;
}

.season-past-card:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  transform: translateX(4px);
}

/* ID badge */
.spc-id {
  min-width: 2.8rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .05em;
  flex-shrink: 0;
}

/* Nom */
.spc-name {
  min-width: 110px;
  font-weight: 700;
  font-size: .93rem;
  flex-shrink: 0;
}

/* Winner block */
.spc-winner {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex: 1;
  min-width: 0;
}

.spc-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.spc-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}

.spc-avatar-fb {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800;
  background: var(--accent); border-radius: 50%; color: #fff;
}

.spc-winner-info { display: flex; flex-direction: column; min-width: 0; }

.spc-winner-name {
  font-weight: 700;
  font-size: .88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spc-winner-mmr {
  font-size: .74rem;
  color: var(--text-muted);
}

.spc-no-winner { font-size: .85rem; color: var(--text-muted); }

/* Stats chips */
.spc-stats {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}

.spc-chip {
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}

/* Arrow */
.spc-arrow {
  font-size: 1.35rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color .15s;
}
.season-past-card:hover .spc-arrow { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════
   Season detail — live badge
   ══════════════════════════════════════════════════════════════════ */

.sd-live-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(87,242,135,.1);
  border: 1px solid rgba(87,242,135,.3);
  border-radius: 999px;
  padding: .2rem .65rem;
  vertical-align: middle;
}

/* ══════════════════════════════════════════════════════════════════
   Season detail — nouveau design
   ══════════════════════════════════════════════════════════════════ */

/* Chip "live" coloré */
.sd-chip-live {
  color: var(--green) !important;
  border-color: rgba(87,242,135,.4) !important;
  background: rgba(87,242,135,.07) !important;
}

/* Chip bonne moyenne */
.sd-chip-good {
  color: var(--green) !important;
  border-color: rgba(87,242,135,.3) !important;
}

/* ── Top 3 compact ───────────────────────────────────────────────── */

.sd-podium-row {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.75rem;
}

.sd-podium-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .8rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: background .15s, border-color .15s, transform .12s;
}

.sd-podium-card:hover {
  background: var(--bg-hover);
  transform: translateX(4px);
}

.sd-podium-1 { border-color: rgba(255,213,0,.35); background: rgba(255,213,0,.04); }
.sd-podium-2 { border-color: rgba(192,192,192,.3); }
.sd-podium-3 { border-color: rgba(205,127,50,.3);  }

.sd-podium-1:hover { border-color: rgba(255,213,0,.6); }
.sd-podium-2:hover { border-color: rgba(192,192,192,.5); }
.sd-podium-3:hover { border-color: rgba(205,127,50,.5); }

.sd-podium-medal {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.sd-podium-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.sd-podium-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}

.sd-podium-avatar-fb {
  position: absolute; inset: 0;
  align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800;
  background: var(--accent); border-radius: 50%; color: #fff;
}

.sd-podium-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.sd-podium-name {
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-podium-mmr {
  font-size: .78rem;
  color: var(--text-muted);
}

.sd-podium-right {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}

.sd-podium-stat {
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Header classement complet ───────────────────────────────────── */

.sd-rank-header {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: .75rem;
}

.sd-rank-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin: 0;
}

.sd-rank-count {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ── Badge de rang dans la liste ─────────────────────────────────── */

.sd-rank-badge {
  min-width: 2.8rem;
  font-size: .9rem;
  text-align: center;
  flex-shrink: 0;
}

.sd-rank-top1 { font-size: 1.15rem; }
.sd-rank-top2 { font-size: 1.05rem; }
.sd-rank-top3 { font-size: 1.05rem; }

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .sac-stats         { gap: 1.5rem; }
  .sac-name          { font-size: 1.3rem; }
  .spc-stats         { display: none; }
  .spc-name          { min-width: 80px; }
  .sd-podium-right   { display: none; }
  .mc-meta           { display: none; }
}
