/* Kronos - tema "Velocity Pristine" + animaciones (CSS + JS ligero) */

* { box-sizing: border-box; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

::selection { background: #191c1d; color: #fff; }

/* ── Nav ─────────────────────────────────────────────── */
.nav-blur {
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.nav-blur.scrolled {
  background: rgba(255,255,255,0.92) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}
.nav-link { transition: color 0.2s ease, background 0.2s ease; }
.nav-link:hover { background: #f3f4f5; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  color: #6B7280; transition: color 0.2s ease, background 0.2s ease;
}
.icon-btn:hover { color: #191c1d; background: #f3f4f5; }
.icon-btn:active { transform: scale(0.95); }

.btn-audit {
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 2.25rem; padding: 0 0.75rem; border-radius: 0.5rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 600;
  color: #191c1d; background: #fff; border: 1px solid #cfc4c5;
  transition: color 0.2s ease, background 0.2s ease, transform 0.1s ease;
}
.btn-audit:hover { background: #f3f3f3; border-color: #7e7576; }
.btn-audit:active { transform: scale(0.95); }
.btn-audit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-audit.spinning .material-symbols-outlined { animation: rotate 0.9s linear infinite; }
.spinning .material-symbols-outlined { animation: rotate 0.9s linear infinite; }

.status-dot {
  width: 0.55rem; height: 0.55rem; border-radius: 9999px; background: #d1d5db;
  transition: background 0.3s ease;
}
.status-dot.ok { background: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,0.15); animation: pulse-dot 2s infinite; }
.status-dot.err { background: #B91C1C; }
.status-dot.off { background: #9CA3AF; }
.status-dot.wait { background: #D97706; box-shadow: 0 0 0 3px rgba(217,119,6,0.15); animation: pulse-dot 2s infinite; }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(5,150,105,0.15); }
  50% { box-shadow: 0 0 0 6px rgba(5,150,105,0.05); }
}

/* ── Controles ───────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 0.5rem;
  border: 1px solid #E5E7EB; background: #fff; color: #6B7280;
  font-family: 'Geist', system-ui, sans-serif; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s ease;
}
.pill .material-symbols-outlined { font-size: 1rem; }
.pill:hover { border-color: #191c1d; color: #191c1d; transform: translateY(-1px); }
.pill:active { transform: scale(0.97); }
.pill.active {
  background: #191c1d; color: #fff; border-color: #191c1d;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.chip {
  padding: 0.25rem 0.75rem; border-radius: 0.375rem;
  border: 1px solid #E5E7EB; background: #fff; color: #6B7280;
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  cursor: pointer; transition: all 0.2s ease;
}
.chip:hover { border-color: #191c1d; color: #191c1d; }
.chip:active { transform: scale(0.96); }
.chip.on { background: #191c1d; color: #fff; border-color: #191c1d; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #191c1d; color: #fff; border: 1px solid #191c1d;
  font-weight: 600; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.14); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary .material-symbols-outlined { font-size: 1.1rem; }
.btn-primary.spinning .material-symbols-outlined { animation: rotate 0.9s linear infinite; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  height: 2.25rem; padding: 0 0.9rem; border-radius: 0.5rem;
  background: #fff; color: #191c1d; border: 1px solid #191c1d;
  font-family: 'Geist', system-ui, sans-serif; font-size: 0.8125rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
.btn-secondary:hover { background: #191c1d; color: #fff; }
.btn-secondary:active { transform: scale(0.97); }

@keyframes rotate { to { transform: rotate(360deg); } }

.control-bar {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 0.75rem;
  padding: 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* ── Reveal al entrar ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); animation: fade-in-up 0.6s cubic-bezier(0.22,1,0.36,1) forwards; }
.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }

@keyframes fade-in-up {
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up { animation: fade-in-up 0.45s cubic-bezier(0.22,1,0.36,1) both; }

/* ── Skeletons / shimmer ────────────────────────────── */
.animate-shimmer {
  position: relative; overflow: hidden;
}
.animate-shimmer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.skeleton-card {
  height: 190px; border-radius: 0.5rem; background: #f3f4f5;
  position: relative; overflow: hidden;
}
.skeleton-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);
  animation: shimmer 1.4s infinite;
}

.spinner {
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 2px solid #e1e3e4; border-top-color: #191c1d;
  animation: rotate 0.8s linear infinite; display: inline-block;
}

/* ── Picks cards ────────────────────────────────────── */
.pick-card {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 0.5rem;
  padding: 1.1rem; position: relative; overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s ease, border-color 0.2s ease;
  opacity: 0; transform: translateY(16px);
}
.pick-card.visible { animation: fade-in-up 0.5s cubic-bezier(0.22,1,0.36,1) both; }
.pick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
  border-color: #cbd5d1;
}
.pick-card.tier-top { border-color: rgba(212,160,23,0.55); }
.pick-card.tier-top::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #d4a017, #f0c64a);
}
.pick-card.tier-muy { border-color: rgba(5,150,105,0.4); }
.pick-card.tier-muy::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: #059669;
}
.pick-card.tier-bueno { border-color: rgba(37,99,235,0.3); }
.pick-card.tier-bueno::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: #2563eb;
}
.pick-card.tier-destacado::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: #9CA3AF;
}

.tier-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 0.25rem;
}
.tier-top-badge { background: rgba(212,160,23,0.12); color: #8a6d00; }
.tier-muy-badge { background: rgba(5,150,105,0.1); color: #047857; }
.tier-bueno-badge { background: rgba(37,99,235,0.08); color: #1d4ed8; }
.tier-destacado-badge { background: rgba(0,0,0,0.05); color: #4b5563; }

.prob-big {
  font-family: 'JetBrains Mono', monospace; font-size: 2rem; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1; color: #191c1d;
  font-variant-numeric: tabular-nums;
}
.market-row .m-prob { font-variant-numeric: tabular-nums; }

.strong-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: #059669;
  animation: pulse-dot 1.8s infinite;
}
.strong-dot.gold { background: #d4a017; }

/* ── Tabla / rows expandibles ───────────────────────── */
.game-row { transition: border-color 0.18s ease, box-shadow 0.18s ease; cursor: pointer; }
.game-row.match-card:hover { background: #fff; }
.game-row.open { border-color: #c9cdce; }

.game-row .chevron { transition: transform 0.3s cubic-bezier(0.22,1,0.36,1); }
.game-row.open .chevron { transform: rotate(180deg); }

.markets-panel {
  max-height: 0; overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease;
  opacity: 0;
}
.markets-panel.open { opacity: 1; }

.market-row {
  display: grid; grid-template-columns: 1fr 1.2fr 0.7fr 1.4fr;
  gap: 0.75rem; align-items: center;
  padding: 0.6rem 1rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.85rem;
}
.market-row .m-label { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: #6B7280; }
.market-row .m-pick { font-family: 'Geist', sans-serif; font-weight: 600; color: #191c1d; }
.market-row .m-prob { font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.market-row .m-detail { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: #6B7280; }
.market-row.strong .m-pick { color: #047857; }

.league-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.06em; color: #4b5563;
  background: #f3f4f5; border-radius: 0.25rem; padding: 0.2rem 0.5rem;
}

.team-icon {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: #f3f4f5; display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 600; color: #191c1d;
  flex-shrink: 0;
}
.team-icon.lg { width: 2.75rem; height: 2.75rem; font-size: 0.8rem; }

/* ── Registro de picks ──────────────────────────────── */
.reg-table {
  width: 100%; border-collapse: collapse;
  font-family: 'Geist', system-ui, sans-serif; font-size: 0.8125rem;
}
.reg-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: #fff; text-align: left; white-space: nowrap;
  font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; color: #6B7280;
  padding: 0.65rem 0.9rem; border-bottom: 1px solid #E5E7EB;
}
.reg-table thead th.num, .reg-table td.num { text-align: right; }
.reg-table tbody td {
  padding: 0.6rem 0.9rem; border-bottom: 1px solid #f3f4f6;
  color: #191c1d; vertical-align: middle;
}
.reg-table tbody tr:last-child td { border-bottom: 0; }
.reg-table tbody tr { transition: background 0.15s ease; }
.reg-table tbody tr:hover { background: #f9fafb; }
.reg-table td.num {
  font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.reg-table td.reg-pick { font-weight: 600; }
.reg-table td.reg-muted { color: #6B7280; }

.estado-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.22rem 0.55rem; border-radius: 0.25rem; white-space: nowrap;
}
.estado-badge::before {
  content: ""; width: 4px; height: 4px; border-radius: 9999px;
  background: currentColor; flex-shrink: 0;
}
.estado-ganado { background: rgba(5,150,105,0.10); color: #047857; }
.estado-perdido { background: rgba(185,28,28,0.08); color: #B91C1C; }
.estado-pendiente { background: rgba(212,160,23,0.12); color: #8a6d00; }
.estado-anulado { background: rgba(107,114,128,0.10); color: #4b5563; }

.win-big { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
.win-big.good { color: #059669; }
.win-big.bad { color: #B91C1C; }

/* ── Varios ─────────────────────────────────────────── */
.divider { height: 1px; background: #f3f4f6; }

.text-emerald { color: #059669; }
.text-crimson { color: #B91C1C; }

@media (max-width: 640px) {
  .market-row { grid-template-columns: 1fr 1fr; }
  .market-row .m-detail { grid-column: span 2; }
  .reg-table .col-optional { display: none; }
  .reg-table thead th, .reg-table tbody td { padding: 0.55rem 0.65rem; }
}

/* reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
/* Chips rápidas (Hoy/Mañana/Ayer) — estilo de la maqueta */
.quick-chip {
  padding: 0.25rem 0.625rem; border-radius: 0.25rem;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500;
  color: #4c4546; transition: background 0.2s ease, color 0.2s ease;
}
.quick-chip:hover { background: #f3f3f3; }
.quick-chip.on { background: #e7e8e9; color: #000000; font-weight: 600; }

/* ── Escudos ─────────────────────────────────────────────── */
.crest {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; background: #f3f4f5; overflow: hidden; flex: none;
}
.crest img { width: 100%; height: 100%; object-fit: contain; }
.crest-sm { width: 26px; height: 26px; }
.crest-lg { width: 64px; height: 64px; background: transparent; }
.crest-fallback {
  background: hsl(var(--h, 210) 70% 92%);
  color: hsl(var(--h, 210) 45% 32%);
  font-weight: 700; font-size: 10px; letter-spacing: .02em;
}
.crest-lg.crest-fallback { font-size: 20px; }
.pick-crest { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 14px; }
.pick-crest-name {
  font-size: 12px; font-weight: 600; color: #191c1d; text-align: center;
  line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Selector custom (liga) ─────────────────────────────── */
.dd { position: relative; width: 100%; }
.dd-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  background: #fff; border: 1px solid #d7dadb; border-radius: .6rem; padding: .55rem .75rem;
  font-size: .9rem; color: #191c1d; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease;
}
.dd-btn:hover { border-color: #b9bdbd; }
.dd-btn:focus-visible { outline: 2px solid #191c1d; outline-offset: 2px; }
.dd-caret { transition: transform .2s ease; font-size: 20px; }
.dd.open .dd-caret { transform: rotate(180deg); }
.dd-panel {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; background: #fff;
  border: 1px solid #e3e5e6; border-radius: .75rem; box-shadow: 0 12px 30px rgba(0,0,0,.12);
  opacity: 0; transform: translateY(-6px) scale(.985); pointer-events: none;
  transition: opacity .16s ease, transform .16s ease; overflow: hidden;
}
.dd.open .dd-panel { opacity: 1; transform: none; pointer-events: auto; }
.dd-search-wrap {
  display: flex; align-items: center; gap: .4rem; padding: .5rem .65rem;
  border-bottom: 1px solid #eef0f0; color: #6b7280;
}
.dd-search-wrap .material-symbols-outlined { font-size: 18px; }
.dd-search { border: 0; outline: 0; width: 100%; font-size: .9rem; background: transparent; color: #191c1d; }
.dd-list { max-height: 260px; overflow: auto; padding: .3rem; }
.dd-item {
  display: block; width: 100%; text-align: left; padding: .45rem .6rem; border-radius: .5rem;
  font-size: .88rem; color: #191c1d; background: transparent; border: 0; cursor: pointer;
}
.dd-item:hover { background: #f3f4f5; }
.dd-item.on { background: #191c1d; color: #fff; }
.dd-empty { padding: .75rem; color: #6b7280; font-size: .85rem; }

/* ── Selector de dia (calendario) ───────────────────────── */
#dayPopBtn { padding: .35rem .55rem; }
.day-pop {
  position: absolute; z-index: 40; margin-top: .4rem; background: #fff; border: 1px solid #e3e5e6;
  border-radius: .75rem; box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: .35rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; min-width: 270px;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .16s ease, transform .16s ease;
}
.day-pop.open { opacity: 1; transform: none; pointer-events: auto; }
.day-item {
  padding: .45rem .5rem; border-radius: .5rem; border: 0; background: #f7f8f8;
  font-size: .78rem; cursor: pointer; color: #191c1d; text-transform: capitalize;
}
.day-item:hover { background: #eceeee; }
.day-item.on { background: #191c1d; color: #fff; }

/* ── Barra inferior movil ───────────────────────────────── */
#bottomNav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; justify-content: space-around;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-top: 1px solid #e3e5e6;
  padding: .3rem .4rem calc(.3rem + env(safe-area-inset-bottom));
}
#bottomNav button {
  display: flex; flex-direction: column; align-items: center; gap: .1rem; font-size: .64rem;
  color: #4b5563; background: none; border: 0; padding: .35rem .6rem; border-radius: .6rem;
  min-width: 56px; min-height: 44px; transition: background .15s ease, color .15s ease;
}
#bottomNav button:hover { background: #f3f4f5; color: #191c1d; }
#bottomNav .material-symbols-outlined { font-size: 20px; }
@media (min-width: 768px) { #bottomNav { display: none; } }
@media (max-width: 767px) { body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); } }

/* ── Móvil: compactar todo para ver más ─────────────────── */
/* En PC el diseño se respeta intacto; solo en pantallas pequeñas se
   reduce el aire, se permiten nombres a 2 líneas (antes se cortaban con
   "...") y los picks se aprietan a dos columnas. */
@media (max-width: 767px) {
  /* menos aire general (px-margin son 32px por lado: demasiado en móvil) */
  main { padding: 1rem 12px !important; }
  #heroHeader { margin-bottom: 1.1rem !important; }
  #heroHeader p { font-size: 0.85rem !important; }
  #controlBar { padding: 0.9rem !important; margin-bottom: 1.25rem !important; }
  #controlBar .mt-6 { margin-top: 0.7rem !important; padding-top: 0.7rem !important; }
  header > div { height: 54px !important; }
  #brandLink { font-size: 0.95rem !important; }
  #btnPro { padding: 0.35rem 0.65rem !important; }
  #btnPro .material-symbols-outlined { display: none; }
  #resultsSection > section, #registroSection { margin-bottom: 1.5rem !important; }
  footer > div { padding-top: 0.8rem !important; padding-bottom: 0.8rem !important; }
  .skeleton-card { height: 120px; }
  .pill { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
  #registroSummary > div { padding: 0.6rem !important; }
  #registroSummary .win-big { font-size: 1.15rem !important; }
}

@media (max-width: 640px) {
  /* picks compactos y en dos columnas (una sola en pantallas muy estrechas) */
  #picksGrid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)) !important;
    gap: 0.5rem !important;
  }
  .pick-card { padding: 0.7rem !important; }
  .pick-crest { flex-direction: row !important; align-items: center; gap: 8px; margin-bottom: 8px; }
  .crest-lg { width: 40px !important; height: 40px !important; }
  .crest-lg.crest-fallback { font-size: 12px !important; }
  .pick-crest-name {
    font-size: 11px !important; text-align: left !important;
    white-space: normal !important;
    overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
  .pick-card h3 { font-size: 13px !important; margin-bottom: 4px !important; overflow-wrap: anywhere; }
  .pick-card h3 + p { font-size: 12px !important; margin-bottom: 8px !important; }
  .pick-card .prob-big { font-size: 1.35rem !important; }
  .pick-card .border-t { padding-top: 8px !important; }
  .pick-card .font-label-sm { font-size: 9.5px !important; }

  /* cartelera: filas compactas y nombres completos (máx. 2 líneas) */
  .match-card { padding: 0.7rem 0.8rem; }
  .game-row span.truncate {
    font-size: 13px !important;
    white-space: normal !important;
    overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    min-width: 0;
  }
  .game-row .chevron { font-size: 20px !important; }
  .market-row { font-size: 12px; padding: 0.45rem 0.6rem; gap: 0.5rem; }

  /* registro / resultados del día: tabla más densa */
  .reg-table { font-size: 11.5px; }
  .reg-table thead th, .reg-table tbody td { padding: 0.4rem 0.5rem !important; }
  .reg-table tbody td { overflow-wrap: anywhere; }
  .estado-badge { font-size: 9px; padding: 0.15rem 0.4rem; }
  .win-big { font-size: 1rem; }

  /* paneles emergentes (selector de día) menos anchos */
  .day-pop { min-width: 230px; }
}

/* ── Micro-animaciones y detalle ────────────────────────── */
.pick-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.pick-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.07); }
@media (max-width: 640px) {
  #auditBody, #liveDayResults { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ── Fotos de tenistas ──────────────────────────────────── */
.crest--photo { background: #eef0f1; }
.crest--photo img { object-fit: cover; border-radius: 9999px; }

/* ── Cartelera: tarjetas con aire ───────────────────────── */
.match-card {
  background: #fff; border: 1px solid #e7e9ea; border-radius: .9rem;
  padding: .8rem .95rem; transition: border-color .18s ease, box-shadow .18s ease;
}
.match-card + .match-card { margin-top: .6rem; }
.match-card:hover { border-color: #cfd3d4; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.match-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; cursor: pointer; }
.match-teams { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.match-team { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.match-team .name {
  font-size: 15px; font-weight: 600; color: #191c1d;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.match-team .name.away { font-weight: 500; color: #5f6368; }
.match-meta { display: flex; align-items: center; gap: .5rem; flex: none; }
.league-chip {
  font-size: 10px; color: #5f6368; background: #f1f3f4; padding: .22rem .55rem;
  border-radius: 999px; white-space: nowrap; max-width: 130px;
  overflow: hidden; text-overflow: ellipsis;
}
.match-context {
  margin: .45rem 0 0; font-size: 11px; color: #6b7280;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 480px) {
  .match-team .name { font-size: 14px; }
  .league-chip { max-width: 92px; }
}

/* ── Picks IA experimentales ─────────────────────────────── */
.ai-value-section { border-top: 2px solid #9C41C4; padding-top: 20px; }
.ai-only-mode > section:not(#aiValueSection),
.ai-only-mode > #liveDayResults,
.ai-only-mode > #emptyState { display: none !important; }
.ai-page-hidden { display: none !important; }
.ai-value-badge, .ai-label-value, .ai-label-safe {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.ai-value-badge { color: #8B5CF6; background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.25); }
.ai-value-disclaimer { margin: -5px 0 14px; color: #6B7280; font-size: 11px; }
.ai-value-card { background: #fff; border: 1px solid #D8C5E7; border-radius: .65rem; padding: 1rem; box-shadow: 0 4px 16px rgba(80,35,105,.08); }
.ai-value-head { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:9px; }
.ai-label-value { color:#7C3AED; background:#F3E8FF; border:1px solid #DDD6FE; }
.ai-label-safe { color:#047857; background:#ECFDF5; border:1px solid #A7F3D0; }
.ai-score { color:#7C3AED; font-family:'JetBrains Mono',monospace; font-size:10px; font-weight:700; }
.ai-value-meta { color:#6B7280; font-family:'JetBrains Mono',monospace; font-size:9px; text-transform:uppercase; letter-spacing:.04em; }
.ai-value-card h3 { color:#191c1d; font-size:15px; line-height:1.3; font-weight:700; margin:8px 0; }
.ai-pick-line { color:#4B5563; font-size:13px; margin:0 0 12px; }
.ai-pick-line strong { color:#7C3AED; }
.ai-numbers { display:grid; grid-template-columns:repeat(4,1fr); gap:5px; border-top:1px solid #EDE7F2; padding-top:10px; }
.ai-numbers span { display:flex; flex-direction:column; gap:3px; }
.ai-numbers small { color:#6B7280; font-family:'JetBrains Mono',monospace; font-size:8px; }
.ai-numbers b { color:#191c1d; font-family:'JetBrains Mono',monospace; font-size:13px; }
.ai-numbers span:nth-child(3) b { color:#7C3AED; }
.ai-explanation, .ai-factors, .ai-risks { font-size:11px; line-height:1.45; margin:10px 0 0; }
.ai-explanation { color:#4B5563; }
.ai-factors { color:#047857; }
.ai-risks { color:#B45309; }
@media (max-width:640px) { .ai-numbers b { font-size:11px; } .ai-value-card { padding:.75rem; } }
