/* ═══════════════════════════════════════════════════════════
   tst-info-panel.css — v1.0
   Panel de Información de Partidos · Hub de Torneos
   Alineado al TST Design System v5.0
   ═══════════════════════════════════════════════════════════ */

/* ── BOTÓN INFO en match cards ── */
.tst-ip-btn {
  margin-left: auto;
  background: none;
  border: 1px solid var(--tst-ink-10);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  font-family: var(--font-headline);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--tst-ink-60);
  transition: all var(--tst-transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.tst-ip-btn:hover {
  border-color: var(--tst-brand);
  color: var(--tst-brand);
  background: var(--tst-brand-light);
}
.tst-ip-btn--active {
  border-color: var(--tst-brand);
  background: var(--tst-brand);
  color: #fff;
}
.tst-ip-btn__icon { font-size: 10px; font-style: normal; }

/* ── MODAL OVERLAY ── */
.tst-ip-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.tst-ip-modal[hidden] { display: none; }

.tst-ip-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.52);
  cursor: pointer;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.tst-ip-modal__box {
  position: relative;
  z-index: 1;
  background: var(--tst-white);
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -4px 48px rgba(0,0,0,.22);
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.tst-ip-modal__close {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,.14);
  border: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--tst-transition);
  touch-action: manipulation;
}
.tst-ip-modal__close:hover { background: rgba(255,255,255,.28); }

/* ── HEADER DEL PANEL ── */
.tst-ip-header {
  background: var(--tst-brand-dark);
  padding: 14px 14px 0;
  flex-shrink: 0;
}

.tst-ip-match-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

/* Bloque jugador */
.tst-ip-player-block {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tst-ip-player-block--away {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

/* Foto */
.tst-ip-photo-wrap {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.18);
  background: var(--tst-brand-mid);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tst-ip-photo-init {
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 900;
  color: rgba(255,255,255,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
}

/* Info del jugador */
.tst-ip-player-info { min-width: 0; }
.tst-ip-player-info--away { text-align: right; }
.tst-ip-player-name {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tst-ip-player-meta {
  font-family: var(--font-headline);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.42);
  margin-top: 2px;
}

/* Centro VS */
.tst-ip-center-col { text-align: center; flex-shrink: 0; }
.tst-ip-vs-badge {
  font-family: var(--font-headline);
  font-size: 10px;
  font-weight: 900;
  color: var(--tst-lime);
  background: rgba(225,250,89,.12);
  border: 1px solid rgba(225,250,89,.2);
  border-radius: 20px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tst-ip-court-label {
  font-family: var(--font-headline);
  font-size: 9px;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 4px;
}

/* Live pulse */
.tst-ip-live-pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tst-live);
  animation: tst-pulse 1.4s ease-in-out infinite;
}
@keyframes tst-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(.8); }
}

/* ── TABS ── */
.tst-ip-tabs-wrap {
  background: var(--tst-brand-dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.tst-ip-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tst-ip-tabs::-webkit-scrollbar { display: none; }

.tst-ip-tab {
  font-family: var(--font-headline);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(200,220,255,.48);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 13px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--tst-transition);
  margin-bottom: -1px;
}
.tst-ip-tab:hover { color: rgba(200,220,255,.85); }
.tst-ip-tab--active { color: #fff; border-bottom-color: var(--tst-lime); }
.tst-ip-live-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--tst-live);
  animation: tst-pulse 1.4s infinite;
  flex-shrink: 0;
}

/* ── BODY / PANES ── */
.tst-ip-body {
  padding: 14px;
  flex: 1;
  overflow-y: auto;
}

/* ── UTILS INTERNOS ── */
.tst-ip-sec {
  font-family: var(--font-headline);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--tst-ink-30);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--tst-ink-10);
  margin: 14px 0 10px;
}
.tst-ip-sec:first-child { margin-top: 0; }

.tst-ip-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 16px;
  font-family: var(--font-headline);
  font-size: 12px;
  color: var(--tst-ink-30);
}
.tst-ip-spinner {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--tst-ink-10);
  border-top-color: var(--tst-brand);
  animation: tst-spin .7s linear infinite;
}
@keyframes tst-spin { to { transform:rotate(360deg); } }

.tst-ip-error {
  font-family: var(--font-headline);
  font-size: 12px;
  color: var(--tst-live);
  text-align: center;
  padding: 28px 16px;
}
.tst-ip-empty {
  font-family: var(--font-headline);
  font-size: 11px;
  color: var(--tst-ink-30);
  padding: 12px 0;
  text-align: center;
}

/* ── H2H ── */
.tst-ip-h2h-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  background: var(--tst-brand-dark);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}
.tst-ip-h2h-side { display: flex; flex-direction: column; gap: 3px; }
.tst-ip-h2h-side--away { text-align: right; align-items: flex-end; }
.tst-ip-h2h-wins {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  line-height: 1;
}
.tst-ip-h2h-wins--lead { color: var(--tst-lime); }
.tst-ip-h2h-pname {
  font-family: var(--font-headline);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.4);
}
.tst-ip-h2h-center { text-align: center; }
.tst-ip-h2h-total {
  font-family: var(--font-headline);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.3);
  margin-bottom: 4px;
}
.tst-ip-h2h-bar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.08); }
.tst-ip-h2h-bar__a { background: var(--tst-lime); }
.tst-ip-h2h-bar__b { background: rgba(255,255,255,.2); }

/* Superficie pills */
.tst-ip-surf-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.tst-ip-surf-pill {
  flex: 1; min-width: 80px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--tst-ink-10);
  background: var(--tst-off-white);
  text-align: center;
}
.tst-ip-surf-pill--clay  { background: #FBF4EE; border-color: #DDBBA0; }
.tst-ip-surf-pill--hard  { background: #EFF5FC; border-color: var(--tst-brand-light); }
.tst-ip-surf-pill--grass { background: #EEF7F1; border-color: #B3D9BB; }
.tst-ip-surf-name {
  font-family: var(--font-headline);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--tst-ink-30);
  margin-bottom: 3px;
}
.tst-ip-surf-pill--clay  .tst-ip-surf-name { color: #8B4513; }
.tst-ip-surf-pill--hard  .tst-ip-surf-name { color: var(--tst-brand); }
.tst-ip-surf-pill--grass .tst-ip-surf-name { color: #2A6B3A; }
.tst-ip-surf-score { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--tst-ink-100); }

/* H2H match rows */
.tst-ip-h2h-list { display: flex; flex-direction: column; }
.tst-ip-h2h-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  padding: 8px 0;
  border-bottom: .5px solid var(--tst-ink-10);
}
.tst-ip-h2h-row:last-child { border-bottom: none; }
.tst-ip-h2h-row__meta {
  font-family: var(--font-headline);
  font-size: 10px;
  color: var(--tst-ink-60);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}
.tst-ip-h2h-row__tourn { font-weight: 700; color: var(--tst-ink-100); }
.tst-ip-h2h-row__round {
  background: var(--tst-paper);
  border: 1px solid var(--tst-ink-10);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}
.tst-ip-h2h-row__year { color: var(--tst-ink-30); margin-left: auto; }
.tst-ip-h2h-row__score { font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.tst-ip-h2h-row__winner { font-family: var(--font-headline); font-size: 11px; font-weight: 700; text-align: right; }
.tst-ip-h2h-row__winner--home { color: var(--tst-brand); }
.tst-ip-h2h-row__winner--away { color: #D86030; }
.tst-ip-h2h-row__dur { font-weight: 400; color: var(--tst-ink-30); font-size: 10px; }

/* ── JUGADORES ── */
.tst-ip-players-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tst-ip-player-card {
  background: var(--tst-off-white);
  border: 1px solid var(--tst-ink-10);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.tst-ip-player-card__head {
  background: var(--tst-brand-dark);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tst-ip-player-card__photo {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.18);
  background: var(--tst-brand-mid);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tst-ip-player-card__info { flex: 1; min-width: 0; }
.tst-ip-player-card__name {
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tst-ip-player-card__country {
  font-family: var(--font-headline);
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,.42);
  margin-top: 2px;
}
.tst-ip-player-card__rk { text-align: right; flex-shrink: 0; }
.tst-ip-player-card__rk-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--tst-lime);
  line-height: 1;
}
.tst-ip-player-card__rk-lbl {
  font-family: var(--font-headline);
  font-size: 8px;
  font-weight: 700;
  color: rgba(225,250,89,.45);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.tst-ip-player-card__body { padding: 10px 12px; }

/* Forma */
.tst-ip-form-label {
  font-family: var(--font-headline);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tst-ink-30);
  margin-bottom: 5px;
}
.tst-ip-form-strip { display: flex; gap: 3px; margin-bottom: 10px; }
.tst-ip-form-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-size: 8px;
  font-weight: 900;
}
.tst-ip-form-dot--w { background: var(--tst-win); color: #fff; }
.tst-ip-form-dot--l { background: var(--tst-paper); color: var(--tst-ink-30); border: 1px solid var(--tst-ink-10); }

/* KV rows */
.tst-ip-kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: .5px solid var(--tst-ink-10);
  font-family: var(--font-headline);
  font-size: 11px;
}
.tst-ip-kv-row:last-child { border-bottom: none; }
.tst-ip-kv-row span { color: var(--tst-ink-60); }
.tst-ip-kv-row b  { font-weight: 800; color: var(--tst-ink-100); font-family: var(--font-mono); font-size: 12px; }
.tst-ip-wl-w { color: var(--tst-win); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.tst-ip-wl-l { color: var(--tst-ink-30); font-family: var(--font-mono); font-size: 12px; }
.tst-ip-wl-sep { color: var(--tst-ink-30); margin: 0 1px; }

/* ── ROAD TO ── */
.tst-ip-road-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tst-ip-road-col-title {
  font-family: var(--font-headline);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--tst-brand);
  margin-bottom: 10px;
}
.tst-ip-road-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 7px 0;
  border-bottom: .5px solid var(--tst-ink-10);
}
.tst-ip-road-row:last-of-type { border-bottom: none; }
.tst-ip-road-rnd {
  font-family: var(--font-headline);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--tst-brand);
  color: #fff;
  flex-shrink: 0;
  margin-top: 1px;
}
.tst-ip-road-rnd--sf { background: var(--tst-lime-dark); color: var(--tst-brand-dark); }
.tst-ip-road-rnd--f  { background: var(--tst-gold); color: var(--tst-brand-dark); }
.tst-ip-road-match-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tst-ip-road-opp { font-family: var(--font-headline); font-size: 12px; font-weight: 700; color: var(--tst-ink-100); }
.tst-ip-road-seed { font-family: var(--font-headline); font-size: 9px; color: var(--tst-ink-30); }
.tst-ip-road-score { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--tst-win); }
.tst-ip-road-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tst-ip-chip {
  font-family: var(--font-headline);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--tst-off-white);
  border: 1px solid var(--tst-ink-10);
  color: var(--tst-ink-60);
}
.tst-ip-chip--seed { background: var(--tst-lime-bg); border-color: var(--tst-lime-dark); color: #5A6A00; }

/* ── RANKING ── */
.tst-ip-rk-simulator {
  background: var(--tst-brand-dark);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tst-ip-rk-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: .5px solid rgba(255,255,255,.07);
}
.tst-ip-rk-row:last-child { border-bottom: none; }
.tst-ip-rk-row__player {
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
}
.tst-ip-rk-row__player--win { color: var(--tst-lime); }
.tst-ip-rk-row__pts {
  font-family: var(--font-headline);
  font-size: 9px;
  color: rgba(255,255,255,.3);
}
.tst-ip-rk-row__rank {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.4);
}
.tst-ip-rk-rank--up { color: var(--tst-win); }
.tst-ip-rk-rank--dn { color: var(--tst-live); }

/* Tabla ranking */
.tst-ip-rk-table { width: 100%; border-collapse: collapse; font-family: var(--font-headline); }
.tst-ip-rk-table th {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--tst-brand);
  background: var(--tst-off-white);
  padding: 7px 10px; text-align: left;
  border-bottom: 1px solid var(--tst-ink-10);
}
.tst-ip-rk-table td { font-size: 12px; padding: 8px 10px; border-bottom: .5px solid var(--tst-ink-10); }
.tst-ip-rk-table tr:last-child td { border-bottom: none; }
.tst-ip-rk-table__row--hl td { background: var(--tst-brand-light); }
.tst-ip-rk-table__pos { font-family: var(--font-mono); color: var(--tst-ink-30); font-weight: 700; }
.tst-ip-rk-table__name { font-weight: 700; }
.tst-ip-rk-table__pts { font-family: var(--font-mono); color: var(--tst-ink-60); }
.tst-ip-rk-table__sep { text-align: center; color: var(--tst-ink-30); font-size: 10px; padding: 4px; }

/* ── PRÓXIMOS ── */
.tst-ip-next-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tst-ip-next-section-title {
  font-family: var(--font-headline);
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--tst-brand);
  margin-bottom: 8px;
}
.tst-ip-next-candidate {
  background: var(--tst-off-white);
  border: 1px solid var(--tst-ink-10);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tst-ip-next-candidate__round {
  font-family: var(--font-headline); font-size: 8px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; color: var(--tst-ink-30);
}
.tst-ip-next-candidate__name {
  font-family: var(--font-headline); font-size: 12px; font-weight: 700; color: var(--tst-ink-100);
}
.tst-ip-next-candidate__name em { font-style: normal; font-weight: 600; color: var(--tst-ink-30); }

/* ── EN VIVO ── */
.tst-ip-live-score {
  background: var(--tst-brand-dark);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.tst-ip-live-badge {
  font-family: var(--font-headline);
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--tst-live);
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 8px;
}
.tst-ip-live-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.tst-ip-live-row:last-of-type { margin-bottom: 0; }
.tst-ip-live-name {
  font-family: var(--font-headline); font-size: 13px; font-weight: 700;
  color: #fff; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tst-ip-live-sets { display: flex; gap: 3px; }
.tst-ip-live-set {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  min-width: 18px; text-align: center;
}
.tst-ip-live-set--w { color: var(--tst-lime); }
.tst-ip-live-set--l { color: rgba(255,255,255,.22); }
.tst-ip-live-game {
  font-family: var(--font-mono); font-size: 18px; font-weight: 900;
  color: #fff; min-width: 30px; text-align: center;
}
.tst-ip-live-game--dim { color: rgba(255,255,255,.28); }
.tst-ip-live-divider { height: .5px; background: rgba(255,255,255,.1); margin: 6px 0; }

/* Stats comparadas */
.tst-ip-stats-list { display: flex; flex-direction: column; gap: 9px; }
.tst-ip-stat-cmp { }
.tst-ip-stat-cmp__label {
  font-family: var(--font-headline); font-size: 10px; font-weight: 600;
  color: var(--tst-ink-60); text-align: center; margin-bottom: 3px;
}
.tst-ip-stat-cmp__vals {
  display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 4px;
}
.tst-ip-stat-cmp__val {
  font-family: var(--font-mono); font-size: 12px; font-weight: 800; color: var(--tst-brand);
}
.tst-ip-stat-cmp__val--h { text-align: right; }
.tst-ip-stat-cmp__val--a { text-align: left; color: var(--surface-clay); }
.tst-ip-stat-cmp__bar {
  display: flex; height: 4px; border-radius: 2px; overflow: hidden; background: var(--tst-paper);
}
.tst-ip-stat-cmp__bar-h { background: var(--tst-brand); }
.tst-ip-stat-cmp__bar-a { background: var(--surface-clay); }

/* Refresh btn */
.tst-ip-refresh-btn {
  display: flex; align-items: center; gap: 5px;
  margin-top: 14px;
  font-family: var(--font-headline); font-size: 10px; font-weight: 700;
  color: var(--tst-brand);
  background: none;
  border: 1px solid var(--tst-brand-light);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all var(--tst-transition);
}
.tst-ip-refresh-btn:hover { background: var(--tst-brand-light); }
.tst-ip-refresh-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── VOTOS ── */
.tst-ip-fav-card {
  background: var(--tst-brand-dark);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.tst-ip-fav-card__icon { font-size: 18px; }
.tst-ip-fav-card__label {
  font-family: var(--font-headline); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.4);
  margin-bottom: 2px;
}
.tst-ip-fav-card__value {
  font-family: var(--font-headline); font-size: 12px; font-weight: 700; color: #fff;
}
.tst-ip-fav-card__value strong { color: var(--tst-lime); }
.tst-ip-fav-card__prob {
  font-family: var(--font-mono); font-size: 20px; font-weight: 700;
  color: var(--tst-lime); margin-left: auto; flex-shrink: 0;
}
.tst-ip-vote-bar { margin-bottom: 14px; }
.tst-ip-vote-bar__strip {
  display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin-bottom: 8px;
}
.tst-ip-vote-bar__h { background: var(--tst-brand); }
.tst-ip-vote-bar__a { background: var(--tst-gold); }
.tst-ip-vote-labels {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-family: var(--font-headline);
}
.tst-ip-vote-name { font-size: 11px; font-weight: 700; color: var(--tst-ink-100); }
.tst-ip-vote-name--away { text-align: right; }
.tst-ip-vote-pct { font-family: var(--font-mono); font-size: 18px; font-weight: 700; }
.tst-ip-vote-pct--h { color: var(--tst-brand); }
.tst-ip-vote-pct--a { color: var(--tst-gold-dark); }

.tst-ip-odds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tst-ip-odds-card {
  background: var(--tst-off-white); border: 1px solid var(--tst-ink-10);
  border-radius: var(--radius-md); padding: 12px; text-align: center;
}
.tst-ip-odds-name {
  font-family: var(--font-headline); font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em; color: var(--tst-ink-30); margin-bottom: 4px;
}
.tst-ip-odds-prob {
  font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--tst-brand);
}
.tst-ip-odds-prob--away { color: var(--tst-gold-dark); }
.tst-ip-odds-cuota { font-family: var(--font-headline); font-size: 10px; color: var(--tst-ink-60); }

/* ── FOOTER ── */
.tst-ip-footer {
  background: var(--tst-off-white);
  border-top: 1px solid var(--tst-ink-10);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}
.tst-ip-footer-cache { font-family: var(--font-headline); font-size: 9px; color: var(--tst-ink-30); }
.tst-ip-footer-source { font-family: var(--font-mono); font-size: 9px; color: var(--tst-ink-30); }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .tst-ip-match-header { grid-template-columns: 1fr auto 1fr; gap: 4px; }
  .tst-ip-player-name { font-size: 12px; }
  .tst-ip-photo-wrap { width: 40px; height: 40px; }
  .tst-ip-players-grid,
  .tst-ip-road-cols,
  .tst-ip-next-cols { grid-template-columns: 1fr; }
  .tst-ip-modal__box { max-height: 96vh; }
  .tst-ip-body { padding: 12px; }
}

@media (min-width: 640px) {
  .tst-ip-modal { align-items: center; }
  .tst-ip-modal__box { border-radius: var(--radius-lg); max-height: 85vh; }
}
