/* ==========================================================
   V31 · PRÓXIMA PARTIDA
   ========================================================== */
.next-match-section {
  margin-top: 16px;
  position: relative;
  z-index: 5;
}

.next-match-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 16px 20px;
  border: 1px solid rgba(177, 142, 69, .42);
  border-radius: 14px;
  background:
    linear-gradient(105deg, rgba(30, 60, 54, .98), rgba(40, 70, 62, .96));
  box-shadow: 0 12px 28px rgba(24, 39, 35, .15);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}

.next-match-banner::after {
  content: "⚔";
  position: absolute;
  right: 120px;
  font-size: 6rem;
  line-height: 1;
  color: rgba(255,255,255,.045);
  transform: rotate(-12deg);
  pointer-events: none;
}

.next-match-kicker {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-right: 1px solid rgba(255,255,255,.14);
  color: #e0c178;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.next-match-date {
  min-width: 94px;
  color: #f2d58b;
  font: 800 1.8rem/1 Georgia, serif;
  letter-spacing: .02em;
  text-align: center;
}

.next-match-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.next-match-copy strong {
  font: 700 1.15rem/1.2 Georgia, serif;
}

.next-match-copy small {
  color: rgba(255,255,255,.72);
  font-size: .84rem;
}

.next-match-countdown {
  position: relative;
  z-index: 1;
  padding: 10px 13px;
  border: 1px solid rgba(224,193,120,.4);
  border-radius: 999px;
  background: rgba(0,0,0,.15);
  color: #f5dfaa;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
}

.next-match-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 32px rgba(24, 39, 35, .2);
}

.next-match-banner.unscheduled {
  opacity: .9;
}

/* ==========================================================
   V31 · DATOS ADICIONALES DE PARTIDA
   ========================================================== */
.home-match-result {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(31,39,37,.08);
}

.home-match-result .home-match-row {
  border: 0;
  border-radius: 0;
}

.match-extra-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 14px 0;
  margin-top: 12px;
  border-top: 1px solid rgba(31,39,37,.08);
}

.match-extra-grid.compact {
  margin-top: 0;
  padding: 9px 10px 10px;
  border-top-color: rgba(31,39,37,.07);
  background: rgba(246,241,228,.45);
}

.match-extra-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(112, 91, 50, .14);
  border-radius: 8px;
  background: rgba(249,246,236,.86);
  color: var(--text);
}

.match-extra-icon {
  color: var(--gold-dark, #8d6b2d);
  font-size: .9rem;
}

.match-extra-copy {
  display: grid;
  gap: 1px;
}

.match-extra-copy small {
  color: var(--muted);
  font-size: .62rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.match-extra-copy b {
  font-size: .76rem;
  line-height: 1.15;
}

.home-match-result .match-extra-grid.compact {
  justify-content: flex-start;
}

.award-match > .match-extra-grid {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 2px;
}

/* ==========================================================
   V31 · INFORME DE IMPACTO
   ========================================================== */
.impact-report-card {
  margin-top: 18px;
  border-color: rgba(177, 142, 69, .3);
  background: linear-gradient(180deg, rgba(255,253,247,.98), rgba(247,241,225,.92));
}

.impact-report-content {
  display: grid;
  gap: 16px;
}

.impact-report-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(37, 66, 59, .07);
}

.impact-report-heading > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--green, #24463e);
  color: #f2d58b;
  font: 800 1.25rem Georgia, serif;
}

.impact-report-heading small {
  display: block;
  color: var(--muted);
  margin-bottom: 2px;
}

.impact-report-heading h3 {
  margin: 0;
}

.impact-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.impact-group {
  padding: 13px 14px;
  border: 1px solid rgba(31,39,37,.09);
  border-radius: 10px;
  background: rgba(255,255,255,.68);
}

.impact-group h4 {
  margin: 0 0 9px;
  font-size: .91rem;
}

.impact-group ul {
  margin: 0;
  padding-left: 18px;
}

.impact-group li {
  margin: 5px 0;
  font-size: .82rem;
  line-height: 1.35;
}

.impact-group li span {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.impact-empty {
  margin: 0;
  color: var(--muted);
}

/* ==========================================================
   V31 · IMPORTACIÓN DE LISTAS EN TEXTO
   ========================================================== */
.army-import-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
}

.army-import-separator::before,
.army-import-separator::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(31,39,37,.1);
}

.army-text-import textarea {
  min-height: 190px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  line-height: 1.45;
}

.army-import-warning.neutral {
  border-color: rgba(84, 102, 97, .18);
  background: rgba(84, 102, 97, .07);
  color: var(--muted);
}

.faction-badge--fallback {
  color: var(--faction-accent, var(--green));
  border-color: color-mix(in srgb, var(--faction-accent, var(--green)) 35%, transparent);
}

@media (max-width: 760px) {
  .next-match-section {
    margin-top: 12px;
  }

  .next-match-banner {
    grid-template-columns: auto 1fr auto;
    gap: 10px 12px;
    min-height: 0;
    padding: 13px 14px;
  }

  .next-match-kicker {
    grid-column: 1 / -1;
    display: block;
    padding: 0 0 7px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    writing-mode: initial;
    transform: none;
  }

  .next-match-date {
    min-width: 68px;
    font-size: 1.35rem;
  }

  .next-match-copy strong {
    font-size: 1rem;
  }

  .next-match-copy small {
    font-size: .74rem;
  }

  .next-match-countdown {
    padding: 8px 9px;
    font-size: .66rem;
  }

  .impact-report-grid {
    grid-template-columns: 1fr;
  }

  .match-extra-grid {
    gap: 5px;
  }

  .match-extra-chip {
    flex: 1 1 130px;
  }
}
