/* ====== Título general ====== */
.vp-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 6px 0 10px;
}

/* ====== Lista ====== */
.vp-list {
  display: grid;
  gap: 8px;
}

/* ====== Tarjeta ====== */
.vp-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center; /* centrado general */
  justify-content: center;
  gap: 10px;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  color: inherit;
  text-decoration: none;
}

.vp-card-live {
  border-left: 4px solid #e11d48;
  background: #fff5f6;
}
.vp-card-live:hover { background: #ffe9ec; }

/* ====== Meta (ciudad, hora o LIVE) ====== */
.vp-meta-line {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
}
.vp-city::after { content: ""; margin: 0 4px 0 2px; }

/* ====== Partido ====== */
.vp-match {
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-height: 5px;
}

/* ====== Equipos ====== */
.vp-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* normal: centrado */
  text-align: center;
  position: relative;
}

.vp-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vp-team img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 1px rgba(0,0,0,.1));
}

/* Goleadores */
.vp-goals {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.4;
  opacity: 0.9;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centrado normal */
  gap: 2px;
}

.vp-card.vp-hasgoals .vp-goal::before {
  content: "⚽";
  font-size: 12px;
  opacity: 0.8;
}

/* ====== Centro (marcador y resumen) ====== */
.vp-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.vp-score {
  font-weight: 800;
  font-size: 1rem;
}

.vp-resumen {
  font-size: 13px;
  margin-top: 3px;
}
.vp-resumen a {
  color: #2f2f2f;
  text-decoration: none;
}
.vp-resumen a:hover {
  text-decoration: underline;
}

/* ====== Nombres completos y cortos ====== */
.vp-name-full { display: inline; }   /* escritorio: visible */
.vp-name-short { display: none; }    /* escritorio: oculto */

/* ====== AJUSTES SOLO PARA PARTIDOS EN VIVO ====== */
.vp-card-live .vp-match {
  align-items: start; /* equipos desde arriba */
}
.vp-card-live .vp-team {
  justify-content: flex-start; /* nombre y escudo arriba */
  min-height: 80px;
}
.vp-card-live .vp-goals {
  min-height: 28px; /* espacio fijo reservado */
  justify-content: flex-start;
}

/* ====== Responsive ====== */
@media (max-width: 640px) {
  .vp-card { grid-template-columns: 90px 1fr; }
  .vp-city { display: none; }

  .vp-match { grid-template-columns: 1fr 70px 1fr; gap: 5px; }

  .vp-dt br { display: block; }
  .vp-sep { display: none; }

  .vp-team img { width: 26px; height: 26px; }

  /* nombres en móvil: corto visible, completo oculto */
  .vp-name-full { display: none; }
  .vp-name-short { display: inline; }

  .vp-score { font-size: .95rem; }
  .vp-names { gap: 3px; }
  .vp-goals { font-size: 11.5px; line-height: 1.2; }
  
  .vp-dt {
  display: flex;
  flex-direction: column;
  align-items: center;
  }
  
  .vp-goal {
    display: block;       /* cada gol sigue en su fila */
    white-space: nowrap;  /* no se parte internamente */
  }

  /* opcional: ajustar tamaño si es necesario */
  .vp-goals {
    font-size: 11.5px;
    line-height: 1.3;
    gap: 2px;
  } 
  
  .vp-meta-line .vp-dt {
    max-width: 50px; /* ajusta según necesites */
  } 
  
  .vp-match {
    grid-template-columns: minmax(50px, 60px) 70px 1fr; 
    align-items: center;
  }

  .vp-team.visitante {
    min-width: 0;                 /* ya lo tienes */
    max-width: 100%;               /* asegura que no exceda el contenedor */
    word-break: break-word;        /* corta palabras largas si es necesario */
    overflow-wrap: anywhere;       /* seguridad adicional */
    display: flex;
    flex-direction: column;
    align-items: flex-start;       /* alinea el contenido a la izquierda */
  }

  /* Ajusta los goles para que queden dentro */
  .vp-team.visitante .vp-goals {
    width: 100%;
    text-align: left;              /* importante para que los goles no se centren y desborden */
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Opcional: asegura que la tarjeta no se expanda demasiado */
  .vp-card {
    width: 100%;
  }
  
}




