/* ═══════════════════════════════════════════════════════════════════
   Páginas públicas: torneo.php + jugador.php
   Inspirado en chess-results.com pero con la paleta AAPP.
═══════════════════════════════════════════════════════════════════ */

:root {
  --tp-border:   #e5e3de;
  --tp-ink:      #1c1c1b;
  --tp-dim:      #6b6863;
  --tp-gold:     #c9a84c;
  --tp-gold-dk:  #a58633;
  --tp-surface:  #ffffff;
  --tp-soft:     #fafaf9;
  --tp-ok:       #16a34a;
  --tp-err:      #dc2626;
  --tp-info:     #2563eb;
}

.torneo-detail,
.jugador-perfil {
  background: #f8f7f5;
  min-height: 70vh;
}

.tp-back {
  display: inline-block;
  font-size: .82rem;
  color: var(--tp-dim);
  text-decoration: none;
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
  transition: color .15s;
}
.tp-back:hover { color: var(--tp-gold-dk); }

/* ── Hero del torneo ─────────────────────────────────────────── */
.torneo-hero {
  background: linear-gradient(160deg, #1c1d20 0%, #0f1012 100%);
  color: #eee;
  /* reserva el alto del nav fijo arriba para que el título no se pegue a la navbar */
  padding: calc(var(--nav-h, 72px) + 2rem) 2rem 2rem;
  position: relative;
  overflow: hidden;
}
.torneo-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tp-gold), transparent);
}
.torneo-hero .tp-back { color: rgba(255,255,255,.55); }
.torneo-hero .tp-back:hover { color: var(--tp-gold); }
.torneo-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 1rem;
  color: #fff;
  letter-spacing: -.01em;
}
.tp-meta {
  display: flex;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  font-size: .9rem;
  color: rgba(255,255,255,.78);
}
.tp-meta strong {
  color: var(--tp-gold);
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-right: .3rem;
}
.tp-desc {
  margin-top: 1.25rem;
  font-size: .95rem;
  color: rgba(255,255,255,.7);
  max-width: 780px;
  line-height: 1.6;
}

/* ── Tabs horizontales ──────────────────────────────────────── */
.tp-tabs {
  background: var(--tp-surface);
  border-bottom: 1px solid var(--tp-border);
  position: sticky; top: 0;
  z-index: 20;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.tp-tabs .section-inner {
  display: flex;
  gap: .25rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tp-tabs a {
  padding: 1rem 1.25rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--tp-dim);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.tp-tabs a:hover {
  color: var(--tp-ink);
  background: var(--tp-soft);
}
.tp-tabs a.is-active {
  color: var(--tp-gold-dk);
  border-bottom-color: var(--tp-gold);
  font-weight: 600;
}

/* ── Paneles de información ─────────────────────────────────── */
.tp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.tp-panel {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.tp-panel h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--tp-gold-dk);
  text-transform: uppercase;
}
.tp-dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .5rem 1rem;
  font-size: .9rem;
}
.tp-dl dt {
  color: var(--tp-dim);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  align-self: center;
}
.tp-dl dd {
  margin: 0;
  color: var(--tp-ink);
  font-weight: 500;
}
.tp-list {
  margin: 0;
  padding: 0 0 0 1.2rem;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--tp-ink);
}
.tp-list.tp-rondas {
  padding: 0;
  list-style: none;
}
.tp-list.tp-rondas li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 0;
  border-bottom: 1px dashed var(--tp-border);
  font-size: .88rem;
}
.tp-list.tp-rondas li:last-child { border-bottom: none; }
.tp-list.tp-rondas a { margin-left: auto; color: var(--tp-gold-dk); text-decoration: none; font-size: .82rem; }

.tp-estado {
  font-size: .7rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tp-estado.tp-pendiente { background: #f1f0ec; color: var(--tp-dim); }
.tp-estado.tp-en_curso  { background: #fff4d6; color: #92560f; }
.tp-estado.tp-completa  { background: #dcfce7; color: #14532d; }

/* ── Tablas ──────────────────────────────────────────────────── */
.tp-tablewrap {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.tp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.tp-table th,
.tp-table td {
  padding: .7rem .9rem;
  text-align: left;
  vertical-align: middle;
}
.tp-table thead th {
  background: var(--tp-soft);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tp-dim);
  font-weight: 600;
  border-bottom: 1px solid var(--tp-border);
  position: sticky; top: 0;
}
.tp-table tbody tr { border-top: 1px solid var(--tp-border); }
.tp-table tbody tr:first-child { border-top: none; }
.tp-table tbody tr:hover { background: var(--tp-soft); }
.tp-table a { color: var(--tp-gold-dk); text-decoration: none; font-weight: 500; }
.tp-table a:hover { text-decoration: underline; }

/* Pareos: puntos acumulados y resultado centrados */
.tp-table.tp-pareos .tp-pts {
  text-align: center;
  font-weight: 600;
  color: var(--tp-gold-dk);
  font-variant-numeric: tabular-nums;
  background: #faf7ee;
  width: 50px;
}
.tp-table.tp-pareos .tp-res {
  text-align: center;
  font-weight: 700;
  font-family: Georgia, serif;
  letter-spacing: .02em;
}
.tp-table.tp-pareos td:nth-child(3) { /* Blancas */
  text-align: right;
  padding-right: 1rem;
}
.tp-table.tp-pareos td:nth-child(9) { /* Negras */
  text-align: left;
  padding-left: 1rem;
}
.tp-table.tp-pareos th:nth-child(3),
.tp-table.tp-pareos th:nth-child(9) { min-width: 160px; }

/* Cross-table: apretar columnas numéricas */
.tp-table.tp-cross th,
.tp-table.tp-cross td {
  text-align: center;
  padding: .5rem .35rem;
  font-size: .88rem;
  min-width: 34px;
}
.tp-table.tp-cross td:first-child,
.tp-table.tp-cross td:nth-child(2),
.tp-table.tp-cross th:first-child,
.tp-table.tp-cross th:nth-child(2) {
  text-align: left;
  padding-right: .6rem;
}
.tp-table.tp-cross td.tp-self { background: #f5efdc; color: var(--tp-dim); }

/* Navegación de rondas (R1 R2 R3...) */
.tp-rondas-nav {
  display: inline-flex;
  gap: .3rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
  padding: .4rem;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 999px;
}
.tp-rondas-nav a {
  padding: .4rem .85rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--tp-dim);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.tp-rondas-nav a:hover { background: var(--tp-soft); color: var(--tp-ink); }
.tp-rondas-nav a.is-active { background: var(--tp-gold); color: #1c1c1b; }

/* Deltas y badges */
.tp-delta {
  display: inline-block;
  min-width: 30px;
  padding: .15rem .4rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: .82rem;
}
.tp-delta-up   { color: #14532d; background: #dcfce7; }
.tp-delta-down { color: #7f1d1d; background: #fee2e2; }
.tp-delta-zero { color: var(--tp-dim); }

.tp-badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.tp-badge.tp-info { background: #dbeafe; color: #1e3a8a; }
.tp-muted { color: var(--tp-dim); }

.tp-hint {
  color: var(--tp-dim);
  font-size: .82rem;
  margin-top: .75rem;
}

/* ═══════════════════════════════════════════════════════════════════
   Perfil de jugador (jugador.php) — Redesign estilo FIDE + AAPP
═══════════════════════════════════════════════════════════════════ */
.jp-page {
  background: #ecece8;
  min-height: 100vh;
  position: relative;
  /* deja el alto del nav fijo arriba para que los tabs no queden bajo la barra */
  padding: calc(var(--nav-h, 72px) + 1.75rem) 2rem 4rem;
}

/* Páginas sin hero oscuro: forzar estilo "scrolled" permanente en el nav
   para que los links sean visibles contra el fondo claro de la página. */
body.page-compact .site-header {
  background: rgba(247,244,239,.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
body.page-compact .site-header .nav-links a { color: var(--text-sub); }
body.page-compact .site-header .nav-links a:hover,
body.page-compact .site-header .nav-links a.active { color: var(--text) !important; }
body.page-compact .site-header .nav-drop-trigger { color: var(--text-sub); }
body.page-compact .site-header .nav-drop:hover .nav-drop-trigger,
body.page-compact .site-header .nav-drop.active .nav-drop-trigger { color: var(--text); }
body.page-compact .site-header .logo-img { filter: none; }
body.page-compact .site-header .nav-burger span { background: var(--text); }

/* Watermark decorativo: pieza de ajedrez en el borde derecho */
.jp-bg-deco {
  position: absolute;
  right: 0; top: 120px; bottom: 0;
  width: 380px;
  pointer-events: none;
  opacity: .08;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 160'><path fill='%231c1c1b' d='M40 10 L50 10 L50 25 L70 25 L70 10 L80 10 L80 40 L70 50 L70 120 L80 130 L80 150 L40 150 L40 130 L50 120 L50 50 L40 40 Z'/></svg>"),
    repeating-linear-gradient(135deg, rgba(0,0,0,.04) 0 2px, transparent 2px 14px);
  background-size: 240px auto, 100% 100%;
  background-repeat: no-repeat, repeat;
  background-position: center 20px, 0 0;
}

.jp-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 1.75rem;
  position: relative;
  z-index: 1;
}

/* ── Sidebar de identidad ─────────────────────────────────────── */
.jp-side {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 1rem);
  align-self: start;
  max-height: calc(100vh - var(--nav-h, 72px) - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 10px 30px rgba(0,0,0,.05);
}
.jp-side .tp-back {
  margin-bottom: .5rem;
  font-size: .78rem;
}
.jp-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--tp-ink);
  margin: 0 0 .75rem;
  line-height: 1.2;
  letter-spacing: -.005em;
}
.jp-titles-row {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* Foto card */
.jp-photo-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.1rem;
  background: linear-gradient(160deg, #1c1d20 0%, #0a0a0b 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.jp-photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.jp-photo-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #242528 0%, #0f1012 70%);
}
.jp-photo-placeholder span {
  font-family: Georgia, serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--tp-gold);
  letter-spacing: .04em;
  text-shadow: 0 2px 20px rgba(201,168,76,.3);
}
.jp-photo-corner {
  position: absolute;
  top: 0; right: 0;
  width: 56px; height: 56px;
  background:
    linear-gradient(225deg, var(--tp-gold) 0 2px, transparent 2px 100%),
    linear-gradient(225deg, transparent 0 18px, rgba(201,168,76,.35) 18px 20px, transparent 20px);
  pointer-events: none;
}

/* Contenedor de ambos grupos (AAPP + FIDE) */
.jp-rts-wrap {
  border-top: 1px solid var(--tp-border);
  border-bottom: 1px solid var(--tp-border);
  margin-bottom: 1rem;
}
.jp-rts-group {
  padding: .6rem .2rem;
}
.jp-rts-group + .jp-rts-group {
  border-top: 1px solid var(--tp-border);
}
.jp-rts-sys {
  font-size: .55rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tp-gold);
  margin-bottom: .3rem;
  padding-left: .2rem;
}
.jp-rts-group-fide .jp-rts-sys { color: var(--tp-dim); }
.jp-rts-group-fide .jp-rt-icon { color: var(--tp-dim); }
.jp-rts-group-fide .jp-rt-val  { color: var(--tp-dim); font-size: 1.05rem; }

/* 3 chips de rating */
.jp-rts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  padding: .3rem .2rem;
}
.jp-rt {
  text-align: center;
  padding: .2rem 0;
  position: relative;
}
.jp-rt + .jp-rt::before {
  content: '';
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: var(--tp-border);
}
.jp-rt-icon {
  font-size: 1rem;
  color: var(--tp-gold);
  margin-bottom: .1rem;
}
.jp-rt-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tp-ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.jp-rt-lbl {
  font-size: .64rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--tp-dim);
  margin-top: .35rem;
  font-weight: 600;
}

/* Lista identidad */
.jp-id-list {
  margin: 0;
  padding: 0;
}
.jp-id-list > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: .4rem .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--tp-border);
  align-items: baseline;
}
.jp-id-list > div:last-child { border-bottom: none; }
.jp-id-list dt {
  font-size: .68rem;
  color: var(--tp-dim);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  margin: 0;
}
.jp-id-list dd {
  margin: 0;
  font-size: .9rem;
  color: var(--tp-ink);
  font-weight: 500;
}

/* Títulos badges */
.jp-title {
  display: inline-block;
  padding: .25rem .55rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .04em;
}
.jp-title-fide { background: var(--tp-gold); color: #1c1c1b; }
.jp-title-aapp { background: #1c1d20; color: var(--tp-gold); border: 1px solid var(--tp-gold-dk); }

/* ── Main: tabs + contenido ─────────────────────────────────── */
.jp-main {
  min-width: 0;
}

.jp-tabs {
  scroll-margin-top: calc(var(--nav-h, 72px) + .75rem);
  display: flex;
  gap: .35rem;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  padding: .35rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.jp-tabs::-webkit-scrollbar { display: none; }
.jp-tabs a {
  padding: .65rem 1.1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--tp-dim);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: background .15s, color .15s;
  letter-spacing: .01em;
}
.jp-tabs a:hover { color: var(--tp-ink); background: #faf7ee; }
.jp-tabs a.is-active {
  background: linear-gradient(145deg, #1c1d20 0%, #2a2b2e 100%);
  color: var(--tp-gold);
}

/* Secciones dentro del main */
.jp-section {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.jp-section h3 {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  color: var(--tp-gold-dk);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.jp-section-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.jp-section-hd h3 { margin: 0; }

/* Info tab: grid de cards */
.jp-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.jp-info-card {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-left: 4px solid var(--tp-gold);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}
.jp-info-label {
  font-size: .68rem;
  color: var(--tp-dim);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  margin-bottom: .5rem;
}
.jp-info-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--tp-ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
}
.jp-info-val small {
  font-size: .72rem;
  font-weight: 500;
  color: var(--tp-dim);
  letter-spacing: .02em;
}

/* Modalidades detalle (Info tab) */
.jp-mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.jp-mod {
  background: #faf7ee;
  border: 1px solid var(--tp-border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.jp-mod-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .7rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--tp-border);
}
.jp-mod-title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--tp-gold-dk);
  font-weight: 700;
}
.jp-mod-rating {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--tp-ink);
}
.jp-mod-dl {
  margin: 0;
}
.jp-mod-dl > div {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  padding: .25rem 0;
}
.jp-mod-dl dt {
  color: var(--tp-dim);
  font-weight: 500;
  margin: 0;
}
.jp-mod-dl dd {
  margin: 0;
  font-weight: 600;
  color: var(--tp-ink);
  font-variant-numeric: tabular-nums;
}
.jp-mod-progress {
  margin-top: .6rem;
  padding-top: .6rem;
  border-top: 1px dashed var(--tp-border);
}
.jp-mod-bar {
  height: 6px;
  background: #e7e4db;
  border-radius: 3px;
  overflow: hidden;
}
.jp-mod-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--tp-gold-dk), var(--tp-gold));
  transition: width .4s ease;
}
.jp-mod-progress small {
  display: block;
  margin-top: .3rem;
  font-size: .72rem;
  color: var(--tp-dim);
}

/* W/D/L bar */
.jp-wdl-bar {
  display: flex;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--tp-border);
  background: #f0efeb;
}
.jp-wdl-bar span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  min-width: 0;
  transition: flex .4s ease;
}
.jp-wdl-w { background: linear-gradient(145deg, #16a34a, #0d7a36); }
.jp-wdl-t { background: linear-gradient(145deg, #9ca3af, #6b7280); }
.jp-wdl-l { background: linear-gradient(145deg, #dc2626, #991b1b); }
.jp-wdl-legend {
  display: flex;
  gap: 1.25rem;
  margin-top: .75rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--tp-ink);
}
.jp-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: .35rem;
  vertical-align: middle;
}
.jp-dot-w { background: #16a34a; }
.jp-dot-t { background: #9ca3af; }
.jp-dot-l { background: #dc2626; }

/* Stats tab */
.jp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.jp-stat.jp-stat-alt {
  background: #faf7ee;
  border-left-color: var(--tp-gold);
}
.jp-stat-val.jp-stat-v { color: #14532d; }
.jp-stat-val.jp-stat-t { color: #4b5563; }
.jp-stat-val.jp-stat-l { color: #991b1b; }

/* Chips de modalidad en la lista de torneos */
.jp-mod-chip {
  display: inline-block;
  padding: .12rem .5rem;
  border-radius: 999px;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-left: .35rem;
}
.jp-mod-chip.jp-mod-clasico { background: #e5e3de; color: var(--tp-ink); }
.jp-mod-chip.jp-mod-rapido  { background: #fef3c7; color: #7c2d12; }
.jp-mod-chip.jp-mod-blitz   { background: var(--tp-gold); color: #1c1c1b; }

/* ═══════════════════════════════════════════════════════════════════
   Perfil de jugador (jugador.php) — legacy (hero antiguo)
═══════════════════════════════════════════════════════════════════ */
.jp-hero {
  background: linear-gradient(160deg, #1c1d20 0%, #0f1012 100%);
  color: #eee;
  padding: 2.5rem 2rem 2rem;
  position: relative;
}
.jp-hero .tp-back { color: rgba(255,255,255,.55); }
.jp-hero .tp-back:hover { color: var(--tp-gold); }

.jp-head {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.jp-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--tp-gold), var(--tp-gold-dk));
  color: #1c1c1b;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 2rem;
  font-family: Georgia, serif;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.jp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.jp-id h1 {
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin: 0 0 .5rem;
  color: #fff;
}
.jp-meta {
  display: flex;
  gap: .9rem 1.5rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: rgba(255,255,255,.78);
}
.jp-meta strong {
  color: var(--tp-gold);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-right: .25rem;
}
.jp-title {
  display: inline-block;
  background: var(--tp-gold);
  color: #1c1c1b;
  padding: .18rem .5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .05em;
}
.jp-title.jp-title-aapp { background: #1e3a8a; color: #fff; }

.jp-ratings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.jp-rating-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  backdrop-filter: blur(4px);
}
.jp-rating-label {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--tp-gold);
  font-weight: 700;
  margin-bottom: .6rem;
}
.jp-rating-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: .5rem;
}
.jp-rating-sub {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  font-weight: 600;
}
.jp-rating-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-top: .2rem;
}
.jp-rating-val .tp-muted { color: rgba(255,255,255,.4); font-size: .9rem; font-weight: 400; }
.jp-rating-foot {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  padding-top: .6rem;
  border-top: 1px solid rgba(255,255,255,.07);
}

/* Perfil: dos columnas (historial + lista torneos) */
.jp-cols {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(260px, 1fr);
  gap: 2rem;
}
.jp-cols h2 { margin-top: 0; font-size: 1.25rem; }
.jp-torneos-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .6rem;
}
.jp-torneos-list a {
  display: block;
  padding: .8rem 1rem;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--tp-ink);
  transition: border-color .15s, transform .1s;
}
.jp-torneos-list a:hover {
  border-color: var(--tp-gold);
  transform: translateY(-1px);
}
.jp-torneo-meta {
  font-size: .78rem;
  color: var(--tp-dim);
  margin-top: .2rem;
}

.jp-detalle-torneo h2 {
  margin: .5rem 0 1rem;
  font-size: 1.5rem;
  font-family: Georgia, serif;
}
.jp-detalle-torneo .tp-meta {
  color: var(--tp-dim);
  font-size: .88rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.jp-detalle-torneo .tp-meta strong {
  color: var(--tp-gold-dk);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .1em;
  margin-right: .3rem;
}
.jp-detalle-torneo .tp-meta a { color: var(--tp-gold-dk); font-weight: 600; }

/* Stats del jugador en un torneo (Puntos, Puesto, Performance, Δ) */
.jp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.jp-stat {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-left: 4px solid var(--tp-gold);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.jp-stat-label {
  font-size: .68rem;
  color: var(--tp-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .4rem;
}
.jp-stat-val {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--tp-ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.jp-stat-val small {
  display: block;
  font-size: .75rem;
  color: var(--tp-dim);
  font-weight: 500;
  margin-top: .2rem;
  letter-spacing: .02em;
}

/* Tabla detallada de rondas (chess-results style) */
.jp-rd-table {
  font-size: .88rem;
}
.jp-rd-table td, .jp-rd-table th { padding: .6rem .75rem; }
.jp-rd-table tr.jp-rd-bye { background: #fff9ec; }
.jp-rd-table .jp-color-W { color: #2a2a2a; font-size: 1.1rem; }
.jp-rd-table .jp-color-B { color: #0a0a0a; font-size: 1.1rem; font-weight: 700; }
.jp-rd-table td:nth-child(8),
.jp-rd-table th:nth-child(8) { text-align: center; }

/* ═══════════════════════════════════════════════════════════════════
   Listado de torneos (torneos.php)
═══════════════════════════════════════════════════════════════════ */
.torneos-listado { background: #f8f7f5; }

.tl-year {
  font-family: Georgia, serif;
  font-size: 2rem;
  letter-spacing: -.01em;
  color: var(--tp-ink);
  margin: 0 0 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--tp-border);
  position: relative;
}
.tl-year::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 70px; height: 2px;
  background: var(--tp-gold);
}
.tl-year:not(:first-child) { margin-top: 2.5rem; }

.tl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.tl-card {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.tl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  border-color: var(--tp-gold);
}
.tl-card-link {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  align-items: start;
}

.tl-date {
  background: linear-gradient(145deg, #2a2b2e 0%, #17181a 100%);
  color: #fff;
  border-radius: 10px;
  padding: .6rem .5rem;
  text-align: center;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tl-month {
  font-size: .7rem;
  letter-spacing: .15em;
  color: var(--tp-gold);
  font-weight: 700;
}
.tl-day {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  margin-top: .2rem;
  font-family: Georgia, serif;
}
.tl-range {
  font-size: .7rem;
  color: rgba(255,255,255,.55);
  margin-top: .2rem;
}

.tl-body { min-width: 0; }
.tl-title {
  margin: 0 0 .35rem;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--tp-ink);
  font-weight: 600;
  letter-spacing: -.005em;
}
.tl-desc {
  margin: 0 0 .7rem;
  color: var(--tp-dim);
  font-size: .85rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tl-facts {
  display: flex;
  gap: .4rem .9rem;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--tp-dim);
}
.tl-facts span { white-space: nowrap; }

.tl-state {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem;
  min-width: 0;
}
.tl-arrow {
  font-size: 1.4rem;
  color: var(--tp-gold);
  font-weight: 300;
  transition: transform .15s;
}
.tl-card:hover .tl-arrow { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════════════
   Ratings — buscador público (ratings.php)
═══════════════════════════════════════════════════════════════════ */
.ratings-page { background: #f8f7f5; }

.rt-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.2fr auto auto;
  gap: .9rem;
  background: var(--tp-surface);
  padding: 1.25rem;
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  align-items: end;
}
.rt-filter { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.rt-filter label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--tp-dim);
  font-weight: 700;
}
.rt-filter input[type="text"],
.rt-filter input[type="number"],
.rt-filter select {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid var(--tp-border);
  border-radius: 6px;
  font-size: .92rem;
  font-family: inherit;
  background: #fff;
  color: var(--tp-ink);
  transition: border-color .15s, box-shadow .15s;
}
.rt-filter input:focus,
.rt-filter select:focus {
  outline: none;
  border-color: var(--tp-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.18);
}
.rt-range {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.rt-range input { flex: 1; min-width: 0; }
.rt-range span { color: var(--tp-dim); }
.rt-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--tp-ink);
  padding-top: 1.25rem;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.rt-filter-check { flex-direction: row; align-items: center; }
.rt-filter-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
}
.btn-rt-primary {
  padding: .6rem 1.1rem;
  background: var(--tp-gold);
  color: #1c1c1b;
  border: 1px solid var(--tp-gold);
  border-radius: 6px;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn-rt-primary:hover { background: var(--tp-gold-dk); color: #fff; }
.btn-rt-primary:active { transform: translateY(1px); }
.btn-rt-link {
  font-size: .82rem;
  color: var(--tp-dim);
  text-decoration: none;
  padding: .6rem .4rem;
}
.btn-rt-link:hover { color: var(--tp-gold-dk); }

.rt-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .75rem;
  font-size: .9rem;
  color: var(--tp-ink);
  flex-wrap: wrap;
}
.rt-summary strong { color: var(--tp-gold-dk); font-size: 1.1rem; }
.rt-order {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
}
.rt-order label { color: var(--tp-dim); font-weight: 600; }
.rt-order select {
  padding: .4rem .6rem;
  border: 1px solid var(--tp-border);
  border-radius: 6px;
  font-size: .85rem;
  background: #fff;
}

.rt-table .rt-rank {
  font-weight: 700;
  color: var(--tp-dim);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.rt-table .rt-subid {
  font-size: .7rem;
  color: var(--tp-dim);
  letter-spacing: .04em;
  margin-top: .1rem;
}

/* Columnas de rating (3 modalidades + FIDE) */
.rt-table th.rt-col-rt,
.rt-table td.rt-col-rt {
  text-align: center;
  font-variant-numeric: tabular-nums;
  width: 75px;
}
.rt-table th.rt-col-rt { font-weight: 600; }
.rt-table td.rt-col-rt strong {
  font-size: .98rem;
  color: var(--tp-ink);
  font-weight: 700;
}
.rt-table th.rt-col-active,
.rt-table td.rt-col-active {
  background: linear-gradient(180deg, rgba(201,168,76,.10), rgba(201,168,76,.04));
  border-left: 2px solid var(--tp-gold);
  border-right: 2px solid var(--tp-gold);
}
.rt-table th.rt-col-active { color: var(--tp-gold-dk); }
.rt-inprogress {
  font-size: .78rem;
  font-style: italic;
}
.rt-sub { color: var(--tp-dim); font-weight: 400; letter-spacing: 0; text-transform: none; }
.rt-title {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .04em;
}
.rt-title-fide { background: var(--tp-gold); color: #1c1c1b; }
.rt-title-aapp { background: #1e3a8a; color: #fff; }
.rt-club { color: var(--tp-dim); font-size: .88rem; }

.rt-pager {
  display: flex;
  justify-content: center;
  gap: .25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.rt-pager a, .rt-pager .rt-gap {
  padding: .5rem .85rem;
  border-radius: 6px;
  font-size: .85rem;
  text-decoration: none;
  color: var(--tp-ink);
  border: 1px solid var(--tp-border);
  background: var(--tp-surface);
  font-weight: 500;
  transition: background .15s, border-color .15s;
}
.rt-pager .rt-gap { border-color: transparent; background: transparent; color: var(--tp-dim); padding-left: .3rem; padding-right: .3rem; }
.rt-pager a:hover { border-color: var(--tp-gold); color: var(--tp-gold-dk); }
.rt-pager a.is-active {
  background: var(--tp-gold);
  color: #1c1c1b;
  border-color: var(--tp-gold);
  font-weight: 700;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .jp-layout { grid-template-columns: 1fr; }
  .jp-side {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .jp-photo-card { aspect-ratio: 3 / 4; max-height: 420px; }
  .jp-bg-deco { display: none; }

  /* ratings.php: tabla con scroll horizontal */
  .tp-tablewrap .tp-table.rt-table { min-width: 520px; }

  /* summary: stack */
  .rt-summary { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .rt-order { flex-wrap: wrap; }
  .rt-order select { flex: 1; min-width: 0; }
}

@media (max-width: 768px) {
  .torneo-hero, .jp-hero { padding: calc(var(--nav-h, 72px) + 1rem) 1.25rem 1.5rem; }
  .jp-page { padding: calc(var(--nav-h, 72px) + .75rem) .75rem 3rem; }
  .jp-side { padding: 1.2rem; }
  .jp-name { font-size: 1.25rem; }
  .jp-photo-card { aspect-ratio: 3 / 4; max-height: 360px; }
  .jp-photo-placeholder span { font-size: 3.5rem; }
  .jp-id-list > div { grid-template-columns: 90px 1fr; }
  /* Tabs jugador: grid 2×2 */
  .jp-tabs { flex-wrap: wrap; gap: .3rem; padding: .3rem; border-radius: 10px; }
  .jp-tabs a {
    flex: 1 1 calc(50% - .3rem);
    text-align: center;
    padding: .6rem .5rem;
    font-size: .8rem;
    border-radius: 7px;
    white-space: normal;
    line-height: 1.2;
  }
  .jp-section { padding: 1.1rem; }
  .tp-tabs .section-inner { padding: 0 .5rem; }
  .tp-tabs a { padding: .8rem .9rem; font-size: .85rem; }
  .tp-grid { grid-template-columns: 1fr; }
  .jp-cols { grid-template-columns: 1fr; }
  .jp-head { gap: 1rem; }
  .jp-avatar { width: 72px; height: 72px; font-size: 1.5rem; }
  .tp-table th, .tp-table td { padding: .55rem .65rem; font-size: .85rem; }
  .tl-grid { grid-template-columns: 1fr; }
  .tl-card-link { grid-template-columns: 64px 1fr auto; padding: 1rem; gap: .75rem; }
  .tl-date { min-height: 72px; padding: .5rem .4rem; }
  .tl-day { font-size: 1.4rem; }
  .tl-title { font-size: 1rem; }
  .tl-year { font-size: 1.5rem; }
  .tl-arrow { display: none; }

  /* Filtros ratings: 2 columnas */
  .rt-filters {
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
  }
  .rt-filter-search { grid-column: 1 / -1; }
  .rt-filter-range  { grid-column: 1 / -1; }
  .rt-filter-check  { grid-column: 1 / -1; padding-top: 0; }
  .rt-check { padding-top: 0; }
  .rt-filter-actions { grid-column: 1 / -1; }
  .btn-rt-primary { flex: 1; }
  .rt-club { display: none; }
}

@media (max-width: 480px) {
  /* Filtros ratings: 1 columna */
  .rt-filters {
    grid-template-columns: 1fr;
    gap: .6rem;
    padding: 1rem;
  }
  .rt-filter-search,
  .rt-filter-range,
  .rt-filter-check,
  .rt-filter-actions { grid-column: 1; }
  .rt-range { flex-wrap: wrap; gap: .4rem; }
  .rt-range input { min-width: 80px; }
  .rt-filter-actions { flex-direction: row; }
  .btn-rt-primary { flex: 1; }

  /* Tabla ratings: ocultar columnas de menor prioridad en pantallas muy pequeñas */
  .rt-table th:nth-child(3),
  .rt-table td:nth-child(3) { display: none; } /* Título */
  .rt-table th:nth-child(4),
  .rt-table td:nth-child(4) { display: none; } /* FED */

  /* Paginación */
  .rt-pager { gap: .15rem; }
  .rt-pager a, .rt-pager .rt-gap { padding: .45rem .6rem; font-size: .78rem; }

  /* Hero más compacto */
  .torneo-hero h1 { font-size: 1.4rem; }
  .tp-desc { font-size: .88rem; }

  /* Jugador: tabs en columna única en pantallas muy pequeñas */
  .jp-tabs a { flex: 1 1 100%; font-size: .83rem; }

  /* Stats del torneo: 2 cols */
  .jp-stats { grid-template-columns: 1fr 1fr; }

  /* Stats generales: 2 cols */
  .jp-stats-grid { grid-template-columns: 1fr 1fr; }

  /* Tabla de rondas: ocultar columnas menos importantes */
  .jp-rd-table th:nth-child(6),
  .jp-rd-table td:nth-child(6),
  .jp-rd-table th:nth-child(7),
  .jp-rd-table td:nth-child(7),
  .jp-rd-table th:nth-child(12),
  .jp-rd-table td:nth-child(12) { display: none; }

  /* Torneos cards */
  .tl-card-link { grid-template-columns: 56px 1fr; gap: .6rem; }
  .tl-state { display: none; }
  .tl-date { min-height: 64px; padding: .4rem .35rem; }
  .tl-month { font-size: .62rem; }
  .tl-day { font-size: 1.2rem; }
}

/* ── ratings.php · tarjetas sin scroll horizontal (≤640 px) ── */
@media (max-width: 640px) {
  /* Cancelar min-width del breakpoint 900 px */
  .tp-tablewrap .tp-table.rt-table { min-width: 0; }

  .rt-table thead { display: none; }
  .rt-table,
  .rt-table tbody { display: block; width: 100%; }

  /* Cada fila = tarjeta */
  .rt-table tr {
    display: grid;
    grid-template-columns: 28px 1fr 1fr 1fr 1fr;
    grid-auto-rows: auto;
    column-gap: .2rem;
    row-gap: 0;
    border: 1px solid var(--tp-border);
    border-radius: 8px;
    margin-bottom: .45rem;
    padding: .5rem .5rem .45rem;
    background: var(--tp-surface);
  }

  /* Reset de celdas (sobrescribe display:none heredado) */
  .rt-table td {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border: none;
    padding: .1rem 0;
    text-align: left;
    width: auto !important;
    font-size: .85rem;
  }

  /* # — col 1, filas 1-2 */
  .rt-table td:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    color: var(--tp-dim);
  }

  /* Jugador — cols 2-5, fila 1 */
  .rt-table td:nth-child(2) {
    grid-column: 2 / 6;
    grid-row: 1;
    padding-bottom: .15rem;
  }

  /* Título — col 2, fila 2 */
  .rt-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    padding-bottom: .2rem;
  }

  /* FED — col 3, fila 2 */
  .rt-table td:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
    font-size: .78rem;
    color: var(--tp-dim);
    padding-bottom: .2rem;
  }

  /* Ratings — fila 3, una por columna */
  .rt-table td:nth-child(5) { grid-column: 2; grid-row: 3; }
  .rt-table td:nth-child(6) { grid-column: 3; grid-row: 3; }
  .rt-table td:nth-child(7) { grid-column: 4; grid-row: 3; }
  .rt-table td:nth-child(8) { grid-column: 5; grid-row: 3; }

  /* Columnas de rating: centrado + separador superior */
  .rt-table td.rt-col-rt {
    align-items: center;
    text-align: center;
    background: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid var(--tp-border);
    padding-top: .3rem;
    margin-top: .2rem;
  }
  .rt-table td.rt-col-rt strong { font-size: .88rem; }

  /* Etiquetas de modalidad via ::before */
  .rt-table td:nth-child(5)::before { content: 'Cl'; }
  .rt-table td:nth-child(6)::before { content: 'Rp'; }
  .rt-table td:nth-child(7)::before { content: 'Bz'; }
  .rt-table td:nth-child(8)::before { content: 'FIDE'; }

  .rt-table td.rt-col-rt::before {
    font-size: .6rem;
    font-weight: 700;
    color: var(--tp-dim);
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.3;
    display: block;
  }

  /* Columna activa: etiqueta y valor en dorado */
  .rt-table td.rt-col-active::before { color: var(--tp-gold-dk); }
  .rt-table td.rt-col-active strong  { color: var(--tp-gold-dk); }

  /* Club — cols 2-5, fila 4 */
  .rt-table td:nth-child(9) {
    grid-column: 2 / 6;
    grid-row: 4;
    flex-direction: row;
    align-items: center;
    font-size: .78rem;
    color: var(--tp-dim);
    border-top: 1px solid var(--tp-border);
    padding-top: .25rem;
    margin-top: .2rem;
  }
  .rt-table td:nth-child(9)::before {
    content: 'Club:\00a0';
    font-weight: 600;
    font-size: .78rem;
  }
}
