/* LosersLeague Home football cards v1
   Football only: EPL, UCL and World Cup cards in Home / Последние результаты.
   The Home results section itself stays white. NHL keeps its separate ice treatment. */

#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="pl"]),
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="ucl"]),
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="wc26"]){
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  background:#f0f9ee!important;
  background-image:
    linear-gradient(180deg,rgba(244,252,242,.98) 0%,rgba(232,247,229,.95) 54%,rgba(246,252,244,.99) 100%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 22px,rgba(102,157,99,.035) 23px 44px)!important;
  border:1px solid #bdd9bb!important;
  border-top:1px solid #a9cfa7!important;
  border-radius:11px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86),0 2px 7px rgba(75,125,72,.08)!important;
}

/* Barely visible pitch geometry. */
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="pl"])::before,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="ucl"])::before,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="wc26"])::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.72;
  background:
    linear-gradient(90deg,transparent calc(50% - .5px),rgba(255,255,255,.52) calc(50% - .5px),rgba(255,255,255,.52) calc(50% + .5px),transparent calc(50% + .5px)),
    radial-gradient(circle at 50% 50%,transparent 0 30px,rgba(255,255,255,.46) 30.5px 31.5px,transparent 32px),
    radial-gradient(ellipse at 18% 18%,rgba(255,255,255,.24),transparent 38%),
    radial-gradient(ellipse at 82% 82%,rgba(122,170,116,.06),transparent 42%);
}

/* Quiet corner-arc cue: enough to read as football, never as decoration. */
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="pl"])::after,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="ucl"])::after,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="wc26"])::after{
  content:"";
  position:absolute;
  z-index:-1;
  width:48px;
  height:48px;
  left:-31px;
  bottom:-31px;
  border:1px solid rgba(255,255,255,.52);
  border-radius:50%;
  pointer-events:none;
}

#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="pl"]) header,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="pl"]) .home-result-team,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="ucl"]) header,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="ucl"]) .home-result-team,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="wc26"]) header,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="wc26"]) .home-result-team{
  border-color:rgba(111,157,106,.25)!important;
  background:transparent!important;
}

#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="pl"]) header b,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="ucl"]) header b,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="wc26"]) header b{
  background:rgba(236,246,234,.90)!important;
  color:#102217!important;
}
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="pl"]) header b.overtime,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="ucl"]) header b.overtime,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="wc26"]) header b.overtime{
  background:#a80025!important;
  color:#fff!important;
}
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="pl"]) time,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="ucl"]) time,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="wc26"]) time{
  color:#65806a!important;
}

#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="pl"])>button,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="ucl"])>button,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="wc26"])>button{
  background:rgba(255,255,255,.42)!important;
  border:1px solid rgba(129,174,124,.55)!important;
  color:#235f35!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72)!important;
}

#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="pl"])>*,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="ucl"])>*,
#comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="wc26"])>*{
  position:relative;
  z-index:1;
}

/* Site-wide asset rule: flags and crests sit directly on the page/card surface.
   No white capsule, frame, shadow or fake tile around transparent artwork. */
html body .ll-flag-badge,
html body .wc-team .ll-flag-badge,
html body .wc-ko-teamname .ll-flag-badge,
html body .ll-next-clean-name .ll-flag-badge,
html body .ll-next-mini-teams .ll-flag-badge,
html body .ll-result-row .ll-inline-team .ll-flag-badge,
html body .ll-record-row .ll-flag-badge,
html body .th-team-title .ll-flag-badge,
html body .th-match-row .ll-flag-badge,
html body .th-best .ll-flag-badge{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  overflow:visible!important;
}

html body .ll-flag-badge img,
html body img.home-result-flag,
html body img[class*="flag"],
html body img[class*="crest"],
html body img[class*="logo"]{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
}
html body .ll-flag-badge img,
html body img.home-result-flag,
html body img[class*="flag"]{
  border-radius:0!important;
  object-fit:contain!important;
}

/* Crest wrapper classes used by football modules must not manufacture a white tile. */
html body .ll-epl-crest,
html body [class*="crest-wrap"],
html body [class*="logo-wrap"]{
  background:transparent!important;
  background-image:none!important;
  border-color:transparent!important;
  box-shadow:none!important;
}

@media(max-width:700px){
  #comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="pl"]),
  #comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="ucl"]),
  #comp-home #homeResultsTrack .home-result-card:has(>button[data-result-comp="wc26"]){border-radius:9px!important}
}
