/* ============================================================
   smgr · css/pages/jugadores_comunes.css — JUGADORES EN COMÚN
   Tres modos con la misma piel: índice (selector + parejas
   destacadas + equipos), ficha de equipo y ficha de pareja.
   Tokens en css/tokens.css; componentes base en css/rincon.css.
   ============================================================ */

.jc-title { margin: 0; }
.jc-lead  { max-width: 68ch; margin-top: var(--sp-2); }

/* ---------- Cabecera de pareja: escudo × escudo ---------- */
.jc-hero__teams {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}
.jc-hero__team {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  color: var(--ink); text-decoration: none;
  font-family: var(--score); font-weight: 600; font-size: 17px;
  text-align: center;
}
a.jc-hero__team:hover { color: var(--accent-deep); }
.jc-hero__team .shield { width: 56px; height: 56px; }
.jc-hero__x {
  font-family: var(--score); font-size: 26px; color: var(--muted);
  line-height: 1;
}
.jc-hero .jc-title { text-align: center; }
.jc-hero .jc-lead  { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Tarjetas de resumen ---------- */
.jc-cards {
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.jc-card { padding: var(--sp-4); display: flex; flex-direction: column; gap: 2px; }
.jc-card__k {
  font-family: var(--score); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.jc-card__v {
  font-family: var(--score); font-size: 32px; font-weight: 700;
  color: var(--ink); line-height: 1.1;
}
.jc-card__v--name { font-size: 21px; }
.jc-card__s { font-size: 13px; color: var(--muted); }

/* ---------- Tabla de jugadores ---------- */
.jc-table .jc-th-team {
  text-align: left; white-space: nowrap;
  font-family: var(--score); font-weight: 600;
}
.jc-table .jc-th-team .shield { vertical-align: -4px; margin-right: 4px; }
.jc-table .jc-subhead th {
  font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); font-weight: 600;
}
.jc-table .jc-sep { border-left: 1px solid var(--line); }
.jc-table .jc-temp { white-space: nowrap; font-variant-numeric: tabular-nums; }

.jc-player { display: flex; align-items: center; gap: var(--sp-2); }
.jc-player__ph {
  width: 32px; height: 32px; flex: 0 0 32px;
  border-radius: 50%; object-fit: cover; background: var(--zebra);
}
.jc-player__ph--ini {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--score); font-size: 12px; font-weight: 700;
  color: var(--muted);
}
.jc-player__txt { display: flex; flex-direction: column; line-height: 1.25; }
.jc-player__txt a { color: var(--ink); text-decoration: none; font-weight: 600; }
.jc-player__txt a:hover { color: var(--accent-deep); text-decoration: underline; }
.jc-player__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.jc-pos {
  font-family: var(--score); font-weight: 700; font-size: 11px;
  padding: 0 5px; border-radius: var(--r-pill);
  background: var(--zebra); color: var(--muted);
}

/* Flex y no nowrap: .gamelog td gana en especificidad a un .jc-ruta suelto y los
   escudos acababan uno debajo de otro. */
.jc-table .jc-ruta { display: flex; align-items: center; gap: 3px; flex-wrap: nowrap; }
.jc-ruta__ar { color: var(--muted); }
/* .gamelog fija la primera columna en 52px (pensada para la columna de jornada);
   aquí lleva foto + nombre + posición + bandera. */
.jc-table th.stick-1, .jc-table td.stick-1 { min-width: 200px; width: auto; font-weight: 400; }
.jc-tag {
  display: inline-block; margin-left: 6px;
  font-family: var(--score); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 1px 7px; border-radius: var(--r-pill);
  background: var(--zebra); color: var(--muted);
}
.jc-tag--dir { background: var(--accent-soft); color: var(--accent-deep); }
.jc-nota { margin-top: var(--sp-3); max-width: 70ch; }

/* ---------- Aviso de pareja bloqueada por el mini-juego del día ---------- */
.jc-bloqueo { padding: var(--sp-5); border-left: 4px solid var(--accent); }
.jc-bloqueo__t { margin: 0 0 var(--sp-2); font-size: 20px; }
.jc-bloqueo__btns { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-4) 0 0; }

/* ---------- Formulario del índice ---------- */
.jc-form { margin-top: var(--sp-4); padding: var(--sp-5); }
.jc-form__row {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: flex-end;
}
.jc-form__f { flex: 1 1 220px; display: block; }
.jc-form__label {
  display: block;
  font-family: var(--score); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin-bottom: var(--sp-2);
}
.jc-form select {
  width: 100%; font: inherit; font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r-input);
  background: var(--surface); color: var(--ink);
}
.jc-form select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.jc-form__x {
  font-family: var(--score); font-size: 20px; color: var(--muted);
  padding-bottom: 10px;
}
.jc-form__err { margin: var(--sp-3) 0 0; color: var(--down); font-size: 14px; }

/* ---------- Rejilla de parejas ---------- */
.jc-grid {
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.jc-pair {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  color: var(--ink); text-decoration: none;
}
.jc-pair:hover { background: var(--hover); }
.jc-pair__sh { display: flex; flex: 0 0 auto; }
.jc-pair__sh .shield + .shield { margin-left: -8px; }
.jc-pair__t { flex: 1 1 auto; font-weight: 600; font-size: 14px; line-height: 1.25; }
.jc-pair__n {
  font-family: var(--score); font-size: 22px; font-weight: 700;
  color: var(--accent-deep);
}
.jc-pair--big .jc-pair__t { font-size: 15px; }

/* ---------- Listado de todos los equipos ---------- */
.jc-teams {
  padding: var(--sp-3);
  display: grid; gap: 2px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.jc-teams__i {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 7px var(--sp-3); border-radius: var(--r-input);
  color: var(--ink); text-decoration: none; font-size: 14px;
}
.jc-teams__i:hover { background: var(--hover); color: var(--accent-deep); }

.jc-teamcell { display: flex; align-items: center; gap: var(--sp-2); color: var(--ink); text-decoration: none; font-weight: 600; }
.jc-teamcell:hover { color: var(--accent-deep); text-decoration: underline; }

.jc-empty { padding: var(--sp-5); }
.jc-empty p { margin: 0 0 var(--sp-2); }
.jc-empty p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .jc-card__v { font-size: 26px; }
  .jc-form__x { display: none; }
  .jc-form .btn { flex: 1 1 100%; }
}
