/* --- Keyframes outside media query --- */
@keyframes scorePulse {
  0%, 100% {
    text-shadow: 0 0 15px rgba(255,255,255,0.9), 0 0 30px rgba(0,255,100,0.6);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 30px rgba(255,255,255,1), 0 0 60px rgba(0,255,100,0.9);
    transform: scale(1.05);
  }
}

/* --- Night Match Style for Single Match Page Only (Mobile) --- */
@media screen and (max-width: 768px) {

  /* Restrict background to single match page only */
  body.single-anwp_match .anwp-match-header {
    position: relative;
    background: url("https://theupdatedworld.com/wp-content/uploads/2025/10/17607188293252.jpg") no-repeat center center / cover !important;
    color: #fff !important;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 255, 60, 0.25);
    padding: 25px 15px;
    text-align: center;
    overflow: hidden;
  }

  body.single-anwp_match .anwp-match-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 0;
  }

  /* Team logos + names layout */
  body.single-anwp_match .anwp-match-header__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 2;
  }

  body.single-anwp_match .anwp-match-header__club {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  body.single-anwp_match .anwp-match-header__club-logo img {
    width: 75px !important;
    height: auto !important;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
    margin-bottom: 8px;
  }

  body.single-anwp_match .anwp-match-header__team-name {
    font-size: 15px !important;
    font-weight: 600;
    text-transform: uppercase;
    color: #f8f8f8 !important;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  }

  /* Score centered + animated */
  body.single-anwp_match .anwp-match-header__score {
    font-size: 48px !important;
    font-weight: 900;
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(255,255,255,0.9), 0 0 30px rgba(0,255,100,0.6);
    animation: scorePulse 3s infinite ease-in-out;
    position: relative;
    z-index: 2;
  }

  /* Hide metadata (author/date) */
  body.single-anwp_match .entry-meta {
    display: none !important;
  }
}