/* ======================================================== */
/* VIEW 2: Recent Results Card                              */
/* ======================================================== */
.results-view-card {
  width: 100%;
  height: 100%;
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: clamp(10px, 1.8vh, 18px) clamp(12px, 2.2vw, 24px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  contain: layout;
}

.results-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(6px, 1vh, 10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.results-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: calc(var(--text-scale, 1) * max(0.75rem, clamp(0.72rem, 1.9vh, 0.82rem)));
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold-accent);
}

.results-record-badge {
  font-size: calc(var(--text-scale, 1) * max(0.75rem, clamp(0.7rem, 1.8vh, 0.78rem)));
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.results-match-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 10px);
  overflow-y: auto;
  padding: clamp(8px, 1.2vh, 12px) 0 4px 0;
  min-height: 0;
}

.results-match-list::-webkit-scrollbar {
  width: 5px;
}

.results-match-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.match-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: clamp(8px, 1.2vh, 12px) clamp(10px, 1.5vw, 16px);
  cursor: pointer;
}

.match-row-left {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
}

.match-row-crest {
  width: clamp(28px, 4.5vh, 36px);
  height: clamp(28px, 4.5vh, 36px);
  object-fit: contain;
}

.match-row-opponent {
  font-size: calc(var(--text-scale, 1) * clamp(0.96rem, 2.3vh, 1.12rem));
  font-weight: 800;
  color: #ffffff;
}

.match-row-venue {
  font-size: calc(var(--text-scale, 1) * max(0.75rem, clamp(0.74rem, 1.7vh, 0.82rem)));
  color: rgba(255, 255, 255, 0.65);
}

.match-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.match-row-score {
  font-size: calc(var(--text-scale, 1) * clamp(1.05rem, 2.8vh, 1.25rem));
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.match-ext-link {
  font-size: calc(var(--text-scale, 1) * 0.8rem);
  color: rgba(255, 255, 255, 0.45);
}
