/* ═══════════════════════════════════════════════════════════════════
   INVICTO.VIP — paginas-v2.css
   Estilos SOLO de las páginas estáticas que genera el prerender
   (marcadores/<comp>/, marcadores/<comp>/<partido>/, comunidad/<torneo>/).
   Se carga DESPUÉS de landing.css y marcadores-v2.css. Todo va bajo .mp-static:
   marcadores-v2.css ya acepta ese contenedor, así banner, barra de competiciones,
   filtros, cabeceras con fondo por competición y filas de partido son los del SPA.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Enlaces: sin subrayado ni azul (landing.css los pinta como enlaces de texto) ── */
.mp-static a.mr2, .mp-static a.res-comp-btn, .mp-static a.torneo-tab,
.mp-static a.mp-btn, .mp-static a.mp-otra-comp, .mp-static a.pp-comp,
.mp-static a.mp-ver-todo, .mp-static a.com-btn-register { text-decoration: none; }
.mp-static a.mr2 { color: inherit; }
.mp-static a.res-comp-btn { display: flex; }

/* ── Banner: el nombre de la competición manda; "Calendario y resultados" va debajo, más pequeño ── */
.mp-static .res-hero-tit { text-shadow: 0 2px 14px rgba(2,6,23,.75); }
.mp-static .res-hero-tit .l2 { font-size: .58em; letter-spacing: .09em; margin-top: .25rem; }
.mp-static .res-hero-txt { max-width: 68%; }
@media (min-width: 640px) { .mp-static .res-hero-txt { max-width: 56%; } }

/* ── Títulos de sección ── */
.mp-static .mp-h2 {
  display: flex; align-items: center; gap: .6rem;
  margin: 1.6rem 0 .8rem;
  font: 600 1.25rem/1 'Teko', sans-serif; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text);
}
.mp-static .mp-h2::before { content: ""; width: 4px; height: 1.1em; border-radius: 3px; background: var(--em); box-shadow: 0 0 10px var(--em); }

/* ── Migas de pan e intro ── */
.mp-static .mp-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .4rem 0 .9rem; font-size: .72rem; color: var(--muted); }
.mp-static .mp-breadcrumb a { color: var(--muted2); text-decoration: none; }
.mp-static .mp-breadcrumb a:hover { color: var(--em); }
.mp-static .mp-breadcrumb .mp-sep { opacity: .5; }
.mp-static .mp-intro { font-size: .86rem; line-height: 1.6; color: var(--muted2); margin: 0 0 1rem; max-width: 70ch; }
.mp-static .mp-intro a { color: var(--em); font-weight: 600; text-decoration: none; }
.mp-static .mp-intro a:hover { text-decoration: underline; }

/* ── Bloques plegables (<details>) ── */
.mp-static details.grp-block > summary { list-style: none; cursor: pointer; }
.mp-static details.grp-block > summary::-webkit-details-marker { display: none; }
.mp-static details.grp-block:not([open]) > summary .grp-arrow::before { transform: none; }
.mp-static details.grp-block > summary:focus-visible { outline: 2px solid var(--em); outline-offset: -2px; }

/* ── Filas: solo los partidos FINALIZADOS son enlaces; el resto no aparenta serlo ── */
.mp-static div.mr2 { cursor: default; }
.mp-static div.mr2:hover { background: transparent; }
.mp-static div.mr2 .mr2-go { visibility: hidden; }

/* ── Clasificación ── */
.mp-static .mp-clasif { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.mp-static .mp-tabla-scroll { overflow-x: auto; }
.mp-static .mp-clasif .clasif-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.mp-static .mp-clasif .clasif-table thead th {
  padding: .6rem .7rem; text-align: left; font: 700 .62rem 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: var(--card2); border-bottom: 1px solid var(--border);
}
.mp-static .mp-clasif .clasif-table tbody td { padding: .6rem .7rem; border-top: 1px solid var(--border2); }
.mp-static .mp-clasif .clasif-table tbody tr:first-child td { border-top: none; }
.mp-static .mp-clasif .clasif-table tbody tr:hover { background: var(--em-bg); }
.mp-static .mp-clasif .clasif-pos { width: 2.2rem; font-weight: 700; color: var(--muted2); font-variant-numeric: tabular-nums; }
.mp-static .mp-clasif .clasif-equipo { font-weight: 600; color: var(--text); }
.mp-static .mp-clasif .clasif-eq { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.mp-static .mp-clasif .clasif-nombre { max-width: none; overflow: visible; white-space: normal; text-overflow: clip; }
.mp-static .mp-clasif .clasif-goles { color: var(--muted2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mp-static .mp-clasif .clasif-pts { font: 700 1.15rem 'Teko', sans-serif; color: var(--text); text-align: right; }
.mp-static .mp-clasif .mescudo { width: 26px; height: 26px; flex-shrink: 0; }
.mp-static .mp-clasif-grupo { padding: .7rem .8rem .3rem; }

/* ── Llamada a la acción ── */
.mp-static .mp-cta {
  position: relative; overflow: hidden; display: grid; gap: 1rem; align-items: center;
  margin: 1.8rem 0; padding: 1.3rem 1.2rem; border-radius: 18px; color: #f1f5f9;
  border: 1px solid rgba(0,245,212,.28);
  background: radial-gradient(90% 150% at 100% 0%, rgba(0,245,212,.24), transparent 60%), linear-gradient(135deg, #0b1d3f, #061226);
  box-shadow: 0 10px 34px rgba(0,0,0,.28);
}
.mp-static .mp-cta-tit { font: 700 1.7rem/1 'Teko', sans-serif; letter-spacing: .02em; text-transform: uppercase; }
.mp-static .mp-cta p { margin: .45rem 0 0; font-size: .85rem; line-height: 1.5; color: #b8c5d9; max-width: 52ch; }
.mp-static .mp-cta-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.mp-static .mp-btn { display: inline-flex; align-items: center; gap: .5rem; height: 44px; padding: 0 1.25rem; border-radius: 999px; font: 600 .88rem 'Inter', sans-serif; white-space: nowrap; }
.mp-static .mp-btn-1 { color: #021a17; background: linear-gradient(180deg, #2bffe3, #00d9bd); box-shadow: 0 6px 20px rgba(0,245,212,.32); }
.mp-static .mp-btn-2 { color: #f1f5f9; background: rgba(8,18,40,.85); border: 1px solid rgba(255,255,255,.22); }
.mp-static .mp-btn:hover { filter: brightness(1.08); }
@media (min-width: 720px) { .mp-static .mp-cta { grid-template-columns: 1fr auto; padding: 1.5rem 1.7rem; } }

/* ── Otras competiciones ── */
.mp-static .mp-otras-lista { display: flex; flex-wrap: wrap; gap: .5rem; }
.mp-static .mp-otra-comp { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem .45rem .55rem; border-radius: 999px;
  font: 600 .78rem 'Inter', sans-serif; color: var(--text); background: var(--card); border: 1px solid var(--border); }
.mp-static .mp-otra-comp:hover { border-color: var(--em-bd); color: var(--em); background: var(--em-bg); }
.mp-static .mp-otra-icon { width: 22px; height: 22px; padding: 2px; border-radius: 6px; background: #fff; object-fit: contain; }
.mp-static .comp-emoji { font-size: 1.1rem; line-height: 1; }

/* ═══ Página de PARTIDO ═════════════════════════════════════════════ */
.mp-static .pp-hero {
  position: relative; overflow: hidden; text-align: center; color: #fff; isolation: isolate;
  padding: 1.1rem 1rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(5,12,28,.5) 0%, rgba(5,12,28,.9) 100%),
    var(--cb-img) center / cover no-repeat,
    linear-gradient(100deg, var(--cb-a), var(--cb-b));
}
.mp-static .pp-comp { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem .3rem .4rem; border-radius: 999px;
  font: 600 .74rem 'Inter', sans-serif; color: #fff; background: rgba(5,12,28,.6); border: 1px solid rgba(255,255,255,.18); }
.mp-static .pp-comp:hover { border-color: var(--mv-cian); }
.mp-static .pp-comp-icon { width: 22px; height: 22px; padding: 2px; border-radius: 6px; background: #fff; object-fit: contain; }
.mp-static .pp-meta { margin-top: .55rem; font: 500 .72rem 'Inter', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: rgba(226,232,240,.78); }
.mp-static .pp-h1 { margin: .35rem 0 1rem; font: 500 .8rem/1.3 'Inter', sans-serif; color: rgba(226,232,240,.72); }
.mp-static .pp-board { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: .5rem; max-width: 760px; margin: 0 auto; }
.mp-static .pp-team { display: flex; flex-direction: column; align-items: center; gap: .55rem; min-width: 0; }
.mp-static .pp-escudo { display: flex; align-items: center; justify-content: center; height: 72px; }
/* Escudo SIN círculo blanco y sin recortar: ocupa su caja con aire alrededor (contain, nunca cover) */
.mp-static .pp-escudo .mescudo { box-sizing: border-box; width: 100%; height: 100%; max-width: none; padding: 14%; border-radius: 0; background: none; object-fit: contain; }
.mp-static .pp-escudo .fi { font-size: 3.4rem; border-radius: 5px; box-shadow: 0 4px 12px rgba(0,0,0,.45); }
.mp-static .pp-escudo .mflag-ball { font-size: 2.6rem; }
.mp-static .pp-tname { font: 600 1.35rem/1.05 'Teko', sans-serif; letter-spacing: .03em; text-transform: uppercase; overflow-wrap: anywhere; }
.mp-static .pp-score { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .1rem .5rem; min-width: 118px; }
.mp-static .pp-goles { font: 700 3.6rem/1 'Teko', sans-serif; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.mp-static .pp-score i { font-style: normal; font: 500 2rem/1 'Teko', sans-serif; opacity: .55; }
.mp-static .pp-fin { flex-basis: 100%; margin-top: .1rem; font: 700 .62rem 'Inter', sans-serif; letter-spacing: .18em; color: var(--mv-cian); }
.mp-static .pp-pen { flex-basis: 100%; font: 500 .68rem 'Inter', sans-serif; color: rgba(226,232,240,.75); }
@media (min-width: 640px) {
  .mp-static .pp-hero { padding: 1.6rem 1.5rem 2rem; }
  .mp-static .pp-escudo { height: 100px; }
  .mp-static .pp-escudo .fi { font-size: 4.6rem; }
  .mp-static .pp-tname { font-size: 1.9rem; } .mp-static .pp-goles { font-size: 5rem; }
}

/* Contenedor de contenido (partido y comunidad) */
.mp-static .mp-partido-wrap, .mp-static .mp-comunidad-wrap { max-width: 780px; margin: 0 auto; padding: 1rem 1rem 0; }

/* Pestañas Resumen / Alineaciones / Estadísticas / Jugadores → píldoras como los filtros del sitio */
.mp-static .stats-tabs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .1rem 0 .9rem; border: none; background: none; }
.mp-static .stats-tabs::-webkit-scrollbar { display: none; }
.mp-static .stats-tab { flex: 0 0 auto; height: 34px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  font: 600 .74rem 'Inter', sans-serif; color: var(--muted); cursor: pointer; }
.mp-static .stats-tab.active { background: rgba(0,245,212,.12); border-color: var(--em); color: var(--em); box-shadow: 0 0 0 2px rgba(0,245,212,.08); }
.mp-static .mp-tabs .stats-panel > .mp-seccion { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1rem 1.2rem; margin: 0; }
.mp-static .mp-tabs .stats-panel > .mp-seccion > .mp-h2 { margin-top: .2rem; }

/* Más resultados */
.mp-static .mp-rows-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.mp-static .mp-ver-todo { display: inline-block; margin-top: .8rem; font: 600 .8rem 'Inter', sans-serif; color: var(--em); }
.mp-static .mp-ver-todo:hover { text-decoration: underline; }

/* ═══ Página de COMUNIDAD ═══════════════════════════════════════════ */
.mp-static .mp-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.mp-static .mp-chip { padding: .28rem .7rem; border-radius: 999px; font: 500 .7rem 'Inter', sans-serif; color: #e2e8f0; background: rgba(5,12,28,.62); border: 1px solid rgba(0,245,212,.35); }
.mp-static .mp-chip b { color: var(--mv-cian); }
.mp-static .mp-torneo-tabs { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: .2rem 0 .8rem; }
.mp-static .mp-torneo-tabs::-webkit-scrollbar { display: none; }
.mp-static .torneo-tab { display: inline-flex; align-items: center; gap: .45rem; flex: 0 0 auto; height: 34px; padding: 0 .9rem 0 .5rem; border-radius: 999px;
  font: 600 .74rem 'Inter', sans-serif; color: var(--muted2); background: var(--card); border: 1px solid var(--border); white-space: nowrap; }
.mp-static .torneo-tab.active { color: var(--em); border-color: var(--em); background: rgba(0,245,212,.1); }
.mp-static .torneo-tab-icon { width: 22px; height: 22px; padding: 2px; border-radius: 6px; background: #fff; object-fit: contain; }

/* Los bloques .com-* llevan margen lateral propio pensado para el SPA: aquí el contenedor ya tiene su relleno */
.mp-static .com-sub-tabs, .mp-static .com-date-group, .mp-static .com-ranking { margin-left: 0; margin-right: 0; }
.mp-static .com-sv-elim-feed, .mp-static .com-sv-resumen { margin-left: 0; margin-right: 0; }

/* Ranking: podio con medallas */
.mp-static .com-ranking .com-rank-item:nth-child(2) { background: linear-gradient(90deg, rgba(245,183,59,.13), transparent 65%); }
.mp-static .com-ranking .com-rank-item:nth-child(3) { background: linear-gradient(90deg, rgba(203,213,225,.10), transparent 65%); }
.mp-static .com-ranking .com-rank-item:nth-child(4) { background: linear-gradient(90deg, rgba(211,139,82,.10), transparent 65%); }
.mp-static .com-ranking .com-rank-item:nth-child(2) .com-rank-pos { color: #f5b73b; text-shadow: 0 0 12px rgba(245,183,59,.5); }
.mp-static .com-ranking .com-rank-item:nth-child(3) .com-rank-pos { color: #cbd5e1; }
.mp-static .com-ranking .com-rank-item:nth-child(4) .com-rank-pos { color: #d38b52; }
.mp-static .com-ranking .com-rank-item:nth-child(2) .com-rank-user { font-weight: 700; }

/* Hora, estadio y canal del partido (bajo el marcador, sobre fondo oscuro) */
.mp-static .pp-info { margin: 1rem auto 0; max-width: 760px; padding: 0; }
.mp-static .pp-info-simple { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.mp-static .pp-info .shv-fecha, .mp-static .pp-info .shv-venue, .mp-static .pp-info .shv-canal-nombre {
  color: rgba(226,232,240,.85); font: 600 .78rem 'Inter', sans-serif; margin: 0; text-align: center; }
.mp-static .pp-info.shv-info { justify-content: center; }
.mp-static .pp-info.shv-info .shv-info-lineas { align-items: flex-start; }
.mp-static .pp-info.shv-info .shv-fecha, .mp-static .pp-info.shv-info .shv-venue, .mp-static .pp-info.shv-info .shv-canal-nombre { text-align: left; }

/* ── Escudos en el resto de la página de partido (H2H, clasificación, más resultados): nunca recortados ── */
.mp-static.mp-partido-pg .mescudo { object-fit: contain; }

/* ── Barra "equipo local | equipo visitante" sobre Resumen y Estadísticas ── */
.mp-static .mp-eq-hdr { display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  margin: 0 0 .75rem; padding: .55rem .8rem; border-radius: 10px; background: var(--card2); border: 1px solid var(--border2);
  font: 700 .85rem 'Inter', sans-serif; letter-spacing: .02em; color: var(--text); }
.mp-static .mp-eq-hdr > span { display: flex; align-items: center; gap: .5rem; min-width: 0; flex: 1 1 0; }
.mp-static .mp-eq-hdr > span:last-child { flex-direction: row-reverse; text-align: right; }
.mp-static .mp-eq-hdr .mescudo { width: 22px; height: 22px; flex: none; }
.mp-static .mp-eq-hdr b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* En Resumen, el mismo ancho (560px) y centrado que la lista de eventos de landing.css */
.mp-static .mp-eq-hdr--ev { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── Resumen: la lista de eventos se lee entera, sin barra de scroll interna ── */
.mp-static .stats-events { max-height: none; overflow: visible; }

/* ── Alineaciones: cabeceras de formación alineadas con el campo, con aire respecto a lo que viene después ── */
.mp-static .pitch-formations { max-width: 380px; margin: 0 auto; padding: 0 0 .75rem; }
.mp-static .pitch-formations-bottom { padding: .75rem 0 0; margin-bottom: 1.8rem; }
.mp-static .pitch-form-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .2rem .55rem; width: 100%; }
.mp-static .pitch-form-side-r { flex-direction: row-reverse; text-align: right; }
.mp-static .pitch-form-team { font: 700 .82rem 'Inter', sans-serif; color: var(--text); }
.mp-static .pitch-form-num { padding: .12rem .55rem; border-radius: 999px; font-size: .68rem; color: var(--em);
  background: var(--em-bg); border: 1px solid var(--em-bd); }
.mp-static .pitch-form-coach { margin-left: auto; font-size: .7rem; color: var(--muted2); }
.mp-static .pitch-form-side-r .pitch-form-coach { margin-left: 0; margin-right: auto; }
.mp-static .pitch-cambios { margin-bottom: 1.5rem; }
.mp-static .pitch-subs { margin-top: 1.1rem; }

/* ── Jugadores en pantallas anchas: local a la izquierda, visitante a la derecha ── */
@media (min-width: 760px) {
  .mp-static .pstat-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
  .mp-static .pstat-wrap .pstat-team { min-width: 0; }
}