/* RANKING.CSS - /ranking/ (ranking.js). Azul y rojo de TELODIJE; oro, plata y bronce para el podio. */
.rk { width: 100%; max-width: 64rem; margin: 0 auto; padding: 12px 12px 7rem; font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif; color: #0f172a; }
.rk h1, .rk h2, .rk h3 { font-family: 'Outfit', 'Outfit Fallback', sans-serif; font-weight: 900; }
.rk-tenue { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: #64748b; }
.rk-vacio { padding: 24px; text-align: center; font-weight: 700; color: #64748b; }

.rk-hero { position: relative; overflow: hidden; padding: 26px 20px 22px; border-radius: 26px; color: #fff; text-align: center;
    background: radial-gradient(circle at 15% 0%, rgba(255, 215, 0, .35), transparent 45%), linear-gradient(135deg, #002D72, #1e3a8a 55%, #E31837); }
.rk-hero h1 { margin: 4px 0 6px; font-size: clamp(30px, 7vw, 46px); line-height: 1.05; text-transform: uppercase; }
.rk-hero p { margin: 0 auto; max-width: 34rem; font-size: 14.5px; line-height: 1.45; opacity: .95; }
.rk-kicker { font: 800 12px/1.2 'Inter', sans-serif !important; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.rk-cuenta { display: inline-grid; gap: 2px; margin-top: 14px; padding: 10px 18px; border-radius: 16px; background: rgba(0, 0, 0, .25); }
.rk-cuenta small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.rk-cuenta b { font: 900 26px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .02em; }
.rk-lider { margin-top: 12px !important; font-weight: 700; }

.rk-tu { margin: 14px 0; padding: 16px; border-radius: 20px; background: #fff; border: 2px solid #bfdbfe; box-shadow: 0 6px 20px rgba(0, 45, 114, .08); }
.rk-tu-fuera { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-style: dashed; }
.rk-tu-fuera p { margin: 0; }
.rk-tu-fila { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.rk-tu-fila small { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
.rk-tu-fila b { font: 900 20px/1.2 'Outfit', sans-serif; color: #002D72; }
.rk-barra { height: 10px; margin: 12px 0 4px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.rk-barra span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22c55e, #f59e0b); transition: width .6s; }
.rk-vitrina { margin: 8px 0 0; font-weight: 800; font-size: 14px; }
.rk-vitrina span, .rk-quien small span { margin-left: 3px; }

.rk-tabs { position: sticky; top: 64px; z-index: 20; display: flex; gap: 6px; padding: 8px 0; background: #f8fafc; }
body.nav-hidden .rk-tabs { top: 0; }
.rk-tabs button { flex: 1; min-height: 42px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #0f172a; font: 800 13px 'Inter', sans-serif; cursor: pointer; }
.rk-tabs button[aria-selected="true"] { background: #002D72; border-color: #002D72; color: #fff; }

.rk-podio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; margin: 18px 0 10px; }
.rk-pod { position: relative; display: grid; justify-items: center; gap: 4px; padding: 26px 6px 14px; border-radius: 22px 22px 14px 14px; text-align: center; text-decoration: none; color: #0f172a; background: #fff; border: 1px solid #e2e8f0; }
.rk-pod-1 { padding-top: 34px; min-height: 230px; background: linear-gradient(180deg, #fef3c7, #fff); border: 2px solid #f59e0b; box-shadow: 0 10px 30px rgba(245, 158, 11, .25); }
.rk-pod-2 { min-height: 190px; background: linear-gradient(180deg, #f1f5f9, #fff); border-color: #94a3b8; }
.rk-pod-3 { min-height: 170px; background: linear-gradient(180deg, #ffedd5, #fff); border-color: #fb923c; }
.rk-medalla { position: absolute; top: -16px; font-size: 30px; }
.rk-corona { position: absolute; top: 14px; right: 10px; font-size: 20px; animation: rk-brillo 2.2s infinite ease-in-out; }
@keyframes rk-brillo { 50% { transform: scale(1.18) rotate(-8deg); } }
.rk-av { border-radius: 50%; object-fit: cover; flex: none; }
.rk-av-letra { display: inline-grid; place-items: center; background: linear-gradient(135deg, #002D72, #E31837); color: #fff; font-weight: 900; }
.rk-pod .rk-av { box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(0, 45, 114, .2); }
.rk-nombre { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 900; }
.rk-pts { font: 900 20px/1 'Outfit', sans-serif; color: #002D72; }
.rk-pts small { font: 700 10px 'Inter', sans-serif; color: #64748b; }
.rk-nivel { font-size: 11.5px; font-weight: 700; color: #475569; }
.rk-premio-mini { margin-top: 2px; font-size: 10.5px; line-height: 1.3; color: #92400e; font-weight: 700; }
.rk-verif { color: #1d9bf0; }

.rk-tabla { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rk-fila { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; text-decoration: none; color: inherit; }
a.rk-fila:hover { border-color: #93c5fd; }
.rk-zona .rk-fila { border-left: 4px solid #f59e0b; }
.rk-yo .rk-fila { background: #eff6ff; border-color: #60a5fa; }
.rk-pos { width: 26px; text-align: center; font: 900 15px 'Outfit', sans-serif; color: #64748b; }
.rk-quien { flex: 1; min-width: 0; display: grid; }
.rk-quien b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.rk-quien em { font-style: normal; color: #2563eb; }
.rk-quien small { font-size: 11.5px; color: #64748b; font-weight: 600; }
.rk-corte { padding: 4px; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #b45309; }

.rk-sec { margin: 22px 0 0; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid #e2e8f0; }
.rk-sec h2 { margin: 0; font-size: 22px; text-transform: uppercase; color: #002D72; }
.rk-sec h3 { margin: 18px 0 0; font-size: 17px; color: #0f172a; }
.rk-premios { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.rk-premio { padding: 14px; border-radius: 18px; border: 1px solid #e2e8f0; background: #f8fafc; }
.rk-premio span { font-size: 30px; }
.rk-premio b { display: block; margin-top: 2px; font: 900 15px 'Outfit', sans-serif; text-transform: uppercase; }
.rk-premio p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: #334155; }
.rk-premio-1 { background: linear-gradient(135deg, #fef9c3, #fff7ed); border-color: #fbbf24; }
.rk-nota { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #fef3c7; color: #92400e; font-size: 13px; font-weight: 600; }
.rk-niveles { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.rk-niveles li { padding: 12px; border-radius: 16px; background: #f8fafc; border: 1px solid #e2e8f0; }
.rk-niveles span { font-size: 24px; }
.rk-niveles b { display: block; font-weight: 900; }
.rk-niveles small { font-size: 11.5px; font-weight: 800; color: #2563eb; }
.rk-niveles p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; color: #475569; }
.rk-como { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.rk-como li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #f8fafc; }
.rk-como li > span:first-child { font-size: 20px; }
.rk-como li > span:nth-child(2) { flex: 1; display: grid; }
.rk-como b { font-size: 13.5px; }
.rk-como small { font-size: 11.5px; color: #64748b; }
.rk-como em { font: 900 16px 'Outfit', sans-serif; font-style: normal; color: #16a34a; }
.rk-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 14px; background: #002D72; color: #fff; font: 800 13px 'Inter', sans-serif; text-decoration: none; cursor: pointer; }
.rk-btn-2 { background: #E31837; }
.rk-btn-3 { background: #0f172a; }
.rk-fama { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.rk-fama li { display: grid; gap: 4px; padding: 10px 12px; border-radius: 14px; background: #f8fafc; }
.rk-fama li > small { font-size: 11px; font-weight: 800; text-transform: uppercase; color: #64748b; }
.rk-fama-g { display: flex; align-items: center; gap: 8px; font-size: 13.5px; text-decoration: none; color: inherit; }
.rk-fama-g em { margin-left: auto; font-style: normal; font-weight: 800; color: #002D72; }
.rk-admin form { display: grid; gap: 10px; margin-top: 10px; }
.rk-admin label { display: grid; gap: 4px; font-size: 12px; font-weight: 800; color: #334155; }
.rk-admin input, .rk-admin textarea { width: 100%; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 10px; font: 500 13.5px 'Inter', sans-serif; background: #fff; color: #0f172a; }
.rk-aviso { margin: 20px 0 0; text-align: center; font-size: 12px; color: #64748b; }

@media (min-width: 768px) {
    .rk { padding-top: 24px; }
    .rk-hero { padding: 40px 28px 30px; }
    .rk-podio { gap: 16px; }
    .rk-pod-1 { min-height: 260px; }
}

html.dark .rk { color: #f1f5f9; }
html.dark .rk-tu, html.dark .rk-pod, html.dark .rk-fila, html.dark .rk-sec { background: #0f172a; border-color: #1e293b; color: #f1f5f9; }
html.dark .rk-pod-1 { background: linear-gradient(180deg, #422006, #0f172a); border-color: #f59e0b; }
html.dark .rk-pod-2 { background: linear-gradient(180deg, #1e293b, #0f172a); }
html.dark .rk-pod-3 { background: linear-gradient(180deg, #431407, #0f172a); }
html.dark .rk-tabs { background: #0b1120; }
html.dark .rk-tabs button { background: #0f172a; border-color: #334155; color: #f1f5f9; }
html.dark .rk-tabs button[aria-selected="true"] { background: #2563eb; border-color: #2563eb; }
html.dark .rk-tu-fila b, html.dark .rk-pts, html.dark .rk-sec h2, html.dark .rk-fama-g em { color: #93c5fd; }
html.dark .rk-sec h3 { color: #f1f5f9; }
html.dark .rk-premio, html.dark .rk-niveles li, html.dark .rk-como li, html.dark .rk-fama li { background: #111a2e; border-color: #1e293b; }
html.dark .rk-premio p, html.dark .rk-niveles p, html.dark .rk-nivel { color: #cbd5e1; }
html.dark .rk-premio-1 { background: linear-gradient(135deg, #422006, #1e293b); }
html.dark .rk-yo .rk-fila { background: #1e3a8a; }
html.dark .rk-premio-mini { color: #fcd34d; }
html.dark .rk-nota { background: #451a03; color: #fde68a; }
html.dark .rk-admin input, html.dark .rk-admin textarea { background: #0b1220; border-color: #334155; color: #f1f5f9; }
