/* Hero match cards — liquid glass, ONE card, no nested boxes.
   Fixes the screenshot problem: the old layers left a bordered box
   around the teams (tp-matchup), a circled VS (tp-vs span border) and
   a rule above the foot (tp-featured-foot border-top) — a div inside
   a div inside a div, all outlined. This layer, loaded last on the
   homepage only, removes every inner line and restores the glass look
   the user asked to keep, in both modes. No other page is touched. */

/* ONE glass card: translucent, blurred, no border, no inset lines. */
body .hero-match-deck .glass-card,
body .hero-match-deck .hero-club-card,
body .hero-match-deck .hero-cup-card,
body.glass-home .hero-match-deck .hero-cup-card.tp-featured,
body.glass-home .hero-match-deck .hero-club-card.tp-featured {
  background: #0a1f15 !important;
  background-image: linear-gradient(140deg, #0e2a1c, #081712) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.30) !important;
  color: #eef4ee !important;
}
html[data-theme="light"] body .hero-match-deck .glass-card,
html[data-theme="light"] body .hero-match-deck .hero-club-card,
html[data-theme="light"] body .hero-match-deck .hero-cup-card,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-cup-card.tp-featured,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-club-card.tp-featured {
  /* Same dark translucent glass as dark mode: the hero behind is a dark
     photo in both modes, so a white card would hide it. White text stays. */
  background: #0a1f15 !important;
  background-image: linear-gradient(140deg, #0e2a1c, #081712) !important;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.30) !important;
  color: #eef4ee !important;
}
html[data-theme="light"] body .hero-match-deck .tp-team span { color: #ffffff !important; }
html[data-theme="light"] body .hero-match-deck .tp-vs span,
html[data-theme="light"] body .hero-match-deck .tp-vs .tp-score { color: #f2c230 !important; }
html[data-theme="light"] body .hero-match-deck .tp-featured-foot span { color: #eef4ee !important; }
html[data-theme="light"] body .hero-match-deck .tp-featured-foot span:last-child { color: #cdd9d0 !important; }

/* No inner boxes at all: inner wrapper, matchup row, VS, foot. */
body .hero-match-deck .tp-featured-inner,
body .hero-match-deck .tp-matchup,
body .hero-match-deck .tp-vs,
body .hero-match-deck .tp-featured-foot {
  background: none !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
body .hero-match-deck .tp-matchup {
  padding: 6px 0 2px !important;
}
body .hero-match-deck .tp-matchup:hover,
body .hero-match-deck .tp-featured:hover,
body.glass-home .hero-match-deck .hero-cup-card.tp-featured:hover,
body.glass-home .hero-match-deck .hero-club-card.tp-featured:hover {
  transform: none !important;
  background: none !important;
  border: none !important;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.30) !important;
}
html[data-theme="light"] body .hero-match-deck .tp-matchup:hover,
html[data-theme="light"] body .hero-match-deck .tp-featured:hover {
  box-shadow: 0 14px 44px rgba(20, 40, 30, 0.12) !important;
}

/* VS is plain text now, not a circled pill. */
body .hero-match-deck .tp-vs span,
body .hero-match-deck .tp-vs .tp-score {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: 15px !important;
  color: #f2c230 !important;
}
html[data-theme="light"] body .hero-match-deck .tp-vs span,
html[data-theme="light"] body .hero-match-deck .tp-vs .tp-score {
  color: #f2c230 !important;
}
body .hero-match-deck .tp-vs .tp-score {
  font-size: 24px !important;
}

/* Foot: no rule line above it, just spacing. */
body .hero-match-deck .tp-featured-foot {
  margin-top: 8px !important;
  padding-top: 0 !important;
}

/* Team names stay readable on glass in both modes. */
body .hero-match-deck .tp-team span { color: #ffffff !important; }
html[data-theme="light"] body .hero-match-deck .tp-team span { color: #ffffff !important; }
body .hero-match-deck .tp-featured-foot span { color: #eef4ee !important; }
body .hero-match-deck .tp-featured-foot span:last-child { color: #cdd9d0 !important; }
html[data-theme="light"] body .hero-match-deck .tp-featured-foot span { color: #eef4ee !important; }
html[data-theme="light"] body .hero-match-deck .tp-featured-foot span:last-child { color: #cdd9d0 !important; }

/* Slightly smaller on phones: tighter card, smaller crests and type. */
@media (max-width: 600px) {
  body .hero-match-deck { gap: 12px !important; }
  body .hero-match-deck .glass-card,
  body .hero-match-deck .hero-club-card,
  body .hero-match-deck .hero-cup-card {
    padding: 14px 16px !important;
    border-radius: 18px !important;
  }
  body .hero-match-deck .tp-team img {
    width: 36px !important;
    height: 36px !important;
    margin-bottom: 4px !important;
  }
  body .hero-match-deck .tp-team span { font-size: 14px !important; }
  body .hero-match-deck .tp-vs { min-width: 44px !important; }
  body .hero-match-deck .tp-vs span { font-size: 13px !important; }
  body .hero-match-deck .tp-vs .tp-score { font-size: 20px !important; }
  body .hero-match-deck .tp-featured-label { font-size: 10.5px !important; margin-bottom: 8px !important; }
  body .hero-match-deck .glass-pill { font-size: 11px !important; margin-bottom: 8px !important; }
  body .hero-match-deck .tp-featured-foot { font-size: 11.5px !important; margin-top: 6px !important; }
  body .hero-match-deck .tp-matchup { gap: 8px !important; }
}

/* Hero card text visibility: dark shadows behind every text element so
   white/gold text reads over the bright hero photo, in both modes. */
body .hero-match-deck .tp-team span,
body .hero-match-deck .tp-featured-label,
body .hero-match-deck .tp-featured-label-cup,
body .hero-match-deck .tp-vs span,
body .hero-match-deck .tp-vs .tp-score,
body .hero-match-deck .tp-featured-foot span,
body .hero-match-deck .glass-pill {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65), 0 2px 16px rgba(0, 0, 0, 0.45) !important;
}
body .hero-match-deck .tp-team span { color: #ffffff !important; font-weight: 900 !important; }
body .hero-match-deck .tp-featured-label,
body .hero-match-deck .tp-featured-label-cup { color: #fdc52c !important; }
body .hero-match-deck .tp-featured-foot span { color: #ffffff !important; }
body .hero-match-deck .tp-featured-foot span:last-child { color: #e6efe8 !important; }

/* Events fixture cards: same glass treatment as the hero cards, not solid
   blue. Dark mode: dark translucent glass, white teams, gold centre.
   Light mode: white glass, dark teams, navy centre. */
body .glass-fixture {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.08) 55%, rgba(255, 255, 255, 0.12)) !important;
  background-image: linear-gradient(140deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.08) 55%, rgba(255, 255, 255, 0.12)) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  border: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  color: #ffffff !important;
}
body .glass-fixture time, body .glass-fixture time b { color: #e6efe8 !important; }
body .glass-fixture .t { color: #ffffff !important; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55) !important; }
body .glass-fixture .vs { color: #fdc52c !important; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55) !important; }
html[data-theme="light"] body .glass-fixture {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75) 55%, rgba(240, 246, 242, 0.88)) !important;
  background-image: linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75) 55%, rgba(240, 246, 242, 0.88)) !important;
  box-shadow: 0 10px 30px rgba(20, 40, 30, 0.10) !important;
  color: #181733 !important;
}
html[data-theme="light"] body .glass-fixture time, html[data-theme="light"] body .glass-fixture time b { color: #444444 !important; }
html[data-theme="light"] body .glass-fixture .t { color: #181733 !important; text-shadow: none !important; }
html[data-theme="light"] body .glass-fixture .vs { color: #154284 !important; text-shadow: none !important; }
