/* =====================================================================
   FETRI · Rediseño 2026 · Rankings: pestaña «Evolución»
   (Pages/Rankings.razor, Components/F26/F26RankingEvolution, F26RkEvoRace,
   F26RkEvoChart, F26RkEvoLines y F26RkEvoTable)
   - Animación al estilo de la clasificación de TV: panel oscuro con textura,
     barra roja con la fecha (se queda arriba al bajar), franjas claras con
     la caja del puesto, el nombre, la barra de puntos y la pastilla roja.
     Las filas se mueven con animaciones CSS de --if a --i (filas): ver
     F26RkEvoRace. Con prefers-reduced-motion no hay animaciones.
   - Gráfica: SVG estirado (trazos y puntos no escalan) con los textos en
     HTML encima, colocados en porcentajes.
   Móvil primero. Todo bajo html.f26c.
   ===================================================================== */

/* ---------- Selector Clasificación / Evolución (reutiliza .f26-rtabs) ---------- */
html.f26c .rkx-page > .rkev-switch { margin: 0; }
html.f26c .rkev-switch a.f26-rtab { text-decoration: none; }
html.f26c .rkev-switch a.f26-rtab.is-on:hover { background: var(--f26-ink); color: #fff; }
/* En «Evolución» la tabla, si ya se abrió, sigue montada pero no se ve */
html.f26c .rkx-page--evo > .rkx-table-card { display: none !important; }

/* ---------- Tarjeta ---------- */
html.f26c .rkx-page .rkev {
    --rkev-dur: 1000ms;
    --rkev-ease: cubic-bezier(.45, .05, .25, 1);
    padding: 16px 12px 14px;
    overflow: visible;
}
/* La animación también va fuera de los rankings (ligas): sus variables, en la propia animación. Sin --rkev-ease la
   regla «animation» entera era inválida y en las ligas ni las filas ni las barras se movían (MAP, 24-11). */
html.f26c .rkev-race { --rkev-ease: cubic-bezier(.45, .05, .25, 1); }
html.f26c .rkev-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 14px;
}
html.f26c .rkev-head__txt { min-width: 0; }
html.f26c .rkev-title {
    position: relative;
    margin: 0;
    padding-left: 12px;
    color: var(--f26-ink);
    font-family: var(--f26-font);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
}
html.f26c .rkev-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    border-radius: 2px;
    background: var(--f26-grad-accent-v);
}
html.f26c .rkev-sub {
    margin: 4px 0 0 12px;
    color: var(--f26-mute);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
}

/* Animación / Gráfica */
html.f26c .rkev-views {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--f26-line);
    border-radius: var(--f26-pill);
    background: var(--f26-tint);
}
html.f26c .rkev-view {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 15px;
    border: 0;
    border-radius: var(--f26-pill);
    background: transparent;
    color: var(--f26-text-2);
    font-family: var(--f26-font);
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
html.f26c .rkev-view i { color: var(--f26-mute-2); font-size: 11px; }
html.f26c .rkev-view:hover { color: var(--f26-ink); background: #fff; }
html.f26c .rkev-view.is-on { background: var(--f26-ink); color: #fff; }
html.f26c .rkev-view.is-on i { color: var(--f26-gold); }
html.f26c .rkev :is(button, [tabindex="0"]):focus-visible { outline: 0; box-shadow: var(--f26-focus); }

/* Botones comunes */
html.f26c .rkev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--f26-line);
    border-radius: var(--f26-pill);
    background: #fff;
    color: var(--f26-ink);
    font-family: var(--f26-font);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
html.f26c .rkev-btn i { font-size: 12px; }
html.f26c .rkev-btn:hover { border-color: var(--f26-ink); background: var(--f26-ink); color: #fff; }
html.f26c .rkev-btn--more { border-color: var(--f26-ink); background: var(--f26-ink); color: #fff; }
html.f26c .rkev-btn--more i { color: var(--f26-gold); }
html.f26c .rkev-btn--more:hover { border-color: var(--f26-red); background: var(--f26-red); }
html.f26c .rkev-btn--more:hover i { color: #fff; }
html.f26c .rkev-more__r { color: var(--f26-on-ink-mute); font-weight: 700; }
html.f26c .rkev-btn--more:hover .rkev-more__r { color: #fff; }
html.f26c .rkev-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--f26-red-dk);
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
html.f26c .rkev-link:hover { color: var(--f26-red); }

/* Estados y notas */
html.f26c .rkev-state {
    padding: 36px 12px 30px;
    color: var(--f26-text-2);
    text-align: center;
}
html.f26c .rkev-state > i { display: block; margin-bottom: 10px; color: var(--f26-mute-2); font-size: 26px; }
html.f26c .rkev-state p { max-width: 520px; margin: 0 auto 14px; font-size: 14px; font-weight: 600; line-height: 1.45; }
html.f26c .rkev-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 0;
    color: var(--f26-mute);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
html.f26c .rkev-note i { margin-top: 2px; color: var(--f26-mute-2); }
/* Lo que no se ha podido descargar (la red), con «Reintentar» */
html.f26c .rkev-note--warn { flex-wrap: wrap; align-items: baseline; color: var(--f26-text-2); }
html.f26c .rkev-note--warn i { color: var(--f26-gold-text); }
html.f26c .rkev-note--warn > span { flex: 1 1 220px; }
html.f26c .rkev-note--warn .rkev-link { min-height: 24px; }
html.f26c .rkev-find {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin: 12px 0 0;
    color: var(--f26-text-2);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
}
html.f26c .rkev-find i { color: var(--f26-gold-text); }

/* ---------- Carga: progreso por fecha y la forma de la animación ---------- */
html.f26c .rkev-loading__txt {
    margin: 0 0 10px;
    color: var(--f26-text-2);
    font-size: 13px;
    font-weight: 700;
}
html.f26c .rkev-loading__txt b { color: var(--f26-ink); font-weight: 900; font-variant-numeric: tabular-nums; }
html.f26c .rkev-loading__slots {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 4px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}
html.f26c .rkev-slot { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
html.f26c .rkev-slot__bar {
    position: relative;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--f26-tint-2);
}
html.f26c .rkev-slot__bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
    transform: translateX(-100%);
    animation: rkev-shine 1.2s ease-in-out infinite;
}
html.f26c .rkev-slot.is-ok .rkev-slot__bar { background: var(--f26-red); }
html.f26c .rkev-slot.is-ko .rkev-slot__bar { background: repeating-linear-gradient(135deg, var(--f26-mute-2) 0 3px, var(--f26-tint-2) 3px 6px); }
html.f26c .rkev-slot:is(.is-ok, .is-ko) .rkev-slot__bar::after { display: none; }
html.f26c .rkev-slot__d {
    display: none;
    overflow: hidden;
    color: var(--f26-mute);
    font-size: 9.5px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
html.f26c .rkev-slot.is-ok .rkev-slot__d { color: var(--f26-ink); }
html.f26c .rkev-sk {
    overflow: hidden;
    padding-bottom: 10px;
    border-radius: var(--f26-r);
    background: var(--f26-tex), linear-gradient(180deg, #2A2A33, #1C1C22);
}
html.f26c .rkev-sk__bar { height: 58px; margin-bottom: 8px; background: var(--f26-tex), var(--f26-grad-red); }
html.f26c .rkev-sk__row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 58px;
    align-items: center;
    gap: 10px;
    height: 28px;
    margin: 4px 8px 0;
    padding: 0 6px 0 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .1);
    animation: rkev-pulse 1.4s ease-in-out calc(var(--k) * 90ms) infinite;
}
html.f26c .rkev-sk__row span { height: 12px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
html.f26c .rkev-sk__row span:first-child { height: 20px; }
html.f26c .rkev-sk__row span:nth-child(2) { width: calc(78% - var(--k) * 5%); }
html.f26c .rkev-sk__row span:last-child { height: 18px; border-radius: var(--f26-pill); background: rgba(207, 18, 47, .55); }

/* =====================================================================
   ANIMACIÓN
   ===================================================================== */
html.f26c .rkev-race { --pitch: 34px; }

/* Línea de tiempo: en el móvil, encima del panel; en escritorio ancho, al lado (más abajo) */
html.f26c .rkev-tl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 12px;
    margin: 0 0 12px;
}
html.f26c .rkev-tl__k { display: none; }
html.f26c .rkev-tl__track {
    position: relative;
    grid-column: 1 / -1;
    height: 44px;
    margin: 0 12px;
}
html.f26c .rkev-tl__track::before,
html.f26c .rkev-tl__track::after {
    content: "";
    position: absolute;
    left: 0;
    top: 9.5px;
    height: 3px;
    border-radius: 2px;
}
html.f26c .rkev-tl__track::before { right: 0; background: var(--f26-tint-2); }
html.f26c .rkev-tl__track::after {
    width: calc(var(--p) * 100%);
    background: var(--f26-red);
    transition: width var(--rkev-dur) var(--rkev-ease);
}
html.f26c .rkev-tl__stops { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; list-style: none; }
html.f26c .rkev-tl__stop { position: absolute; top: 0; left: calc(var(--x) * 100%); transform: translateX(-50%); }
html.f26c .rkev-tl__btn {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 28px;
    height: 40px;
    padding: 4px 0 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--f26-mute);
    font-family: var(--f26-font);
    cursor: pointer;
}
html.f26c .rkev-tl__dot {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border: 2px solid var(--f26-mute-2);
    border-radius: 50%;
    background: #fff;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
html.f26c .rkev-tl__stop.is-past .rkev-tl__dot { border-color: var(--f26-red); background: var(--f26-red); }
html.f26c .rkev-tl__stop.is-cur .rkev-tl__dot {
    border-color: #fff;
    background: var(--f26-red);
    box-shadow: 0 0 0 2px var(--f26-red), 0 0 0 6px rgba(207, 18, 47, .16);
    transform: scale(1.15);
}
html.f26c .rkev-tl__btn:hover .rkev-tl__dot { border-color: var(--f26-ink); transform: scale(1.2); }
html.f26c .rkev-tl__btn:focus-visible { box-shadow: none; }
html.f26c .rkev-tl__btn:focus-visible .rkev-tl__dot { box-shadow: var(--f26-focus); }
html.f26c .rkev-tl__lab {
    position: absolute;
    top: 25px;
    left: 50%;
    color: var(--f26-mute);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    transform: translateX(-50%);
}
html.f26c .rkev-tl__stop:first-child .rkev-tl__lab { transform: translateX(-9px); }
html.f26c .rkev-tl__stop:last-child .rkev-tl__lab { transform: translateX(calc(-100% + 9px)); }
html.f26c .rkev-tl__stop.is-cur .rkev-tl__lab { color: var(--f26-ink); font-weight: 900; }
html.f26c .rkev-tl__lead { display: none; }

html.f26c .rkev-speed {
    display: inline-flex;
    grid-column: 2;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: var(--f26-pill);
    background: var(--f26-tint);
}
html.f26c .rkev-speed__k {
    padding: 0 6px 0 9px;
    color: var(--f26-mute);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
html.f26c .rkev-speed__b {
    min-width: 40px;
    height: 30px;
    padding: 0 8px;
    border: 0;
    border-radius: var(--f26-pill);
    background: transparent;
    color: var(--f26-text-2);
    font-family: var(--f26-font);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}
html.f26c .rkev-speed__b:hover { background: #fff; color: var(--f26-ink); }
html.f26c .rkev-speed__b.is-on { background: var(--f26-ink); color: #fff; }

/* Panel de TV */
html.f26c .rkev-stage {
    position: relative;
    overflow: clip;
    padding-bottom: 10px;
    border-radius: var(--f26-r);
    background-color: #1C1C22;
    background-image: var(--f26-tex), linear-gradient(180deg, #2B2B34 0%, #1C1C22 60%);
    color: #fff;
}
html.f26c .rkev-stage:focus-visible { box-shadow: var(--f26-focus); }
html.f26c .rkev-stage__tag { display: none; }

/* Barra roja con la fecha y los controles: se queda arriba al bajar */
html.f26c .rkev-bar {
    position: sticky;
    top: var(--f26-topbar-h);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    padding: 9px 10px 9px 14px;
    background-color: var(--f26-red);
    background-image: var(--f26-tex), linear-gradient(90deg, var(--f26-red) 0%, var(--f26-red-dk) 100%);
    box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6);
}
html.f26c .rkev-date { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
html.f26c .rkev-date__d {
    color: #fff;
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.01em;
    text-transform: uppercase;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
html.f26c .rkev-date__n { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-height: 18px; }
html.f26c .rkev-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--f26-pill);
    background: var(--f26-gold);
    color: var(--f26-ink);
    font-size: 10.5px;
    font-weight: 900;
    line-height: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}
html.f26c .rkev-tag--cur { background: #fff; color: var(--f26-red-dk); }
html.f26c .rkev-date__same { color: rgba(255, 255, 255, .9); font-size: 11px; font-weight: 700; }
html.f26c .rkev-ctrl { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
html.f26c .rkev-cb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
html.f26c .rkev-cb:hover:not(:disabled):not([aria-disabled="true"]) { background: rgba(255, 255, 255, .28); }
/* Anterior y siguiente en la primera y la última fecha: aria-disabled (el foco no se pierde) */
html.f26c .rkev-cb:disabled,
html.f26c .rkev-cb[aria-disabled="true"] { opacity: .38; cursor: default; }
html.f26c .rkev-cb.rkev-play {
    width: 46px;
    height: 46px;
    border-color: #fff;
    background: #fff;
    color: var(--f26-red);
    font-size: 17px;
}
html.f26c .rkev-cb.rkev-play:hover { border-color: var(--f26-gold); background: var(--f26-gold); color: var(--f26-ink); }
/* Con texto: «Reproducir», «Pausa» o «Seguir» (un círculo con un triángulo pasaba desapercibido) */
html.f26c .rkev-cb.rkev-play {
    gap: 8px;
    width: auto;
    padding: 0 18px 0 15px;
    border-color: var(--f26-gold);
    border-radius: var(--f26-pill);
    background: var(--f26-gold);
    color: var(--f26-ink);
}
html.f26c .rkev-cb.rkev-play:hover { border-color: #fff; background: #fff; }
html.f26c .rkev-play__t { font-family: var(--f26-font); font-size: 13px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
/* Parada al final: un pulso alrededor para que se vea que se puede reproducir */
html.f26c .rkev-cb.rkev-play.is-idle { animation: rkev-call 2.2s ease-out infinite; }
@keyframes rkev-call {
    0% { box-shadow: 0 0 0 0 rgba(253, 185, 19, .7); }
    70%, 100% { box-shadow: 0 0 0 12px rgba(253, 185, 19, 0); }
}
html.f26c .rkev-cb:focus-visible { box-shadow: 0 0 0 3px var(--f26-gold); }
/* Altavoz (24-11): tachado y apagado cuando está en silencio */
html.f26c .rkev-cb.rkev-snd.is-off { color: rgba(255, 255, 255, .5); }
html.f26c .rkev-cb.rkev-spd { width: auto; min-width: 38px; padding: 0 7px; border-radius: var(--f26-pill); font-family: var(--f26-font); font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; }

/* Filas */
html.f26c .rkev-rows {
    position: relative;
    height: calc(var(--rows) * var(--pitch));
    margin: 0;
    padding: 0;
    /* arriba y abajo se recortan las que entran y salen; a los lados asoma la que sube (algo más grande) */
    overflow-x: visible;
    overflow-y: clip;
    isolation: isolate;
    list-style: none;
}
html.f26c .rkev-row {
    position: absolute;
    top: 0;
    left: 8px;
    right: 8px;
    display: grid;
    grid-template-columns: 27px 36px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 6px;
    height: calc(var(--pitch) - 4px);
    padding: 0 4px 0 3px;
    border-radius: 4px;
    background: linear-gradient(90deg, #F5F6F8 0%, #E7EAEE 100%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .35);
    color: var(--f26-ink);
    transform: translateY(calc(var(--i) * var(--pitch)));
    will-change: transform;
    z-index: 1;
}
html.f26c .rkev-row.is-a { animation: rkev-move-a var(--rkev-dur) var(--rkev-ease) both; }
html.f26c .rkev-row.is-b { animation: rkev-move-b var(--rkev-dur) var(--rkev-ease) both; }
html.f26c .rkev-row.is-enter.is-a { animation-name: rkev-enter-a; }
html.f26c .rkev-row.is-enter.is-b { animation-name: rkev-enter-b; }
/* Las que se van pasan por detrás de las demás mientras se desvanecen */
html.f26c .rkev-row.is-leave { pointer-events: none; }
html.f26c .rkev-row.is-leave.is-a { animation-name: rkev-leave-a; }
html.f26c .rkev-row.is-leave.is-b { animation-name: rkev-leave-b; }
html.f26c .rkev-row.is-intro { animation: rkev-intro .55s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 45ms) both; }
html.f26c .rkev-row.is-intro.is-b { animation-name: rkev-intro-b; }
/* Adelantamientos con profundidad: la que sube se levanta (más grande, con sombra y por encima de todas) y pasa por
   delante; la que baja se hunde (más pequeña y en sombra) y pasa por detrás. Vuelven a su sitio al llegar. */
html.f26c .rkev-row.is-up { z-index: 3; }
html.f26c .rkev-row.is-down { z-index: 0; }
html.f26c .rkev-row.is-leave { z-index: -1; }
html.f26c .rkev-row.is-up.is-a { animation-name: rkev-up-a; }
html.f26c .rkev-row.is-up.is-b { animation-name: rkev-up-b; }
html.f26c .rkev-row.is-down.is-a { animation-name: rkev-down-a; }
html.f26c .rkev-row.is-down.is-b { animation-name: rkev-down-b; }

html.f26c .rkev-pos {
    display: grid;
    place-items: center;
    height: calc(100% - 6px);
    min-height: 20px;
    border: 2px solid var(--f26-ink);
    border-radius: 4px;
    background: #fff;
    color: var(--f26-ink);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
html.f26c .rkev-pos.is-p1 { border-color: var(--f26-gold-dk); background: var(--f26-gold); }
html.f26c .rkev-pos.is-p2 { border-color: #9AA0AB; background: var(--f26-silver); }
html.f26c .rkev-pos.is-p3 { border-color: #A86A3B; background: var(--f26-bronze); }

html.f26c .rkev-mv {
    justify-self: start;
    color: var(--f26-mute);
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
html.f26c .rkev-mv.up { color: var(--f26-green-text); }
html.f26c .rkev-mv.down { color: var(--f26-red-dk); }
html.f26c .rkev-mv.is-new {
    padding: 2px;
    border-radius: 3px;
    background: var(--f26-gold);
    color: var(--f26-ink);
    font-size: 9px;
    letter-spacing: 0;
    text-transform: uppercase;
}

/* Nombre: ocupa todo el alto de la fila (zona táctil). En el móvil, en dos líneas si no cabe en una; desde 576 px,
   en una con puntos suspensivos (el nombre completo, en el title y en la ficha) */
html.f26c .rkev-nm {
    display: flex;
    grid-column: 3;
    grid-row: 1;
    align-items: center;
    align-self: stretch;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--f26-ink);
    font-family: var(--f26-font);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.12;
    text-align: left;
    text-transform: uppercase;
}
html.f26c .rkev-nm__t {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
html.f26c button.rkev-nm { cursor: pointer; }
html.f26c button.rkev-nm:hover { color: var(--f26-red-dk); text-decoration: underline; text-underline-offset: 2px; }
html.f26c button.rkev-nm:focus-visible { border-radius: 3px; }

/* Barra de puntos respecto al primero: en el móvil, fina a lo largo del borde de abajo de la fila */
html.f26c .rkev-track {
    position: absolute;
    left: 3px;
    right: 3px;
    bottom: 1px;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(28, 28, 34, .1);
    pointer-events: none;
}
html.f26c .rkev-fill {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--f26-red) 0%, var(--f26-orange) 70%, var(--f26-gold) 100%);
    transform: scaleX(var(--w));
    transform-origin: left center;
}
html.f26c .rkev-row.is-a .rkev-fill { animation: rkev-bar-a var(--rkev-dur) var(--rkev-ease) both; }
html.f26c .rkev-row.is-b .rkev-fill { animation: rkev-bar-b var(--rkev-dur) var(--rkev-ease) both; }
html.f26c .rkev-row.is-intro .rkev-fill { animation: rkev-grow .9s var(--rkev-ease) calc(.25s + var(--i) * 45ms) both; }

html.f26c .rkev-pts {
    min-width: 54px;
    padding: 3px 8px;
    border-radius: var(--f26-pill);
    background: var(--f26-red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
html.f26c .rkev-pts.is-best { background: var(--f26-gold); color: var(--f26-ink); }
html.f26c .rkev-pts__u { display: none; font-size: 9px; font-weight: 700; opacity: .85; }

/* Resaltado del buscador */
html.f26c .rkev-row.is-match {
    background: linear-gradient(90deg, #FFF4D6 0%, #FFE7A3 100%);
    box-shadow: inset 0 0 0 2px var(--f26-gold), 0 1px 0 rgba(0, 0, 0, .35);
}

/* Leyenda, al pie del panel */
html.f26c .rkev-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: 8px 10px 0;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: var(--f26-on-ink-mute);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}
html.f26c .rkev-legend > span { display: inline-flex; align-items: center; gap: 5px; }
html.f26c .rkev-legend > .rkev-legend__keys { display: inline; }
html.f26c .rkev-legend__src { color: #fff; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
html.f26c .rkev-legend .rkev-mv.up { color: #4FD58C; }
html.f26c .rkev-legend .rkev-mv.down { color: #FF8296; }
html.f26c .rkev-legend__sw {
    display: inline-block;
    width: 22px;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--f26-red), var(--f26-orange) 70%, var(--f26-gold));
}
@media (hover: none) {
    html.f26c .rkev-legend__keys { display: none !important; }
}

@keyframes rkev-move-a {
    from { transform: translateY(calc(var(--if) * var(--pitch))); }
    to { transform: translateY(calc(var(--i) * var(--pitch))); }
}
@keyframes rkev-move-b {
    from { transform: translateY(calc(var(--if) * var(--pitch))); }
    to { transform: translateY(calc(var(--i) * var(--pitch))); }
}
@keyframes rkev-enter-a {
    from { transform: translateY(calc(var(--if) * var(--pitch))); opacity: 0; }
    to { transform: translateY(calc(var(--i) * var(--pitch))); opacity: 1; }
}
@keyframes rkev-enter-b {
    from { transform: translateY(calc(var(--if) * var(--pitch))); opacity: 0; }
    to { transform: translateY(calc(var(--i) * var(--pitch))); opacity: 1; }
}
@keyframes rkev-leave-a {
    from { transform: translateY(calc(var(--if) * var(--pitch))); opacity: 1; }
    to { transform: translateY(calc(var(--i) * var(--pitch))); opacity: 0; }
}
@keyframes rkev-leave-b {
    from { transform: translateY(calc(var(--if) * var(--pitch))); opacity: 1; }
    to { transform: translateY(calc(var(--i) * var(--pitch))); opacity: 0; }
}
@keyframes rkev-up-a {
    0% { transform: translateY(calc(var(--if) * var(--pitch))) scale(1); }
    18% { transform: translateY(calc(var(--if) * var(--pitch))) scale(1.035); box-shadow: 0 12px 22px rgba(0, 0, 0, .55), 0 0 0 2px rgba(79, 213, 140, .9); }
    82% { transform: translateY(calc(var(--i) * var(--pitch))) scale(1.035); box-shadow: 0 12px 22px rgba(0, 0, 0, .55), 0 0 0 2px rgba(79, 213, 140, .9); }
    100% { transform: translateY(calc(var(--i) * var(--pitch))) scale(1); }
}
@keyframes rkev-up-b {
    0% { transform: translateY(calc(var(--if) * var(--pitch))) scale(1); }
    18% { transform: translateY(calc(var(--if) * var(--pitch))) scale(1.035); box-shadow: 0 12px 22px rgba(0, 0, 0, .55), 0 0 0 2px rgba(79, 213, 140, .9); }
    82% { transform: translateY(calc(var(--i) * var(--pitch))) scale(1.035); box-shadow: 0 12px 22px rgba(0, 0, 0, .55), 0 0 0 2px rgba(79, 213, 140, .9); }
    100% { transform: translateY(calc(var(--i) * var(--pitch))) scale(1); }
}
@keyframes rkev-down-a {
    0% { transform: translateY(calc(var(--if) * var(--pitch))) scale(1); }
    18% { transform: translateY(calc(var(--if) * var(--pitch))) scale(.94); filter: brightness(.7) saturate(.7); }
    82% { transform: translateY(calc(var(--i) * var(--pitch))) scale(.94); filter: brightness(.7) saturate(.7); }
    100% { transform: translateY(calc(var(--i) * var(--pitch))) scale(1); }
}
@keyframes rkev-down-b {
    0% { transform: translateY(calc(var(--if) * var(--pitch))) scale(1); }
    18% { transform: translateY(calc(var(--if) * var(--pitch))) scale(.94); filter: brightness(.7) saturate(.7); }
    82% { transform: translateY(calc(var(--i) * var(--pitch))) scale(.94); filter: brightness(.7) saturate(.7); }
    100% { transform: translateY(calc(var(--i) * var(--pitch))) scale(1); }
}
@keyframes rkev-intro-b {
    from { transform: translate(-18px, calc(var(--i) * var(--pitch))); opacity: 0; clip-path: inset(0 100% 0 0); }
    to { transform: translate(0, calc(var(--i) * var(--pitch))); opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes rkev-bar-a { from { transform: scaleX(var(--wf)); } to { transform: scaleX(var(--w)); } }
@keyframes rkev-bar-b { from { transform: scaleX(var(--wf)); } to { transform: scaleX(var(--w)); } }
@keyframes rkev-grow { from { transform: scaleX(0); } to { transform: scaleX(var(--w)); } }
@keyframes rkev-intro {
    from { transform: translate(-18px, calc(var(--i) * var(--pitch))); opacity: 0; clip-path: inset(0 100% 0 0); }
    to { transform: translate(0, calc(var(--i) * var(--pitch))); opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes rkev-shine { to { transform: translateX(100%); } }
@keyframes rkev-pulse { 50% { opacity: .55; } }

/* =====================================================================
   GRÁFICA
   ===================================================================== */
html.f26c .rkev-chartbox { --ends-w: 128px; }
html.f26c .rkev-chart-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 14px;
    margin-bottom: 12px;
}
html.f26c .rkev-chart-cap { margin: 0; color: var(--f26-text-2); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
html.f26c .rkev-chart-cap b { color: var(--f26-ink); font-weight: 900; }
html.f26c .rkev-chart-hint { display: block; margin-top: 2px; color: var(--f26-mute); font-size: 11.5px; }
html.f26c .rkev-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 34px;
    padding: 0 12px 0 10px;
    border: 1px solid var(--f26-ink);
    border-radius: var(--f26-pill);
    background: var(--f26-ink);
    color: #fff;
    font-family: var(--f26-font);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
html.f26c .rkev-chip__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.f26c .rkev-chip i { color: var(--f26-gold); font-size: 12px; }
html.f26c .rkev-chip:hover { border-color: var(--f26-red); background: var(--f26-red); }
html.f26c .rkev-chip:hover i { color: #fff; }

html.f26c .rkev-chart {
    --pitch: 22px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) var(--ends-w);
    grid-template-rows: auto auto;
}
html.f26c .rkev-chart.is-n40 { --pitch: 18px; }
html.f26c .rkev-chart.is-nxl { --pitch: 16px; }

html.f26c .rkev-yax,
html.f26c .rkev-ends { position: relative; }
html.f26c .rkev-yax span {
    position: absolute;
    right: 5px;
    color: var(--f26-mute);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transform: translateY(-50%);
}
html.f26c .rkev-yax span.is-band { color: var(--f26-mute); font-size: 9.5px; }

html.f26c .rkev-plot {
    position: relative;
    height: calc(var(--rt) * var(--pitch));
    border-left: 1px solid var(--f26-line);
    background-image: repeating-linear-gradient(180deg, transparent 0, transparent var(--pitch), rgba(28, 28, 34, .035) var(--pitch), rgba(28, 28, 34, .035) calc(var(--pitch) * 2));
    background-repeat: no-repeat;
    background-size: 100% calc(var(--rows) * var(--pitch));
}
html.f26c .rkev-plot__in { position: absolute; inset: 0 12px; }
html.f26c .rkev-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
html.f26c .rkev-svg path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
html.f26c .rkev-grid path { stroke: var(--f26-line); stroke-width: 1px; }
html.f26c .rkev-grid path.is-last { stroke: #C5C9D2; }
html.f26c .rkev-grid path.is-h { stroke: #D5D9E0; stroke-dasharray: 2 4; }
html.f26c .rkev-lines { transition: opacity .15s ease; }
html.f26c .rkev-plot.is-dim .rkev-lines { opacity: .16; }
html.f26c .rkev-ln { color: var(--c); }
html.f26c .rkev-ln__main { stroke: var(--c); stroke-width: 2px; }
html.f26c .rkev-d1 .rkev-ln__main { stroke-dasharray: 7 4; }
html.f26c .rkev-d2 .rkev-ln__main { stroke-width: 2.5px; stroke-dasharray: .1 5; }
html.f26c .rkev-ln__link { stroke: var(--c); stroke-width: 1.5px; stroke-dasharray: .1 4; opacity: .7; }
html.f26c .rkev-ln__ring { stroke: #fff; stroke-width: 11px; }
html.f26c .rkev-ln__dot { stroke: var(--c); stroke-width: 7px; }
html.f26c .rkev-ln__bdot { stroke: var(--c); stroke-width: 6px; opacity: .6; }
html.f26c .rkev-ln__hit { stroke: transparent; stroke-width: 12px; pointer-events: stroke; cursor: pointer; }
html.f26c .rkev-ln__pt { stroke: transparent; stroke-width: 22px; pointer-events: stroke; cursor: pointer; }
html.f26c .rkev-hl { z-index: 1; pointer-events: none; }
html.f26c .rkev-hl .rkev-ln__halo { stroke: #fff; stroke-width: 7px; }
html.f26c .rkev-hl .rkev-ln__main { stroke-width: 3.5px; }
html.f26c .rkev-hl .rkev-d2 .rkev-ln__main { stroke-width: 4px; }
html.f26c .rkev-hl .rkev-ln__link { stroke-width: 2.5px; opacity: 1; }
html.f26c .rkev-hl .rkev-ln__ring { stroke-width: 14px; }
html.f26c .rkev-hl .rkev-ln__dot { stroke-width: 10px; }
html.f26c .rkev-hl .rkev-ln__bdot { stroke-width: 8px; opacity: 1; }

/* Banda de los que van por detrás */
/* (qué es la banda lo explica el texto de encima de la gráfica; en ella, los puntos taparían un rótulo) */
html.f26c .rkev-band {
    position: absolute;
    left: -12px;
    right: -12px;
    border-top: 1px dashed #C5C9D2;
    background: repeating-linear-gradient(135deg, rgba(28, 28, 34, .045) 0 6px, transparent 6px 12px);
}

/* Puestos sobre la línea resaltada (la primera fecha, la última y cada cambio) y tooltip */
html.f26c .rkev-rl {
    --rx: -50%;
    --ry: calc(-100% - 7px);
    position: absolute;
    z-index: 2;
    min-width: 18px;
    padding: 1px 4px;
    border: 1px solid #C5C9D2;
    border-radius: 4px;
    background: #fff;
    color: var(--f26-ink);
    font-size: 10.5px;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
    transform: translate(var(--rx), var(--ry));
}
html.f26c .rkev-rl.is-below { --ry: 7px; }
/* En los extremos, hacia dentro de la gráfica */
html.f26c .rkev-rl.is-first { --rx: -5px; }
html.f26c .rkev-rl.is-last { --rx: calc(-100% + 5px); }
html.f26c .rkev-rl.is-band { background: var(--f26-tint); color: var(--f26-text-2); }
/* En el móvil las fechas van muy juntas: las que se montarían con la siguiente no se rotulan (están en el tooltip) */
@media (max-width: 575.98px) {
    html.f26c .rkev-rl.is-w { display: none; }
}
html.f26c .rkev-tip {
    --tx: -50%;
    --ty: calc(-100% - 14px);
    position: absolute;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: max-content;
    max-width: 230px;
    padding: 9px 11px;
    border-radius: 10px;
    background: var(--f26-ink);
    box-shadow: var(--f26-shadow-3);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    pointer-events: none;
    transform: translate(var(--tx), var(--ty));
}
html.f26c .rkev-tip.is-l { --tx: -14px; }
html.f26c .rkev-tip.is-r { --tx: calc(-100% + 14px); }
html.f26c .rkev-tip.is-below { --ty: 14px; }
html.f26c .rkev-tip__n { font-size: 12px; font-weight: 900; text-transform: uppercase; }
html.f26c .rkev-tip__d { color: var(--f26-on-ink-mute); font-variant-numeric: tabular-nums; }
html.f26c .rkev-tip__p b { color: var(--f26-gold); font-weight: 900; font-variant-numeric: tabular-nums; }
html.f26c .rkev-tip__x { color: var(--f26-on-ink-mute); font-size: 10.5px; }
html.f26c .rkev-tip__m { font-weight: 800; }
html.f26c .rkev-tip__m.up { color: #4FD58C; }
html.f26c .rkev-tip__m.down { color: #FF8296; }
html.f26c .rkev-tip__m.same { color: var(--f26-on-ink-mute); }
html.f26c .rkev-tip__m.is-new { color: var(--f26-gold); }

/* Nombres al final de cada línea */
html.f26c .rkev-end {
    position: absolute;
    left: 0;
    right: 0;
    overflow: hidden;
    padding-left: 8px;
    color: var(--f26-text-2);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity .15s ease, color .15s ease;
}
html.f26c .rkev-end b {
    display: inline-block;
    min-width: 2.1em;
    margin-right: 4px;
    color: var(--f26-mute);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
html.f26c .rkev-end:hover,
html.f26c .rkev-end.is-on { color: var(--f26-ink); font-weight: 900; }
html.f26c .rkev-end.is-on b { color: var(--f26-ink); }
/* En el móvil, al final de cada línea solo su puesto (el nombre está en la lista de debajo) */
@media (max-width: 575.98px) {
    html.f26c .rkev-chartbox { --ends-w: 34px; }
    html.f26c .rkev-end { padding-left: 6px; text-overflow: clip; }
    html.f26c .rkev-end b { min-width: 0; margin-right: 0; }
    html.f26c .rkev-end__nm { display: none; }
}
html.f26c .rkev-end.is-match { color: var(--f26-ink); background: linear-gradient(transparent 15%, var(--f26-gold-soft) 15%, var(--f26-gold-soft) 85%, transparent 85%); }
html.f26c .rkev-chart:has(.rkev-plot.is-dim) .rkev-end:not(.is-on) { opacity: .38; }

/* Fechas */
html.f26c .rkev-xax {
    position: relative;
    grid-column: 2;
    height: 44px;
    margin: 0 12px;
}
html.f26c .rkev-xl,
html.f26c .rkev-xy {
    position: absolute;
    color: var(--f26-mute);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    transform: translateX(-50%);
}
html.f26c .rkev-xl { top: 7px; }
html.f26c .rkev-xl.is-odd { top: 19px; }
html.f26c .rkev-xl.is-last { color: var(--f26-ink); font-weight: 900; }
html.f26c .rkev-xy { top: 32px; color: var(--f26-mute); font-size: 9.5px; font-weight: 800; letter-spacing: .04em; }
/* Dos años en fechas contiguas: el primero termina en su fecha y el segundo empieza en la suya */
html.f26c .rkev-xy.is-r { transform: translateX(calc(-100% + 4px)); }
html.f26c .rkev-xy.is-l { transform: translateX(-4px); }

/* Lista (leyenda con lo que ha subido o bajado): una fila por deportista, siempre en una sola columna, como franjas */
html.f26c .rkev-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 16px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--f26-line);
    list-style: none;
}
html.f26c .rkev-li {
    display: flex;
    align-items: stretch;
    gap: 2px;
    min-width: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, #F5F6F8 0%, #EEF0F3 100%);
}
html.f26c .rkev-li__b {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: 28px 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 40px;
    padding: 4px 8px 4px 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--f26-ink);
    font-family: var(--f26-font);
    text-align: left;
    cursor: pointer;
}
html.f26c .rkev-li__b:hover,
html.f26c .rkev-li.is-on .rkev-li__b { background: var(--f26-tint-2); }
html.f26c .rkev-li__b[aria-pressed="true"] { background: var(--f26-tint-2); box-shadow: inset 0 0 0 2px var(--f26-ink); }
/* Pastillas: mejor puesto en estos rankings y puntos (pantallas mayores) */
html.f26c .rkev-li__best,
html.f26c .rkev-li__pts { display: none; }
html.f26c .rkev-li__best,
html.f26c .rkev-li__pts,
html.f26c .rkev-li__mv { justify-self: end; }
html.f26c .rkev-li__best {
    padding: 3px 9px;
    border-radius: var(--f26-pill);
    background: #fff;
    color: var(--f26-mute);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 14px;
    white-space: nowrap;
}
html.f26c .rkev-li__best b { color: var(--f26-ink); font-weight: 900; font-variant-numeric: tabular-nums; }
html.f26c .rkev-li__best.is-gold { background: var(--f26-gold); color: var(--f26-ink); }
html.f26c .rkev-li__pts {
    min-width: 72px;
    padding: 3px 9px;
    border-radius: var(--f26-pill);
    background: var(--f26-ink);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
html.f26c .rkev-li__u { color: var(--f26-on-ink-mute); font-size: 9.5px; font-weight: 700; }
html.f26c .rkev-li:first-child .rkev-li__pts { background: var(--f26-gold); color: var(--f26-ink); }
html.f26c .rkev-li:first-child .rkev-li__u { color: var(--f26-ink); }
html.f26c .rkev-sw { display: inline-flex; align-items: center; color: var(--c); }
html.f26c .rkev-sw svg { display: block; width: 28px; height: 10px; overflow: visible; }
html.f26c .rkev-sw path { fill: none; stroke: currentColor; stroke-width: 2.5px; stroke-linecap: round; }
html.f26c .rkev-sw.rkev-d1 path:first-child { stroke-dasharray: 6 3; }
html.f26c .rkev-sw.rkev-d2 path:first-child { stroke-dasharray: .1 4.5; stroke-width: 3px; }
html.f26c .rkev-sw .rkev-sw__dot { stroke-width: 7px; }
html.f26c .rkev-sw--chip { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff; }
html.f26c .rkev-li__pos {
    color: var(--f26-ink);
    font-size: 13px;
    font-weight: 900;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
/* El nombre completo, en dos líneas si hace falta (es donde se lee entero en el móvil) */
html.f26c .rkev-li__nm {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}
html.f26c .rkev-li__t {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
/* Foto del deportista (o sus iniciales) delante del nombre: animación y lista de la gráfica */
html.f26c .rkev-ph {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 28px;
    height: 28px;
    overflow: hidden;
    border-radius: 26%;
    background: #2E2E38;
    color: #B9BBC4;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
    text-decoration: none;
}
html.f26c .rkev-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
html.f26c .rkev-nm { gap: 7px; }
html.f26c .rkev-row .rkev-ph { width: calc(var(--pitch) - 12px); height: calc(var(--pitch) - 12px); box-shadow: 0 0 0 2px #fff; }
html.f26c .rkev-row:has(.rkev-pos.is-p1) .rkev-ph { box-shadow: 0 0 0 2px var(--f26-gold); }
html.f26c .rkev-li.is-on .rkev-li__nm { font-weight: 900; }
html.f26c .rkev-li.is-match .rkev-li__nm { background: linear-gradient(transparent 12%, var(--f26-gold-soft) 12%, var(--f26-gold-soft) 88%, transparent 88%); }
html.f26c .rkev-li__mv {
    min-width: 44px;
    color: var(--f26-mute);
    font-size: 11px;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
html.f26c .rkev-li__mv.up { color: var(--f26-green-text); }
html.f26c .rkev-li__mv.down { color: var(--f26-red-dk); }
html.f26c .rkev-li__mv.is-new {
    padding: 2px 6px;
    border-radius: var(--f26-pill);
    background: var(--f26-gold-soft);
    color: var(--f26-gold-text);
    font-size: 9.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
html.f26c .rkev-li__bio {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--f26-mute);
    font-size: 14px;
    cursor: pointer;
}
html.f26c .rkev-li__bio:hover { background: var(--f26-ink); color: #fff; }
/* Móvil: columnas más estrechas para que el nombre quepa entero (hasta tres líneas) */
@media (max-width: 575.98px) {
    html.f26c .rkev-li__b { grid-template-columns: 20px 22px minmax(0, 1fr) auto; gap: 6px; padding: 4px 4px 4px 4px; }
    html.f26c .rkev-li .rkev-sw svg { width: 20px; }
    html.f26c .rkev-li__nm { gap: 6px; font-size: 11.5px; }
    html.f26c .rkev-li__t { -webkit-line-clamp: 3; }
    html.f26c .rkev-ph { width: 24px; height: 24px; font-size: 9px; }
    html.f26c .rkev-li__mv { min-width: 34px; }
    html.f26c .rkev-li__bio { width: 32px; }
}

html.f26c .rkev-more {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}
html.f26c .rkev-more__end { flex: 1 1 100%; margin: 0; color: var(--f26-mute); font-size: 12px; font-weight: 600; }

/* Tabla (24-11, grafismo de TV). position: relative para que los textos ocultos de las celdas vacías («sin
   clasificar», con position: absolute) se coloquen dentro del contenedor con desplazamiento y no ensanchen la página */
html.f26c .rkev-tbl {
    position: relative;
    margin-top: 14px;
    overflow-x: auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(28, 28, 34, .1), inset 0 0 0 1px var(--f26-line);
}
html.f26c .rkev-tbl table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; font-family: var(--f26-font); }
html.f26c .rkev-tbl th,
html.f26c .rkev-tbl td {
    padding: 6px 6px;
    border-bottom: 1px solid #ECEDF1;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
html.f26c .rkev-tbl thead th {
    position: relative;
    padding: 10px 6px 11px;
    border-bottom: 3px solid var(--f26-gold);
    background: var(--f26-ink) var(--f26-tex);
    color: rgba(255, 255, 255, .82);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .04em;
    vertical-align: bottom;
}
html.f26c .rkev-tbl thead th.rkev-tbl__cur { background: var(--f26-red); color: #fff; }
html.f26c .rkev-tbl__curtag { display: block; margin-bottom: 3px; color: var(--f26-gold); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
html.f26c .rkev-tbl thead th.rkev-tbl__best { color: var(--f26-gold); text-transform: uppercase; letter-spacing: .1em; }
html.f26c .rkev-tbl abbr { text-decoration: none; cursor: help; }
html.f26c .rkev-tbl td { color: var(--f26-ink); font-weight: 700; }
html.f26c .rkev-tbl tbody tr:nth-child(even) > * { background: #F8F8FA; }
html.f26c .rkev-tbl tbody tr:hover > * { background: #FFF7E0; }
html.f26c .rkev-tbl tbody td.rkev-tbl__cur { background: #FDECEE; box-shadow: inset 1px 0 0 #F6C9D0, inset -1px 0 0 #F6C9D0; }
html.f26c .rkev-tbl tbody tr:nth-child(even) > td.rkev-tbl__cur { background: #FAE3E7; }
/* Nombre en la columna fija, con la caja del puesto actual delante y el cambio detrás */
html.f26c .rkev-tbl .rkev-tbl__nm {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 150px;
    max-width: 240px;
    padding: 0 10px 0 0;
    background: #fff;
    color: var(--f26-ink);
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: 4px 0 8px -6px rgba(28, 28, 34, .35);
}
html.f26c .rkev-tbl__in { display: flex; align-items: center; gap: 9px; min-height: 40px; }
html.f26c .rkev-tbl thead .rkev-tbl__nm { z-index: 2; padding-left: 12px; background: var(--f26-ink) var(--f26-tex); color: #fff; text-transform: uppercase; letter-spacing: .1em; }
html.f26c .rkev-tbl__box {
    flex: 0 0 auto; display: grid; place-items: center; align-self: stretch; width: 38px; min-height: 40px;
    background: var(--f26-ink); color: #fff; font-size: 14px; font-weight: 900; box-shadow: inset -3px 0 0 var(--f26-red);
}
html.f26c .rkev-tbl__box.is-p1 { background: linear-gradient(160deg, #FFE38A, var(--f26-gold) 55%, #C98F00); color: var(--f26-ink); box-shadow: none; }
html.f26c .rkev-tbl__box.is-p2 { background: linear-gradient(160deg, #F4F5F7, #C9CDD4 55%, #8E949E); color: var(--f26-ink); box-shadow: none; }
html.f26c .rkev-tbl__box.is-p3 { background: linear-gradient(160deg, #F2C29A, #CD8A4E 55%, #8A5428); color: #fff; box-shadow: none; }
html.f26c .rkev-tbl__name { flex: 1 1 auto; min-width: 0; font-size: 11.5px; }
html.f26c .rkev-tbl__mv { flex: 0 0 auto; padding: 2px 6px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: 0; white-space: nowrap; }
html.f26c .rkev-tbl__mv.up { background: #E3F5EA; color: #13703F; }
html.f26c .rkev-tbl__mv.down { background: #FDE8EB; color: var(--f26-red-dk); }
html.f26c .rkev-tbl__mv.new { background: var(--f26-ink); color: var(--f26-gold); text-transform: uppercase; font-size: 9px; letter-spacing: .06em; }
/* Puestos en pastillas por tramos */
html.f26c .rkev-tbl__p {
    display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 7px; border-radius: 6px;
    font-size: 12px; font-weight: 800; line-height: 1;
}
html.f26c .rkev-tbl__p.is-p1 { background: var(--f26-gold); color: var(--f26-ink); font-weight: 900; }
html.f26c .rkev-tbl__p.is-p2 { background: #C9CDD4; color: var(--f26-ink); font-weight: 900; }
html.f26c .rkev-tbl__p.is-p3 { background: #CD8A4E; color: #fff; font-weight: 900; }
html.f26c .rkev-tbl__p.is-t10 { background: var(--f26-ink); color: #fff; }
html.f26c .rkev-tbl__p.is-t20 { background: #E8EAEF; color: var(--f26-ink); }
html.f26c .rkev-tbl__p.is-out { color: #6E6E78; font-weight: 600; }
html.f26c .rkev-tbl__p.is-best { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--f26-gold); }
html.f26c .rkev-tbl__none { color: #C2C4CC; }
html.f26c .rkev-tbl td.rkev-tbl__best { min-width: 64px; border-left: 1px solid #ECEDF1; }
html.f26c .rkev-tbl__bp { display: block; color: var(--f26-ink); font-size: 14px; font-weight: 900; }
html.f26c .rkev-tbl td.rkev-tbl__best small { display: block; color: #8A8A95; font-size: 9.5px; font-weight: 700; }
html.f26c .rkev-tbl tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 575.98px) {
    html.f26c .rkev-tbl .rkev-tbl__nm { min-width: 168px; max-width: 190px; padding-right: 8px; }
    html.f26c .rkev-tbl__in { gap: 7px; min-height: 38px; }
    html.f26c .rkev-tbl__box { width: 30px; min-height: 38px; font-size: 13px; }
    html.f26c .rkev-tbl__name { font-size: 10.5px; overflow-wrap: normal; word-break: normal; }
    html.f26c .rkev-tbl__mv { display: none; }
    html.f26c .rkev-tbl__p { min-width: 30px; height: 22px; padding: 0 5px; font-size: 11px; }
}

/* =====================================================================
   PANTALLAS MAYORES
   ===================================================================== */
@media (min-width: 400px) {
    html.f26c .rkev-pts__u { display: inline; }
}

@media (min-width: 576px) {
    html.f26c .rkev-cb.rkev-spd { display: none; }
    html.f26c .rkx-page .rkev { padding: 18px 18px 16px; }
    html.f26c .rkev-race { --pitch: 35px; }
    html.f26c .rkev-nm { font-size: 12px; line-height: 1.2; }
    html.f26c .rkev-nm__t { display: block; white-space: nowrap; text-overflow: ellipsis; }
    html.f26c .rkev-slot__d { display: block; }
    html.f26c .rkev-chartbox { --ends-w: 200px; }
    html.f26c .rkev-end { font-size: 11px; }
    html.f26c .rkev-li__b { grid-template-columns: 28px 30px minmax(0, 1fr) auto auto; }
    html.f26c .rkev-li__pts { display: block; }
    html.f26c .rkev-li__t { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 575.98px) {
    html.f26c .rkev-speed { display: none; }
    html.f26c .rkev-tl { margin-bottom: 8px; }
    html.f26c .rkev-bar { gap: 8px; padding: 8px 8px 8px 12px; }
    html.f26c .rkev-date__d { font-size: 19px; }
    html.f26c .rkev-ctrl { gap: 5px; }
    html.f26c .rkev-cb { width: 34px; height: 34px; font-size: 12px; }
    html.f26c .rkev-cb.rkev-play { width: auto; height: 40px; padding: 0 13px 0 11px; gap: 6px; font-size: 14px; }
    html.f26c .rkev-play__t { font-size: 11.5px; letter-spacing: .02em; }
    /* con el texto de «Reproducir» los controles no caben junto a la fecha: van debajo, a todo el ancho */
    html.f26c .rkev-bar { flex-wrap: wrap; }
    html.f26c .rkev-ctrl { width: 100%; }
    html.f26c .rkev-cb.rkev-play { flex: 1 1 auto; }
    html.f26c .rkev-cb.rkev-spd { min-width: 34px; padding: 0 6px; font-size: 11px; }
    /* 8 a 10 fechas: en el móvil solo se rotulan la primera y la última (la actual va en la barra roja) */
    html.f26c .rkev-tl--l .rkev-tl__stop:not(:first-child):not(:last-child) .rkev-tl__lab { visibility: hidden; }
    html.f26c .rkev-head { align-items: stretch; }
    html.f26c .rkev-views { width: 100%; }
    html.f26c .rkev-view { flex: 1 1 0; justify-content: center; }
}
/* 320 px: con el botón del vídeo los controles no caben con el texto de «Reproducir»: queda el icono */
/* Con «Pantalla completa» ya no caben todos en una fila en los móviles más estrechos: pasan a dos */
@media (max-width: 389.98px) {
    html.f26c .rkev-ctrl { flex-wrap: wrap; row-gap: 6px; }
}
@media (max-width: 359.98px) {
    html.f26c .rkev-ctrl { gap: 4px; }
    html.f26c .rkev-cb { flex-shrink: 0; width: 32px; height: 32px; }
    html.f26c .rkev-cb.rkev-play { height: 38px; justify-content: center; }
    html.f26c .rkev-play__t { display: none; }
}

@media (min-width: 768px) {
    html.f26c .rkx-page .rkev { padding: 20px 20px 18px; }
    html.f26c .rkev-title { font-size: 19px; }
    html.f26c .rkev-race { --pitch: 37px; }
    /* Etiqueta vertical a la izquierda, como el rótulo «Clasificación» de TV */
    html.f26c .rkev-stage { padding: 12px 12px 12px 58px; }
    html.f26c .rkev-stage__tag {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        border-right: 3px solid transparent;
        border-image: var(--f26-grad-accent-v) 1;
        background: #141418;
    }
    html.f26c .rkev-stage__tag span {
        color: #fff;
        font-size: 15px;
        font-weight: 900;
        letter-spacing: .14em;
        text-transform: uppercase;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
    }
    html.f26c .rkev-bar { margin-bottom: 10px; padding: 10px 12px 10px 16px; border-radius: 4px; }
    html.f26c .rkev-date { flex-direction: row; align-items: center; gap: 12px; }
    html.f26c .rkev-date__d { font-size: 25px; }
    html.f26c .rkev-row {
        left: 0;
        right: 0;
        grid-template-columns: 32px 42px minmax(0, 1fr) minmax(80px, 24%) auto;
        column-gap: 10px;
        padding: 0 5px 0 4px;
    }
    html.f26c .rkev-pos { font-size: 13px; }
    html.f26c .rkev-mv { font-size: 11.5px; }
    html.f26c .rkev-mv.is-new { padding: 2px 4px; font-size: 9px; letter-spacing: .03em; }
    html.f26c .rkev-nm { font-size: 13px; }
    html.f26c .rkev-track { position: static; grid-column: 4; align-self: center; height: 8px; margin: 0; border-radius: 4px; }
    html.f26c .rkev-pts { min-width: 78px; font-size: 13px; }
    html.f26c .rkev-legend { margin: 10px 0 0; }
    html.f26c .rkev-chartbox { --ends-w: 220px; }
    /* Fechas del eje en una sola fila */
    html.f26c .rkev-xl.is-odd { top: 7px; }
    html.f26c .rkev-xax { height: 36px; }
    html.f26c .rkev-xy { top: 22px; }
    html.f26c .rkev-li__b { grid-template-columns: 28px 30px minmax(0, 1fr) auto auto auto; gap: 10px; padding-left: 10px; }
    html.f26c .rkev-li__best { display: block; min-width: 84px; text-align: center; }
    html.f26c .rkev-li__pts { min-width: 84px; }
    html.f26c .rkev-li__mv { min-width: 52px; }
}

@media (min-width: 992px) {
    html.f26c .rkev-race { --pitch: 38px; }
    html.f26c .rkev-chartbox { --ends-w: 230px; }
    html.f26c .rkev-chart { --pitch: 25px; }
    html.f26c .rkev-chart.is-n40 { --pitch: 19px; }
    html.f26c .rkev-chart.is-nxl { --pitch: 17px; }
    html.f26c .rkev-end { font-size: 11.5px; }
    html.f26c .rkev-li__nm { font-size: 12.5px; }
}

@media (min-width: 1280px) {
    html.f26c .rkev-race {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 272px;
        grid-template-areas: "stage tl" "find find";
        align-items: start;
        column-gap: 20px;
        --pitch: 40px;
    }
    html.f26c .rkev-stage { grid-area: stage; }
    html.f26c .rkev-race > .rkev-find { grid-area: find; }
    /* Línea de tiempo en vertical, con quién iba primero en cada fecha */
    html.f26c .rkev-tl {
        position: sticky;
        top: calc(var(--f26-topbar-h) + 16px);
        grid-area: tl;
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 0;
        padding: 14px 12px 14px;
        border: 1px solid var(--f26-line);
        border-radius: var(--f26-r);
        background: var(--f26-tint);
    }
    html.f26c .rkev-tl__k {
        display: block;
        margin: 0 0 0 4px;
        color: var(--f26-ink);
        font-size: 11px;
        font-weight: 900;
        letter-spacing: .1em;
        text-transform: uppercase;
    }
    html.f26c .rkev-tl__track { height: auto; margin: 0; }
    html.f26c .rkev-tl__track::before,
    html.f26c .rkev-tl__track::after { left: 11.5px; top: 20px; width: 3px; height: auto; }
    html.f26c .rkev-tl__track::before { right: auto; bottom: 20px; background: #CDD2DA; }
    html.f26c .rkev-tl__track::after {
        width: 3px;
        height: calc(var(--p) * (100% - 40px));
        transition: height var(--rkev-dur) var(--rkev-ease);
    }
    html.f26c .rkev-tl__stops { position: relative; inset: auto; display: flex; flex-direction: column; gap: 2px; }
    html.f26c .rkev-tl__stop { position: relative; left: auto; transform: none; }
    /* Fecha arriba y quién iba primero debajo: así cabe el nombre entero */
    html.f26c .rkev-tl__btn {
        display: grid;
        grid-template-columns: 14px minmax(0, 1fr);
        grid-template-areas: "dot lab" "dot lead";
        align-content: center;
        align-items: center;
        gap: 1px 10px;
        width: 100%;
        height: 44px;
        padding: 0 8px 0 6px;
        border-radius: 10px;
        text-align: left;
    }
    html.f26c .rkev-tl__dot { grid-area: dot; }
    html.f26c .rkev-tl__lab { grid-area: lab; }
    html.f26c .rkev-tl__btn:hover { background: #fff; }
    html.f26c .rkev-tl__stop.is-cur .rkev-tl__btn { background: #fff; box-shadow: var(--f26-shadow-1); }
    html.f26c .rkev-tl__lab,
    html.f26c .rkev-tl__stop:first-child .rkev-tl__lab,
    html.f26c .rkev-tl__stop:last-child .rkev-tl__lab {
        position: static;
        color: var(--f26-ink);
        font-size: 12px;
        font-weight: 800;
        visibility: visible;
        transform: none;
    }
    html.f26c .rkev-tl__stop.is-cur .rkev-tl__lab { color: var(--f26-red-dk); }
    html.f26c .rkev-tl__lead {
        display: block;
        grid-area: lead;
        overflow: hidden;
        color: var(--f26-mute);
        font-size: 10.5px;
        font-weight: 600;
        line-height: 1.25;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
    }
    html.f26c .rkev-tl__lead b { color: var(--f26-gold-text); font-weight: 900; }
    html.f26c .rkev-speed { align-self: stretch; justify-content: space-between; background: #fff; border: 1px solid var(--f26-line); }
    html.f26c .rkev-chartbox { --ends-w: 250px; }
    html.f26c .rkev-chart { --pitch: 27px; }
    html.f26c .rkev-chart.is-n40 { --pitch: 20px; }
    html.f26c .rkev-date__d { font-size: 28px; }
}

@media (min-width: 1700px) {
    html.f26c .rkev-race { --pitch: 42px; grid-template-columns: minmax(0, 1fr) 300px; }
    html.f26c .rkev-nm { font-size: 14px; }
    html.f26c .rkev-pts { min-width: 88px; font-size: 14px; }
    html.f26c .rkev-chartbox { --ends-w: 280px; }
    html.f26c .rkev-chart { --pitch: 28px; }
    html.f26c .rkev-end { font-size: 12px; }
    html.f26c .rkev-li__nm { font-size: 13px; }
}

/* =====================================================================
   MENOS MOVIMIENTO: sin animaciones ni reproducción (se pasa de fecha a mano)
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    /* sin arranque automático; si se pulsa «Reproducir» (rkev-userplay) la animación sí se ve */
    html.f26c .rkev-race:not(.rkev-userplay) .rkev-row,
    html.f26c .rkev-race:not(.rkev-userplay) .rkev-row .rkev-fill,
    html.f26c .rkev-cb.rkev-play.is-idle,
    html.f26c .rkev-sk__row,
    html.f26c .rkev-slot__bar::after { animation: none !important; }
    html.f26c .rkev-race:not(.rkev-userplay) .rkev-row.is-leave { display: none; }
    html.f26c .rkev-tl__track::after,
    html.f26c .rkev-tl__dot,
    html.f26c .rkev-lines,
    html.f26c .rkev-end { transition: none !important; }
    html.f26c .rkev-race:not(.rkev-userplay) .rkev-speed,
    html.f26c .rkev-race:not(.rkev-userplay) .rkev-cb.rkev-spd { display: none !important; }
}

/* =====================================================================
   PANTALLA COMPLETA (MAP, 24-11): evolución del ranking y animación de las ligas
   La del navegador sobre .rkev-race; en el iPhone (sin esa función) ocupa la ventana con .is-full y html.f26-rkev-lock.
   f26-rkevo.js (fitFull) agranda el panel con «zoom» hasta llenar el alto que queda bajo las fechas.
   ===================================================================== */
html.f26-rkev-lock { overflow: hidden; }
html.f26c .rkev-race:fullscreen,
html.f26c .rkev-race.is-full {
    overflow: auto;
    padding: 14px clamp(12px, 2vw, 32px) 12px;
    background: #fff;
    overscroll-behavior: contain;
}
html.f26c .rkev-race.is-full:not(:fullscreen) { position: fixed; inset: 0; z-index: 3000; }
html.f26c .rkev-race:is(:fullscreen, .is-full) .rkev-bar { top: 0; }
html.f26c .rkev-race:is(:fullscreen, .is-full) .rkev-stage { box-shadow: 0 10px 30px rgba(28, 28, 34, .25); }
html.f26c .rkev-race:is(:fullscreen, .is-full) .rkev-legend__keys { display: none; }
html.f26c .rkev-cb.rkev-full[aria-pressed="true"] { background: #fff; color: var(--f26-red); }

/* Reproducir de las animaciones (MAP, 25-11, 10:47): el icono y el texto en rojo. La barra es roja, así que el botón
   va en blanco (un botón rojo sobre la barra roja no se distinguía) */
html.f26c .rkev-cb.rkev-play { border-color: #fff; background: #fff; color: var(--f26-red); }
html.f26c .rkev-cb.rkev-play > * { color: var(--f26-red); }
html.f26c .rkev-cb.rkev-play:hover { border-color: #fff; background: #FFE9EC; color: var(--f26-red); }
/* El icono de «Animación» en las pestañas también en rojo */
html.f26c :is(.rkev-view, .f26-seg__btn) > .fa-play { color: var(--f26-red); }
html.f26c :is(.rkev-view.is-on, .f26-lg .f26-seg__btn.active) > .fa-play { color: #FF4560; }
