 /* ---- Match list container (scroll après 3 matchs) ---- */
.matches-list {
  display: flex;
  flex-direction: column;
  gap: 10px;

  /* scroll activé */
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
}

/* scrollbar propre */
.matches-list::-webkit-scrollbar {
  width: 6px;
}

.matches-list::-webkit-scrollbar-track {
  background: var(--iron-black);
  border-radius: 10px;
}

.matches-list::-webkit-scrollbar-thumb {
  background: var(--phantom-grey);
  border-radius: 10px;
  transition: background .2s;
}

.matches-list::-webkit-scrollbar-thumb:hover { background: var(--deep-teal); }


/* ---- Match card ----------------------------------------- */
.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 5px;

  transition: border-color .2s, transform .2s;
}

.match-card:hover { border-color: var(--border2); }

.match-card.win { border-left: 3px solid var(--green-growl); }

.match-card.loss { border-left: 3px solid var(--blood-oath); }

.match-card.live {
  border-left: 3px solid var(--blood-oath);
  animation: glow-loss .8s infinite alternate;
}

.match-card.upcoming { opacity: .85; }

@keyframes glow-loss {
  from { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  to   { box-shadow: 0 0 12px rgba(239, 68, 68, .15); }
}


/* ---- Teams --------------------------------------------- */
.match-team {
  display: flex;
  align-items: center;
  gap: 10px;
}

.match-team-away {
  flex-direction: row-reverse;
  text-align: right;
}

.team-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg3);
  padding: 4px;
  flex-shrink: 0;
}

.team-name {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
}

.team-tag {
  font-size: 12px;
  color: var(--text3);
}

@media (max-width: 768px) { .match-team { display: flow;} }
@media (max-width: 768px) { .team-name { text-align: center; margin-top: 1vh;} }

/* ---- Center / score ------------------------------------ */
.match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.match-score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
}

.score {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  min-width: 32px;
  text-align: center;
}

.score-win {
  color: var(--green-growl);
}

.score-loss {
  color: var(--blood-oath);
}

.score-sep {
  color: var(--text3);
  font-size: 20px;
}

.match-vs {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--text3);
}

.match-date {
  font-size: 13px;
  color: var(--text3);
}

.match-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
  color: var(--text3);
  text-align: center;
}


/* ---- Admin actions ------------------------------------- */
.match-admin-actions {
  display: flex;
  gap: 8px;
  padding: 8px 20px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-top: -10px;
}


/* ---- Stats table --------------------------------------- */
.match-stats-table {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow-x: auto;
  margin-top: -10px;
  margin-bottom: 4px;
}



@media (max-width: 1024px) {
  .matches-list {
    max-height: 360px;
  }
}

@media (max-width: 768px) {
  .matches-list {
    max-height: 300px;
  }
}