/* =====================================================================
   rankings.css — Clasificaciones · PORTADA EDITORIAL (versión A).
   CSS puro, estética "clay". Se carga después del chrome, así que aquí
   manda todo lo del ranking. Variables de home-preview.css / ph-skin:
   --bg --surface --ink --ink-soft --ink-mute --line --line-strong
   --accent --accent-press --accent-soft --gold --skeleton
   La vista hermana (/temporada) tiene su propio archivo y reutiliza las
   piezas comunes: .rk-cat, .rk-rate, .rk-bar, .rk-btn, .rk-medal-N.
   ===================================================================== */

.rk-main {
  min-width: 0;
  padding: 0 0 clamp(48px, 7vw, 72px);
  --rk-pad: clamp(20px, 3vw, 40px);
}
.rk-body { padding: 0 var(--rk-pad); }

/* ---- Piezas compartidas ---- */
.rk-cat {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft, #f4e7df);
  color: var(--accent-press, #974c33);
  font: 700 10px "Work Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.rk-rate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 700 14px "Outfit", sans-serif;
  color: var(--ink, #16150f);
  font-variant-numeric: tabular-nums;
}
.rk-rate.is-empty { color: var(--ink-mute, #9a968b); font-weight: 600; }
.rk-rate-n { font: 700 13px "Outfit", sans-serif; font-variant-numeric: tabular-nums; }

/* Barra de reparto del puntaje: los tramos llegan con width inline desde PHP,
   con el color de cada componente definido en phRankScoreModel(). */
.rk-bar {
  display: flex;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: #e9e5dc;
}
.rk-bar.is-slim { height: 6px; }
.rk-bar.is-fat { height: 8px; }
.rk-bar > span { display: block; min-width: 0; }

.rk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 14px "Work Sans", sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.rk-btn [data-lucide] { width: 16px; height: 16px; }
.rk-btn.is-primary { background: var(--accent, #b05f44); color: #fff; }
.rk-btn.is-primary:hover { background: var(--accent-press, #974c33); color: #fff; }
.rk-btn.is-ghost { background: none; border-color: rgba(246,244,239,.32); color: #f6f4ef; }
.rk-btn.is-ghost:hover { border-color: #fff; color: #fff; }
.rk-btn.is-ghost.is-saved { border-color: var(--gold, #f4b740); color: var(--gold, #f4b740); }
.rk-btn.is-ghost.is-saved [data-lucide] { fill: var(--gold, #f4b740); }
.rk-btn:active { transform: scale(.97); }

/* Medallas de puesto (compartidas con la vista de temporada) */
.rk-medal-1 { background: var(--gold, #f4b740); color: #5c4708; }
.rk-medal-2 { background: #c9c3b6; color: #45403a; }
.rk-medal-3 { background: #c98a5e; color: #fff; }

/* ---- Portada del nº1 ---- */
.rk-hero { position: relative; overflow: hidden; background: var(--ink, #16150f); }
.rk-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.rk-hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22,21,15,.94) 0%, rgba(22,21,15,.78) 46%, rgba(22,21,15,.25) 100%);
}
.rk-hero-in {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr));
  gap: 40px;
  align-items: end;
  padding: clamp(28px, 4vw, 52px) var(--rk-pad);
}
.rk-hero-txt { min-width: 0; }
.rk-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: rgba(244,183,64,.16);
  border: 1px solid rgba(244,183,64,.45);
  color: var(--gold, #f4b740);
  font: 700 10.5px "Work Sans", sans-serif;
  text-transform: uppercase; letter-spacing: .14em;
}
.rk-hero-badge [data-lucide] { width: 14px; height: 14px; }
.rk-hero-head { display: flex; align-items: flex-start; gap: 20px; margin-top: 18px; }
.rk-hero-num {
  flex: 0 0 auto;
  font: 900 clamp(64px, 9vw, 132px)/0.8 "Outfit", sans-serif;
  letter-spacing: -.06em;
  color: var(--gold, #f4b740);
}
.rk-hero-head > div { padding-top: 6px; min-width: 0; }
.rk-hero-title {
  margin: 0; max-width: 20ch;
  font: 800 clamp(2rem, 3.6vw, 3.1rem)/1.02 "Outfit", sans-serif;
  letter-spacing: -.04em; color: #fff; text-wrap: pretty;
}
.rk-hero-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 12px 0 0;
  font: 500 14px "Work Sans", sans-serif; color: rgba(246,244,239,.72);
}
.rk-hero-meta > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.rk-hero-meta [data-lucide] { width: 15px; height: 15px; flex: 0 0 auto; }
.rk-sep { width: 1px; height: 14px; background: rgba(246,244,239,.28); flex: 0 0 auto; }
.rk-hero-cat {
  padding: 2px 9px; border-radius: 999px; background: rgba(246,244,239,.12);
  font: 700 10.5px "Work Sans", sans-serif; text-transform: uppercase; letter-spacing: .08em; color: #f6f4ef;
}
.rk-hero-desc {
  margin: 16px 0 0; max-width: 52ch;
  font: 400 15.5px/1.65 "Work Sans", sans-serif; color: rgba(246,244,239,.78); text-wrap: pretty;
}
.rk-hero-cta { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* Tarjeta de puntaje del nº1 */
.rk-hero-score {
  background: rgba(246,244,239,.07);
  border: 1px solid rgba(246,244,239,.16);
  border-radius: 20px;
  padding: 20px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.rk-hs-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px solid rgba(246,244,239,.14);
}
.rk-hs-top span {
  font: 700 10px "Work Sans", sans-serif; text-transform: uppercase;
  letter-spacing: .16em; color: rgba(246,244,239,.6);
}
.rk-hs-top b { font: 800 34px/1 "Outfit", sans-serif; color: #fff; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.rk-hero-score .rk-bar { margin-top: 16px; background: rgba(246,244,239,.12); }
.rk-hs-list { display: grid; gap: 10px; margin-top: 16px; }
.rk-hs-item {
  display: flex; align-items: center; gap: 8px;
  font: 500 12.5px "Work Sans", sans-serif; color: rgba(246,244,239,.78);
}
.rk-hs-item b { margin-left: auto; color: #fff; font: 700 13px "Outfit", sans-serif; font-variant-numeric: tabular-nums; }
.rk-dot { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.rk-hs-how { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(246,244,239,.14); }
.rk-hs-how summary {
  display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font: 600 12px "Work Sans", sans-serif; color: var(--gold, #f4b740);
}
.rk-hs-how summary::-webkit-details-marker { display: none; }
.rk-hs-how summary [data-lucide] { width: 14px; height: 14px; }
.rk-hs-how ul { margin: 10px 0 0; padding-left: 18px; }
.rk-hs-how li, .rk-hs-how p {
  margin: 0 0 4px; font: 400 12px/1.55 "Work Sans", sans-serif; color: rgba(246,244,239,.7);
}
.rk-hs-how li b { color: #fff; font: 700 12px "Outfit", sans-serif; }
.rk-hs-how p { margin-top: 8px; }

/* Cabecera simple (vistas sin portada) */
.rk-plainhead { padding: clamp(28px, 4vw, 44px) var(--rk-pad) 0; }
.rk-eyebrow {
  display: block; font: 700 10px/1 "Work Sans", sans-serif;
  text-transform: uppercase; letter-spacing: .18em; color: var(--ink-mute, #9a968b);
}
.rk-plaintitle {
  margin: 10px 0 0;
  font: 800 clamp(1.7rem, 2.8vw, 2.3rem)/1.05 "Outfit", sans-serif;
  letter-spacing: -.035em; color: var(--ink, #16150f);
}
.rk-lead { margin: 6px 0 0; font: 400 14.5px/1.6 "Work Sans", sans-serif; color: var(--ink-soft, #6f6b60); }

/* ---- Barra de control ---- */
.rk-bar-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 16px 0; border-bottom: 1px solid var(--line, #e4e0d6);
}
.rk-periods { display: flex; gap: 8px; flex-wrap: wrap; }
.rk-pill {
  padding: 7px 15px; border: 1px solid var(--line, #e4e0d6); border-radius: 999px;
  background: var(--surface, #fff); color: var(--ink-soft, #6f6b60);
  font: 600 13px "Work Sans", sans-serif; text-decoration: none; white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}
.rk-pill:hover { border-color: var(--line-strong, #d6d1c4); color: var(--ink, #16150f); }
.rk-pill.is-active { background: var(--ink, #16150f); border-color: var(--ink, #16150f); color: #fff; }
.rk-vsep { width: 1px; height: 24px; background: var(--line, #e4e0d6); margin-inline: 6px; }
.rk-seg {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--surface, #fff); border: 1px solid var(--line, #e4e0d6); border-radius: 999px;
}
.rk-seg-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 600 13px "Work Sans", sans-serif; color: var(--ink-soft, #6f6b60);
  transition: background .15s ease, color .15s ease;
}
.rk-seg-item:hover { color: var(--ink, #16150f); }
.rk-seg-item.is-active { background: var(--ink, #16150f); color: #fff; }
.rk-seg-item [data-lucide] { width: 15px; height: 15px; }
.rk-filter-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  min-height: 38px; padding: 0 15px;
  border: 1px solid var(--line, #e4e0d6); border-radius: 999px;
  background: var(--surface, #fff); color: var(--ink-soft, #6f6b60);
  font: 600 13px "Work Sans", sans-serif; cursor: pointer; white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}
.rk-filter-toggle:hover { border-color: var(--line-strong, #d6d1c4); color: var(--ink, #16150f); }
.rk-filter-toggle.is-on { border-color: var(--accent, #b05f44); color: var(--accent, #b05f44); }
.rk-filter-toggle [data-lucide] { width: 15px; height: 15px; }
.rk-filter-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent, #b05f44); }

/* ---- Panel de filtros ---- */
.rk-filters {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding: 14px 16px;
  background: var(--surface, #fff); border: 1px solid var(--line, #e4e0d6); border-radius: 16px;
}
.rk-filters[hidden] { display: none; }
.rk-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1 1 180px; }
.rk-field-label {
  font: 700 9.5px/1 "Work Sans", sans-serif; text-transform: uppercase;
  letter-spacing: .14em; color: var(--ink-mute, #9a968b);
}
.rk-select {
  min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line, #e4e0d6); border-radius: 10px;
  background: var(--bg, #f6f4ef); color: var(--ink, #16150f);
  font: 500 13.5px "Work Sans", sans-serif; cursor: pointer;
}
.rk-select:focus-visible { outline: 2px solid var(--accent, #b05f44); outline-offset: 1px; }
.rk-apply, .rk-clear {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  font: 700 13px "Work Sans", sans-serif; cursor: pointer; text-decoration: none;
}
.rk-apply { border: 0; background: var(--ink, #16150f); color: #fff; }
.rk-apply:hover { background: var(--accent, #b05f44); }
.rk-clear { border: 1px solid var(--line, #e4e0d6); background: var(--surface, #fff); color: var(--ink-soft, #6f6b60); }
.rk-clear:hover { border-color: var(--accent, #b05f44); color: var(--accent, #b05f44); }
.rk-apply [data-lucide], .rk-clear [data-lucide] { width: 14px; height: 14px; }

/* ---- Tarjetas del 2º y 3º ---- */
.rk-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 16px; margin-top: 26px;
}
.rk-card {
  display: grid; grid-template-columns: 132px minmax(0, 1fr);
  background: var(--surface, #fff); border: 1px solid var(--line, #e4e0d6);
  border-radius: 20px; overflow: hidden; text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.rk-card:hover { border-color: var(--line-strong, #d6d1c4); box-shadow: 0 20px 40px -30px rgba(22,21,15,.5); transform: translateY(-2px); }
.rk-card-media { position: relative; background: var(--skeleton, #eeebe5); }
/* Absoluta a propósito: un <img height:100%> en flujo dentro de una caja cuyo
   alto sale de `aspect-ratio` es una dependencia circular, y el navegador la
   rompe usando el alto NATURAL de la imagen. Las verticales estiraban su caja. */
.rk-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;}
.rk-card-rank {
  position: absolute; top: 10px; left: 10px;
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; border: 2px solid #fff;
  font: 800 14px "Outfit", sans-serif;
}
.rk-card-body { padding: 16px 18px; min-width: 0; }
.rk-card-top { display: flex; align-items: center; gap: 8px; min-height: 18px; }
.rk-card-name {
  display: block; margin-top: 8px;
  font: 800 18px/1.2 "Outfit", sans-serif; letter-spacing: -.03em; color: var(--ink, #16150f);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rk-card-src {
  display: block; margin-top: 4px;
  font: 500 12.5px "Work Sans", sans-serif; color: var(--ink-mute, #9a968b);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rk-card .rk-bar { margin-top: 14px; }
.rk-card-foot { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.rk-card-foot > b { font: 800 24px/1 "Outfit", sans-serif; letter-spacing: -.04em; color: var(--ink, #16150f); font-variant-numeric: tabular-nums; }
.rk-card-foot > small {
  font: 600 11px "Work Sans", sans-serif; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-mute, #9a968b);
}
.rk-card-rate { margin-left: auto; }

/* ---- Bloques con título ---- */
.rk-block { margin-top: 40px; }
.rk-block-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink, #16150f);
}
.rk-block-head h2 { margin: 0; font: 800 1.5rem "Outfit", sans-serif; letter-spacing: -.03em; color: var(--ink, #16150f); }
.rk-note { font: 500 12.5px "Work Sans", sans-serif; color: var(--ink-mute, #9a968b); }

/* ---- Tabla "Del 4 al N" ---- */
.rk-table-head, .rk-row {
  display: grid;
  grid-template-columns: 44px 60px minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 88px) 74px;
  gap: 16px; align-items: center;
}
.rk-table-head {
  padding: 10px 6px; border-bottom: 1px solid var(--line, #e4e0d6);
  font: 700 9.5px "Work Sans", sans-serif; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-mute, #9a968b);
}
.rk-table-head .is-right { text-align: right; }
.rk-row {
  padding: 12px 6px; border-bottom: 1px solid var(--line, #e4e0d6);
  text-decoration: none; transition: background .15s ease;
}
.rk-row:hover { background: var(--surface, #fff); }
.rk-row-rank { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.rk-row-rank b {
  font: 800 17px/1 "Outfit", sans-serif; letter-spacing: -.03em;
  color: var(--ink, #16150f); font-variant-numeric: tabular-nums;
}
.rk-row-new {
  flex: 0 0 auto; padding: 2px 7px; border-radius: 999px;
  background: var(--accent-soft, #f4e7df); color: var(--accent-press, #974c33);
  font: 700 9.5px/1.5 "Work Sans", sans-serif; text-transform: uppercase; letter-spacing: .08em;
}
.rk-row-thumb {
  width: 60px; height: 60px; border-radius: 14px; overflow: hidden;
  background: var(--skeleton, #eeebe5); border: 1px solid var(--line, #e4e0d6);
}
.rk-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rk-row-main { min-width: 0; }
.rk-row-main > b {
  display: block; font: 700 15.5px "Outfit", sans-serif; letter-spacing: -.02em; color: var(--ink, #16150f);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rk-row-sub {
  display: flex; align-items: center; gap: 8px; margin-top: 3px; min-width: 0;
  font: 500 12px "Work Sans", sans-serif; color: var(--ink-mute, #9a968b);
}
.rk-row-src { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-row-split { min-width: 0; }
.rk-legend {
  display: block; margin-top: 6px;
  font: 500 10.5px "Work Sans", sans-serif; color: var(--ink-mute, #9a968b);
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rk-row-rate { display: flex; align-items: center; justify-content: flex-end; }
.rk-row-score {
  text-align: right; font: 800 18px "Outfit", sans-serif;
  color: var(--accent, #b05f44); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.rk-rows-empty {
  margin: 18px 0 0; padding: 18px; border: 1px dashed var(--line-strong, #d6d1c4); border-radius: 14px;
  font: 400 13.5px "Work Sans", sans-serif; color: var(--ink-soft, #6f6b60); text-align: center;
}
.rk-more-wrap { display: flex; justify-content: center; padding: 20px 0; }
.rk-more {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border: 1px solid var(--line, #e4e0d6); border-radius: 999px;
  background: var(--surface, #fff); color: var(--ink, #16150f);
  font: 700 13.5px "Work Sans", sans-serif; cursor: pointer;
}
.rk-more:hover { border-color: var(--accent, #b05f44); color: var(--accent, #b05f44); }
.rk-more [data-lucide] { width: 16px; height: 16px; }

/* ---- Mini-tops por categoría ---- */
.rk-minitops {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 14px; margin-top: 18px;
}
.rk-mini {
  background: var(--surface, #fff); border: 1px solid var(--line, #e4e0d6);
  border-radius: 18px; padding: 16px;
  transition: border-color .15s ease, transform .15s ease;
}
.rk-mini:hover { border-color: var(--line-strong, #d6d1c4); transform: translateY(-3px); }
.rk-mini-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rk-mini-top b {
  font: 700 11px "Work Sans", sans-serif; text-transform: uppercase;
  letter-spacing: .14em; color: var(--accent-press, #974c33);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rk-mini-top span { flex: 0 0 auto; font: 500 11px "Work Sans", sans-serif; color: var(--ink-mute, #9a968b); }
.rk-mini-first { display: flex; align-items: center; gap: 12px; margin-top: 14px; text-decoration: none; }
.rk-mini-img {
  width: 56px; height: 56px; flex: 0 0 auto; border-radius: 14px;
  overflow: hidden; background: var(--skeleton, #eeebe5);
}
.rk-mini-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rk-mini-txt { min-width: 0; }
.rk-mini-txt b {
  display: block; font: 800 15px/1.2 "Outfit", sans-serif; letter-spacing: -.02em; color: var(--ink, #16150f);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rk-mini-txt span {
  display: block; margin-top: 2px; font: 500 12px "Work Sans", sans-serif; color: var(--ink-mute, #9a968b);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rk-mini-badge {
  margin-left: auto; flex: 0 0 auto; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold, #f4b740); color: #5c4708; font: 800 12px "Outfit", sans-serif;
}
.rk-mini-rest { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #efece4; }
.rk-mini-rest a {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  font: 500 12px "Work Sans", sans-serif; color: var(--ink-soft, #6f6b60);
}
.rk-mini-rest a:hover { color: var(--accent, #b05f44); }
.rk-mini-rest b { width: 14px; flex: 0 0 auto; font: 700 11px "Outfit", sans-serif; color: var(--ink-mute, #9a968b); }
.rk-mini-rest span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Dos columnas del pie ---- */
.rk-duo {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px; margin-top: 40px; align-items: start;
}
.rk-side { display: grid; gap: 16px; align-content: start; }
.rk-panel {
  background: var(--surface, #fff); border: 1px solid var(--line, #e4e0d6);
  border-radius: 20px; overflow: hidden;
}
.rk-panel > h3 {
  display: flex; align-items: center; gap: 9px; margin: 0; padding: 18px 18px 0;
  font: 800 1rem "Outfit", sans-serif; letter-spacing: -.02em; color: var(--ink, #16150f);
}
.rk-panel > h3 [data-lucide] { width: 17px; height: 17px; color: var(--accent, #b05f44); flex: 0 0 auto; }
.rk-panel-lead { margin: 6px 18px 12px; font: 400 12.5px/1.5 "Work Sans", sans-serif; color: var(--ink-soft, #6f6b60); }
.rk-panel .rk-rows-empty { margin: 0 18px 18px; }
.rk-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line, #e4e0d6);
}
.rk-panel-head h3 {
  display: flex; align-items: center; gap: 9px; margin: 0;
  font: 800 1.05rem "Outfit", sans-serif; letter-spacing: -.025em; color: var(--ink, #16150f);
}
.rk-panel-head [data-lucide] { width: 18px; height: 18px; color: var(--accent, #b05f44); flex: 0 0 auto; }
.rk-panel-row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 14px; align-items: center; padding: 13px 18px;
  border-bottom: 1px solid #efece4; text-decoration: none;
}
.rk-panel-row:last-child { border-bottom: 0; }
.rk-panel-row:hover { background: var(--bg, #f6f4ef); }
.rk-panel-rank { font: 800 15px "Outfit", sans-serif; color: var(--ink-mute, #9a968b); font-variant-numeric: tabular-nums; }
.rk-resto-dishes { min-width: 40px; text-align: right; font: 600 11.5px "Work Sans", sans-serif; color: var(--ink-soft, #6f6b60); }

.rk-panel.is-dark { background: var(--ink, #16150f); border-color: var(--ink, #16150f); color: #f6f4ef; padding: 20px; }
.rk-panel.is-dark > h3 { padding: 0 0 14px; color: #fff; }
.rk-panel.is-dark > h3 [data-lucide] { color: var(--gold, #f4b740); }
.rk-side-empty { margin: 0; font: 400 12.5px/1.5 "Work Sans", sans-serif; color: rgba(246,244,239,.66); }
.rk-move {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-top: 1px solid rgba(246,244,239,.1); text-decoration: none;
}
.rk-move-delta {
  display: inline-flex; align-items: center; gap: 3px; min-width: 44px;
  font: 700 12px "Work Sans", sans-serif; color: #8fbf72; font-variant-numeric: tabular-nums;
}
.rk-move-delta [data-lucide] { width: 13px; height: 13px; }
.rk-move-name {
  flex: 1; min-width: 0; font: 500 13px "Work Sans", sans-serif; color: rgba(246,244,239,.86);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rk-move:hover .rk-move-name { color: #fff; }
.rk-move-src {
  flex: 0 0 auto; max-width: 34%; font: 700 11.5px "Outfit", sans-serif; color: rgba(246,244,239,.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rk-entry {
  display: flex; align-items: center; gap: 11px; margin: 0 18px; padding: 9px 0;
  border-top: 1px solid #efece4; text-decoration: none;
}
.rk-entry:last-child { padding-bottom: 16px; }
.rk-entry-img {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px;
  overflow: hidden; background: var(--skeleton, #eeebe5);
}
.rk-entry-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rk-entry-txt { flex: 1; min-width: 0; }
.rk-entry-txt b {
  display: block; font: 700 13.5px "Outfit", sans-serif; color: var(--ink, #16150f);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rk-entry-txt span { font: 500 11.5px "Work Sans", sans-serif; color: var(--ink-mute, #9a968b); }

/* ---- Vista de restaurantes ---- */
.rk-resto-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto;
  gap: 16px; align-items: center; padding: 14px 6px;
  border-bottom: 1px solid var(--line, #e4e0d6); text-decoration: none;
}
.rk-resto-row:hover { background: var(--surface, #fff); }
.rk-resto-row > .rk-row-rank {
  display: block; font: 800 17px "Outfit", sans-serif; color: var(--ink, #16150f); font-variant-numeric: tabular-nums;
}

/* ---- Vista de degustadores (clases .rk-chef* por compatibilidad) ---- */
.rk-chefs { margin-top: 18px; display: grid; gap: 10px; }
.rk-chef {
  display: grid; grid-template-columns: 34px 52px minmax(0, 1fr) auto;
  gap: 14px; align-items: center; padding: 12px 16px;
  background: var(--surface, #fff); border: 1px solid var(--line, #e4e0d6); border-radius: 16px;
  transition: border-color .15s ease;
}
.rk-chef:hover { border-color: var(--line-strong, #d6d1c4); }
.rk-chef-rank { font: 800 15px "Outfit", sans-serif; color: var(--ink-mute, #9a968b); font-variant-numeric: tabular-nums; }
.rk-chef-av { position: relative; display: block; width: 52px; height: 52px; }
.rk-chef-img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; }
.rk-chef-av.is-medal .rk-chef-img { border: 2.5px solid var(--accent-soft, #f4e7df); }
.rk-chef-medal {
  position: absolute; right: -3px; bottom: -3px;
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #fff; font: 800 10px "Outfit", sans-serif;
}
.rk-chef-av.rk-medal-1, .rk-chef-av.rk-medal-2, .rk-chef-av.rk-medal-3 { background: none; }
.rk-chef-av.rk-medal-1 .rk-chef-medal { background: var(--gold, #f4b740); color: #5c4708; }
.rk-chef-av.rk-medal-2 .rk-chef-medal { background: #c9c3b6; color: #45403a; }
.rk-chef-av.rk-medal-3 .rk-chef-medal { background: #c98a5e; color: #fff; }
.rk-chef-main { min-width: 0; text-decoration: none; }
.rk-chef-main b { display: block; font: 700 15px "Outfit", sans-serif; color: var(--ink, #16150f); }
.rk-chef-main span {
  display: block; margin-top: 2px; font: 500 12px "Work Sans", sans-serif; color: var(--ink-mute, #9a968b);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rk-follow {
  min-height: 34px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line, #e4e0d6); background: var(--surface, #fff);
  color: var(--ink, #16150f); font: 700 12.5px "Work Sans", sans-serif; cursor: pointer;
}
.rk-follow:hover { border-color: var(--accent, #b05f44); color: var(--accent, #b05f44); }
.rk-follow.is-following { background: var(--ink, #16150f); border-color: var(--ink, #16150f); color: #fff; }
.rk-you { font: 600 12px "Work Sans", sans-serif; color: var(--ink-mute, #9a968b); }

/* ---- Vacío general ---- */
.rk-empty {
  margin-top: 32px; padding: clamp(32px, 5vw, 56px) 24px; text-align: center;
  background: var(--surface, #fff); border: 1px solid var(--line, #e4e0d6); border-radius: 20px;
}
.rk-empty-ic {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--accent-soft, #f4e7df); color: var(--accent, #b05f44);
}
.rk-empty-ic [data-lucide] { width: 26px; height: 26px; }
.rk-empty h2 { margin: 0; font: 800 1.3rem "Outfit", sans-serif; letter-spacing: -.03em; color: var(--ink, #16150f); }
.rk-empty p { margin: 8px auto 20px; max-width: 46ch; font: 400 14px/1.6 "Work Sans", sans-serif; color: var(--ink-soft, #6f6b60); }

/* ---- Pie de datos ---- */
.rk-foot-meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line, #e4e0d6);
  font: 500 12.5px "Work Sans", sans-serif; color: var(--ink-mute, #9a968b);
}
.rk-foot-meta b { color: var(--ink, #16150f); font: 700 13px "Outfit", sans-serif; }
.rk-foot-link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font: 700 12.5px "Work Sans", sans-serif; color: var(--accent, #b05f44); text-decoration: none;
}
.rk-foot-link:hover { color: var(--accent-press, #974c33); }
.rk-foot-link [data-lucide] { width: 14px; height: 14px; }

/* =====================================================================
   Responsive. La tabla pierde columnas por orden de importancia: primero
   el reparto (que ya se resume en su leyenda) y luego la nota.
   ===================================================================== */
@media (max-width: 1180px) {
  .rk-table-head, .rk-row { grid-template-columns: 40px 54px minmax(0, 2fr) minmax(0, 74px) 66px; }
  .rk-table-head > span:nth-child(4), .rk-row-split { display: none; }
}
@media (max-width: 900px) {
  .rk-hero-in { gap: 26px; }
  .rk-hero-score { max-width: 520px; }
  .rk-block { margin-top: 32px; }
  .rk-block-head h2 { font-size: 1.3rem; }
}
@media (max-width: 720px) {
  .rk-hero-head { gap: 14px; }
  .rk-hero-num { font-size: clamp(48px, 15vw, 78px); }
  .rk-hero-cta .rk-btn { flex: 1 1 auto; justify-content: center; }
  .rk-bar-row { padding: 12px 0; gap: 8px; }
  .rk-vsep { display: none; }
  /* Una sola fila deslizable en vez de pastillas apiladas: se siente como una app */
  .rk-periods, .rk-seg { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .rk-periods::-webkit-scrollbar, .rk-seg::-webkit-scrollbar { display: none; }
  .rk-seg { justify-content: flex-start; }
  .rk-filter-toggle { margin-left: 0; width: 100%; justify-content: center; }
  .rk-cards { grid-template-columns: 1fr; margin-top: 18px; }
  .rk-card { grid-template-columns: 104px minmax(0, 1fr); }
  .rk-card-name { font-size: 16px; }
  .rk-table-head { display: none; }
  .rk-row { grid-template-columns: 34px 46px minmax(0, 1fr) auto; gap: 10px; padding: 10px 2px; }
  .rk-row-rate { display: none; }
  .rk-row-thumb { width: 46px; height: 46px; border-radius: 11px; }
  .rk-row-main > b { font-size: 14.5px; }
  .rk-row-score { font-size: 16px; }
  .rk-resto-row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
  .rk-resto-row .rk-row-rate { display: flex; }
  .rk-resto-row .rk-resto-dishes { display: none; }
  .rk-chef { grid-template-columns: 26px 44px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .rk-chef-av, .rk-chef-img { width: 44px; height: 44px; }
  .rk-duo, .rk-minitops { grid-template-columns: 1fr; }
  .rk-panel-head { flex-wrap: wrap; gap: 4px 12px; }
  .rk-panel-head .rk-note { flex: 1 0 100%; }

  .rk-foot-link { margin-left: 0; width: 100%; }
}

/* ---- Dropdown custom en los filtros (.ph-select, ver platohub-ui.css) ----
   El <select> nativo queda oculto pero sigue en el form; el trigger hereda la
   forma que tenían aquí los desplegables (rectángulo suave sobre el fondo). */
.rk-field .ph-select { width: 100%; }
.rk-field .ph-select-trigger {
  height: 40px; border-radius: 10px;
  background: var(--bg, #f6f4ef);
  font: 500 13.5px "Work Sans", sans-serif;
}
.rk-field .ph-select-value { overflow: hidden; text-overflow: ellipsis; }

/* ══════════════════════════════════════════════════════════════════════
   MÓVIL · PODIO EN DOS TARJETAS (diseño de la app)
   El 2º y el 3º dejan de ser dos filas apaisadas y pasan a ser dos tarjetas
   verticales una al lado de la otra, con la foto arriba: se leen de un
   vistazo como un podio y no como el principio de la tabla.
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .rk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rk-card { grid-template-columns: minmax(0, 1fr); }
  .rk-card-media { aspect-ratio: 4 / 3; }
  .rk-card-rank { top: 8px; left: 8px; width: 26px; height: 26px; font-size: 13px; }
  .rk-card-body { padding: 11px 12px 13px; }
  .rk-card-name { font-size: 15px; margin-top: 6px; }
  .rk-card-src { font-size: 11.5px; }
  .rk-card .rk-bar { margin-top: 10px; }
  .rk-card-foot { margin-top: 9px; gap: 5px; }
  .rk-card-foot > b { font-size: 18px; }
  .rk-card-foot > small { font-size: 9.5px; letter-spacing: .08em; }
  /* En media columna no cabe la nota junto al puntaje: manda el puntaje, que es
     lo que ordena el ranking. La nota sigue en la ficha del plato. */
  .rk-card-foot .rk-card-rate { display: none; }
  /* La categoría ya va en la fila de arriba; a 180px de ancho, sobra. */
  .rk-card-top { min-height: 0; }
}

/* =====================================================================
   RANKINGS COMO LA APP (php/pages/rankings.php, 21-10-2026)
   Gemela de src/app/(tabs)/rankings.tsx: un carril por categoría y, dentro
   de una, el podio y «Del 4 al N». Clases .yr-*; lo de arriba (.rk-*) se
   queda porque lo usan /temporada (rankings_season.php) y rankings_antes.php.
   ===================================================================== */
.yr { min-width: 0; padding: 32px var(--gutter) 72px; display: grid; gap: 18px; align-content: start; }

/* Cabecera */
.yr-cabecera { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.yr-titulo { margin: 0; font: 800 clamp(30px, 3.4vw, 40px)/1.05 "Outfit", sans-serif; letter-spacing: -0.03em; color: var(--ink); }
.yr-subtitulo { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }
.yr-temporada { margin: 2px 0 0; color: var(--ink-mute); font-size: 13px; }
.yr-batalla {
  display: inline-flex; align-items: center; gap: 6px; flex: none; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font: 700 14px "Work Sans", sans-serif;
}
.yr-batalla:hover { border-color: var(--line-strong); }
.yr-batalla [data-lucide] { width: 16px; height: 16px; color: var(--accent); fill: var(--accent); }

/* Filtros: categoría a la izquierda y fija; los periodos se deslizan */
.yr-filtros { display: flex; align-items: center; gap: 8px; min-width: 0; }
.yr-cat { position: relative; flex: none; }
.yr-cat-pildora {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 16px; max-width: 280px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  font: 700 14px "Work Sans", sans-serif; user-select: none;
}
.yr-cat-pildora::-webkit-details-marker { display: none; }
.yr-cat-pildora span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yr-cat-pildora [data-lucide] { width: 16px; height: 16px; flex: none; transition: transform .2s ease; }
.yr-cat[open] .yr-cat-pildora [data-lucide] { transform: rotate(180deg); }
.yr-cat-pildora.is-on { border-color: var(--ink); }
.yr-cat-pildora:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.yr-cat-panel {
  position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: min(340px, 86vw); max-height: min(70vh, 520px); overflow-y: auto;
  padding: 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 10px 30px -14px rgba(22, 21, 15, 0.28);
}
.yr-cat-fila { display: flex; align-items: center; }
.yr-cat-op {
  flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none;
  font: 600 14.5px "Work Sans", sans-serif;
}
.yr-cat-op:hover { background: var(--surface-dim, #efece4); }
.yr-cat-op.is-on { color: var(--accent-press); background: var(--accent-soft); }
.yr-cat-ic { width: 22px; text-align: center; }
.yr-cat-abrir { width: 34px; height: 34px; flex: none; border: 0; border-radius: 10px; background: none; color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.yr-cat-abrir:hover { background: var(--surface-dim, #efece4); }
.yr-cat-abrir [data-lucide] { width: 16px; height: 16px; transition: transform .2s ease; }
.yr-cat-grupo.is-abierto .yr-cat-abrir [data-lucide] { transform: rotate(180deg); }
.yr-cat-hojas { display: none; flex-wrap: wrap; gap: 6px; padding: 4px 12px 10px 42px; }
.yr-cat-grupo.is-abierto .yr-cat-hojas { display: flex; }
.yr-cat-hoja {
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none;
  font: 600 13px "Work Sans", sans-serif;
}
.yr-cat-hoja:hover { border-color: var(--ink-soft); }
.yr-cat-hoja.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.yr-periodos { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 2px; }
.yr-periodos::-webkit-scrollbar { display: none; }
.yr-periodo {
  flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); text-decoration: none; font: 700 14px "Work Sans", sans-serif;
}
.yr-periodo:hover { color: var(--ink); border-color: var(--line-strong); }
.yr-periodo.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

.yr-vacio { margin: 24px 0 6px; color: var(--ink-soft); font-size: 15px; }

/* Secciones por categoría */
.yr-seccion { display: grid; gap: 10px; margin-top: 10px; min-width: 0; }
.yr-seccion-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; color: inherit; text-decoration: none; }
.yr-seccion-nombre { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.yr-seccion-ic { font-size: 18px; align-self: center; }
.yr-seccion-nombre h2 { margin: 0; font: 700 22px/1.2 "Outfit", sans-serif; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yr-seccion-nombre small { color: var(--ink-soft); font-size: 14px; white-space: nowrap; }
.yr-seccion-ver { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font: 700 14.5px "Work Sans", sans-serif; white-space: nowrap; }
.yr-seccion-ver [data-lucide] { width: 16px; height: 16px; }
.yr-seccion-cab:hover h2 { text-decoration: underline; text-underline-offset: 4px; }

/* El carril: horizontal, sangra por la derecha para que se vea que hay más */
.yr-carril {
  display: grid; grid-auto-flow: column; grid-auto-columns: 210px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-right: calc(var(--gutter) * -1); padding: 2px var(--gutter) 10px 2px; scrollbar-width: thin;
}
.yr-carril > * { scroll-snap-align: start; }
.yr-tarjeta { display: grid; gap: 4px; align-content: start; color: var(--ink); text-decoration: none; min-width: 0; }
.yr-tarjeta-foto { position: relative; display: block; aspect-ratio: 210 / 236; border-radius: 16px; overflow: hidden; background: var(--surface-dim, #efece4); }
.yr-tarjeta-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.yr-tarjeta:hover .yr-tarjeta-foto img { transform: scale(1.04); }
.yr-tarjeta-foto .yr-puesto { position: absolute; top: 10px; left: 10px; }
.yr-tarjeta-foto .y-nota { position: absolute; left: 10px; bottom: 10px; }
.yr-tarjeta strong { margin-top: 6px; font: 700 16px/1.25 "Work Sans", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yr-tarjeta small { color: var(--ink-soft); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* El puesto sobre la foto: tinta al 85 % y el aro del metal (PuestoEnFoto) */
.yr-puesto {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(22, 21, 15, 0.85); border: 1.5px solid rgba(255, 255, 255, 0.45); color: #fff; font: 800 14px "Outfit", sans-serif;
}
.yr-puesto.is-oro { border-color: #f4b740; color: #f4b740; }
.yr-puesto.is-plata { border-color: #cbcdd2; color: #cbcdd2; }
.yr-puesto.is-bronce { border-color: #d9a273; color: #d9a273; }

/* Huecos: el puesto que nadie ocupa todavía */
.yr-hueco {
  display: grid; align-content: center; justify-items: center; gap: 4px; padding: 16px; text-align: center; min-height: 236px;
  border-radius: 16px; border: 1.5px dashed var(--line-strong); color: var(--ink-soft); text-decoration: none;
}
.yr-hueco:hover { background: var(--surface); }
.yr-hueco b { font: 800 28px/1 "Outfit", sans-serif; color: var(--ink-mute); }
.yr-hueco span { font: 600 14px "Work Sans", sans-serif; }
.yr-hueco em { font-style: normal; color: var(--accent); font: 700 13.5px "Work Sans", sans-serif; }
.yr-vermas {
  display: grid; align-content: center; justify-items: center; gap: 6px; width: 120px; min-height: 236px;
  border-radius: 16px; border: 1.5px solid var(--line-strong); color: var(--accent); text-decoration: none;
}
.yr-vermas:hover { background: var(--surface); }
.yr-vermas-aro { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--accent); display: grid; place-items: center; }
.yr-vermas-aro [data-lucide] { width: 18px; height: 18px; }
.yr-vermas b { font: 700 14.5px "Work Sans", sans-serif; }
.yr-vermas small { color: var(--ink-soft); font-size: 12.5px; }

/* Barra de reparto del puntaje (ScoreBar) */
.yr-barra { display: flex; width: 100%; border-radius: 99px; overflow: hidden; background: var(--surface-dim, #efece4); }
.yr-barra > span { display: block; height: 100%; }

/* Dentro de una categoría */
.yr-volver { display: inline-flex; align-items: center; gap: 4px; justify-self: start; color: var(--ink-soft); text-decoration: none; font: 600 14px "Work Sans", sans-serif; }
.yr-volver:hover { color: var(--ink); }
.yr-volver [data-lucide] { width: 16px; height: 16px; }

.yr-lider {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(320px, 42vw, 440px); border-radius: 22px; background: #2a261f; color: #fff; text-decoration: none;
}
.yr-lider > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.yr-lider:hover > img { transform: scale(1.03); }
.yr-lider::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.85) 100%); }
.yr-lider-sello {
  position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  background: rgba(22, 21, 15, 0.85); border: 1px solid #f4b740; color: #f4b740; font: 800 13px "Outfit", sans-serif; letter-spacing: .04em;
}
.yr-lider-sello [data-lucide] { width: 14px; height: 14px; }
.yr-lider-cuerpo { display: grid; gap: 8px; padding: clamp(20px, 3vw, 32px); max-width: 760px; }
.yr-lider-cuerpo strong { font: 800 clamp(28px, 3.4vw, 42px)/1.02 "Outfit", sans-serif; letter-spacing: -0.03em; }
.yr-lider-cuerpo > small { font: 600 13px "Work Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); }
.yr-lider .yr-barra { background: rgba(255, 255, 255, 0.2); margin-top: 4px; }
.yr-lider-pie { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.yr-lider-pie em { font-style: normal; font-size: 13px; color: rgba(255, 255, 255, 0.85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yr-lider-pie b { font: 800 30px "Outfit", sans-serif; font-variant-numeric: tabular-nums; }

.yr-podio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.yr-podio-tarjeta { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.yr-podio-tarjeta:hover { border-color: var(--line-strong); }
.yr-podio-foto { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface-dim, #efece4); }
.yr-podio-foto img { width: 100%; height: 100%; object-fit: cover; }
.yr-podio-foto .yr-puesto { position: absolute; top: 12px; left: 12px; }
.yr-podio-cuerpo { display: grid; gap: 6px; padding: 14px 16px 16px; }
.yr-podio-cuerpo strong { font: 700 18px/1.2 "Outfit", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yr-podio-cuerpo > small { color: var(--ink-mute); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yr-podio-pie { display: flex; align-items: baseline; gap: 6px; }
.yr-podio-pie b { font: 800 22px "Outfit", sans-serif; font-variant-numeric: tabular-nums; }
.yr-podio-pie small { color: var(--ink-mute); font-size: 13px; }
.yr-hueco.is-podio { min-height: 100%; }

.yr-etiqueta { margin: 12px 0 0; font: 700 12px "Work Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.yr-lista { display: grid; }
.yr-fila, .yr-hueco-fila {
  display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.yr-fila:hover { background: var(--surface); }
.yr-num { width: 30px; flex: none; text-align: center; font: 800 16px "Outfit", sans-serif; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.yr-medalla { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid; font: 800 14px "Outfit", sans-serif; color: var(--ink); }
.yr-medalla.is-oro { border-color: #b8891f; background: rgba(244, 183, 64, 0.10); }
.yr-medalla.is-plata { border-color: #8a9096; background: rgba(201, 204, 208, 0.16); }
.yr-medalla.is-bronce { border-color: #a9651f; background: rgba(217, 162, 115, 0.12); }
.yr-fila-foto, .yr-hueco-foto { width: 56px; height: 56px; flex: none; border-radius: 12px; overflow: hidden; background: var(--surface-dim, #efece4); }
.yr-fila-foto img { width: 100%; height: 100%; object-fit: cover; }
.yr-fila-txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.yr-fila-txt strong { font: 700 16px/1.25 "Work Sans", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yr-fila-txt small { color: var(--ink-mute); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yr-fila-txt .yr-barra { max-width: 360px; }
.yr-fila-puntos { font: 800 18px "Outfit", sans-serif; font-variant-numeric: tabular-nums; }
.yr-hueco-fila { margin-top: 10px; border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 12px; }
.yr-hueco-fila:hover { background: var(--surface); }
.yr-hueco-foto { display: grid; place-items: center; color: var(--accent); }
.yr-hueco-foto [data-lucide] { width: 24px; height: 24px; }
.yr-hueco-fila em { font-style: normal; color: var(--accent); font: 700 13.5px "Work Sans", sans-serif; }
.yr-hueco-fila > [data-lucide] { width: 16px; height: 16px; color: var(--ink-mute); flex: none; }

@media (max-width: 768px) {
  .yr { padding: 20px var(--gutter) calc(var(--mnav-h, 58px) + 40px); }
  .yr-cabecera { align-items: flex-start; }
  .yr-carril { grid-auto-columns: 150px; gap: 12px; }
  .yr-tarjeta-foto { aspect-ratio: 150 / 170; }
  .yr-hueco, .yr-vermas { min-height: 170px; }
  .yr-vermas { width: 100px; }
  .yr-podio { gap: 10px; }
  .yr-cat-pildora { max-width: 180px; }
}
