/* Tarjeta de partido (componente único, js/alab-tarjeta-partido.js): fixture de Competiciones y Panel de control.
   La grilla que las contiene la pone cada página (.tp-mcs en Competiciones, .pn-ult__g en el Panel).
   El contenedor .tp-mcw y el lápiz / video se acomodan en css/alab-fechas.css. */
.tp-mc { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tp-mc:hover { border-color: var(--brand); box-shadow: 0 8px 20px rgba(27, 103, 70, .12); transform: translateY(-1px); }
.tp-mc.is-next { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.tp-mc__t { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 500; font-size: 13.5px; }
.tp-mc__t--h { justify-content: flex-end; text-align: right; }
.tp-mc__t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-mc__t.is-win span { font-weight: 700; }
.tp-mc__m { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tp-mc__m span { font-size: 10.5px; color: var(--ink-3); }
.tp-mc__m .tp-pend { font-size: 10.5px; text-align: center; max-width: 100%; }
.tp-hr.tp-hr--pend { background: var(--surface-2); color: var(--ink-3); }
.tp-sc { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 10px; background: #0F2D22; color: #fff; font: 600 17px/1 var(--font-data); }
.tp-sc i { font-style: normal; opacity: .5; }
.tp-hr { display: inline-block; padding: 5px 12px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-ink); font: 600 15px/1 var(--font-data); }
/* Estado de las estadísticas (js/alab-estado-stats.js): pastilla abajo al centro, fuera del enlace de la tarjeta */
.tp-mcw.has-est > .tp-mc { padding-bottom: 32px; }
.tp-mcw > .tp-est { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); max-width: calc(100% - 20px); }
.tp-cr { width: 28px; height: 28px; object-fit: contain; flex: none; filter: drop-shadow(0 1px 2px rgba(17, 28, 22, .2)); }
@media (max-width: 860px) { .tp-mc { grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); padding: 10px; } .tp-mc__t { flex-direction: column; text-align: center; font-size: 12px; } .tp-mc__t--h { flex-direction: column-reverse; justify-content: center; text-align: center; } .tp-mc__t span { white-space: normal; } }

/* Versión compacta (Panel · Últimos partidos jugados): escudo arriba del nombre, nombres largos en dos líneas,
   fecha corta debajo del marcador. Mismo dibujo en todos los anchos. */
.tp-mcw--mini > .tp-mc { grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); gap: 6px; padding: 10px 8px; border-radius: 12px; align-items: start; }
.tp-mcw--mini .tp-mc__t { flex-direction: column; justify-content: flex-start; gap: 5px; text-align: center; font-size: 12px; line-height: 1.25; }
.tp-mcw--mini .tp-mc__t--h { flex-direction: column-reverse; justify-content: flex-end; }
.tp-mcw--mini .tp-mc__t span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.tp-mcw--mini .tp-cr { width: 26px; height: 26px; }
.tp-mcw--mini .tp-mc__m { padding-top: 2px; gap: 4px; }
.tp-mcw--mini .tp-sc { gap: 4px; padding: 4px 9px; border-radius: 8px; font-size: 15px; }
.tp-mcw--mini .tp-hr { padding: 4px 9px; border-radius: 8px; font-size: 13px; }
.tp-mcw--mini .tp-mc__m .tp-mc__f { font: 500 10.5px/1.2 var(--font-data); color: var(--ink-3); white-space: nowrap; }
.tp-mcw--mini .tp-mc__m .tp-pend { font-size: 10px; line-height: 1.25; }
.tp-mcw--mini.has-est > .tp-mc { padding-bottom: 32px; }
