/* Spielkarten – unabhängig vom Tailwind-Purge */
.fcn-match-card {
  position: relative;
  display: block;
  overflow: visible;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.fcn-match-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.fcn-match-card__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #3b82f6;
}
.fcn-match-card__bar--win { background: #22c55e; }
.fcn-match-card__bar--loss { background: #ef4444; }
.fcn-match-card__bar--draw { background: #eab308; }

.fcn-match-card__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1rem 1rem 1.25rem;
}
.fcn-match-card__inner:has(.fcn-match-card__badge) {
  padding-bottom: 1.35rem;
}

.fcn-match-card__date {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: #6b7280;
  min-width: 0;
}
.fcn-match-card__date strong {
  display: block;
  color: #1f2937;
  font-weight: 600;
}
.fcn-match-card__date span {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

/* Mobile: Score zentriert zwischen den Teams */
.fcn-match-card__main {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.5rem;
}

/* Desktop: feste Spalten über die ganze Karte → Score immer gleiche X-Position */
@media (min-width: 768px) {
  .fcn-match-card__inner {
    display: grid;
    grid-template-columns: 6.75rem minmax(0, 1fr) 5.75rem minmax(0, 1fr) 8.5rem;
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0;
  }
  .fcn-match-card__main {
    display: contents;
  }
  .fcn-match-card__date {
    grid-column: 1;
  }
  .fcn-match-card__team--home {
    grid-column: 2;
  }
  .fcn-match-card__score-wrap {
    grid-column: 3;
    justify-self: center;
  }
  .fcn-match-card__team--away {
    grid-column: 4;
  }
  .fcn-match-card__meta {
    grid-column: 5;
  }
}

.fcn-match-card__team {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fcn-match-card__team--home {
  text-align: right;
  align-items: flex-end;
}
.fcn-match-card__team--away {
  text-align: left;
  align-items: flex-start;
}
.fcn-match-card__team-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
  margin-bottom: 0.15rem;
  line-height: 1;
}
.fcn-match-card__team-name {
  font-weight: 700;
  color: #111827;
  font-size: 0.95rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.fcn-match-card__team-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: #6b7280;
  margin-top: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fcn-match-card__away-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}
.fcn-match-card__logo {
  display: none;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 9999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 1px;
}
@media (min-width: 640px) {
  .fcn-match-card__logo { display: block; }
  .fcn-match-card__team-name { font-size: 1rem; }
}

.fcn-match-card__score-wrap {
  position: relative;
  flex-shrink: 0;
  width: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}
.fcn-match-card__score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: #1e3a5f;
  color: #fff;
  line-height: 1;
  box-sizing: border-box;
}
.fcn-match-card__score--win { background: #22c55e; color: #fff; }
.fcn-match-card__score--loss { background: #ef4444; color: #fff; }
.fcn-match-card__score--draw { background: #eab308; color: #111827; }
.fcn-match-card__score--vs {
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 700;
  width: 3.5rem;
}

.fcn-match-card__badge {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.28rem);
  transform: translateX(-50%);
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}
.fcn-match-card__badge--win { background: #dcfce7; color: #166534; }
.fcn-match-card__badge--loss { background: #fee2e2; color: #991b1b; }
.fcn-match-card__badge--draw { background: #fef9c3; color: #854d0e; }

.fcn-match-card__meta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid #f3f4f6;
  padding-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  min-width: 0;
}
@media (min-width: 768px) {
  .fcn-match-card__meta {
    border-top: 0;
    padding-top: 0;
    justify-content: flex-end;
    width: 100%;
  }
}
.fcn-match-card__meta i { color: #3b82f6; margin-right: 0.25rem; }
.fcn-match-card__arrow {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #dbeafe;
  color: #3b82f6;
  transition: background 0.2s ease, color 0.2s ease;
}
.fcn-match-card:hover .fcn-match-card__arrow {
  background: #3b82f6;
  color: #fff;
}
.fcn-match-card__venue {
  display: none;
  color: #9ca3af;
}
@media (min-width: 1024px) {
  .fcn-match-card__venue { display: inline; }
}

/* „Alle anzeigen“ – gleiches Outline-Design wie „Auf Fußball.de öffnen“ */
.fcn-match-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid #3b82f6;
  border-radius: 0.5rem;
  background: #fff;
  color: #3b82f6;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.fcn-match-more:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}
.fcn-match-more:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
.fcn-match-more__count {
  font-weight: 500;
  opacity: 0.85;
}
.fcn-match-more:hover .fcn-match-more__count {
  opacity: 1;
  color: inherit;
}
.fcn-match-more i {
  font-size: 0.75rem;
  color: inherit;
  transition: transform 0.2s ease;
}
.fcn-match-more.is-open i {
  transform: rotate(180deg);
}
.fcn-match-more-wrap {
  text-align: center;
  margin-top: 1.75rem;
}
.fcn-match-more-wrap a,
.fcn-match-more-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #3b82f6;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.fcn-match-more-wrap a:hover,
.fcn-match-more-links a:hover {
  color: #1e3a5f;
}
.fcn-match-more-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
}
