/* Community market seasons - creator leaderboard (feature:community_market_seasons) */

.pmsl {
  /* 1180 to match .pm-page: this page renders prediction_markets/_player_nav
     too, and at 760 the section nav jumped when a player opened the
     leaderboard (owner 2026-08-07 alignment sweep). */
  max-width: 1180px;
  margin: 0 auto;
  /* 18px horizontal to match .pm-page exactly - at 16px the section nav still
     sat 2px left of every other page. */
  padding: 28px 18px 64px;
  color: #e2e8f0;
}

.pmsl-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.pmsl-title {
  font-size: 30px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 4px;
  letter-spacing: 0.3px;
}

.pmsl-sub {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

.pmsl-season {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
}

.pmsl-back {
  flex: none;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.6);
  transition: border-color 0.15s, color 0.15s;
}

.pmsl-back:hover {
  color: #f8fafc;
  border-color: #475569;
  text-decoration: none;
}

.pmsl-empty {
  text-align: center;
  padding: 48px 24px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid #334155;
  border-radius: 14px;
  color: #94a3b8;
}

.pmsl-empty-cta {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1e293b;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
}

.pmsl-empty-cta:hover {
  color: #1e293b;
  text-decoration: none;
}

.pmsl-board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pmsl-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92) 0%, rgba(51, 65, 85, 0.6) 100%);
  border: 1px solid #334155;
  border-radius: 12px;
}

.pmsl-row-gold {
  border-color: rgba(245, 158, 11, 0.55);
}

.pmsl-row-silver {
  border-color: rgba(148, 163, 184, 0.55);
}

.pmsl-row-bronze {
  border-color: rgba(180, 120, 70, 0.55);
}

.pmsl-rank {
  flex: none;
  width: 48px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
}

.pmsl-medal {
  font-size: 12px;
  line-height: 1;
}

.pmsl-medal-gold {
  color: #fbbf24;
}

.pmsl-medal-silver {
  color: #cbd5e1;
}

.pmsl-medal-bronze {
  color: #c08457;
}

.pmsl-name {
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmsl-tier {
  flex: none;
  padding: 3px 9px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #334155;
  border-radius: 999px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}

/* Top Creators board trust markers (tier, rulings overturned): same pill as
   pmsl-tier but NEVER hidden on mobile - a trust fact must survive every
   viewport (board acl r2). */
.pmsl-mark {
  flex: none;
  padding: 3px 9px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #334155;
  border-radius: 999px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}

.pmsl-count {
  flex: none;
  text-align: right;
}

.pmsl-count-n {
  color: #fbbf24;
  font-size: 16px;
  font-weight: 800;
}

.pmsl-count-l {
  display: block;
  color: #94a3b8;
  font-size: 11px;
}

@media (max-width: 767px) {
  /* 12px to match .pm-page's mobile padding, so the section nav does not shift
     when a player opens the leaderboard on a phone (owner 2026-08-07). */
  .pmsl {
    padding: 20px 12px 48px;
  }

  .pmsl-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .pmsl-title {
    font-size: 20px;
  }

  .pmsl-tier {
    display: none;
  }
}
