/* ===============================
   MATCH CARD – CHROME SAFE
   =============================== */

.match-card {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  box-sizing: border-box;
}

/* Fixed image geometry (prevents reflow) */
.match-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Hover shadow via pseudo-element ONLY */
.match-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  opacity: 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: opacity 0.2s ease;
}

.match-card:hover::after {
  opacity: 1;
}

/* ===============================
   PAGE CONTAINER SAFETY
   =============================== */

#matchesContainer {
  position: relative;
  overflow-anchor: none;
}

/* Safe fade-out animation */
.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

/* Layout helpers (safe) */
#topMatchesContainer .row {
  justify-content: center;
}

.match-score {
  font-weight: 600;
  font-size: 0.95rem;
}

.carousel-item img {
  object-fit: cover;
  height: 320px;
  border-radius: 0.75rem;
}
