/* Clasificaciones v2: portada por grupos, menú lateral, filtros, podio y filas con barra. Base: fjuego-v2.css, listado-v2.css y taxonomia-v2.css. Prefijo ck- */

/* ===== Portada: los rankings agrupados ===== */
.ck-portada-grupos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 0 1.2rem; align-items: start; }
.ck-grupo { margin: 0.6rem 0; }
.ck-grupo-enlace { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.6rem 0.7rem; border-radius: 0.6rem; color: #cdeaf7 !important; text-decoration: none !important; transition: background 0.15s ease; }
.ck-grupo-enlace + .ck-grupo-enlace { margin-top: 0.15rem; }
.ck-grupo-titulo { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: bold; }
.ck-grupo-titulo i { width: 1.2rem; text-align: center; color: var(--dvgo-color-footer-texto); }
.ck-grupo-enlace:hover { background: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.12); color: #fff !important; }
/* Indicador de que la tarjeta abre la clasificación completa */
.ck-ver { display: inline-flex; align-items: center; gap: 0.35rem; flex-shrink: 0; margin-left: auto; padding: 0.15rem 0.5rem; border-radius: 999px; font-family: "IBMPlexMono", monospace; font-size: 0.68rem; font-weight: bold; white-space: nowrap; color: var(--dvgo-color-footer-texto); background: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.1); border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.25); transition: background 0.15s ease, color 0.15s ease; }
.ck-grupo-titulo .ck-ver i { width: auto; font-size: 0.7rem; transition: transform 0.15s ease; }
.ck-grupo-enlace:hover .ck-ver { color: #021825; background: var(--dvgo-color-footer-texto); }
.ck-grupo-enlace:hover .ck-ver i { color: #021825; transform: translateX(2px); }
/* Líder actual del ranking, bajo su título */
.ck-lider { display: flex; align-items: center; gap: 0.55rem; margin-left: 1.8rem; padding: 0.3rem 0.5rem 0.3rem 0.35rem; border-radius: 0.5rem; background: rgba(0, 0, 0, 0.25); }
.ck-lider-n { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 1.25rem; height: 1.25rem; border-radius: 50%; font-family: "IBMPlexMono", monospace; font-size: 0.7rem; font-weight: bold; color: #021825; background: linear-gradient(145deg, #ffe38a, #e0a92e); }
.ck-lider-img { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 1.9rem; height: 1.9rem; border-radius: 0.35rem; overflow: hidden; background: rgba(0, 0, 0, 0.3); font-size: 0.8rem; color: #7fa3b8; }
.ck-lider-img img { width: 100%; height: 100%; object-fit: contain; }
.ck-lider-img.ck-redonda img { object-fit: cover; }
.ck-lider-img.ck-portada { width: 1.4rem; height: 2.1rem; }
.ck-lider-img.ck-bandera { font-size: 1.3rem; background: none; }
.ck-lider-nombre { flex: 1; min-width: 0; font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-lider .ck-valor b { font-size: 0.85rem; }
.ck-lider .fm-nota { min-width: 1.9rem; height: 1.9rem; font-size: 0.8rem; border-radius: 0.45rem; }

/* ===== Ranking: menú lateral + contenido ===== */
.ck-layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.ck-menu { position: sticky; top: 1rem; margin: 1.2rem 0; padding: 1rem 0.8rem 1.2rem; max-height: calc(100vh - 2rem); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.55) rgba(0, 0, 0, 0.25); scrollbar-gutter: stable; }
/* Barra de desplazamiento del menú con el acabado de .tx-scroll (navegadores sin scrollbar-color) */
.ck-menu::-webkit-scrollbar { width: 6px; }
.ck-menu::-webkit-scrollbar-track { margin: 0.8rem 0; background: rgba(0, 0, 0, 0.25); border-radius: 999px; }
.ck-menu::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--v2-acento, #39c0ff), #66ccff); border-radius: 999px; }
.ck-menu::-webkit-scrollbar-thumb:hover { background: #66ccff; }
.ck-menu summary { list-style: none; cursor: pointer; font-size: 0.75rem; font-weight: bold; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dvgo-color-footer-texto); padding: 0 0.4rem 0.4rem; }
.ck-menu summary::-webkit-details-marker { display: none; }
.ck-menu-grupo { margin: 0.9rem 0.4rem 0.3rem; font-size: 0.68rem; font-weight: bold; letter-spacing: 0.06em; text-transform: uppercase; color: #7fa3b8; }
.ck-menu a { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.5rem; border-radius: 0.45rem; font-size: 0.82rem; line-height: 1.3; color: #cdeaf7 !important; text-decoration: none !important; }
.ck-menu a i { width: 1rem; text-align: center; font-size: 0.8rem; color: #7fa3b8; }
.ck-menu a:hover { background: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.1); }
.ck-menu a.ck-activo { background: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.18); color: #fff !important; font-weight: bold; box-shadow: inset 3px 0 0 var(--dvgo-color-footer-texto); }
.ck-menu a.ck-activo i { color: var(--dvgo-color-footer-texto); }

/* ===== Filtros ===== */
.ck-filtros { display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; padding: 1rem 1.2rem 1.1rem; }
.ck-filtro { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.ck-filtro-titulo { margin-right: 0.3rem; font-size: 0.7rem; font-weight: bold; letter-spacing: 0.05em; text-transform: uppercase; color: #7fa3b8; }
.ck-filtro select, .ck-filtro input[type="date"], .ck-filtro input[type="month"] { padding: 0.3rem 0.6rem; border-radius: 0.5rem; font-size: 0.82rem; color: #cdeaf7; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.3); color-scheme: dark; }

/* ===== Podio (los 3 primeros; en escritorio el 1º en el centro y más alto) ===== */
.ck-podio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: end; margin: 1.2rem 0 0; }
.ck-podio-item { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; margin: 0; padding: 1.4rem 1rem 1.2rem; text-align: center; color: #cdeaf7 !important; text-decoration: none !important; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.ck-podio-item:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(var(--v2-acento-rgb, 57, 192, 255), 0.35), 0 16px 34px -12px rgba(0, 0, 0, 0.6); }
.ck-puesto-1 { order: 2; padding-top: 2rem; padding-bottom: 1.6rem; box-shadow: 0 0 0 1px rgba(255, 210, 92, 0.45), 0 0 34px -10px rgba(255, 210, 92, 0.45), 0 12px 30px -10px rgba(0, 0, 0, 0.5); }
.ck-puesto-2 { order: 1; }
.ck-puesto-3 { order: 3; }
.ck-medalla { position: absolute; top: 0.7rem; left: 0.8rem; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; font-family: "IBMPlexMono", monospace; font-weight: bold; color: #021825; background: #9bc6dc; }
.ck-puesto-1 .ck-medalla { width: 2.4rem; height: 2.4rem; font-size: 1.15rem; background: linear-gradient(145deg, #ffe38a, #e0a92e); }
.ck-puesto-2 .ck-medalla { background: linear-gradient(145deg, #eef4f8, #a8b8c4); }
.ck-puesto-3 .ck-medalla { background: linear-gradient(145deg, #f0b98a, #b5703c); }
.ck-podio-img { display: flex; align-items: center; justify-content: center; width: 5.5rem; height: 5.5rem; margin-bottom: 0.4rem; border-radius: 0.8rem; overflow: hidden; background: rgba(0, 0, 0, 0.3); font-size: 1.8rem; color: #7fa3b8; }
.ck-podio-img img { width: 100%; height: 100%; object-fit: contain; }
.ck-podio-img.ck-portada { width: 6rem; height: 9rem; border-radius: 0.5rem; }
.ck-podio-img.ck-redonda img { object-fit: cover; }
.ck-puesto-1 .ck-podio-img { width: 6.5rem; height: 6.5rem; }
.ck-puesto-1 .ck-podio-img.ck-portada { width: 7.2rem; height: 10.8rem; }
.ck-redonda { border-radius: 50% !important; }
.ck-bandera { font-size: 3.6rem; background: none; }
.ck-podio-nombre { font-size: 1rem; font-weight: bold; line-height: 1.25; color: #fff; overflow-wrap: anywhere; }
.ck-puesto-1 .ck-podio-nombre { font-size: 1.15rem; }
.ck-sub { font-size: 0.75rem; line-height: 1.35; color: #9bc6dc; }
.ck-podio-valor { display: flex; flex-direction: column; align-items: center; margin-top: 0.4rem; }
.ck-podio-valor b { font-family: "IBMPlexMono", monospace; font-size: 1.7rem; line-height: 1.1; color: #fff; }
.ck-puesto-1 .ck-podio-valor b { font-size: 2.2rem; color: #ffe38a; }
.ck-podio-valor small { font-size: 0.6em; }
.ck-podio-valor .fm-nota { min-width: 3.2rem; height: 3.2rem; font-size: 1.4rem; border-radius: 0.8rem; }
.ck-puesto-1 .ck-podio-valor .fm-nota { min-width: 3.8rem; height: 3.8rem; font-size: 1.7rem; }
.ck-unidad { margin-top: 0.15rem; font-size: 0.7rem !important; letter-spacing: 0.04em; text-transform: uppercase; color: #7fa3b8; }
.ck-extra { font-size: 0.75rem; color: #9bc6dc; }
.ck-votos { white-space: nowrap; }
.ck-chip-mini { display: inline-block; padding: 0 0.4rem; border-radius: 0.25rem; font-size: 0.68rem; font-weight: bold; color: #021825; background: #ffb454; }

/* ===== Resto del ranking ===== */
.ck-lista { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.9rem; }
.ck-fila { display: grid; grid-template-columns: 2.2rem 2.8rem minmax(0, 1.6fr) minmax(0, 1fr) 5.5rem; gap: 0 0.9rem; align-items: center; padding: 0.45rem 0.8rem 0.45rem 0.5rem; border-radius: 0.6rem; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.08); color: #cdeaf7 !important; text-decoration: none !important; transition: border-color 0.15s ease, background 0.15s ease; }
a.ck-fila:hover { border-color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.4); background: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.07); }
.ck-pos { font-family: "IBMPlexMono", monospace; font-weight: bold; text-align: center; color: #7fa3b8; }
.ck-fila-img { display: flex; align-items: center; justify-content: center; width: 2.8rem; height: 2.8rem; border-radius: 0.45rem; overflow: hidden; background: rgba(0, 0, 0, 0.3); color: #7fa3b8; }
.ck-fila-img img { width: 100%; height: 100%; object-fit: contain; }
.ck-fila-img.ck-redonda img { object-fit: cover; }
.ck-fila-img.ck-portada { width: 2.1rem; height: 3.15rem; justify-self: center; }
.ck-fila-img.ck-bandera { font-size: 1.9rem; }
.ck-fila-datos { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.ck-fila-nombre { font-weight: bold; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-barra { height: 0.45rem; border-radius: 999px; background: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.08); overflow: hidden; }
.ck-barra:empty { background: none; }
.ck-barra i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgba(var(--v2-acento-rgb, 57, 192, 255), 0.45), var(--dvgo-color-footer-texto)); }
.ck-valor { justify-self: end; text-align: right; }
.ck-valor b { font-family: "IBMPlexMono", monospace; font-size: 1rem; color: #fff; white-space: nowrap; }
.ck-valor small { font-size: 0.7em; }
.ck-valor .fm-nota { min-width: 2.3rem; height: 2.3rem; font-size: 0.95rem; }

.ck-vacio { margin-top: 1.2rem; text-align: center; color: #9bc6dc; }
.ck-pie { margin: 0.4rem 0 1.6rem; font-size: 0.8rem; line-height: 1.55; color: #9bc6dc; }
.ck-pie p { margin: 0 0 0.4rem; }
.ck-pie a { color: var(--dvgo-color-footer-texto); }
.ck-actualizado { color: #7fa3b8; }

@media (max-width: 999px) {
    .ck-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .ck-menu { position: static; max-height: none; margin-bottom: 0; }
    .ck-menu:not([open]) { padding-bottom: 0.6rem; }
}
@media (max-width: 700px) {
    .ck-podio { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
    .ck-podio-item { order: 0 !important; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "img nombre valor" "img sub valor" "img extra valor"; gap: 0.1rem 0.9rem; align-items: center; padding: 0.9rem 1rem 0.9rem 2.6rem; text-align: left; }
    .ck-medalla { top: 50%; left: 0.6rem; transform: translateY(-50%); width: 1.6rem !important; height: 1.6rem !important; font-size: 0.85rem !important; }
    .ck-podio-img, .ck-puesto-1 .ck-podio-img { grid-area: img; width: 3.6rem; height: 3.6rem; margin: 0; font-size: 1.3rem; }
    .ck-podio-img.ck-portada, .ck-puesto-1 .ck-podio-img.ck-portada { width: 3.2rem; height: 4.8rem; }
    .ck-bandera { font-size: 2.4rem; }
    .ck-podio-nombre { grid-area: nombre; font-size: 0.95rem !important; }
    .ck-podio-item .ck-sub { grid-area: sub; }
    .ck-extra { grid-area: extra; }
    .ck-podio-valor { grid-area: valor; margin: 0; }
    .ck-podio-valor b, .ck-puesto-1 .ck-podio-valor b { font-size: 1.3rem; }
    .ck-podio-valor .fm-nota, .ck-puesto-1 .ck-podio-valor .fm-nota { min-width: 2.6rem; height: 2.6rem; font-size: 1.1rem; }
    .ck-fila { grid-template-columns: 1.6rem 2.4rem minmax(0, 1fr) auto; gap: 0 0.6rem; }
    .ck-fila-img { width: 2.4rem; height: 2.4rem; }
    .ck-barra { display: none; }
}

/* ===================== Estadísticas v2 (comparten menú, filtros y pie con clasificaciones). Prefijo es- ===================== */
.es-aclaracion { margin-top: 0.6rem; font-size: 0.8rem; line-height: 1.5; color: #9bc6dc; }
.es-aclaracion .infoblancamini { background: none; padding: 0; color: inherit; }
.es-grafica { margin-top: 1.2rem; padding: 1rem 1rem 0.8rem; }
.es-grafica .cg-lienzo { width: 100%; }
.es-totales { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.45rem; }
.es-totales:empty { display: none; }
.es-nota-filtro { font-size: 0.72rem; color: #7fa3b8; }
.ck-filtro-titulo i { margin-right: 0.2rem; color: var(--dvgo-color-footer-texto); }
/* Lo más popular de cada año: tarjetas con logo o icono, nombre y su peso en el año */
.es-anos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); gap: 0.7rem; margin-top: 1.2rem; }
.es-ano { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.9rem 0.7rem 0.8rem; border-radius: 0.8rem; text-align: center; color: #cdeaf7 !important; text-decoration: none !important; background: linear-gradient(145deg, var(--dvgo-color-muy-oscuro) 0%, var(--dvgo-color-footer-fondo) 100%); border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.12); transition: transform 0.2s ease, border-color 0.2s ease; }
.es-ano:hover { transform: translateY(-3px); border-color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.5); }
.es-ano-num { font-family: "IBMPlexMono", monospace; font-size: 1.15rem; font-weight: bold; color: var(--dvgo-color-footer-texto); }
.es-ano-visual { display: flex; align-items: center; justify-content: center; height: 3rem; font-size: 1.9rem; color: #fff; }
.es-ano-visual img { max-height: 100%; max-width: 6rem; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5)); }
.es-ano-visual img.v2-logo-oscuro { filter: invert(1) hue-rotate(180deg) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5)); }
.es-ano b { font-size: 0.85rem; line-height: 1.25; color: #fff; }
.es-ano-barra { width: 100%; height: 0.35rem; border-radius: 999px; background: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.1); overflow: hidden; }
.es-ano-barra i { display: block; height: 100%; border-radius: 999px; background: var(--dvgo-color-footer-texto); }
.es-ano small { font-size: 0.7rem; color: #9bc6dc; }
/* ===================== Los mejores v2 (podio de clasificaciones + tira de años + tarjetas). Prefijo mj- ===================== */
.mj-icono { background: linear-gradient(145deg, #ffe38a, #e0a92e); color: #021825; box-shadow: 0 0 24px -6px rgba(255, 210, 92, 0.7); }
.mj-cabecera .tx-datos { flex: 1; min-width: 0; }
.mj-cifras { display: flex; flex-direction: column; gap: 0.5rem; flex-shrink: 0; }
.mj-cifras span { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.55rem 0.9rem; border-radius: 0.6rem; font-size: 0.75rem; color: #9bc6dc; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.14); }
.mj-cifras b { font-family: "IBMPlexMono", monospace; font-size: 1.4rem; color: #fff; }
.mj-anos { display: flex; gap: 0.5rem; overflow-x: auto; margin: 0.4rem 0 0; padding: 0.3rem 0.2rem 0.8rem; scroll-padding-inline: 2rem; }
.mj-ano { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 0.1rem; min-width: 4.6rem; padding: 0.5rem 0.7rem; border-radius: 0.7rem; font-family: "IBMPlexMono", monospace; font-size: 1rem; font-weight: bold; color: #cdeaf7 !important; text-decoration: none !important; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.18); transition: border-color 0.2s ease, background 0.2s ease; }
.mj-ano small { font-family: "IBMPlexSans", sans-serif; font-size: 0.62rem; font-weight: normal; color: #7fa3b8; }
.mj-ano:hover { border-color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.6); background: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.1); }
.mj-ano-todos { flex-direction: row; gap: 0.45rem; font-family: "IBMPlexSans", sans-serif; font-size: 0.85rem; }
.mj-ano-todos i { color: #ffc457; }
.mj-ano-activo { color: #021825 !important; background: linear-gradient(145deg, #ffe38a, #e0a92e); border-color: #ffd36e; box-shadow: 0 0 18px -6px rgba(255, 210, 92, 0.8); }
.mj-ano-activo small, .mj-ano-activo i { color: #3d2a00; }
.mj-podio { margin-top: 1rem; }
.mj-resto { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: 1rem; margin: 1.4rem 0 0.6rem; }
.mj-tarjeta { display: flex; flex-direction: column; gap: 0.3rem; color: #cdeaf7 !important; text-decoration: none !important; }
.mj-tarjeta-portada { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 2 / 3; border-radius: 0.6rem; overflow: hidden; font-size: 1.8rem; color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.45); background: radial-gradient(circle at 30% 30%, #0b4f78, #021825); border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.18); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.mj-tarjeta-portada img { width: 100%; height: 100%; object-fit: contain; }
.mj-tarjeta:hover .mj-tarjeta-portada { transform: translateY(-3px); border-color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.6); box-shadow: 0 0 20px -6px rgba(var(--v2-acento-rgb, 57, 192, 255), 0.7); }
.mj-puesto { position: absolute; top: 0.4rem; left: 0.4rem; display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; font-family: "IBMPlexMono", monospace; font-size: 0.85rem; font-weight: bold; color: #021825; background: #9bc6dc; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
.mj-tarjeta-portada .fm-nota { position: absolute; right: 0.4rem; bottom: 0.4rem; min-width: 2.2rem; height: 2.2rem; font-size: 0.9rem; }
.mj-tarjeta b { font-size: 0.86rem; line-height: 1.25; color: #fff; }
.mj-tarjeta small { font-size: 0.7rem; line-height: 1.3; color: #9bc6dc; }
@media (max-width: 760px) { .mj-cabecera { flex-wrap: wrap; } .mj-cifras { flex-direction: row; flex-wrap: wrap; width: 100%; } }
/* En escritorio el resto va en columnas fijas más estrechas y centradas, para que no compita con el podio */
@media (min-width: 761px) { .mj-resto { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.1rem; } .mj-tarjeta { width: 8.2rem; } }
/* Podio de Los mejores: la portada manda. Escritorio: portada grande a la izquierda y datos al lado; móvil: el 1.º a todo lo ancho y 2.º y 3.º debajo */
.mj-podio { align-items: end; gap: 1.2rem; }
.mj-podio .ck-podio-item { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "img nombre" "img sub" "img valor" "img extra"; align-content: center; justify-items: start; gap: 0.35rem 1.2rem; padding: 1.2rem 1.2rem 1.2rem 1.2rem; text-align: left; }
.mj-podio .ck-podio-img { grid-area: img; align-self: center; margin: 0; }
.mj-podio .ck-podio-img.ck-portada { width: 10rem; height: 15rem; border-radius: 0.6rem; box-shadow: 0 18px 30px -16px rgba(0, 0, 0, 0.9); }
.mj-podio .ck-puesto-1 .ck-podio-img.ck-portada { width: 12.5rem; height: 18.75rem; }
.mj-podio .ck-podio-img img { object-fit: contain; }
.mj-podio .ck-podio-nombre { grid-area: nombre; align-self: end; font-size: 1.25rem; line-height: 1.2; }
.mj-podio .ck-puesto-1 .ck-podio-nombre { font-size: 1.55rem; }
.mj-podio .ck-sub { grid-area: sub; font-size: 0.8rem; }
.mj-podio .ck-podio-valor { grid-area: valor; align-items: flex-start; margin-top: 0.5rem; }
.mj-podio .ck-podio-valor .fm-nota { min-width: 3.6rem; height: 3.6rem; font-size: 1.6rem; }
.mj-podio .ck-puesto-1 .ck-podio-valor .fm-nota { min-width: 4.4rem; height: 4.4rem; font-size: 2rem; border-radius: 1rem; }
.mj-podio .ck-extra { grid-area: extra; align-self: start; }
.mj-podio .ck-medalla { top: 0.6rem; left: 0.6rem; z-index: 2; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6); }
@media (max-width: 1150px) {
    .mj-podio .ck-podio-img.ck-portada { width: 6.5rem; height: 9.75rem; }
    .mj-podio .ck-puesto-1 .ck-podio-img.ck-portada { width: 8rem; height: 12rem; }
    .mj-podio .ck-podio-nombre { font-size: 1.05rem; }
    .mj-podio .ck-puesto-1 .ck-podio-nombre { font-size: 1.2rem; }
}
@media (max-width: 760px) {
    .mj-podio { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
    .mj-podio .ck-podio-item { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 1rem 0.7rem 0.9rem; text-align: center; }
    .mj-podio .ck-puesto-1 { grid-column: 1 / -1; order: 0 !important; padding: 1.3rem 1rem 1.2rem; }
    .mj-podio .ck-puesto-2 { order: 1 !important; }
    .mj-podio .ck-puesto-3 { order: 2 !important; }
    .mj-podio .ck-podio-img.ck-portada { width: 6.5rem; height: 9.75rem; margin-bottom: 0.3rem; }
    .mj-podio .ck-puesto-1 .ck-podio-img.ck-portada { width: 10rem; height: 15rem; }
    .mj-podio .ck-podio-nombre { font-size: 0.95rem !important; }
    .mj-podio .ck-puesto-1 .ck-podio-nombre { font-size: 1.3rem !important; }
    .mj-podio .ck-podio-valor { align-items: center; margin-top: 0.3rem; }
    .mj-podio .ck-podio-item > * { align-self: center; }
    .mj-podio .ck-podio-valor .fm-nota { min-width: 2.8rem; height: 2.8rem; font-size: 1.2rem; }
    .mj-podio .ck-puesto-1 .ck-podio-valor .fm-nota { min-width: 3.8rem; height: 3.8rem; font-size: 1.7rem; }
    .mj-podio .ck-medalla { top: 0.5rem !important; left: 0.5rem !important; transform: none !important; }
    .mj-podio .ck-puesto-1 .ck-medalla { width: 2.2rem !important; height: 2.2rem !important; font-size: 1.05rem !important; }
    /* El resto, más discreto que el podio */
    .mj-resto { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
    .mj-tarjeta b { font-size: 0.75rem; }
    .mj-tarjeta small { font-size: 0.62rem; }
    .mj-puesto { width: 1.5rem; height: 1.5rem; font-size: 0.72rem; }
    .mj-tarjeta-portada .fm-nota { min-width: 1.8rem; height: 1.8rem; font-size: 0.75rem; }
}
/* ===================== Cifras v2. Prefijo cf- ===================== */
.cf-cabecera { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem 2rem; padding: 1.8rem 1.8rem 2rem; background: radial-gradient(70% 90% at 0% 0%, rgba(var(--v2-acento-rgb, 57, 192, 255), 0.18), transparent 70%), linear-gradient(145deg, var(--dvgo-color-muy-oscuro) 0%, var(--dvgo-color-footer-fondo) 100%); }
.cf-total { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.cf-total h1 { margin: 0.2rem 0 0.4rem; padding: 0; border: 0; background: none; text-align: left; font-size: 1.6rem; color: #fff; }
.cf-total-num { font-family: "IBMPlexMono", monospace; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; color: #fff; text-shadow: 0 0 30px rgba(var(--v2-acento-rgb, 57, 192, 255), 0.55); }
.cf-total-texto { max-width: 34rem; font-size: 0.85rem; color: #9bc6dc; }
.cf-hud { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; flex: 1 1 26rem; max-width: 40rem; }
.cf-hud > div { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 1rem; border-radius: 0.8rem; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.16); }
.cf-hud i { color: var(--dvgo-color-footer-texto); }
.cf-hud b { font-family: "IBMPlexMono", monospace; font-size: 1.6rem; color: #fff; }
.cf-hud span { font-size: 0.72rem; line-height: 1.35; color: #9bc6dc; }
.cf-hud-nuevo { border-color: rgba(92, 255, 177, 0.35) !important; }
.cf-hud-nuevo i, .cf-hud-nuevo b { color: #5cffb1; }
.cf-seccion .fj-h4 i { color: var(--cf-color, var(--dvgo-color-footer-texto)); }
.cf-seccion .fj-h4 { --fj-h4-pixel: var(--cf-color, var(--dvgo-color-footer-texto)); }
.cf-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); gap: 0.7rem; }
.cf-tarjeta { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 1rem; border-radius: 0.8rem; color: #cdeaf7 !important; text-decoration: none !important; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.12); border-top: 2px solid color-mix(in srgb, var(--cf-color) 70%, transparent); transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
a.cf-tarjeta:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--cf-color) 60%, transparent); background: color-mix(in srgb, var(--cf-color) 8%, rgba(0, 0, 0, 0.22)); }
.cf-tarjeta i { font-size: 1.1rem; color: var(--cf-color); }
.cf-tarjeta b { font-family: "IBMPlexMono", monospace; font-size: 1.45rem; color: #fff; }
.cf-tarjeta span { font-size: 0.78rem; color: #9bc6dc; }
.cf-bloque { margin: 1.6rem 0 0.7rem; font-size: 0.95rem; font-weight: bold; color: #fff; }
.cf-bloque:first-of-type { margin-top: 0.4rem; }
.cf-intro { margin: -0.4rem 0 1.2rem; font-size: 0.85rem; color: #9bc6dc; }
.cf-intro a { color: var(--dvgo-color-footer-texto); }
.cf-anillos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: 1.2rem 1rem; }
.cf-anillo { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; }
/* El anillo se rellena con un degradado cónico hasta el porcentaje */
.cf-anillo-circulo { position: relative; display: flex; align-items: center; justify-content: center; width: 7rem; height: 7rem; border-radius: 50%; background: conic-gradient(#5cffb1 calc(var(--cf-ver, 0) * 1%), rgba(var(--v2-acento-rgb, 57, 192, 255), 0.12) 0); box-shadow: 0 0 24px -10px rgba(92, 255, 177, 0.7); transition: --cf-ver 1.2s ease; }
.cf-anillo-circulo::before { content: ""; position: absolute; inset: 0.55rem; border-radius: 50%; background: var(--dvgo-color-muy-oscuro); }
.cf-anillo-circulo b { position: relative; font-family: "IBMPlexMono", monospace; font-size: 1.35rem; color: #fff; }
.cf-anillo-circulo small { font-size: 0.7em; }
.cf-anillo.cf-visto .cf-anillo-circulo { --cf-ver: var(--cf-pct); }
@property --cf-ver { syntax: "<number>"; inherits: true; initial-value: 0; }
.cf-anillo-titulo { font-size: 0.85rem; font-weight: bold; color: #fff; }
.cf-anillo-titulo i { color: var(--dvgo-color-footer-texto); }
.cf-anillo > small { font-size: 0.72rem; color: #9bc6dc; }
.cf-anillo > small.cf-anillo-avance { color: #5cffb1; }
.cf-logro { margin: 1.6rem 0 0; font-size: 0.85rem; color: #5cffb1; }
@media (max-width: 700px) {
    .cf-hud { grid-template-columns: minmax(0, 1fr); }
    /* Dos columnas en móvil: con una sola la página se hacía larguísima */
    .cf-tarjetas, .cf-anillos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
    .cf-tarjeta { padding: 0.75rem 0.8rem; }
    .cf-tarjeta b { font-size: 1.2rem; }
    .cf-anillo-circulo { width: 5.6rem; height: 5.6rem; }
    .cf-anillo-circulo b { font-size: 1.1rem; }
}
/* ===================== Juegos en tendencia v2 (podio y tarjetas de Los mejores). Prefijo tr- ===================== */
.tr-icono { background: linear-gradient(145deg, #ff9d5c, #e0482e); color: #fff; box-shadow: 0 0 24px -6px rgba(255, 120, 70, 0.7); }
.tr-senal { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: bold; line-height: 1.4; color: #fff; background: color-mix(in srgb, var(--tr-color) 35%, transparent); border: 1px solid color-mix(in srgb, var(--tr-color) 80%, #fff 0%); white-space: nowrap; }
.tr-senal i { font-size: 0.85em; }
.tr-senal-mini { padding: 0.1rem 0.4rem; font-size: 0.62rem; }
.tr-senales { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tr-tarjetas .tr-senal { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tr-var { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.1rem 0.45rem; border-radius: 0.35rem; font-family: "IBMPlexMono", monospace; font-size: 0.75rem; font-weight: bold; }
.tr-var-sube { color: #021825; background: #5cffb1; }
.tr-var-baja { color: #fff; background: #e0485a; }
.tr-var-igual { color: #9bc6dc; background: rgba(155, 198, 220, 0.15); }
.tr-var-nuevo { color: #021825; background: #ffc457; font-family: "IBMPlexSans", sans-serif; }
.tr-dias { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; color: #ffb27a; }
.tr-podio .tr-podio-estado { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; }
.tr-podio .tr-senales { margin-top: 0.3rem; }
/* Del 4.º al 15.º: tarjetas de portada con el puesto, la variación y sus señales */
.tr-tarjetas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.1rem 1rem; margin: 1.4rem 0; }
/* Del 4 al 15 son 12: columnas que dividen 12 para que las filas queden completas */
@media (max-width: 1100px) { .tr-tarjetas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tr-tarjetas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tr-tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tr-tarjeta { display: flex; flex-direction: column; gap: 0.3rem; color: #cdeaf7 !important; text-decoration: none !important; }
.tr-tarjeta:hover .mj-tarjeta-portada { transform: translateY(-3px); border-color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.6); box-shadow: 0 0 20px -6px rgba(var(--v2-acento-rgb, 57, 192, 255), 0.7); }
.tr-tarjeta .mj-tarjeta-portada .tr-var { position: absolute; right: 0.4rem; bottom: 0.4rem; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
.tr-tarjeta b { font-size: 0.86rem; line-height: 1.25; color: #fff; }
.tr-tarjeta small { font-size: 0.7rem; color: #9bc6dc; }
/* En el radar: filas sin barra */
.tr-fila { grid-template-columns: 2.2rem 2.1rem minmax(0, 1fr) auto 3.6rem; }
.tr-fila .ck-fila-img.ck-portada { width: 2.1rem; height: 3.15rem; }
.tr-fila-var { justify-self: end; }
.tr-explorar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tr-explorar a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem; border-radius: 0.6rem; font-size: 0.85rem; color: #cdeaf7 !important; text-decoration: none !important; background: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.07); border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.22); transition: background 0.2s ease, border-color 0.2s ease; }
.tr-explorar a:hover { color: #fff !important; background: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.16); border-color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.6); }
.tr-explorar i { color: var(--dvgo-color-footer-texto); }
@media (max-width: 760px) {
    .tr-tarjetas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem 0.6rem; }
    .tr-tarjeta b { font-size: 0.75rem; }
    .tr-tarjeta small, .tr-tarjeta .tr-dias { display: none; }
    .tr-fila { grid-template-columns: 1.6rem 2.1rem minmax(0, 1fr) auto; }
    .tr-fila-senal { display: none; }
    .tr-podio .ck-podio-item .tr-senales { justify-content: center; }
    .tr-podio .tr-podio-estado { justify-content: center; }
}
/* ===================== Estudios más relevantes v2. Prefijo rl- ===================== */
.rl-como { padding: 0.9rem 1.2rem; }
.rl-como summary { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; list-style: none; font-size: 0.85rem; font-weight: bold; color: #cdeaf7; }
.rl-como summary::-webkit-details-marker { display: none; }
.rl-como summary > i:first-child { color: var(--dvgo-color-footer-texto); }
.rl-como-flecha { margin-left: auto; transition: transform 0.2s ease; }
.rl-como[open] .rl-como-flecha { transform: rotate(180deg); }
.rl-pilares { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0.8rem; margin-top: 1rem; }
.rl-pilares > div { padding: 0.9rem 1rem; border-radius: 0.7rem; background: rgba(0, 0, 0, 0.22); border-top: 2px solid var(--rl-color); }
.rl-pilares > div > i { font-size: 1.4rem; color: var(--rl-color); }
.rl-pilares b { display: block; margin: 0.3rem 0; color: #fff; }
.rl-pilares ul { margin: 0; padding-left: 1.1rem; font-size: 0.8rem; line-height: 1.5; color: #9bc6dc; }
.rl-como-nota { margin: 0.9rem 0 0.2rem; font-size: 0.78rem; line-height: 1.5; color: #9bc6dc; }
.rl-logo { background: #fff !important; }
.rl-logo.ck-sin { background: rgba(0, 0, 0, 0.3) !important; }
.rl-logo img { object-fit: contain !important; padding: 8%; }
/* Barras por bloque */
.rl-barras { display: flex; flex-direction: column; gap: 0.3rem; width: 100%; margin-top: 0.6rem; }
.rl-barra { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr) 2.2rem; align-items: center; gap: 0.5rem; }
.rl-barra small { font-size: 0.68rem; text-align: left; color: #9bc6dc; white-space: nowrap; }
.rl-barra small i { color: var(--rl-color); }
.rl-barra > span { height: 0.45rem; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.rl-barra > span i { display: block; height: 100%; border-radius: 999px; background: var(--rl-color); box-shadow: 0 0 8px -2px var(--rl-color); }
.rl-barra b { font-family: "IBMPlexMono", monospace; font-size: 0.75rem; text-align: right; color: #fff; }
.rl-podio .ck-podio-valor b { font-family: "IBMPlexMono", monospace; }
.rl-podio .ck-sub { display: inline-flex; align-items: center; gap: 0.4rem; }
.rl-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0.9rem; margin: 1.2rem 0; }
.rl-tarjeta { margin: 0; padding: 1rem 1.1rem 1.1rem; color: #cdeaf7 !important; text-decoration: none !important; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.rl-tarjeta:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(var(--v2-acento-rgb, 57, 192, 255), 0.4), 0 14px 30px -14px rgba(0, 0, 0, 0.7); }
.rl-tarjeta-cabeza { position: relative; z-index: 1; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; }
.rl-tarjeta-cabeza .mj-puesto { position: static; }
.rl-tarjeta-logo { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 0.5rem; overflow: hidden; color: #7fa3b8; }
.rl-tarjeta-logo img { width: 100%; height: 100%; }
.rl-tarjeta-datos { display: flex; flex-direction: column; min-width: 0; }
.rl-tarjeta-datos b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.rl-tarjeta-datos small { font-size: 0.72rem; color: #9bc6dc; }
.rl-tarjeta-total { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }
.rl-tarjeta-total b { font-family: "IBMPlexMono", monospace; font-size: 1.15rem; color: #fff; }
.rl-tarjeta .rl-barras { position: relative; z-index: 1; }
/* Filas: una barra apilada con el reparto entre bloques */
.rl-fila { grid-template-columns: 2.2rem 2.8rem minmax(0, 1.4fr) minmax(0, 1fr) 4rem 3.6rem; }
.rl-apilada { display: flex; height: 0.5rem; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.rl-apilada i { display: block; height: 100%; }
.rl-leyenda { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin-left: auto; font-size: 0.62rem; letter-spacing: 0; text-transform: none; color: #9bc6dc; }
.rl-leyenda i { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; }
@media (max-width: 760px) {
    .rl-fila { grid-template-columns: 1.6rem 2.4rem minmax(0, 1fr) 3.4rem; }
    .rl-fila .rl-apilada { grid-column: 2 / -1; grid-row: 2; margin-top: 0.4rem; }
    .rl-fila .tr-fila-var { display: none; }
    .rl-podio .ck-podio-item .rl-barras { grid-column: 1 / -1; }
}
/* ===================== Ranking de contribuidores v2. Prefijo rc- ===================== */
.rc-vistas { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.4rem 0 0; }
.rc-vistas .lv-chip { padding: 0.45rem 1rem; font-size: 0.85rem; }
.rc-resumen { margin-left: auto; font-size: 0.8rem; color: #9bc6dc; }
.rc-resumen b { font-family: "IBMPlexMono", monospace; color: #fff; }
.rc-confiable { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.05rem 0.45rem; border-radius: 999px; font-size: 0.66rem; font-weight: bold; color: #5cffb1; background: rgba(92, 255, 177, 0.12); border: 1px solid rgba(92, 255, 177, 0.4); }
.rc-podio { margin-top: 1rem; }
.rc-podio .ck-podio-img { width: 6rem; height: 6rem; font-size: 2.2rem; }
.rc-podio .ck-puesto-1 .ck-podio-img { width: 7.5rem; height: 7.5rem; box-shadow: 0 0 0 3px #e0a92e, 0 0 26px -4px rgba(255, 210, 92, 0.7); }
.rc-podio .ck-puesto-2 .ck-podio-img { box-shadow: 0 0 0 3px #a8b8c4; }
.rc-podio .ck-puesto-3 .ck-podio-img { box-shadow: 0 0 0 3px #b5703c; }
.rc-podio .ck-podio-valor b { font-family: "IBMPlexMono", monospace; }
.rc-podio .ck-sub { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.35rem; }