/* ══ Frecuencia Boca — stream.css ══
   Placas del stream en el sitio (tabla, goleadores, próximos, copas) y
   piezas del partido del Match Center (.st-mc, al final).
   Recrea el look de los segmentos del vertical del stream (pill dorada,
   título dorado en FixtureCondensed, filas en cajas translúcidas, Boca en
   oro) adaptado a web: ancho fluido, mobile desde 360px y sin scroll
   horizontal de la página (la tabla tiene su propio overflow-x).
   Las fuentes Fixture son las @font-face de style.css (assets/fonts).
   Lo arma js/stream.js; lo usa la Task 14 en home y Match Center. */

:root {
  /* Identidad del stream (manda sobre la del sitio si difieren; hoy
     coinciden con --azul, --azul-mid y --amarillo de style.css). */
  --st-azul:      #06163A;
  --st-azul-mid:  #0B234C;
  --st-amarillo:  #F5BB00;
  --st-v:         #2AC400;
  --st-e:         #F5BB00;
  --st-d:         #FF3B3B;
  /* Textos sólidos del stream */
  --st-blanco:    #EDEFF3;
  --st-tenue:     #C9CFDA;
  --st-apagado:   #8E97AA;
  /* Cajas translúcidas de las filas */
  --st-caja:        rgba(255,255,255,0.05);
  --st-caja-borde:  rgba(255,255,255,0.07);
  --st-oro-bg:      rgba(245,187,0,0.14);
  --st-oro-borde:   rgba(245,187,0,0.60);
  /* Marcas de destino de la tabla anual (pills del stream) */
  --st-campeon:      #2ECC71;
  --st-sudamericana: #8A94A6;
  --st-descenso:     #E23B3B;
  --st-radio:     20px;
  --st-radio-sm:  12px;
}

/* ── PLACA ── */
.placa {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: clamp(20px, 3vw, 36px) clamp(14px, 3vw, 32px);
  border-radius: var(--st-radio);
  border: 1px solid rgba(245,187,0,0.22);
  background:
    radial-gradient(ellipse 90% 55% at 50% 30%, rgba(18,58,128,0.55) 0%, rgba(6,22,58,0) 70%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(245,187,0,0.08) 0%, rgba(6,22,58,0) 70%),
    linear-gradient(180deg, var(--st-azul-mid) 0%, var(--st-azul) 62%, #040F29 100%);
  color: var(--st-blanco);
  font-family: 'Fixture', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.placa-cab {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-bottom: clamp(14px, 2vw, 22px);
  text-align: center;
}
.placa-kicker {
  max-width: 100%;
  font-family: 'FixtureExpanded', sans-serif; font-size: 12px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--st-azul); background: var(--st-amarillo);
  padding: 7px 20px; border-radius: 50px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.placa-titulo {
  margin: 0;
  font-family: 'FixtureCondensed', sans-serif; font-weight: 600;
  font-size: clamp(40px, 6vw, 72px); line-height: .9; letter-spacing: -0.02em;
  text-transform: uppercase; color: var(--st-amarillo);
  text-shadow: 0 6px 36px #003472;
  overflow-wrap: anywhere;
}
.placa-cuerpo { min-width: 0; }

/* Escudo y círculo de iniciales (cuando no hay imagen) */
.placa .st-escudo, .st-mc .st-escudo { object-fit: contain; display: block; flex-shrink: 0; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.45)); }
.placa .st-ini, .st-mc .st-ini {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: 50%; background: rgba(11,35,76,0.85); border: 2px solid var(--st-amarillo);
  color: var(--st-amarillo); font-family: 'Fixture', sans-serif; text-transform: uppercase;
}
.placa .st-pill {
  font-family: 'Fixture', sans-serif; color: var(--st-azul); background: var(--st-amarillo);
  border-radius: 8px; padding: 2px 10px; white-space: nowrap;
}

/* ── TABLA ── */
.st-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.st-tabla {
  width: 100%; min-width: 300px;
  border-collapse: separate; border-spacing: 0 4px;
  text-transform: uppercase;
}
.st-tabla th {
  font-family: 'FixtureExpanded', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 2px;
  color: var(--st-apagado); padding: 0 8px 4px; text-align: center;
}
.st-tabla td {
  height: 46px; padding: 0 8px; text-align: center;
  background: var(--st-caja);
  border-top: 1px solid var(--st-caja-borde); border-bottom: 1px solid var(--st-caja-borde);
}
.st-tabla td:first-child { border-left: 1px solid var(--st-caja-borde); border-radius: var(--st-radio-sm) 0 0 var(--st-radio-sm); }
.st-tabla td:last-child  { border-right: 1px solid var(--st-caja-borde); border-radius: 0 var(--st-radio-sm) var(--st-radio-sm) 0; }
.st-tabla .t-pos { width: 40px; }
.st-tabla td.t-pos { font-size: 17px; color: var(--st-apagado); }
.st-tabla th.t-eq, .st-tabla td.t-eq { text-align: left; }
/* La celda del nombre toma el espacio restante pero NO empuja las otras columnas:
   width:100% + max-width:0 hace que el nombre se trunque con ellipsis en vez de
   correr la columna PTS fuera de la vista (fix 2026-10-28). */
.st-tabla td.t-eq { width: 100%; max-width: 0; overflow: hidden; white-space: nowrap; }
/* Nombre + marca de destino en la misma línea (2026-10-30): el nombre es inline-block con
   ellipsis y le deja lugar al ícono/pill, que nunca baja de renglón. Letra 15% más chica. */
.st-tabla .t-nombre {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'FixtureCondensed', sans-serif; font-size: clamp(17px, 2vw, 22px);
  color: var(--st-blanco);
}
.st-tabla td.t-num { width: 48px; font-size: 16px; color: var(--st-tenue); }
.st-tabla td.t-pts { width: 56px; font-family: 'FixtureCondensed', sans-serif; font-size: clamp(24px, 2.8vw, 30px); color: #fff; }
.st-tabla tr.es-boca td { background: var(--st-oro-bg); border-color: var(--st-oro-borde); }
.st-tabla tr.es-boca .t-pos,
.st-tabla tr.es-boca .t-nombre,
.st-tabla tr.es-boca .t-pts { color: var(--st-amarillo); }
/* Marca de destino (tabla anual): pill junto al nombre */
.st-tabla tr[class*="dest-"] .t-nombre { max-width: calc(100% - 24px); } /* lugar para el ícono */
.st-tabla .t-destino {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 20px;
  font-family: 'Fixture', sans-serif; font-size: 12px; letter-spacing: 1px; vertical-align: middle;
}
.st-tabla tr.dest-descenso     .t-destino { background: var(--st-descenso);     color: #fff; }
/* Íconos (2026-10-30): estrella = campeón, copa amarilla = Libertadores, copa gris = Sudamericana, flecha roja = descenso */
.st-tabla .t-destino-ico { padding: 0; background: none; line-height: 0; }
.st-tabla .t-destino-ico svg { display: inline-block; vertical-align: middle; width: 14px; height: 14px; }
.st-tabla tr.dest-campeon      .t-destino-ico { color: var(--st-amarillo); }
.st-tabla tr.dest-libertadores .t-destino-ico { color: var(--st-amarillo); }
.st-tabla tr.dest-sudamericana .t-destino-ico { color: var(--st-sudamericana); }
.st-tabla tr.dest-descenso     .t-destino-ico { color: var(--st-descenso); }
.st-tabla tr.dest-campeon      td:first-child { box-shadow: inset 4px 0 0 var(--st-amarillo); }
.st-tabla tr.dest-libertadores td:first-child { box-shadow: inset 4px 0 0 var(--st-amarillo); }
.st-tabla tr.dest-sudamericana td:first-child { box-shadow: inset 4px 0 0 var(--st-sudamericana); }
.st-tabla tr.dest-descenso     td:first-child { box-shadow: inset 4px 0 0 var(--st-descenso); }

/* ── GOLEADORES ── */
.st-ranking { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.st-goleador {
  display: flex; align-items: center; gap: 14px; min-width: 0;
  padding: 12px 18px; border-radius: var(--st-radio);
  background: var(--st-caja); border: 1px solid var(--st-caja-borde);
}
.st-goleador.primero { background: var(--st-oro-bg); border-color: var(--st-oro-borde); }
.st-goleador .g-pos { width: 26px; flex-shrink: 0; text-align: center; font-family: 'FixtureCondensed', sans-serif; font-size: 30px; color: var(--st-apagado); }
.st-goleador .st-ini { width: 48px; height: 48px; font-size: 16px; }
/* Foto del jugador: mismo círculo dorado que las iniciales, recortada como en las
   placas del stream (goleadores-boca.html: object-fit cover, cara arriba). */
.st-goleador .g-foto { object-fit: cover; object-position: center 20%; overflow: hidden; }
.st-goleador .g-nombre {
  flex: 1; min-width: 0; font-family: 'FixtureCondensed', sans-serif; font-size: clamp(24px, 3vw, 34px);
  line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-goleador .g-valor { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.st-goleador .g-valor b { font-family: 'FixtureCondensed', sans-serif; font-weight: 600; font-size: clamp(40px, 5vw, 56px); line-height: .85; color: #fff; }
.st-goleador .g-valor small { font-family: 'FixtureExpanded', sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--st-tenue); margin-top: 4px; }
.st-goleador.primero .g-pos,
.st-goleador.primero .g-nombre,
.st-goleador.primero .g-valor b { color: var(--st-amarillo); }
.placa .st-nota { margin: 12px 0 0; font-size: 13px; color: var(--st-apagado); text-transform: uppercase; letter-spacing: 1px; text-align: center; }

/* ── PRÓXIMOS ── */
.st-proximos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.st-proximo {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 20px); min-width: 0;
  padding: 14px clamp(12px, 2vw, 22px); border-radius: var(--st-radio);
  background: var(--st-caja); border: 1px solid var(--st-caja-borde);
}
.st-proximo:first-child { background: var(--st-oro-bg); border-color: var(--st-oro-borde); }
.st-proximo .p-fecha { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; width: 76px; }
.st-proximo .st-pill { font-size: 20px; }
.st-proximo .p-hora { font-size: 15px; color: var(--st-tenue); }
.st-proximo .st-escudo { width: 52px; height: 52px; }
.st-proximo .st-ini { width: 48px; height: 48px; font-size: 16px; }
.st-proximo .p-rival { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.st-proximo .p-lv {
  font-family: 'FixtureExpanded', sans-serif; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--st-apagado);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-proximo:first-child .p-lv { color: var(--st-amarillo); }
.st-proximo .p-nombre {
  font-family: 'FixtureCondensed', sans-serif; font-size: clamp(26px, 3.4vw, 38px); line-height: 1;
  text-transform: uppercase; color: var(--st-blanco);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── COPAS: una fila de cruces por fase, de octavos a la final ── */
.copa-fase + .copa-fase { margin-top: 18px; }
.copa-fase-tit {
  margin: 0 0 10px; text-align: center;
  font-family: 'FixtureExpanded', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--st-tenue);
}
.copa-cruces { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.copa-final .copa-cruces { max-width: 340px; margin: 0 auto; }
.cruce {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  padding: 10px 12px; border-radius: 14px;
  background: var(--st-caja); border: 1px solid rgba(255,255,255,0.08);
}
.cruce.con-boca { background: var(--st-oro-bg); border-color: var(--st-oro-borde); }
.cr-eq { display: flex; align-items: center; gap: 8px; min-width: 0; text-transform: uppercase; }
.cr-eq .st-escudo { width: 26px; height: 26px; }
.cr-eq .st-ini { width: 26px; height: 26px; font-size: 12px; border-width: 1.5px; }
.cr-nom { flex: 1; min-width: 0; font-family: 'FixtureCondensed', sans-serif; font-size: 20px; color: var(--st-blanco); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-gl { flex-shrink: 0; font-family: 'FixtureCondensed', sans-serif; font-size: 22px; color: #fff; text-align: right; }
.cr-gl small { font-family: 'Fixture', sans-serif; font-size: max(12px, .5em); color: var(--st-amarillo); margin-left: 2px; vertical-align: top; }
.cr-eq.boca .cr-nom, .cr-eq.boca .cr-gl { color: var(--st-amarillo); }
.cr-eq.a-definir .cr-nom { color: var(--st-apagado); }
.cr-pie { font-size: 12px; letter-spacing: 1px; color: var(--st-tenue); text-align: center; text-transform: uppercase; }

/* ── FORMA (últimos resultados: V/E/D) ── */
.forma-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-family: 'Fixture', sans-serif; font-size: 12px; color: var(--st-azul);
}
.forma-dot.v { background: var(--st-v); }
.forma-dot.e { background: var(--st-e); }
.forma-dot.d { background: var(--st-d); color: #fff; }

/* ── ACTUALIZADO ── */

/* ══════════════════════════════════════════════════════════════════
   PARTIDO DEL MATCH CENTER (.st-mc)
   Piezas que js/stream.js mete dentro de los bloques de la página
   (cronología, stats, alineaciones, MVP, crónica, H2H, contexto y
   resultados). Reusan las clases del sitio (.ev-row, .stat-row,
   .pitch/.pp, .mvp, .ctx-card, .res-row) y acá se pisan, sólo dentro
   de .st-mc, con el look del stream: cajas translúcidas, Boca en oro,
   pill dorada para el minuto y tipografías Fixture.
   ══════════════════════════════════════════════════════════════════ */
.st-mc {
  min-width: 0;
  font-family: 'Fixture', system-ui, sans-serif;
  color: var(--st-blanco);
  -webkit-font-smoothing: antialiased;
}
.st-mc .st-escudo { width: 26px; height: 26px; }
.st-mc .st-ini { width: 26px; height: 26px; font-size: 12px; border-width: 1.5px; }

/* ── Cronología ── */
.st-mc.timeline-ev { padding-left: 0; display: flex; flex-direction: column; gap: 8px; }
.st-mc.timeline-ev::before, .st-mc .ev-row::before { display: none; }
.st-mc .ev-row {
  grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px;
  padding: 10px 14px; border-radius: var(--st-radio-sm);
  background: var(--st-caja); border: 1px solid var(--st-caja-borde);
}
.st-mc .ev-row:last-child { border-bottom: 1px solid var(--st-caja-borde); }
.st-mc .ev-row.is-boca { background: var(--st-oro-bg); border-color: var(--st-oro-borde); }
.st-mc .ev-min {
  min-width: 52px; padding: 2px 10px; border-radius: 8px; text-align: center;
  font-family: 'Fixture', sans-serif; font-size: 15px; color: var(--st-azul); background: var(--st-amarillo);
}
.st-mc .ev-body > span:last-child { min-width: 0; }
.st-mc .ev-ico { width: 22px; height: 22px; border: none; background: none; font-size: 17px; }
.st-mc .ev-gol { color: var(--st-amarillo); }
.st-mc .ev-cambio { color: var(--st-v); }
/* Tarjetas como cartones del stream */
.st-mc .ev-amarilla, .st-mc .ev-roja { width: 15px; height: 21px; margin: 0 3px; border-radius: 3px; transform: rotate(-6deg);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.3), 0 4px 10px rgba(0,0,0,0.4); }
.st-mc .ev-amarilla { background: #F9D670; }
.st-mc .ev-roja { background: #EC0000; }
.st-mc .ev-txt {
  display: block; font-family: 'FixtureCondensed', sans-serif; font-size: 22px; font-weight: 600;
  line-height: 1.05; text-transform: uppercase; color: var(--st-blanco);
}
.st-mc .ev-row.is-boca .ev-txt { color: var(--st-amarillo); }
.st-mc .ev-sub { display: block; margin-top: 3px; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--st-tenue); }
.st-mc .ev-team { font-family: 'FixtureExpanded', sans-serif; font-size: 12px; letter-spacing: 2px; color: var(--st-apagado); }

/* ── Estadísticas: valor grande, barra oro (Boca) contra gris (rival) ── */
.st-mc .stat-row { padding: 12px 0; border-bottom: 1px solid var(--st-caja-borde); }
.st-mc .stat-row:last-child { border-bottom: none; }
.st-mc .stat-top { grid-template-columns: minmax(64px, auto) minmax(0, 1fr) minmax(64px, auto); }
.st-mc .stat-n { font-family: 'FixtureCondensed', sans-serif; font-size: 32px; line-height: .9; }
.st-mc .stat-n.boca { color: var(--st-amarillo); }
.st-mc .stat-n.rival { color: #fff; }
.st-mc .stat-lbl { font-family: 'FixtureExpanded', sans-serif; font-size: 12px; letter-spacing: 2px; color: var(--st-tenue); }
.st-mc .stat-bars { height: 10px; gap: 5px; }
.st-mc .stat-bar { border-radius: 12px; }
.st-mc .stat-bar.boca { background: var(--st-amarillo); }
.st-mc .stat-bar.rival { background: var(--st-apagado); }

/* ── Resultados (últimos partidos y cruces del H2H) ── */
.st-mc.st-resultados, .st-mc .resultados-list { display: flex; flex-direction: column; gap: 8px; margin-top: 0; }
.st-mc .resultados-head {
  padding: 18px 0 2px; border-bottom: none;
  font-family: 'FixtureExpanded', sans-serif; font-size: 12px; letter-spacing: 2px; color: var(--st-amarillo);
}
/* Fila: meta (fecha con calendario + torneo con copa, dos líneas) | cruce centrado | marcador.
   Los equipos van centrados entre la meta y el marcador: la fila no deja un vacío a la derecha. */
.st-mc .res-row, .st-mc .res-row:hover {
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr) auto; gap: 16px;
  padding: 10px 16px; border-radius: var(--st-radio-sm);
  background: var(--st-caja); border: 1px solid var(--st-caja-borde);
}
.st-mc .res-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-mc .res-fecha, .st-mc .res-torneo {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  font-family: var(--font-body, sans-serif); font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-mc .res-fecha { color: var(--st-apagado); }
.st-mc .res-torneo { color: var(--st-blanco); opacity: 0.85; }
.st-mc .res-ico { flex-shrink: 0; width: 12px; height: 12px; color: var(--st-amarillo); }
/* Fila con detalle en En Vivo: toda la fila es un link al partido (partido-en-vivo.html?partido=…). */
.st-mc a.res-row { color: inherit; text-decoration: none; transition: border-color 0.2s, transform 0.2s, background-color 0.2s; }
.st-mc a.res-row:hover { border-color: var(--st-oro-borde); transform: translateX(3px); }
.st-mc a.res-row:focus-visible { outline: 2px solid var(--st-amarillo); outline-offset: 2px; }
.st-mc .res-score.res-hora { font-size: 18px; letter-spacing: 0.02em; }
.st-mc.st-proximos-eq, .st-mc.st-resultados-eq { display: flex; flex-direction: column; gap: 20px; }
.st-mc .res-teams {
  min-width: 0; gap: 10px; justify-content: center;
  font-family: 'FixtureCondensed', sans-serif; font-size: 26px; font-weight: 600; text-transform: uppercase; color: var(--st-blanco);
}
.st-mc .res-teams .vs { flex-shrink: 0; font-family: 'Fixture', sans-serif; font-size: 12px; color: var(--st-apagado); }
.st-mc .res-eq { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.st-mc .res-eq .st-escudo, .st-mc .res-eq .st-ini { width: 30px; height: 30px; font-size: 12px; }
.st-mc .res-eq.boca { color: var(--st-amarillo); }
.st-mc .res-nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-mc .res-score {
  min-width: 68px; padding: 4px 12px; border-radius: 8px;
  font-family: 'FixtureCondensed', sans-serif; font-size: 24px; color: var(--st-blanco); background: var(--st-caja);
}
.st-mc .st-video-titulo { margin: 10px 0 0; font-size: 13px; line-height: 1.4; color: var(--st-apagado); }
.st-mc .res-w { background: var(--st-v); color: var(--st-azul); }
.st-mc .res-d { background: var(--st-e); color: var(--st-azul); }
.st-mc .res-l { background: var(--st-d); color: #fff; }

/* ── Forma (V/E/D) ── */
.st-forma { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Contexto del partido (ctx-cards de la home) ── */
.st-mc .ctx-card, .st-mc .ctx-card:hover {
  transform: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-radius: var(--st-radio-sm); background: var(--st-caja); border: 1px solid var(--st-caja-borde);
}
.st-mc .ctx-label { font-family: 'FixtureExpanded', sans-serif; font-size: 12px; letter-spacing: 2px; color: var(--st-amarillo); }
.st-mc .ctx-value { font-family: 'FixtureCondensed', sans-serif; font-size: 34px; text-transform: uppercase; color: #fff; }
.st-mc .ctx-value .ctx-chip {
  border: none; border-radius: 20px; padding: 3px 10px;
  font-family: 'Fixture', sans-serif; font-size: 12px; letter-spacing: 1px;
}
.st-mc .ctx-chip-w { background: var(--st-v); color: var(--st-azul); }
.st-mc .ctx-chip-d { background: var(--st-e); color: var(--st-azul); }
.st-mc .ctx-chip-l { background: var(--st-d); color: #fff; }
.st-mc .ctx-chip-zona { background: rgba(255,255,255,0.14); color: var(--st-blanco); }
.st-mc .ctx-chip-zona.boca { background: var(--st-amarillo); color: var(--st-azul); }
.st-mc .ctx-sub { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--st-tenue); }
.st-mc .ctx-sub em { color: var(--st-blanco); }

/* ── H2H ── */
.st-mc .ctx-h2h { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; background: none; border: none; border-radius: 0; }
.st-mc .ctx-h2h-item { border-radius: var(--st-radio-sm); background: var(--st-caja); border: 1px solid var(--st-caja-borde); }
.st-mc .ctx-h2h-item.is-boca { background: var(--st-oro-bg); border-color: var(--st-oro-borde); }
.st-mc .ctx-h2h-num { font-family: 'FixtureCondensed', sans-serif; font-size: 46px; line-height: .9; color: #fff; }
.st-mc .ctx-h2h-item.is-boca .ctx-h2h-num { color: var(--st-amarillo); text-shadow: none; }
.st-mc .ctx-h2h-lbl { font-family: 'FixtureExpanded', sans-serif; font-size: 12px; letter-spacing: 1.5px; color: var(--st-tenue); overflow-wrap: anywhere; }
.st-h2h-forma { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 18px 0 4px; }
.st-h2h-eq { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-h2h-eq > span:first-child { font-family: 'FixtureCondensed', sans-serif; font-size: 22px; text-transform: uppercase; color: var(--st-blanco); }
.st-h2h-eq.boca > span:first-child { color: var(--st-amarillo); }

/* ── Alineaciones ── */
.st-mc .st-lineup {
  min-width: 0; padding: clamp(16px, 2.4vw, 24px); border-radius: var(--st-radio);
  border: 1px solid rgba(245,187,0,0.22);
  background: linear-gradient(180deg, var(--st-azul-mid) 0%, var(--st-azul) 70%, #040F29 100%);
}
.st-mc.lineups > .st-lineup { margin: 0; }
.st-mc .lineup-head { margin-bottom: 8px; }
.st-mc .lineup-eq { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-mc .lineup-eq .st-escudo, .st-mc .lineup-eq .st-ini { width: 38px; height: 38px; font-size: 13px; }
.st-mc .lineup-team {
  font-family: 'FixtureCondensed', sans-serif; font-size: clamp(28px, 3vw, 36px); line-height: 1;
  text-transform: uppercase; color: var(--st-blanco); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-mc .es-boca .lineup-team { color: var(--st-amarillo); text-shadow: 0 6px 30px #003472; }
.st-mc .lineup-form {
  flex-shrink: 0; padding: 3px 12px; border-radius: 8px;
  font-family: 'Fixture', sans-serif; font-size: 15px; letter-spacing: 0; color: var(--st-azul); background: var(--st-amarillo);
}
.st-lineup-estado { margin-bottom: 12px; font-family: 'FixtureExpanded', sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--st-apagado); }
.st-mc .pitch { margin-top: 10px; border-color: rgba(245,187,0,0.18); }
/* Escritorio: la cancha 3:4 ocupaba casi 900px de alto por columna; 5:4 alcanza para 4–5 líneas. */
@media (min-width: 900px) {
  .st-mc .pitch { aspect-ratio: 5 / 4; max-height: 540px; }
  .st-mc .pitch-players { inset: 12px 10px; }
}
.st-mc .pp { width: auto; max-width: 72px; min-width: 0; gap: 4px; }
.st-mc .pp-cara { position: relative; display: block; }
.st-mc .pp-ini, .st-mc .pp-foto {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: top;
  background: rgba(11,35,76,0.9); border: 2px solid rgba(255,255,255,0.45);
  font-family: 'Fixture', sans-serif; font-size: 13px; color: var(--st-blanco);
}
.st-mc .pp-ini.pp-boca, .st-mc .pp-foto.pp-boca { border-color: var(--st-amarillo); color: var(--st-amarillo); box-shadow: 0 4px 14px rgba(245,187,0,0.3); }
.st-mc .pp-dorsal {
  position: absolute; right: -6px; bottom: -4px; min-width: 18px; padding: 1px 4px; border-radius: 6px;
  font-family: 'Fixture', sans-serif; font-size: 12px; line-height: 1.3; text-align: center;
  color: var(--st-azul); background: var(--st-amarillo);
}
.st-mc .es-rival .pp-dorsal { background: var(--st-blanco); }
.st-mc .pp-flags { position: absolute; top: -6px; right: -10px; display: flex; gap: 1px; align-items: center; }
.st-mc .st-jug .pp-flags { position: static; margin-left: auto; }
.st-mc .pp-f { display: block; font-size: 12px; line-height: 1; }
.st-mc .pp-am, .st-mc .pp-ro { width: 8px; height: 11px; border-radius: 2px; }
.st-mc .pp-am { background: #F9D670; }
.st-mc .pp-ro { background: #EC0000; }
.st-mc .pp-in { font-size: 12px; color: var(--st-v); }
.st-mc .pp-name {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  font-family: 'FixtureCondensed', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--st-blanco);
}
.st-mc .bench-t { font-family: 'FixtureExpanded', sans-serif; font-size: 12px; letter-spacing: 2px; color: var(--st-amarillo); border-bottom-color: var(--st-caja-borde); }
.st-mc .bench-row, .st-mc .bajas-row { font-size: 13px; text-transform: uppercase; color: var(--st-tenue); border-bottom-color: var(--st-caja-borde); }
.st-mc .bench-num { font-family: 'Fixture', sans-serif; color: var(--st-apagado); }
.st-mc .bench-state { border: none; border-radius: 20px; font-family: 'Fixture', sans-serif; letter-spacing: 1px; }
.st-mc .bs-in { background: var(--st-v); color: var(--st-azul); }
.st-mc .bs-out { background: rgba(255,255,255,0.08); color: var(--st-apagado); }
.st-mc .st-jug .pp-ini, .st-mc .st-jug .pp-foto { width: 32px; height: 32px; font-size: 12px; flex-shrink: 0; }
.st-mc .st-jug-nom { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--st-blanco); }
.st-mc .dt-row { border-top-color: var(--st-caja-borde); }
.st-mc .dt-photo { font-family: 'Fixture', sans-serif; color: var(--st-amarillo); border-color: var(--st-oro-borde); }
.st-mc .dt-lbl { font-family: 'FixtureExpanded', sans-serif; font-size: 12px; letter-spacing: 2px; }
.st-mc .dt-name { font-family: 'FixtureCondensed', sans-serif; font-size: 24px; text-transform: uppercase; }
.st-mc .bajas-x { border: none; border-radius: 50%; background: var(--st-d); color: #fff; }
.st-mc .bajas-why { text-transform: none; color: var(--st-apagado); }

/* ── Jugador del partido ── */
.st-mc .mvp {
  padding: 16px; border-radius: var(--st-radio);
  background: var(--st-oro-bg); border: 1px solid var(--st-oro-borde);
}
.st-mc .mvp-photo {
  width: 84px; height: 84px; overflow: hidden;
  border: 3px solid var(--st-amarillo); background: rgba(11,35,76,0.85);
  font-family: 'Fixture', sans-serif; font-size: 26px; color: var(--st-amarillo);
}
.st-mc .mvp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.st-mc .mvp-name {
  font-family: 'FixtureCondensed', sans-serif; font-size: clamp(30px, 3.4vw, 40px); line-height: .95;
  color: var(--st-amarillo); text-shadow: 0 6px 30px #003472; overflow-wrap: anywhere;
}
.st-mc .mvp-meta { margin-top: 6px; font-family: 'FixtureExpanded', sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--st-tenue); }
.st-mc .mvp-rating { font-family: 'FixtureCondensed', sans-serif; font-size: 44px; color: var(--st-azul); background: var(--st-amarillo); }
.st-mc .mvp-stats { gap: 8px; background: none; border-radius: 0; margin-top: 12px; }
.st-mc .mvp-stat { border-radius: var(--st-radio-sm); background: var(--st-caja); border: 1px solid var(--st-caja-borde); }
.st-mc .mvp-stat b { font-family: 'FixtureCondensed', sans-serif; font-size: 34px; line-height: 1; color: #fff; }
.st-mc .mvp-stat span { font-family: 'FixtureExpanded', sans-serif; font-size: 12px; letter-spacing: 1.5px; color: var(--st-tenue); overflow-wrap: anywhere; }

/* ── Crónica: texto largo, con la fuente de lectura del sitio ── */
.st-mc.st-cronica { font-family: inherit; }
.st-mc.st-cronica p { margin: 0 0 1em; font-size: 15px; line-height: 1.65; color: var(--st-tenue); text-wrap: pretty; }
.st-mc.st-cronica p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════════════
   PÁGINAS CONECTADAS (home y Match Center)
   js/site.js llena cada [data-stream] y oculta con .st-vacio el
   [data-stream-bloque] que se quedó sin datos (los bloques arrancan así
   en el HTML). !important: también pisa el display de las pestañas y
   de los paneles que maneja main.js / match-center.js con [hidden].
   ══════════════════════════════════════════════════════════════════ */
.st-vacio { display: none !important; }

/* Home · forma de Boca dentro de la franja .ctx-racha */
.ctx-racha .st-forma { flex-wrap: nowrap; }

/* Home · próximos partidos: placa a todo el ancho de la columna */
#seccion-proximos { min-width: 0; }

/* Sidebar de la home (280px): las placas pierden su caja (ya están dentro
   de la .sb-card) y se compactan; en posiciones la zona la dicen las pestañas. */
.sb-card .placa { padding: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
.sb-card .placa-cab { gap: 8px; margin-bottom: 10px; }
.sb-card .placa-kicker { font-size: 12px; letter-spacing: 1.5px; padding: 5px 12px; }
.sb-card .placa-titulo { font-size: 30px; }
.sb-posiciones .placa-cab { display: none; }
.sb-card .st-tabla { min-width: 0; }
.sb-card .st-tabla th { padding: 0 3px 4px; font-size: 12px; letter-spacing: 1px; }
.sb-card .st-tabla td { height: 34px; padding: 0 4px; }
.sb-card .st-tabla .t-pos { width: 24px; }
.sb-card .st-tabla td.t-pos { font-size: 13px; }
.sb-card .st-tabla .t-nombre { font-size: 14.5px; }
.sb-card .st-tabla td.t-eq { white-space: nowrap; }
.sb-card .st-tabla .t-destino { margin-left: 4px; padding: 1px 6px; font-size: 12px; }
.sb-card .st-tabla .t-num { width: 28px; }
.sb-card .st-tabla td.t-num { font-size: 12px; }
.sb-card .st-tabla .t-pts { width: 34px; }
.sb-card .st-tabla td.t-pts { font-size: 21px; }
.sb-card .st-goleador { gap: 8px; padding: 8px 10px; border-radius: var(--st-radio-sm); }
.sb-card .st-goleador .g-pos { width: 18px; font-size: 20px; }
.sb-card .st-goleador .st-ini { width: 30px; height: 30px; font-size: 12px; }
.sb-card .st-goleador .g-nombre { font-size: 18px; }
.sb-card .st-goleador .g-valor b { font-size: 30px; }
.sb-card .st-goleador .g-valor small { font-size: 12px; letter-spacing: 1px; }
.sb-card .copa-cruces { grid-template-columns: 1fr; }
.sb-card .cr-nom { font-size: 17px; }
.sb-card .placa + .placa { margin-top: 18px; }

/* Partido de la tarjeta de la home y de la cabecera del Match Center
   (js/site.js → aplicarPartido; config manual o stream.json, R14).
   body[data-partido-estado] / .mc-wrap[data-mc-estado] = en_vivo | proximo |
   final | sin_partido. El punto rojo sólo en vivo; en la previa no hay
   marcador; un final muestra el marcador con el badge "Final". */
.mc-wrap:not([data-mc-estado="en_vivo"]) .mc-live-badge .mc-live-dot,
body:not([data-partido-estado="en_vivo"]) .prox-live-badge .prox-live-dot { display: none; }
.mc-wrap[data-mc-estado="proximo"] .mc-score-big { display: none; }
body[data-partido-estado="final"] .prox-state-next { display: none; }
body[data-partido-estado="final"] .prox-state-live { display: flex; }
/* Reproductor del vivo: sólo en vivo. El iframe sale del HTML sin src y
   site.js se lo pone con un id válido; sin src no se dibuja y queda el aviso. */
.mc-wrap:not([data-mc-estado="en_vivo"]) .mc-stream { display: none; }
.mc-stream-frame iframe:not([src]) { display: none; }
/* Sin partido (ni manual ni en stream.json): la cabecera no simula un vivo. */
.mc-vacio { display: none; }
.mc-wrap[data-mc-estado="sin_partido"] .mc-score,
.mc-wrap[data-mc-estado="sin_partido"] .mc-comp,
.mc-wrap[data-mc-estado="sin_partido"] .mc-venue-top,
.mc-wrap[data-mc-estado="sin_partido"] .mc-foot,
.mc-wrap[data-mc-estado="sin_partido"] .mc-block:has(#momentum-container) { display: none; }
.mc-wrap[data-mc-estado="sin_partido"] .mc-vacio {
  display: block; padding: 36px 0 30px; text-align: center;
  font-family: 'FixtureCondensed', sans-serif; font-size: clamp(30px, 4vw, 44px);
  text-transform: uppercase; color: var(--st-tenue);
}

/* Match Center · pestaña Posiciones: zonas y anual en grilla */
.mc-tablas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.mc-tablas > [data-stream] { min-width: 0; }
.mc-tablas > [data-stream]:not(.st-con-datos) { display: none; }

/* ── MOBILE (desde 360px) ── */
@media (max-width: 480px) {
  .st-mc .ev-row { gap: 10px; padding: 8px 10px; }
  .st-mc .ev-min { min-width: 44px; padding: 2px 6px; font-size: 13px; }
  .st-mc .ev-txt { font-size: 19px; }
  .st-mc .res-row, .st-mc .res-row:hover { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 8px 12px; }
  .st-mc .res-meta { grid-column: 1 / -1; flex-direction: row; gap: 14px; }
  .st-mc .res-teams { font-size: 18px; gap: 6px; justify-content: flex-start; }
  .st-mc .res-eq { gap: 5px; }
  .st-mc .res-eq .st-escudo, .st-mc .res-eq .st-ini { width: 22px; height: 22px; }
  .st-mc .ctx-h2h { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-mc .stat-n { font-size: 26px; }
  .st-mc .pp { max-width: 54px; }
  .st-mc .pp-ini, .st-mc .pp-foto { width: 32px; height: 32px; font-size: 12px; }
  .st-mc .pp-name { font-size: 12px; }
  .st-mc .pitch-players { inset: 10px 4px; }
  .st-mc .mvp-photo { width: 64px; height: 64px; font-size: 20px; }
  .st-mc .mvp-stat b { font-size: 26px; }
  .st-mc .mvp-stat { padding: 10px 4px; }
  .st-mc .mvp-stat span { font-size: 12px; letter-spacing: .5px; overflow-wrap: normal; }
  .st-mc .ctx-h2h-lbl { letter-spacing: 1px; }
  .placa { border-radius: 16px; }
  .placa-kicker { font-size: 12px; letter-spacing: 2px; padding: 6px 14px; }
  .placa { padding-left: 12px; padding-right: 12px; }
  .st-tabla { min-width: 270px; }
  .st-tabla th { padding: 0 4px 4px; letter-spacing: 1px; font-size: 12px; }
  .st-tabla td { height: 40px; padding: 0 4px; }
  .st-tabla .t-nombre { font-size: 19px; } /* en el celular no se achica: hay lugar para el ícono al lado */
  .st-tabla .t-pos { width: 30px; }
  .st-tabla td.t-pos { font-size: 14px; }
  .st-tabla .t-num { width: 32px; }
  .st-tabla td.t-num { font-size: 13px; }
  .st-tabla .t-pts { width: 38px; }
  .st-tabla td.t-pts { font-size: 24px; }
  .st-goleador { gap: 10px; padding: 10px 12px; }
  .st-goleador .st-ini { width: 38px; height: 38px; font-size: 13px; }
  .st-proximo .p-fecha { width: 60px; }
  .st-proximo .st-pill { font-size: 16px; padding: 2px 8px; }
  .st-proximo .st-escudo { width: 40px; height: 40px; }
  .st-proximo .st-ini { width: 38px; height: 38px; font-size: 13px; }
}

@media (prefers-reduced-motion: no-preference) {
  .st-tabla tbody tr, .st-goleador, .st-proximo, .cruce,
  .st-mc .ev-row, .st-mc .res-row, .st-mc .ctx-card { animation: st-entra .35s ease both; }
  @keyframes st-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Píldoras y etiquetas: sin interlineado extra, sin cortes (pedido 2026-10-22, móvil). */
.placa-kicker, .st-pill, .st-proximo .p-lv, .st-tabla .t-destino, .st-goleador .g-valor small, .placa .st-nota {
  line-height: 1.15; white-space: normal; overflow: visible; text-overflow: clip; letter-spacing: 0.1em;
}
.placa-kicker { display: inline-block; max-width: 100%; text-align: center; padding: 6px 14px; }
.st-proximo .p-rival { gap: 3px; }
.st-proximo .p-lv { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.st-proximo .p-cond { color: var(--st-amarillo); font-weight: 700; }
.st-proximo .p-comp { color: var(--st-apagado); }
.st-proximo .p-torneo, .st-proximo .p-etapa {
  display: inline-flex; align-items: center; gap: 5px; min-width: 0;
  font-family: var(--font-body, sans-serif); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: none;
  color: var(--st-apagado); white-space: nowrap;
}
.st-proximo .p-torneo .res-ico, .st-proximo .p-etapa .res-ico { flex-shrink: 0; width: 12px; height: 12px; color: var(--st-amarillo); }

/* Listas largas plegadas ("Ver N más", js/site.js aplicarColapsables) */
.st-plegado { display: none !important; }
.st-ver-mas {
  display: block; margin: 10px auto 0; padding: 7px 18px; border-radius: 20px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: var(--st-amarillo);
  font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2;
}
.st-ver-mas:hover { background: rgba(245,187,0,.12); }

.st-proximo .p-comp { font-size: 12px; letter-spacing: 0.04em; text-transform: none; line-height: 1.2; }
.st-proximo .p-cond { font-size: 12px; letter-spacing: 0.1em; }

/* ── Slider de goleadores de la home: una placa por competencia ──
   La pista scrollea horizontal con snap (deslizar en el celular); puntos clicables abajo; flechas
   laterales que aparecen al pasar el mouse en escritorio (js/site.js, activarSliders). */
.gl-slider { position: relative; }
.gl-pista {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gl-pista::-webkit-scrollbar { display: none; }
.gl-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.gl-dots { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
.gl-dot {
  width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.gl-dot::before {
  content: ''; display: block; width: 8px; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.28); transition: width 0.25s var(--ease-out, ease), background-color 0.2s;
}
.gl-dot.activo::before { width: 22px; background: var(--st-amarillo); }
.gl-dot:focus-visible { outline: 2px solid var(--st-amarillo); outline-offset: 2px; border-radius: 11px; }
.gl-flecha {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--st-oro-borde); background: var(--azul, #06163A); color: var(--st-amarillo);
  opacity: 0; pointer-events: none; cursor: pointer; transition: opacity 0.2s, transform 0.2s, background-color 0.2s;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.gl-prev { left: -10px; }
.gl-next { right: -10px; }
.gl-flecha[disabled] { opacity: 0 !important; pointer-events: none !important; }
@media (hover: hover) and (min-width: 769px) {
  .gl-slider:hover .gl-flecha { opacity: 1; }
  .gl-slider:hover .gl-flecha { pointer-events: auto; }
  .gl-flecha:hover { background: var(--st-amarillo); color: var(--azul, #06163A); }
}
