/* ============================= */
/* Most Recent Game – Fresh Scoreboard */
/* ============================= */

.most-recent-game {
  font-family: 'Poppins', sans-serif;
  margin: 0 auto;
  width: 80%;
}

/* -------------------- */
/* Top Scoreboard */
/* -------------------- */
.top-scoreboard {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  border-radius: 20px;
  border: 3px solid #00f6ff;
  background: linear-gradient(135deg, #0b0c10, #1f2833);
  box-shadow: 0 0 20px #00f6ff70, 0 0 40px #00f6ff50 inset;
  position: relative;
  margin-bottom: 2rem;
}

/* Top Scoreboard Background Coloring */
.top-scoreboard .team.away-team {
  padding: 1rem;
  border-radius: 15px;
  background: linear-gradient(
    90deg,
    #ff6b6b,
    #ff3b3b,
    #ff8c8c,
    #ff6b6b
  );
  box-shadow: 0 0 12px #ff6b6b, 0 0 25px #ff3b3b;
  animation: barShift 6s ease infinite;
}

.top-scoreboard .team.home-team {
  padding: 1rem;
  border-radius: 15px;
  background: linear-gradient(
    90deg,
    #4da6ff,
    #1e90ff,
    #66c2ff,
    #4da6ff
  );
  box-shadow: 0 0 12px #4da6ff, 0 0 25px #1e90ff;
  animation: barShift 6s ease infinite;
}

.team {
  flex: 1;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Base Bar */
.team::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background-size: 300% 300%;
  animation: barShift 6s ease infinite;
}

@keyframes barShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.team-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #00f6ff;
  text-shadow: 0 0 8px #00f6ff, 0 0 16px #00f6ff66;
  margin-bottom: 1rem;
}

/* Away = lighter red */
.away-team .team-title {
  color: whitesmoke;
  text-shadow: 0 0 20px #ff6b6b88;
}

/* Home = lighter blue */
.home-team .team-title {
  color: whitesmoke;
  text-shadow: 0 0 20px #4da6ff88;
}

@keyframes pulseText {
  0% { text-shadow: 0 0 8px #00f6ff, 0 0 16px #00f6ff66; }
  50% { text-shadow: 0 0 16px #00f6ff, 0 0 32px #00f6ff99; }
  100% { text-shadow: 0 0 8px #00f6ff, 0 0 16px #00f6ff66; }
}

.team-captain img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #00f6ff;
  object-fit: cover;
  margin-bottom: 0.5rem;
  box-shadow: 0 0 15px #00f6ff88;
}

.captain-name {
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.captain-label {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
  font-style: italic;
}

/* Score Column */
.score-column {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  font-weight: 900;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

/* =============================== */
/* Multi-layer Rising Smoke Effect */
/* =============================== */

.score-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 0.5rem;
  overflow: hidden;
}

/* Sport name (top) */
.score-meta-top {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow:
    0 0 6px rgba(0,0,0,0.9),
    0 0 12px rgba(0,0,0,0.7);
}

/* Main score row */
.score-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 3rem;
  font-weight: 900;
}

/* Location (bottom) */
.score-meta-bottom {
  font-size: 0.8rem;
  font-weight: 500;
  color: #ffffff;
  opacity: 0.9;
  text-align: center;
  text-shadow:
    0 0 6px rgba(0,0,0,0.9),
    0 0 14px rgba(0,0,0,0.8);
}

/* Layer 1 */
.score-smoke {
  position: absolute;
  width: 200%;
  height: 200%;
  bottom: -50%;
  left: -50%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 100%, rgba(255,255,255,0.15), transparent 60%);
  opacity: 0.35;
}

/* Layer 2 */
.score-smoke::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 90%, rgba(255,255,255,0.1), transparent 60%);
}

/* Layer 3 */
.score-smoke::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 95%, rgba(255,255,255,0.12), transparent 65%);
}

.away-score {
  color: #ff4d4d;
  text-shadow: 0 0 10px #ff4d4d88, 0 0 20px #ff4d4d55;
  animation: pulseScore 1.5s ease-in-out infinite alternate;
}

.home-score {
  color: #1e90ff;
  text-shadow: 0 0 10px #1e90ff88, 0 0 20px #1e90ff55;
  animation: pulseScore 1.5s ease-in-out infinite alternate;
}

.score-separator {
  color: #fff;
  font-size: 3.2rem;
  font-weight: 900;
}

/* Pulsing animation */
@keyframes pulseScore {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Ember effect on final score */
.ember-score::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: linear-gradient(45deg, #ffba00, #ff4d4d);
  border-radius: 50%;
  bottom: 0;
  left: 50%;
  animation: emberRise 2s linear infinite;
}

@keyframes emberRise {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-50px) scale(1.2); opacity: 0.6; }
  100% { transform: translateY(-100px) scale(0.8); opacity: 0; }
}

/* -------------------- */
/* Bottom Scoreboard / Players */
/* -------------------- */
.bottom-scoreboard {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.players-row {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  justify-content: center;
}

.players-column {
  flex: 1;
  background: linear-gradient(135deg, #141414, #1e1e1e);
  border-radius: 20px;
  border: 2px solid #00f6ff;
  padding: 1.5rem;
  color: #fff;
  box-shadow: 0 0 15px #00f6ff44, 0 0 30px #00f6ff22 inset;
}

.away-players h5 {
  color: #ff6b6b;
  text-shadow: 0 0 8px #ff6b6b66;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.home-players h5 {
  color: #4da6ff;
  text-shadow: 0 0 8px #4da6ff66;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #222;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px #00f6ff33;
}

.player-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #00f6ff66, 0 0 25px #ff4d4d44;
}

.player-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #00f6ff;
  object-fit: cover;
  margin-bottom: 0.3rem;
}

.player-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 15px #00f6ff66, 0 0 20px #1e90ff44 inset;
}

.player-name { font-weight: 600; margin: 0.2rem 0; }
.player-position, .player-score { font-size: 0.85rem; margin: 0; color: #ccc; }
.player-score { font-weight: 700; text-shadow: 0 0 6px #00f6ff33; }

/* Legend */
.score-legend {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #00f6ff;
  font-weight: 600;
  text-shadow: 0 0 4px #fff3ff33;
}

.score-legend p {
  color: #000;
  font-weight: 700;
  text-shadow:
    0 0 6px #1e90ff,
    0 0 12px #1e90ff66;
}

/* ================================= */
/* Dark Animated Section Background  */
/* ================================= */

.mrg-section-wrapper {
  padding: 4rem 0;
  background: linear-gradient(135deg, #050505, #2e2e2f, #242424);
  background-size: 400% 400%;
  animation: darkShift 6s ease infinite;
}

@keyframes darkShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}





/* Responsive */
@media (max-width: 768px) {
  .top-scoreboard {
    flex-direction: column;
  }
  .players-row {
    flex-direction: column;
  }
}