:root {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #171b21;
  --surface-alt: #1b2029;
  --border: rgba(255,255,255,0.10);
  --text-primary: #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted: #898781;
  --accent: #9085e9;
  --accent-soft: rgba(144,133,233,0.16);
  --accent-border: rgba(144,133,233,0.4);
  --accent-text: #cfc9fb;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text-primary);
  font-family: var(--font-body);
}
a { color: var(--accent); }
h1, h2, h3 { color: #fff; margin: 0; font-family: var(--font-display); font-weight: 600; }
button { font-family: inherit; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ── Cabecera común ── */
.site-header {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.site-header h1 { font-size: 17px; }
.site-header .meta { color: #666; font-size: 12px; }
.site-header .back { color: #888; font-size: 12px; text-decoration: none; margin-right: 6px; }
.site-header .back:hover { color: #ccc; }
.site-header .spacer { flex: 1; }
.site-header .nav-link {
  color: var(--accent-text); font-size: 12px; text-decoration: none; border: 1px solid var(--accent-border);
  background: var(--accent-soft); padding: 6px 12px; border-radius: 999px;
}
.site-header .nav-link:hover { background: var(--accent-soft); }

/* ── Página de inicio: lista de partidos ── */
.home-wrap { max-width: 920px; margin: 0 auto; padding: 28px 20px 60px; }
.home-wrap p.intro { color: #888; font-size: 13px; margin: 0 0 22px; }
.team-search {
  display: block; width: 100%; max-width: 320px; margin: 0 0 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  color: #e0e0e0; font-size: 13px; padding: 9px 12px; font-family: inherit;
}
.team-search::placeholder { color: #666; }
.team-search:focus { outline: none; border-color: var(--accent); }
.channel-groups { display: flex; flex-direction: column; gap: 30px; }
.channel-title {
  font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--accent-text); letter-spacing: .04em; text-transform: uppercase;
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.match-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; text-decoration: none; color: inherit; transition: border-color .15s;
}
.match-card:hover { border-color: var(--accent); }
.match-card .name { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.match-card .sub { color: #888; font-size: 12px; margin-bottom: 10px; }
.match-card .figures { display: flex; gap: 14px; color: #666; font-size: 11px; }
.match-card .figures b { color: var(--accent-text); }
.empty-state { color: #666; font-size: 13px; text-align: center; padding: 60px 20px; }

/* ── App de partido / estadísticas combinadas ── */
.app-layout { display: flex; min-height: calc(100vh - 53px); }
.app-main { flex: 1; min-width: 0; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.app-sidebar {
  width: 400px; flex-shrink: 0; border-left: 1px solid var(--border); display: flex; flex-direction: column;
  min-height: calc(100vh - 53px); position: sticky; top: 0;
}

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.panel-title { color: #aaa; font-family: var(--font-display); font-size: 13px; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.panel-title-row .panel-title { margin-bottom: 0; }
.zone-clear-btn { background: none; border: none; color: var(--accent-text); font-size: 11px; cursor: pointer; padding: 2px 0; text-transform: none; letter-spacing: normal; }
.zone-clear-btn:hover:not(:disabled) { color: var(--accent-text); text-decoration: underline; }
.zone-clear-btn:disabled { color: #444; cursor: default; }

/* ── Selector de puesto: navegación principal, un puesto a la vez ── */
.position-select { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 10px; margin-bottom: 18px; }
.pos-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 15px;
  text-align: left; cursor: pointer; color: inherit; font-family: inherit; transition: border-color .12s, background .12s;
}
.pos-card:hover { border-color: var(--text-muted); }
.pos-card.active { border-color: var(--accent); background: var(--accent-soft); }
.pos-card .pos-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.pos-card .pos-figures { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.pos-card.active .pos-figures { color: var(--text-secondary); }
.pos-card:disabled { cursor: not-allowed; opacity: .4; }
.pos-card:disabled:hover { border-color: var(--border); }

/* ── Secciones de panel colapsables ── */
.panel-collapse-btn {
  background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 11px;
  padding: 2px 4px; transition: transform .15s; font-family: inherit;
}
.panel-collapse-btn:hover { color: var(--text-secondary); }
.panel[data-collapsed] .panel-body { display: none; }
.panel[data-collapsed] .panel-collapse-btn { transform: rotate(-90deg); }

.stat-headline { display: flex; gap: 22px; flex-wrap: wrap; }
.stat-headline .figure { display: flex; flex-direction: column; }
.stat-headline .figure .n { color: var(--accent); font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-headline .figure .l { color: #888; font-size: 12px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }

.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; cursor: pointer; border-radius: 6px; padding: 2px 4px; }
.bar-row:hover { background: #222; }
.bar-row.active { background: var(--accent-soft); }
.bar-row .label { color: #ccc; font-size: 12px; width: 150px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .track { flex: 1; background: rgba(255,255,255,0.06); border-radius: 4px; height: 13px; overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--accent); border-radius: 4px; }
.bar-row .n { color: #888; font-size: 11px; width: 24px; text-align: right; flex-shrink: 0; }
.bar-empty { color: #555; font-size: 12px; }

.zone-svg { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto; }
.zone-svg .zone-shape { cursor: pointer; }
.zone-svg .zone-shape:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.goal-svg { max-width: 260px; }

/* ── Filtros ── */
.filters { display: flex; flex-direction: column; gap: 10px; }
.filters .search-row { display: flex; gap: 10px; align-items: center; }
.filters .search-row input {
  flex: 1; background: var(--surface); border: 1px solid #333; border-radius: 6px;
  color: #e0e0e0; padding: 7px 10px; font-size: 13px; outline: none;
}
.filters .clear-btn {
  background: transparent; border: 1px solid #333; color: #999; border-radius: 6px;
  padding: 7px 12px; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.filters .clear-btn:hover { border-color: #666; color: #ccc; }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-group .group-label { color: #666; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; width: 100%; margin-top: 2px; }
.chip {
  background: var(--surface-alt); border: 1px solid #333; color: #ccc; border-radius: 999px;
  padding: 4px 12px; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: #555; }
.chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }

/* ── Lista de cortes + reproductor (barra lateral) ── */
.clip-search { padding: 10px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.clip-search input {
  width: 100%; background: var(--surface); border: 1px solid #333; border-radius: 6px;
  color: #e0e0e0; padding: 7px 10px; font-size: 13px; outline: none; box-sizing: border-box;
}
.clip-count { color: #666; font-size: 11px; padding: 8px 12px 0; }
.clip-list { flex: 1; overflow-y: auto; min-height: 160px; }
.clip-row {
  padding: 8px 12px; border-bottom: 1px solid var(--surface-alt); cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
}
.clip-row:hover { background: var(--surface); }
.clip-row.active { background: var(--accent-soft); }
.clip-row .top { display: flex; align-items: center; gap: 8px; }
.clip-row .time { color: #666; font-size: 11px; font-family: monospace; min-width: 40px; }
.clip-row .type { font-weight: 600; font-size: 12px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-row .outcome { color: #888; font-size: 11px; }
.clip-row .sub { color: #666; font-size: 11px; font-family: monospace; padding-left: 16px; }
.clip-row .unplayable { color: #7a5a2a; font-size: 10px; padding-left: 16px; }
.badge { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 2px; flex-shrink: 0; }

.player-wrap { aspect-ratio: 16 / 9; background: #000; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.player-wrap iframe { width: 100%; height: 100%; border: none; }
.placeholder { color: #444; font-size: 13px; text-align: center; padding: 30px 16px; }
.detail { padding: 14px 18px; border-top: 1px solid var(--border); flex-shrink: 0; }
.detail .title { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.detail .row2 { color: #999; font-size: 12px; margin-bottom: 4px; }
.detail a.open-link { font-size: 12px; text-decoration: none; }
.detail a.open-link:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .app-layout { flex-direction: column; }
  .app-sidebar { width: 100%; position: static; min-height: 60vh; border-left: none; border-top: 1px solid var(--border); }
}

/* ── Filtro desplegable multi-selección (estilo Looker Studio) ── */
.dd-filter { position: relative; display: inline-block; }
/* Mismo motivo que .dd-filter-panel[hidden] más abajo: sin esto, el
   display:inline-block de arriba pisa al atributo hidden (misma
   especificidad, y el nuestro va después) y un filtro que se oculta según
   el modo (p.ej. "Con amago" fuera de 7 metros) se quedaría siempre visible. */
.dd-filter[hidden] { display: none; }
.dd-filter-btn {
  background: var(--surface-alt); border: 1px solid var(--border); color: var(--text-secondary); border-radius: 999px;
  padding: 7px 14px; font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.dd-filter-btn:hover { border-color: #555; }
.dd-filter-btn.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.dd-filter-btn::after { content: '▾'; color: #666; font-size: 10px; }
.dd-filter-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; width: 260px;
  background: var(--surface-alt); border: 1px solid #383838; border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5); padding: 8px; display: flex; flex-direction: column; gap: 4px;
}
/* Sin esto, el "display: flex" de arriba pisa al atributo hidden (misma
   especificidad que el display:none del navegador, y gana el nuestro por ir
   después) — el panel se quedaría siempre visible aunque hidden esté puesto. */
.dd-filter-panel[hidden] { display: none; }
.dd-filter-search {
  background: #111; border: 1px solid #333; border-radius: 5px; color: #e0e0e0;
  padding: 6px 9px; font-size: 12px; outline: none; margin-bottom: 4px;
}
.dd-filter-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 5px;
  cursor: pointer; font-size: 12px; color: #ddd; position: relative;
}
.dd-filter-row:hover { background: var(--border); }
.dd-filter-row input[type=checkbox] { flex-shrink: 0; cursor: pointer; }
.dd-filter-row-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-filter-allrow { border-bottom: 1px solid #333; border-radius: 0; padding-bottom: 8px; margin-bottom: 2px; color: #999; }
.dd-filter-only {
  display: none; flex-shrink: 0; background: var(--accent-border); color: var(--accent-text); border: none;
  border-radius: 4px; padding: 2px 7px; font-size: 10px; font-weight: 600; letter-spacing: .02em; cursor: pointer;
}
.dd-filter-row:hover .dd-filter-only { display: inline-block; }
.dd-filter-list { max-height: 260px; overflow-y: auto; }
.dd-filter-empty { color: #555; font-size: 12px; padding: 10px 6px; text-align: center; }
.dd-filter-row-group { font-weight: 600; padding-left: 2px; }
.dd-filter-row-child { padding-left: 42px; }
.dd-filter-row-child .dd-filter-row-label { color: #bbb; }
.dd-filter-expand {
  background: none; border: none; color: #888; cursor: pointer; font-size: 10px;
  width: 14px; flex-shrink: 0; padding: 0; text-align: center;
}
.dd-filter-row-grouplabel { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; cursor: pointer; }

/* ── Leyenda y gráficos SVG (comparativas, etc.) ── */
.chart-legend { display: flex; gap: 16px; margin-bottom: 10px; }
.chart-legend-item { display: inline-flex; align-items: center; gap: 6px; color: #c3c2b7; font-size: 12px; }
.chart-legend-swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.player-chart-svg { width: 100%; height: auto; display: block; }
.zone-bubble-svg, .goal-zone-svg { width: 100%; max-width: 400px; height: auto; display: block; margin: 0 auto; }

/* ── Zona de lanzamiento y zona de portería: una al lado de la otra si caben,
   apiladas si no — mismo ancho, así se ven del mismo tamaño. ── */
.zones-row { display: flex; flex-wrap: wrap; gap: 16px; }
.zones-row > .panel { flex: 1 1 320px; min-width: 280px; }

/* ── Gráficos interactivos: pulsar un elemento filtra el resto de la página ── */
.player-bar-group, .zone-bubble-clickable, .goal-cell-clickable, .position-bar-group { cursor: pointer; }

/* ── Tabla de detalle de lanzamientos ── */
.detail-table-wrap { max-height: 480px; overflow: auto; }
.detail-table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.detail-table th {
  position: sticky; top: 0; background: var(--surface); text-align: left; color: #888;
  font-size: 11px; text-transform: uppercase; letter-spacing: .03em; padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.detail-table th.sortable { cursor: pointer; user-select: none; }
.detail-table th.sortable:hover { color: #ccc; }
.detail-table td { padding: 7px 10px; border-bottom: 1px solid #222; color: #ccc; }
.detail-table tbody tr:hover { background: var(--surface-alt); }
.detail-table td.is-gol { color: #0ca30c; font-weight: 600; }
.detail-table td.is-parada { color: #898781; }
/* Portero: semántica invertida respecto a jugadores — una parada es el éxito. */
.detail-table td.is-good { color: #0ca30c; font-weight: 600; }
.detail-table td.is-bad { color: #d03b3b; font-weight: 600; }
.detail-table-empty { color: #555; }
.video-link {
  background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent-text); border-radius: 999px;
  padding: 3px 10px; font-size: 11px; cursor: pointer; white-space: nowrap;
}
.video-link:hover { background: var(--accent-soft); }

/* ── Modal del reproductor de vídeo ── */
.video-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box;
}
.video-modal-overlay[hidden] { display: none; }
@media (max-width: 640px) {
  /* En móvil el margen fijo de 20px le resta ancho útil al vídeo — aquí
     interesa más aprovechar la pantalla que dejar aire alrededor. */
  .video-modal-overlay { padding: 8px; }
}
/* Pantallas bajas (típicamente el móvil en horizontal): a ancho completo el
   vídeo 16:9 + cabecera no cabían en el alto disponible y tocaba hacer
   scroll para verlo entero. Aquí se ancla al alto disponible (bar con su
   tamaño fijo, el resto se lo lleva .video-modal-body) y el ancho del vídeo
   se calcula a partir de ese alto vía aspect-ratio, no al revés. Aquí
   también, JS mueve .video-modal-info dentro de .video-modal-frame (ver
   placeInfoBlock en canal.html): con los toggles ya en la misma fila que
   Anterior/Siguiente hay sitio de sobra para superponerla al vídeo, que es
   justo donde no estorba en horizontal. */
@media (max-height: 500px) {
  .video-modal-overlay { padding: 6px; }
  .video-modal { width: auto; max-width: 100%; height: 100%; overflow: hidden; display: flex; flex-direction: column; }
  .video-modal-bar { flex: 0 0 auto; }
  .video-modal-body { flex: 1 1 auto; min-height: 0; }
  .video-modal-frame { flex: 1 1 auto; min-height: 0; width: auto; max-width: 100%; height: 100%; align-self: center; }
}
.video-modal {
  /* Antes se podía arrastrar el borde para agrandarlo (hasta 1400px, con el
     ancho recordado entre visitas) porque 900px se quedaba corto — ahora
     directamente abre más grande por defecto y no hace falta redimensionar
     a mano. */
  width: 100%; max-width: 1100px; background: var(--surface); border-radius: 10px; position: relative;
  /* En móvil apaisado (poca altura) el vídeo a 16:9 + cabecera + info puede
     no caber en la pantalla — sin este límite y su scroll, el contenido se
     salía por arriba/abajo del todo y ni el botón de cerrar quedaba
     alcanzable. */
  max-height: 100%; overflow: hidden auto;
}
.video-modal-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; padding: 8px 12px; background: var(--surface);
  position: sticky; top: 0; z-index: 2; /* siempre alcanzable aunque el resto scrollee */
}
.video-modal-nav { display: flex; gap: 6px; }
.video-modal-navbtn {
  background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent-text); border-radius: 999px;
  padding: 4px 10px; font-size: 11px; cursor: pointer; white-space: nowrap;
}
.video-modal-navbtn:hover:not(:disabled) { background: var(--accent-soft); }
.video-modal-navbtn:disabled { opacity: .35; cursor: default; }
.video-modal-close {
  background: none; border: none; color: var(--text-muted); font-size: 16px; cursor: pointer;
  padding: 4px 8px; line-height: 1; border-radius: 999px;
}
.video-modal-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); }
/* Botones-icono compactos (antes checkboxes con su texto entero al lado, en
   su propia fila — ahora viven en la misma fila que Anterior/Siguiente,
   para no gastar una fila entera solo en esto). El texto completo sigue
   disponible como title. */
.video-modal-toggles { display: flex; gap: 6px; }
.video-modal-icontoggle {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 999px; width: 30px; height: 30px; font-size: 14px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.video-modal-icontoggle[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-text); }
.video-modal-icontoggle:disabled { opacity: .35; cursor: default; }
.video-modal-frame { position: relative; aspect-ratio: 16 / 9; background: #000; flex-shrink: 0; }
.video-modal-frame iframe, .video-modal-frame > div { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
/* Vídeo propio (R2), alternativa al iframe de YouTube cuando el corte lo
   tiene — ver openVideoModal. object-fit:contain porque, a diferencia del
   iframe de YouTube (que ya ajusta su propio contenido), aquí es el propio
   elemento <video> el que hay que encajar sin recortar. */
.video-modal-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; border: none; object-fit: contain; background: #000; cursor: pointer; }
/* Más específico que la regla genérica de arriba (".video-modal-frame >
   div", pensada para el reproductor a pantalla completa) para que no se la
   lleve por delante y la deje también a pantalla completa — eso es
   justamente lo que pasó al quitar este prefijo en el primer intento: la
   miniatura de portería se estiraba a ocupar todo el vídeo. */
.video-modal-frame > .video-modal-goalzone-overlay {
  position: absolute; top: auto; left: auto; right: 10px; bottom: 10px;
  width: 84px; height: auto;
  background: rgba(10,10,10,0.72); border-radius: 6px; padding: 4px;
  pointer-events: none; z-index: 1;
}
.video-modal-goalzone-overlay svg { display: block; width: 100%; height: auto; }
.video-modal-body { display: flex; flex-direction: column; min-height: 0; }
/* Por defecto (retrato): bloque normal, debajo del vídeo — superpuesta
   tapaba más jugada de la que aportaba en pantallas estrechas. */
.video-modal-info {
  padding: 10px 16px 12px; background: var(--surface);
  display: flex; flex-direction: column; gap: 4px;
}
.video-modal-info[hidden] { display: none; }
/* JS la mueve aquí dentro en apaisado (placeInfoBlock, canal.html): overlay
   real sobre el vídeo — mismo motivo de especificidad que la zona de
   portería un poco más arriba, para ganarle a la regla genérica de
   ".video-modal-frame > div" (pantalla completa) en vez de que se la lleve
   por delante. */
.video-modal-frame > .video-modal-info {
  position: absolute; left: 0; right: 0; bottom: 0; top: auto; height: auto;
  background: rgba(8,9,12,0.72);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 1;
}
.video-modal-info-line { color: var(--text-primary); font-size: 15px; line-height: 1.4; }
.video-modal-info-line.video-modal-info-context { color: var(--text-secondary); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.result-pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; flex-shrink: 0;
  /* Gris neutro por defecto — p.ej. "Fuera" en la pestaña de Portero no es
     ni éxito ni fallo del portero, así que no lleva modificador de color. */
  background: rgba(255,255,255,0.08); color: var(--text-secondary);
}
.result-pill.gol, .result-pill.good { background: rgba(12,163,12,0.16); color: #4fd37a; }
.result-pill.parada { background: rgba(57,135,229,0.16); color: #7bb1ef; }
.result-pill.fuera { background: rgba(217,89,38,0.16); color: #f0906a; }
.result-pill.bad { background: rgba(208,59,59,0.16); color: #f27a7a; }
