/*
   RuniverseHub · REP-2.0 Rankings Public UI
   Lovable-first dark/glass visual layer. No altera motores REP.
*/
:root {
  --rh-rank-bg: #050913;
  --rh-rank-panel: rgba(12, 24, 38, .76);
  --rh-rank-panel-strong: rgba(15, 31, 48, .92);
  --rh-rank-border: rgba(125, 211, 252, .18);
  --rh-rank-border-strong: rgba(52, 211, 153, .28);
  --rh-rank-text: #e5f4ff;
  --rh-rank-muted: #9fb2c8;
  --rh-rank-soft: #6f8299;
  --rh-rank-green: #34d399;
  --rh-rank-cyan: #22d3ee;
  --rh-rank-blue: #60a5fa;
  --rh-rank-glow: 0 24px 80px rgba(34, 211, 238, .12), 0 12px 48px rgba(52, 211, 153, .10);
}

body.rh-rankings-public-page {
  margin: 0;
  min-height: 100vh;
  color: var(--rh-rank-text);
  background:
    radial-gradient(circle at 10% 5%, rgba(34, 211, 238, .18), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(52, 211, 153, .15), transparent 24rem),
    linear-gradient(180deg, #050913 0%, #08111f 48%, #050913 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* REP-2.2.1 · Detail page shell marker
   El test REP-2.2 valida esta clase en CSS y el body la usa en /ranking/detail.php. */
body.rh-ranking-detail-page {
  min-height: 100vh;
}

.rh-ranking-detail-page .rh-rankings-shell {
  position: relative;
}

.rh-rankings-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.rh-rankings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 18px;
}

.rh-rankings-hero-copy,
.rh-rankings-hero-card,
.rh-rankings-context-card,
.rh-ranking-board,
.rh-rankings-filters,
.rh-ranking-error {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rh-rank-border);
  background: linear-gradient(135deg, rgba(15, 31, 48, .88), rgba(10, 20, 33, .68));
  border-radius: 28px;
  box-shadow: var(--rh-rank-glow);
  backdrop-filter: blur(18px);
}

.rh-rankings-hero-copy { padding: 38px; }
.rh-rankings-hero-copy::before,
.rh-ranking-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(52, 211, 153, .12), transparent 42%, rgba(34, 211, 238, .10));
}

.rh-ranking-kicker {
  position: relative;
  margin: 0 0 10px;
  color: var(--rh-rank-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.rh-rankings-hero h1 {
  position: relative;
  margin: 0;
  max-width: 860px;
  font-size: clamp(36px, 6vw, 76px);
  line-height: .94;
  letter-spacing: -.055em;
}

.rh-rankings-hero-copy > p:not(.rh-ranking-kicker) {
  position: relative;
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--rh-rank-muted);
  font-size: 16px;
  line-height: 1.7;
}

.rh-rankings-policy-row,
.rh-ranking-chips,
.rh-ranking-components {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rh-rankings-policy-row { margin-top: 24px; }
.rh-rankings-policy-row span,
.rh-ranking-chips span,
.rh-ranking-components span {
  border: 1px solid rgba(125, 211, 252, .16);
  border-radius: 999px;
  background: rgba(6, 15, 28, .64);
  color: #c8e7ff;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 11px;
}

.rh-rankings-hero-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.rh-rankings-orbit {
  position: absolute;
  right: -50px;
  top: -50px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, .30);
  box-shadow: 0 0 70px rgba(34, 211, 238, .16) inset, 0 0 90px rgba(52, 211, 153, .10);
}

.rh-rankings-hero-card strong {
  position: relative;
  font-size: 26px;
  letter-spacing: -.03em;
}

.rh-rankings-hero-card > p {
  position: relative;
  margin: 8px 0 26px;
  color: var(--rh-rank-muted);
}

.rh-rankings-summary-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.rh-rankings-summary-grid span {
  min-height: 92px;
  border-radius: 20px;
  border: 1px solid rgba(52, 211, 153, .16);
  background: rgba(5, 12, 23, .62);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  color: var(--rh-rank-soft);
  font-size: 12px;
  font-weight: 800;
}

.rh-rankings-summary-grid b {
  color: var(--rh-rank-text);
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}

.rh-rankings-mode-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 14px;
}

.rh-rankings-mode-nav a {
  text-decoration: none;
  border: 1px solid rgba(125, 211, 252, .16);
  color: var(--rh-rank-muted);
  background: rgba(9, 19, 32, .72);
  border-radius: 999px;
  padding: 11px 15px;
  font-weight: 900;
  font-size: 13px;
  transition: transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
}

.rh-rankings-mode-nav a:hover,
.rh-rankings-mode-nav a.is-active {
  transform: translateY(-1px);
  border-color: rgba(52, 211, 153, .48);
  color: #eafff7;
  background: linear-gradient(135deg, rgba(52, 211, 153, .18), rgba(34, 211, 238, .10));
}

.rh-rankings-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  margin: 0 0 18px;
}

.rh-rankings-filters label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rh-rankings-filters span {
  color: var(--rh-rank-soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .10em;
}

.rh-rankings-filters input,
.rh-rankings-filters select {
  width: 100%;
  box-sizing: border-box;
  color: var(--rh-rank-text);
  background: rgba(4, 11, 22, .78);
  border: 1px solid rgba(125, 211, 252, .16);
  border-radius: 16px;
  min-height: 44px;
  padding: 0 12px;
  outline: none;
}

.rh-rankings-filters button {
  align-self: end;
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  color: #03110d;
  background: linear-gradient(135deg, var(--rh-rank-green), var(--rh-rank-cyan));
  font-weight: 950;
  cursor: pointer;
}

.rh-rankings-context-card {
  display: grid;
  grid-template-columns: minmax(220px, .4fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  margin: 16px 0 22px;
}

.rh-rankings-context-card h2,
.rh-ranking-board h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -.035em;
}

.rh-rankings-context-card p:last-child,
.rh-ranking-board-head p {
  margin: 0;
  color: var(--rh-rank-muted);
  line-height: 1.55;
}

.rh-rankings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rh-ranking-board {
  padding: 18px;
  min-width: 0;
}

.rh-ranking-board-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.rh-ranking-count {
  white-space: nowrap;
  color: var(--rh-rank-green);
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(52, 211, 153, .20);
  background: rgba(52, 211, 153, .08);
  border-radius: 999px;
  padding: 8px 10px;
}

.rh-ranking-list {
  position: relative;
  display: grid;
  gap: 12px;
}

.rh-ranking-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(125, 211, 252, .13);
  border-radius: 22px;
  background: rgba(4, 11, 22, .56);
  padding: 12px;
}

.rh-ranking-place span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: #02130f;
  background: linear-gradient(135deg, var(--rh-rank-green), var(--rh-rank-cyan));
  font-weight: 950;
  box-shadow: 0 10px 30px rgba(52, 211, 153, .18);
}

.rh-ranking-body { min-width: 0; }
.rh-ranking-row-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rh-ranking-name {
  display: inline-block;
  max-width: 100%;
  color: var(--rh-rank-text);
  font-weight: 950;
  text-decoration: none;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

a.rh-ranking-name:hover { color: var(--rh-rank-cyan); }

.rh-ranking-meta {
  margin: 4px 0 0;
  color: var(--rh-rank-soft);
  font-size: 12px;
  line-height: 1.45;
}

.rh-ranking-score {
  text-align: right;
  min-width: 58px;
}

.rh-ranking-score strong {
  display: block;
  font-size: 28px;
  line-height: .95;
  color: var(--rh-rank-green);
}

.rh-ranking-score span {
  color: var(--rh-rank-soft);
  font-size: 11px;
  font-weight: 900;
}

.rh-ranking-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(125, 211, 252, .10);
  margin: 12px 0 10px;
}

.rh-ranking-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rh-rank-green), var(--rh-rank-cyan));
}

.rh-ranking-chips,
.rh-ranking-components { gap: 6px; }
.rh-ranking-chips span,
.rh-ranking-components span { padding: 6px 8px; font-size: 11px; }
.rh-ranking-components { margin-top: 8px; }
.rh-ranking-components b { color: var(--rh-rank-green); }

.rh-ranking-empty,
.rh-ranking-error {
  position: relative;
  color: var(--rh-rank-muted);
  border-radius: 20px;
  padding: 18px;
  background: rgba(4, 11, 22, .46);
  border: 1px dashed rgba(125, 211, 252, .18);
}

.rh-ranking-error { margin: 18px 0; color: #fecaca; border-color: rgba(248, 113, 113, .28); }

@media (max-width: 1180px) {
  .rh-rankings-grid { grid-template-columns: 1fr; }
  .rh-rankings-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .rh-rankings-shell { width: min(100% - 20px, 720px); padding: 18px 0 52px; }
  .rh-rankings-hero { grid-template-columns: 1fr; }
  .rh-rankings-hero-copy { padding: 24px; }
  .rh-rankings-hero-card { min-height: 220px; }
  .rh-rankings-filters { grid-template-columns: 1fr; }
  .rh-rankings-context-card { grid-template-columns: 1fr; }
  .rh-ranking-board { padding: 14px; border-radius: 24px; }
  .rh-ranking-item { grid-template-columns: 42px minmax(0, 1fr); }
  .rh-ranking-place span { width: 38px; height: 38px; border-radius: 14px; font-size: 13px; }
  .rh-ranking-score strong { font-size: 24px; }
  .rh-ranking-actions { gap: 8px; }
  .rh-ranking-actions .rh-ranking-action-link { flex: 1 1 calc(50% - 4px); }
  .rh-ranking-podium-action { width: 100%; }
}

/* REP-2.1 · Podio, accesos rápidos y filtros activos */
.rh-rankings-active-filters {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rh-rankings-active-filters span {
  border: 1px solid rgba(34, 211, 238, .20);
  border-radius: 999px;
  background: rgba(34, 211, 238, .08);
  color: #d9fbff;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 11px;
}

.rh-rankings-quick-actions {
  border: 1px solid rgba(125, 211, 252, .14);
  border-radius: 24px;
  background: rgba(7, 18, 32, .66);
  padding: 14px 16px;
  margin: 0 0 16px;
  backdrop-filter: blur(14px);
}

.rh-rankings-quick-actions .rh-ranking-kicker {
  margin-bottom: 10px;
}

.rh-rankings-quick-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rh-rankings-quick-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(52, 211, 153, .18);
  border-radius: 999px;
  background: rgba(4, 11, 22, .58);
  color: #d8f8ff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  padding: 0 13px;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.rh-rankings-quick-actions a:hover {
  transform: translateY(-1px);
  border-color: rgba(52, 211, 153, .48);
  background: rgba(52, 211, 153, .10);
}

.rh-rankings-podium {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, .24);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 0%, rgba(52, 211, 153, .16), transparent 24rem),
    radial-gradient(circle at 92% 12%, rgba(34, 211, 238, .14), transparent 22rem),
    linear-gradient(135deg, rgba(15, 31, 48, .88), rgba(7, 14, 26, .70));
  box-shadow: var(--rh-rank-glow);
  padding: 20px;
  margin: 0 0 18px;
  backdrop-filter: blur(18px);
}

.rh-rankings-podium-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.rh-rankings-podium-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -.045em;
}

.rh-rankings-podium-head > span {
  white-space: nowrap;
  border: 1px solid rgba(34, 211, 238, .24);
  background: rgba(34, 211, 238, .08);
  color: #a7f3ff;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}

.rh-rankings-podium-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rh-rankings-podium-card {
  min-height: 190px;
  border: 1px solid rgba(125, 211, 252, .15);
  border-radius: 24px;
  background: rgba(4, 11, 22, .58);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rh-rankings-podium-card-1 {
  border-color: rgba(52, 211, 153, .34);
  background: linear-gradient(135deg, rgba(52, 211, 153, .13), rgba(4, 11, 22, .64));
}

.rh-rankings-podium-rank {
  width: max-content;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rh-rank-green), var(--rh-rank-cyan));
  color: #02130f;
  font-size: 12px;
  font-weight: 950;
  padding: 7px 10px;
}

.rh-rankings-podium-type {
  color: var(--rh-rank-soft);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.rh-rankings-podium-card a,
.rh-rankings-podium-card strong {
  color: var(--rh-rank-text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.rh-rankings-podium-card a:hover { color: var(--rh-rank-cyan); }

.rh-rankings-podium-score {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.rh-rankings-podium-score b {
  color: var(--rh-rank-green);
  font-size: 42px;
  line-height: .9;
}

.rh-rankings-podium-score span {
  color: var(--rh-rank-soft);
  font-size: 13px;
  font-weight: 900;
}


/* REP-2.3 · Rankings Mobile / UX Polish */
.rh-ranking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.rh-ranking-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(8, 17, 34, .78);
  color: #e6fbff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.01em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.rh-ranking-action-link span { line-height: 1; }
.rh-ranking-action-link i {
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  opacity: .9;
}

.rh-ranking-action-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .22), 0 0 0 1px rgba(255,255,255,.02) inset;
}

.rh-ranking-action-primary {
  color: #03130f !important;
  background: linear-gradient(135deg, var(--rh-rank-green), var(--rh-rank-cyan)) !important;
  border-color: transparent !important;
}

.rh-ranking-action-secondary {
  color: #dff8ff !important;
  background: rgba(15, 23, 42, .76) !important;
  border-color: rgba(125, 211, 252, .24) !important;
}

.rh-ranking-action-secondary:hover {
  color: #5eead4 !important;
  border-color: rgba(94, 234, 212, .52) !important;
}

.rh-ranking-podium-action {
  margin-top: 10px;
  width: max-content;
}

.rh-ranking-profile-link { text-decoration: none; }

@media (max-width: 980px) {
  .rh-rankings-podium-grid { grid-template-columns: 1fr; }
  .rh-rankings-podium-card { min-height: auto; }
}

@media (max-width: 820px) {
  .rh-rankings-podium { padding: 14px; border-radius: 24px; }
  .rh-rankings-podium-head { flex-direction: column; }
  .rh-rankings-quick-actions { border-radius: 22px; }
}

/* REP-2.2 · Ranking Detail / Deep View */
.rh-ranking-detail-link { text-decoration: none; }

.rh-ranking-detail-link:hover { color: inherit; }

.rh-ranking-detail-shell {
  gap: 22px;
}

.rh-ranking-detail-hero {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 34px;
  padding: clamp(22px, 4vw, 46px);
  background:
    radial-gradient(circle at 18% 18%, rgba(52, 211, 153, .18), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(56, 189, 248, .16), transparent 32%),
    linear-gradient(135deg, rgba(2, 6, 23, .9), rgba(8, 17, 34, .82));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
  gap: 26px;
  align-items: center;
}

.rh-ranking-detail-hero h1 {
  margin: 10px 0 8px;
  color: #f8fafc;
  font-size: clamp(40px, 7vw, 82px);
  line-height: .92;
  letter-spacing: -.065em;
}

.rh-ranking-detail-hero p {
  color: rgba(226, 232, 240, .74);
  max-width: 780px;
  font-size: 18px;
  line-height: 1.5;
}

.rh-ranking-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.rh-ranking-detail-actions a { text-decoration: none; }

.rh-ranking-detail-score-card {
  border: 1px solid rgba(94, 234, 212, .2);
  border-radius: 30px;
  padding: 26px;
  background: rgba(9, 28, 36, .74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.rh-ranking-detail-score-card span {
  color: rgba(226, 232, 240, .72);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 950;
}

.rh-ranking-detail-score-card strong {
  display: inline-block;
  color: var(--rh-rank-green);
  font-size: clamp(60px, 9vw, 104px);
  line-height: .9;
  margin-top: 10px;
}

.rh-ranking-detail-score-card small {
  color: rgba(226, 232, 240, .68);
  font-size: 20px;
  font-weight: 900;
}

.rh-ranking-detail-score-card p {
  color: rgba(226, 232, 240, .76);
  margin: 14px 0 0;
  font-weight: 900;
}

.rh-ranking-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rh-ranking-detail-panel {
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 28px;
  padding: 22px;
  background: rgba(8, 17, 34, .76);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .24);
}

.rh-ranking-detail-panel h2 {
  margin: 8px 0 8px;
  color: #f8fafc;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -.045em;
}

.rh-ranking-detail-panel p {
  color: rgba(226, 232, 240, .68);
  line-height: 1.48;
}

.rh-ranking-detail-wide { margin-top: 0; }

.rh-ranking-detail-components,
.rh-ranking-detail-timeline,
.rh-ranking-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.rh-ranking-detail-components article,
.rh-ranking-detail-timeline article,
.rh-ranking-detail-facts span {
  border: 1px solid rgba(148, 163, 184, .11);
  border-radius: 20px;
  padding: 14px;
  background: rgba(2, 6, 23, .46);
}

.rh-ranking-detail-components span,
.rh-ranking-detail-timeline span,
.rh-ranking-detail-facts span {
  color: rgba(226, 232, 240, .68);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 950;
}

.rh-ranking-detail-components strong,
.rh-ranking-detail-timeline strong,
.rh-ranking-detail-facts b {
  display: block;
  color: #f8fafc;
  font-size: 26px;
  margin-top: 6px;
}

.rh-ranking-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rh-rank-green), var(--rh-rank-cyan));
}

@media (max-width: 980px) {
  .rh-ranking-detail-hero,
  .rh-ranking-detail-grid,
  .rh-ranking-detail-components,
  .rh-ranking-detail-timeline,
  .rh-ranking-detail-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rh-ranking-detail-hero { border-radius: 26px; }
  .rh-ranking-detail-actions a { width: 100%; text-align: center; }
  .rh-ranking-detail-panel { border-radius: 24px; padding: 18px; }
}

@media (max-width: 640px) {
  .rh-ranking-actions .rh-ranking-action-link { flex: 1 1 100%; }
}

/* REP-2.4 · Ranking CTAs compactos e integración de navegación */
.rh-ranking-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px;
}

.rh-ranking-action-link {
  width: auto;
  min-width: 0;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
  box-shadow: none;
  transform: none;
}

.rh-ranking-action-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.rh-ranking-action-primary {
  color: #04130f !important;
  background: linear-gradient(135deg, rgba(94, 234, 212, .95), rgba(34, 211, 238, .92)) !important;
  border: 1px solid rgba(94, 234, 212, .28) !important;
  box-shadow: 0 8px 20px rgba(34, 211, 238, .10);
}

.rh-ranking-action-secondary {
  color: #dff8ff !important;
  background: rgba(8, 17, 34, .72) !important;
  border: 1px solid rgba(125, 211, 252, .22) !important;
}

.rh-ranking-action-link i {
  display: none;
}

.rh-ranking-podium-action {
  width: auto;
  margin-top: 8px;
  align-self: flex-start;
}

.rh-ranking-detail-actions .rh-ranking-action-link {
  min-height: 38px;
  padding: 10px 14px;
}

@media (max-width: 820px) {
  .rh-ranking-actions { gap: 8px; }
  .rh-ranking-actions .rh-ranking-action-link {
    flex: 0 0 auto;
    width: auto;
    min-height: 36px;
    padding: 9px 12px;
  }
  .rh-ranking-action-primary,
  .rh-ranking-action-secondary { box-shadow: none; }
}

@media (max-width: 420px) {
  .rh-ranking-actions .rh-ranking-action-link {
    flex: 1 1 calc(50% - 4px);
    max-width: calc(50% - 4px);
    padding-inline: 10px;
  }
  .rh-ranking-podium-action {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }
}


/* REP-2.6 · AJAX UX + CTAs refinados finales */
.rh-rankings-dynamic {
  position: relative;
}

.rh-rankings-dynamic.is-loading {
  opacity: .58;
  filter: saturate(.86);
  pointer-events: none;
  transition: opacity .18s ease, filter .18s ease;
}

.rh-rankings-ajax-status {
  position: sticky;
  top: 76px;
  z-index: 40;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 10px auto;
  border: 1px solid rgba(94, 234, 212, .28);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(2, 6, 23, .82);
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
}

.rh-ranking-actions {
  gap: 7px;
  margin-top: 9px;
}

.rh-ranking-action-link {
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.01em;
}

.rh-ranking-action-primary {
  background: linear-gradient(135deg, rgba(94, 234, 212, .88), rgba(34, 211, 238, .84)) !important;
  box-shadow: 0 7px 16px rgba(34, 211, 238, .08) !important;
}

.rh-ranking-action-secondary {
  background: rgba(8, 17, 34, .56) !important;
  border-color: rgba(125, 211, 252, .18) !important;
}

.rh-ranking-action-link i {
  display: none;
}

.rh-ranking-podium-action {
  min-height: 32px;
  padding: 8px 11px;
  border-radius: 12px;
}

.rh-ranking-detail-actions .rh-ranking-action-link {
  min-height: 34px;
  padding: 9px 12px;
  border-radius: 13px;
}

@media (max-width: 820px) {
  .rh-ranking-actions {
    gap: 7px;
  }

  .rh-ranking-actions .rh-ranking-action-link {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    min-height: 31px;
    padding: 7px 10px;
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .rh-ranking-actions .rh-ranking-action-link {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }
}


/* REP-2.6.1 · AJAX PHP boundary hotfix: CSS cache refresh only */
