/* =========================================================
   MARQUESINA DE RESULTADOS — rediseño — v9
   Vuelve a ser solo tarjetas de partido (sin el cartel de
   fecha aparte). Apariencia tipo "ficha de partido": arriba
   fecha/hora + estado, abajo escudo + nombre + gol por equipo.
   Scroll nativo del navegador (sin owl-carousel).
   Se agrega DESPUÉS de las hojas de estilo que ya están cargadas.
   ========================================================= */

body { background: transparent; margin: 0; }

.slider,
.slider-partidos {
  background: transparent !important;
}

.slider {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 2px 20px; /* el de abajo es para que la sombra de las tarjetas no se corte */
  box-sizing: border-box;
  width: 100%;
}

/* sin min-width:0 acá, el riel nunca se achica y todo se sale de
   la pantalla — ver notas de versiones anteriores */
.slider-partidos {
  display: flex !important;
  align-items: stretch;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 14px;
  box-sizing: border-box;
}

.slider-partidos::-webkit-scrollbar { display: none; }
.slider-partidos { scrollbar-width: none; }

.partido-cont {
  scroll-snap-align: start;
  flex: 0 0 auto;

  position: static !important;
  float: none !important;
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  width: clamp(230px, 60vw, 290px);
  margin: 0 !important;
  box-sizing: border-box;

  background: #ffffff !important;
  border: 1px solid #E7EAEE;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(16, 24, 32, 0.05), 0 6px 16px rgba(16, 24, 32, 0.04);
  padding: 12px 14px;
}

/* tarjeta con tinte azul clarito cuando el partido está en juego */
.partido-cont:has(.enjuego) {
  background: #F2F7FC !important;
  border-color: #D2E3F3;
}

/* ---- franja de arriba: fecha/hora a la izquierda, estado a la derecha ---- */
.partido-top {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #EEF0F3;
}

.partido-fecha-hora {
  position: static !important;
  float: none !important;
  display: inline-block !important;
  font-size: 13px;
  font-weight: 700;
  color: #313131;
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
}

/* MODIFICADO: se renombró de ".estado" a ".partido-estado" — el
   nombre genérico probablemente chocaba con alguna regla vieja del
   sitio (float, position, etc.) que lo empujaba a la izquierda en
   vez de dejarlo a la derecha como corresponde. */
.partido-estado {
  position: static !important;
  float: none !important;
  display: inline-block !important;
  margin-left: auto;
}

.estado-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none !important;
}

.estado-badge.por-jugar { color: #2E6FE0 !important; background: #EAF1FD; }
.estado-badge.finalizado { color: #0d5474 !important; background: #eaf3f7; }
.estado-badge.finalizado:hover { background: #dcebf1; }
.estado-badge.enjuego {
  color: #1D5FA8 !important;
  background: #E7F0FA;
  animation: mq-parpadeo 1.8s ease-in-out infinite;
}
.estado-badge.enjuego::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1D5FA8;
  display: inline-block;
}
.estado-badge.enjuego a { color: inherit !important; text-decoration: underline !important; font-weight: 700; margin-left: 2px; }
.estado-badge.suspendido { color: #D97236 !important; background: #FDECE0; }

@keyframes mq-parpadeo {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

/* ---- filas de equipo: escudo + nombre + gol ---- */
.equipo-fila {
  display: flex;
  align-items: center;
  gap: 8px;
}

.escudos,
.escudo {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain;
  flex-shrink: 0;
}

.equipo-nombre {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Titillium Web', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #16202A;
}

.goles {
  flex-shrink: 0;
  min-width: 18px;
  font-family: 'Titillium Web', sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: #16202A;
  text-align: right;
}

/* ---- flechas: MODIFICADO — ahora son rectángulos del mismo ancho
   que los círculos de antes (32px), con altura de 140px (la de la
   tarjeta .partido-cont) y centrados en la vertical. ---- */
.mq-prev,
.mq-next {
  flex: 0 0 auto;
  align-self: center;          /* centrado vertical dentro de .slider */
  width: 32px;
  height: 138px;
  max-height: 138px;
  margin-bottom: 8px;          /* compensa el padding desparejo del riel (6px arriba / 14px abajo)
                                  para que la flecha quede centrada con la tarjeta y no con el riel */
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;          /* antes 50% (círculo). Poné 0 si lo querés con esquinas rectas */
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(16, 24, 32, .18), 0 4px 10px rgba(16, 24, 32, .1);
  color: #16202A;
  text-align: center;
  font-size: 0;
  cursor: pointer;
  padding: 0;
}

.mq-prev::before { content: "‹"; font-size: 30px; line-height: 1; }
.mq-next::before { content: "›"; font-size: 30px; line-height: 1; }

.mq-prev:hover,
.mq-next:hover { background: #F2F4F6; }

@media (max-width: 420px) {
  .partido-cont { padding: 10px 12px; gap: 6px; }
  .equipo-nombre { font-size: 13px; }
  .goles { font-size: 14px; }
}
