/* ── EHC Spielplan Widget CSS (4-Column Layout) ── */
/* Structure: [DATE/TIME] [HOME] [SCORE] [AWAY] */
/* Color Scheme: Dark — Black & Red (#96191e) */
/* High specificity to override site theme */

/* Game list */
.ehc-games.ehc-games {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #96191e !important;
  border-radius: 4px;
  overflow: hidden;
}

/* Single game row — 4 columns */
/* Odd rows: dark black */
.ehc-games .ehc-game.ehc-game {
  display: grid;
  grid-template-columns: 160px 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
  transition: background 0.15s;
}

/* Even rows: dark red */
.ehc-games .ehc-game.ehc-game:nth-child(even) {
  
  border: solid 3px #7a1419;
}

/* Hover */
.ehc-games .ehc-game.ehc-game:hover {
  background: #2a2a2a !important;
  background-color: #2a2a2a !important;
}
.ehc-games .ehc-game.ehc-game:nth-child(even):hover {
  background: #7a1419 !important;
  background-color: #7a1419 !important;
}

/* Upcoming game accent */
.ehc-games .ehc-game.ehc-game--upcoming {
  border-left: 4px solid #ff4a4a;
}

/* ── Column 1: Date & Time ── */
.ehc-game .ehc-game__datecol {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ehc-game .ehc-game__dayname {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff !important;
}
.ehc-game .ehc-game__datenum {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cccccc !important;
}
.ehc-game .ehc-game__time {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cccccc !important;
}

/* ── Column 2 & 4: Teams ── */
.ehc-game .ehc-team {
  min-width: 0;
}
.ehc-game .ehc-team--home {
  text-align: center;
}
.ehc-game .ehc-team--away {
  text-align: left;
}
.ehc-game .ehc-team-name {
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.7) !important;
}
.ehc-game .ehc-team-name--highlight {
  color: #ffffff !important;
}

/* ── Column 3: Score ── */
.ehc-game .ehc-game__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 90px;
  text-align: center;
}
.ehc-game .ehc-score {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #ffffff !important;
}
.ehc-game .ehc-score--win {
  color: #4ade80 !important;
}
.ehc-game .ehc-score--loss {
  color: #f87171 !important;
}
.ehc-game .ehc-score--draw {
  color: #fbbf24 !important;
}
.ehc-game .ehc-score--pending {
  color: #999999 !important;
  letter-spacing: 3px;
}
.ehc-game .ehc-game__special {
  font-size: 0.78rem;
  color: #fbbf24 !important;
  font-weight: 700;
  text-transform: uppercase;
}
.ehc-game .ehc-game__drittel {
  font-size: 0.72rem;
  color: #aaaaaa !important;
}
.ehc-game .ehc-game__league {
  font-size: 0.68rem;
  font-weight: 600;
  color: #dddddd !important;
  background: rgba(255, 255, 255, 0.1) !important;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── States ── */
.ehc-games .ehc-empty {
  padding: 32px;
  text-align: center;
  color: #aaaaaa !important;
  font-style: italic;
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
}
.ehc-games .ehc-error {
  padding: 32px;
  text-align: center;
  color: #f87171 !important;
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
}
.ehc-games .ehc-loading {
  text-align: center;
  padding: 48px;
  color: #aaaaaa !important;
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
}
.ehc-loading .ehc-loading__spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #333333;
  border-top-color: #96191e;
  border-radius: 50%;
  animation: ehcSpin 0.7s linear infinite;
  margin: 0 auto 8px;
}
@keyframes ehcSpin {
  to { transform: rotate(360deg); }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .ehc-games .ehc-game.ehc-game {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
    padding: 18px 16px;
  }
  .ehc-game .ehc-game__datecol {
    align-items: center;
  }
  .ehc-game .ehc-team--home,
  .ehc-game .ehc-team--away {
    text-align: center;
  }
  .ehc-game .ehc-score {
    font-size: 1.4rem;
  }
}