﻿/* === FutDraft Styles (clean) === */
/* Layout */
.wrap { max-width: 1100px; margin: 0 auto; padding: 12px 16px; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #223047;
  background: linear-gradient(180deg, #0b0f1a, #0f1626);
}

.brand { display: flex; gap: 12px; align-items: center; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }

.grid { display: grid; gap: 18px; }

/* Grids */
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-players { grid-template-columns: 340px 1fr; gap: 12px; }
.grid.cols-home-players { grid-template-columns: 340px 1fr; gap: 12px; }
@media (max-width: 980px) {
  .grid.cols-players,
  .grid.cols-home-players { grid-template-columns: 1fr; }
}

.card.compact h3 { margin-bottom: 6px; }
.card.compact label { margin: 6px 0 4px; }
.card.compact input { padding: 6px 8px; font-size: 14px; }
.card.compact .row .btn { padding: 6px 10px; border-radius: 10px; }

label {
  display: block;
  margin: 8px 0 6px 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }


/* === TABLAS GENERALES (todas) === */

/* Contenedores altos (tabla general, base de jugadores, etc.) */
.table-wrap.tall {
  max-height: 70vh;
  overflow: auto;
}

/* Estilos base SOLO para tablas dentro de .table-wrap */
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 100%;
}

.table-wrap th,
.table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid #223047;
  white-space: nowrap;
  text-align: left;
}

/* Cabecera fija, opaca y por encima de las filas */
.table-wrap thead th {
  position: sticky;
  top: 0;
  background: #12203a;   /* mismo tono que las cards */
  z-index: 5;            /* evita que el texto de las filas se "coma" al título */
}

/* Filas tipo "zebra" + hover sutil */
.table-wrap tbody tr:nth-child(even) {
  background: #0f1729;
}

.table-wrap tbody tr:hover {
  background: #131e33;
}


small { color: var(--muted); }

.footer { border-top: 1px solid #223047; }
hr { border: none; border-top: 1px solid #223047; margin: 8px 0; }
.muted { color: #9fb5d8; }

/* Drag & Drop chips */
.columns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 1200px) { .columns { grid-template-columns: 1fr; } }

.col {
  background: #0f1729;
  border: 1px dashed #2a3b5c;
  border-radius: 14px;
  min-height: 200px;
  padding: 10px;
}
.col h4 { margin: 0 0 8px 0; }
.teamA { border-color: #2e6fff55; }
.teamB { border-color: #ff7a2e55; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.columns .chips { max-height: 420px; overflow-y: auto; padding-right: 4px; }
.columns .chips::-webkit-scrollbar { width: 8px; }
.columns .chips::-webkit-scrollbar-thumb { background: #2a3b5c; border-radius: 8px; }
.columns .chips::-webkit-scrollbar-track { background: #0f1729; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #102038;
  border: 1px solid #2a3b5c;
  border-radius: 18px;
  padding: 6px 10px;
}
.chip[draggable="true"] { cursor: grab; }
.chip input[type="number"] { width: 64px; padding: 4px 6px; }
@media (max-width: 800px) { .chip input[type="number"] { width: 56px; } }

.totalBox { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.totalBox input { width: 120px; }

/* Subnav Partidos */
.subnav .btn { padding: 6px 10px; }

/* Brand / logo */
.brand { text-decoration: none; }
.brand .logo {
  width: 40px; height: 40px; object-fit: contain; border-radius: 8px;
}
.brand:hover { filter: brightness(1.06); }

/* Toolbar (buscadores) */
.toolbar { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.toolbar .search { flex: 1; max-width: 360px; }

/* Listas en detalle de partido */
.list { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px 0; }
.list .badge { border-radius: 8px; padding: 8px 10px; font-size: 14px; min-width: 80px; text-align: center; }

/* Encabezado detalle de partido */
.match-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:8px; }
.scoreline{ font-size:42px; font-weight:800; letter-spacing:1px; line-height:1; }
.scoreline small{ display:block; margin-top:6px; font-size:14px; color:#9fb5d8; }
.meta-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.meta{ color:#cfe1ff; }
.meta .label{ color:#9fb5d8; margin-right:4px; }

/* Indicador de tendencia en la Tabla / Goleadores */
.pos { font-weight: 700; margin-right: 6px; }
.pos.up   { color: #16a34a; }
.pos.down { color: #ef4444; }
.pos.same { color: #9fb5d8; }

/* Chips resumén (Más PJ / Más MVP) */
.badge.mini {
  display: inline-flex; align-items: center; padding: 2px 8px; margin-left: 6px;
  border-radius: 999px; border: 1px solid #37527a; background: #0f223d;
  font-size: 12px; color: #cfe1ff;
}

/* Pill ÚNICA (dejar una sola definición) */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  margin-left: 6px;
  border-radius: 999px;
  border: 1px solid #3a5688;
  background: #1a2b4a;
  font-size: 15px;
  font-weight: 600;
  color: #e6f0ff;
}

/* Contador */
.badge .count,
.count {
  margin-left: 6px;
  color: #9fb5d8;
  font-weight: 600;
}

/* Fila de chips en Resumen */
.chip-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px;
}

/* Tabla Partidos: alineado vertical + celdas compactas */
.table-matches td, .table-matches th { vertical-align: middle; }
.fecha-wrap { display: inline-flex; align-items: center; gap: 10px; }

/* Grupo de botones alineados */
.btn-group.nowrap {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; white-space: nowrap;
}

/* Enlaces a jugador/torneo (sin subrayado) */
.player-link { color: #cfe1ff; text-decoration: none; cursor: pointer; font-weight: 600; }
.player-link:hover { color: #80bfff; }

/* Espacios entre bloques de cards */
.card h4 { margin-bottom: 12px; }
.card + .row,
.card .row { margin-top: 14px; margin-bottom: 14px; }

/* === Torneos: nombre estético === */
.tname{
  font-weight: 600;
  color: #e6f0ff;
  display: inline-block;
  padding: 4px 0;
}

input.name-ghost{
  background: transparent;
  border: 1px dashed transparent;
  border-radius: 8px;
  padding: 6px 8px;
  color: #e6f0ff;
  font-weight: 600;
  font-size: 16px;
  width: 100%;
}
input.name-ghost:focus{
  outline: none;
  border-color: #37527a;
  background: #0f1729;
}
/* === INICIO: Estilos especificos para la pagina de Estadisticas === */
.stats-page {
  display: grid;
  gap: 20px;
}
.stats-page .card {
  padding: 22px;
}
.stats-section h3 {
  margin-top: 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.stat-block {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 90px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}
.stat-value {
  font-weight: 600;
  font-size: 1.35rem;
  color: #ffffff;
}
.leaders-grid,
.streaks-grid,
.pairs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.leader-card,
.streak-card,
.pair-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.leader-label,
.streak-label,
.pair-label {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.leader-value,
.streak-value,
.pair-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
}
.leader-players,
.streak-players,
.pair-players {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}
.compare-card {
  padding-top: 18px;
}
.cmp-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.cmp-row input#cmp-input {
  flex: 1;
  min-width: 240px;
}
.cmp-hint {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.cmp-result-header {
  margin-bottom: 10px;
  font-size: 1rem;
}
.cmp-table-wrap {
  overflow-x: auto;
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 320px;
}
.cmp-table th,
.cmp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}
.cmp-table thead th {
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
}
.cmp-table td {
  font-size: 0.95rem;
}
.cmp-table th:first-child,
.cmp-table td:first-child {
  width: 160px;
}
.cmp-errors ul {
  margin: 0;
  padding-left: 20px;
}
.stats-page .leader-table thead th {
  background: rgba(226, 240, 255, 0.08);
  color: #eaf0ff;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.stats-page .leader-table thead th:first-child {
  color: #f9fbff;
}
.stats-page .streaks-pairs-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.stats-page .streaks-block h4,
.stats-page .pairs-block h4 {
  margin: 0 0 6px 0;
  color: #eaf0ff;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stats-page .streak-entry,
.stats-page .pair-entry {
  background: var(--bg-elev);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  color: #eaf0ff;
}
.stats-page .streak-entry-main,
.stats-page .pair-entry-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #ffffff;
}
.stats-page .streak-entry-players,
.stats-page .pair-entry-players {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stats-page .streaks-block,
.stats-page .pairs-block {
  background: transparent;
}
.stats-page .streak-entry-value,
.stats-page .pair-entry-value {
  color: #ffffff;
  font-size: 1.4rem;
  text-align: right;
}
.stats-page .streak-entry-label,
.stats-page .pair-entry-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a8b3c7;
}
.stats-page .streak-entry-players .chip,
.stats-page .pair-entry-players .chip,
.stats-page .streak-entry-players a,
.stats-page .pair-entry-players a {
  color: #dfe9ff;
}
.stats-page .streak-entry-players a:hover,
.stats-page .pair-entry-players a:hover {
  color: #ffffff;
}
@media (max-width: 720px) {
  .stat-grid,
  .leaders-grid,
  .streaks-grid,
  .pairs-grid {
    grid-template-columns: 1fr;
  }
}
/* === FIN: Estilos especificos para la pagina de Estadisticas === */ */
/* === Comparar jugadores: tablas compactas y títulos lindos === */
.cmp-card { padding: 12px 14px; }
.cmp-card h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 600;
}
.cmp-card h4 .vs {
  font-weight: 700;
  opacity: .8;
  margin: 0 6px;
}
.cmp-card h4 .torneo {
  font-weight: 500;
  opacity: .8;
}

.table.compact th, .table.compact td {
  padding: 6px 8px;         /* más compacto */
  vertical-align: middle;
}
.table.compact th {
  white-space: nowrap;
  font-weight: 600;
}
.table.compact td:first-child {
  white-space: nowrap;
}
.table.compact td strong {
  font-weight: 700;
}
/* ===========================
   === UI UPGRADE v1 (2025-09-03)
   === Bloque de overrides estéticos
   =========================== */

/* 1) Variables de color base (tema dark) */
:root{
  --bg: #0c1220;
  --bg-elev: #10192d;
  --stroke: #1e2b45;
  --muted: #9fb7d6;
  --text: #eaf1ff;
  --brand-1: #1f4b99; /* azul base menos saturado */
  --brand-2: #2564d6; /* primario vivo */
  --brand-3: #0f2f6a; /* acento profundo */
  --brand-red: #d63b3b;
  --brand-red-deep: #8f2323;
  --good: #1fb86a;
  --warn: #f6a723;
  --bad:  #ef5d5d;
  --shadow-1: 0 25px 60px rgba(3,8,20,0.65);
  --shadow-2: 0 12px 30px rgba(0,0,0,0.35);
  --radius-1: 14px;
  --radius-2: 22px;
}

/* 2) Tipografía global (usa Inter si está disponible) */
html, body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Helvetica, Arial, sans-serif;
  letter-spacing: 0.1px;
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* 3) Suavizado general y transiciones */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a, .btn, input, select, textarea, .card, table tr {
  transition: all .18s ease-in-out;
}

/* 4) Botones (estados, hover, tamaños, accesibilidad) */
.btn {
  border-radius: var(--radius-1);
  border: 1px solid var(--stroke);
  background: rgba(24, 36, 59, 0.9);
  color: #cfe1ff;
  padding: 10px 14px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}
.btn:not(:disabled):hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}
.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: none;
}

/* Primario con gradiente */
.btn.primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand-1));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 32px rgba(37,99,235,0.35);
}
.btn.primary:hover {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
  box-shadow: 0 16px 36px rgba(29,78,216,0.4);
}

/* Peligro más claro pero sobrio */
.btn.danger {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-deep));
  border-color: transparent;
  color: #ffe4e4;
  box-shadow: 0 10px 24px rgba(214,59,59,0.25);
}
.btn.danger:hover { filter: brightness(1.05); }

/* 5) Cards con más aire y sombra suave */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-2);
  padding: 22px;
  box-shadow: var(--shadow-1);
}
.card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.35;
  margin-bottom: 12px;
}

/* 6) Navegación: activo más marcado */
.nav a {
  border-radius: var(--radius-1);
  font-weight: 600;
  padding: 8px 16px;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease;
}
.nav a:hover {
  background: rgba(255,255,255,0.06);
}
.nav a.active {
  background: rgba(37,99,235,0.15);
  color: #fff;
  border-color: rgba(37,99,235,0.55);
  box-shadow: 0 0 24px rgba(37,99,235,0.25);
}

/* 7) Inputs más legibles */
input, select, textarea {
  background: var(--bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-1);
  padding: 10px 12px;
  color: var(--text);
  width: 100%;
  line-height: 1.4;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
input:focus, select:focus, textarea:focus, .btn:focus, a:focus {
  outline: 2px solid rgba(37,99,235,.55);
  outline-offset: 2px;
}

/* 8) Tablas: hover, zebra y cabecera */
.table-wrap {
  border-radius: var(--radius-1);
  border: 1px solid var(--stroke);
  background: var(--bg);
  box-shadow: var(--shadow-2);
  overflow: auto;
}
table { border-collapse: collapse; }
th, td { font-size: 14.5px; }
thead th {
  background: rgba(255,255,255,0.06);
  font-weight: 700;
}
tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
tbody tr:hover { background: rgba(59,130,246,0.12); }

/* 9) Badges/Chips: micro-ajustes de contraste */
.badge {
  background: #102038;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}
.badge.id {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.badge.label {
  background: #0f223d;
  border-color: #37527a;
  font-weight: 700;
}
.pill {
  background: #1a2b4a;
  border-color: #3a5688;
  color: #e6f0ff;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}
.actions .btn,
.actions a {
  margin: 0;
}

/* 10) Indicadores */
.pos.up   { color: var(--good); }
.pos.down { color: var(--bad); }
.pos.same { color: var(--muted); }

/* 11) Títulos y espaciados */
h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.35px;
}
h3 {
  font-weight: 700;
  font-size: 1.14rem;
  line-height: 1.4;
  margin: 0 0 12px;
}
h3 + .row { margin-top: 8px; }
.card h4 { margin-bottom: 10px; }

/* 12) Chips drag & drop: un poco más "pill" */
.chip {
  border-radius: 999px;
  background: #12223a;
  border-color: #324768;
}
.chip .id { opacity: .7; }

/* 13) Accesibilidad: puntero claro para enlaces funcionales */
.player-link { text-decoration: none; font-weight: 700; }
.player-link:hover { text-decoration: underline; }

/* 14) Ajuste leve en hover de filas de "Partidos" */
.table-matches tbody tr:hover { background: rgba(34,197,94,0.12); } /* leve verde para diferenciar */
/* === Mobile polish === */
@media (max-width: 640px) {
  .wrap { padding: 10px 12px; }
  .nav a, .btn { padding: 8px 10px; }
  th, td { padding: 10px; }
  .card { padding: 16px; }
}

/* ===== Navegación inferior (mobile) ===== */
.mobile-nav {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  background: linear-gradient(180deg, rgba(16,25,44,0.94), rgba(10,14,26,0.98));
  border-top: 1px solid var(--stroke);
  padding: 10px 14px env(safe-area-inset-bottom, 10px);
  z-index: 20;
}
.mobile-nav__item {
  flex: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--stroke);
}
.mobile-nav__item.active {
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37,100,214,0.28);
}
@media (max-width: 720px) {
  .mobile-nav { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; position: fixed; }
  body { padding-bottom: 90px; }
  main.wrap { padding-bottom: 90px; }
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
  #topnav { display: none !important; }
}
@media (min-width: 721px) {
  .mobile-only { display: none !important; }
  #mobile-nav { display: none !important; }
}

/* ===== Cards móviles de torneos ===== */
.tournament-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.t-card {
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.t-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.t-card__title {
  margin: 0 0 6px 0;
  font-size: 17px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.t-card__meta { margin: 0 0 8px 0; color: var(--muted); }
.t-card__status {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
}
.t-card__status.status-live { background: rgba(37,100,214,0.15); color: #cfe1ff; border-color: rgba(37,100,214,0.45); }
.t-card__status.status-final { background: rgba(239,93,93,0.12); color: #ffd6d6; border-color: rgba(239,93,93,0.4); }
.t-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.name-ghost-mobile { margin-bottom: 10px; }

/* ===== Selección de jugadores (partido nuevo) ===== */
.match-card { position: relative; }
.match-meta { gap: 12px; align-items: center; flex-wrap: wrap; }
.field-inline { display: flex; flex-direction: column; gap: 4px; min-width: 180px; }
.team-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 12px; margin: 12px 0; }
.team-summary__box { border: 1px solid var(--stroke); border-radius: 12px; padding: 10px; background: #0f1729; }
.team-summary__label { font-weight: 700; margin-bottom: 8px; }
.team-summary__list { display: flex; flex-direction: column; gap: 8px; }
.summary-chip { border: 1px solid var(--stroke); border-radius: 12px; padding: 8px 10px; background: #111c30; }
.summary-main { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.summary-name { font-weight: 700; }
.summary-badge { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--stroke); background: rgba(255,255,255,0.06); font-weight: 700; }
.summary-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.goal-input { width: 80px; padding: 6px 8px; }
.ghost-btn { background: rgba(255,255,255,0.04); border: 1px solid var(--stroke); color: var(--text); }
.totals-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 10px; margin: 10px 0 6px; }
.player-list { display: flex; flex-direction: column; gap: 10px; }
.player-row { border: 1px solid var(--stroke); border-radius: 12px; padding: 10px; background: #10192d; display: flex; flex-direction: column; gap: 10px; }
.player-info { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.player-name { font-weight: 700; }
.player-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 8px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
}
.status-badge.status-a {
  background: rgba(37,100,214,0.2);
  border-color: rgba(37,100,214,0.45);
  color: #cfe1ff;
}
.status-badge.status-b {
  background: rgba(240,118,58,0.2);
  border-color: rgba(240,118,58,0.45);
  color: #ffe4d5;
}
.status-badge.status-final {
  background: rgba(214,59,59,0.2);
  border-color: rgba(143,35,35,0.5);
  color: #ffe4d5;
}
.selection-feedback { margin-top: 8px; color: var(--text); opacity: 0; transition: opacity .2s ease; font-weight: 600; }
.selection-feedback.visible { opacity: 1; }

@media (max-width: 640px) {
  .player-actions { grid-template-columns: 1fr; }
  .field-inline { width: 100%; }
}



/* ========== INICIO BLOQUE: Landing ========== */
.landing {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.landing-card {
  max-width: 520px;
  text-align: center;
  background: #0f1729;
  border: 1px solid #2a3b5c;
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.landing-logo {
  width: 140px; height: 140px; object-fit: contain;
  border-radius: 24px; margin-bottom: 12px;
}
.landing h1 { font-size: 28px; line-height: 1.25; margin: 4px 0 10px; }
.landing-sub { color: #cfe1ff; opacity: .9; margin: 0 0 18px; }
.landing-ctas { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; }
.btn.btn-lg { padding: 14px 20px; font-size: 16px; border-radius: 14px; }
.cta-red  { background:#b53838; border-color:#c24a4a; color:#fff; }
.cta-blue { background:#2a3b5f; border-color:#35507a; color:#e6f0ff; }
.landing-bullets { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.landing-bullets li { color:#cfe1ff; opacity:.9; }
/* ========== FIN BLOQUE: Landing ========== */
.form-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.form-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  border: 1px solid transparent;
}

.form-win {
  color: #2ecc71;
  border-color: #2ecc71;
}

.form-loss {
  color: #e74c3c;
  border-color: #e74c3c;
}

.form-miss {
  color: #95a5a6;
  border-color: #95a5a6;
}

/* === FIX: Estadísticas (evitar fondos blancos) === */
.stats-page .card,
.stats-page .card.card,
.stats-page .card .card {
  background: var(--bg-elev, #10192d) !important;
  color: var(--text, #eaf1ff) !important;
  border-color: rgba(255,255,255,0.10) !important;
}

.stats-page h3,
.stats-page h4 {
  color: var(--text, #eaf1ff) !important;
}

.stats-page .muted {
  color: var(--muted, #9fb7d6) !important;
}

/* Encabezado tabla Líderes: más legible */
.stats-page .leaders-table thead th {
  color: var(--text, #eaf1ff) !important;
  background: rgba(255,255,255,0.07) !important;
}

/* Chips dentro de Estadísticas (si existen) */
.stats-page .chip,
.stats-page .pill,
.stats-page a.chip,
.stats-page a.pill {
  background: rgba(255,255,255,0.06) !important;
  color: var(--text, #eaf1ff) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
}

.form-draw {
  color: #3498db;
  border-color: #3498db;
}

.pairPills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.pairPill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
}
.pairJoin{
  opacity:.75;
  font-weight:700;
}
