/* ========== 比赛页 ========== */

.match-page {
  padding-bottom: 20px;
}

/* --- Tab切换 --- */
.match-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--sp-4);
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 3px;
}

.match-tabs .tab-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--duration-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.match-tabs .tab-btn.active {
  background: white;
  color: var(--green-600);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.badge-new {
  background: var(--red-500);
  color: white;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 700;
}

/* --- 空状态 --- */
.match-empty-state {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
}

.match-empty-icon {
  font-size: 48px;
  margin-bottom: var(--sp-3);
  opacity: 0.5;
}

/* --- 下一场比赛卡片 --- */
.next-match-card {
  padding: 0;
  overflow: hidden;
}

.nmc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  font-size: 13px;
  font-weight: 600;
}

.nmc-round { color: var(--green-700); }
.nmc-venue {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
}
.home-venue { background: var(--green-500); color: white; }
.away-venue { background: var(--blue-500); color: white; }

/* --- 比赛状态 --- */
.match-status {
  padding: var(--sp-3) var(--sp-4);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.match-status.playing {
  background: var(--green-600);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.status-pulse {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: match-pulse 1.5s ease-in-out infinite;
}

@keyframes match-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.match-status.imminent {
  background: var(--amber-50);
  color: var(--amber-700);
  flex-direction: column;
  gap: 2px;
}

.match-status.imminent .countdown {
  font-size: 20px;
  font-weight: 800;
  color: var(--amber-600);
}

.match-status.upcoming {
  background: var(--gray-50);
  flex-direction: column;
  gap: 4px;
}

.match-date-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}

.match-time-label {
  font-size: 13px;
  color: var(--gray-500);
}

.countdown {
  font-size: 16px;
  font-weight: 700;
  color: var(--green-600);
  font-variant-numeric: tabular-nums;
}

/* --- VS对阵 --- */
.nmc-versus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
}

.nmc-team {
  flex: 1;
  text-align: center;
}

.nmc-team-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.user-side .nmc-team-name { color: var(--green-700); }
.opp-side .nmc-team-name { color: var(--gray-600); }

.nmc-team-rating {
  font-size: 12px;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.nmc-vs-block {
  text-align: center;
}

.nmc-vs-block .vs-text {
  font-size: 24px;
  font-weight: 900;
  color: var(--gray-300);
}

.nmc-vs-block .vs-date {
  display: block;
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
}

/* --- 提示 --- */
.nmc-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--sp-2) var(--sp-4);
  background: var(--amber-50);
  color: var(--amber-700);
  font-size: 12px;
  border-top: 1px solid var(--amber-100);
}

/* ========== 战报卡片 ========== */

.report-card {
  padding: 0;
  overflow: hidden;
}

/* --- 比分头部 --- */
.match-report .report-header {
  padding: var(--sp-4);
  text-align: center;
  color: white;
}

.match-report .report-header.result-win { background: linear-gradient(135deg, #16a34a, #15803d); }
.match-report .report-header.result-draw { background: linear-gradient(135deg, #6b7280, #4b5563); }
.match-report .report-header.result-loss { background: linear-gradient(135deg, #dc2626, #b91c1c); }

.rh-label {
  font-size: 12px;
  opacity: 0.8;
  font-weight: 600;
}

.rh-date {
  font-size: 11px;
  opacity: 0.6;
  margin-bottom: var(--sp-2);
}

.rh-scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin: var(--sp-2) 0;
}

.rh-team {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}

.rh-score {
  font-size: 32px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.rh-result {
  display: inline-block;
  padding: 3px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  margin-top: var(--sp-1);
}

/* --- 战报段落 --- */
.report-section {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--gray-100);
}

.report-section:last-child { border-bottom: none; }

/* --- 事件时间线 --- */
.report-events {
  max-height: 300px;
  overflow-y: auto;
}

.report-event-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: 4px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--gray-50);
}

.report-event-row.event-goal {
  background: var(--green-50);
  margin: 0 calc(-1 * var(--sp-4));
  padding: 6px var(--sp-4);
  font-weight: 600;
  border-bottom: 1px solid var(--green-100);
}

.re-minute {
  min-width: 28px;
  font-weight: 700;
  color: var(--gray-400);
  font-size: 12px;
  padding-top: 1px;
}

.re-icon {
  min-width: 20px;
  text-align: center;
}

.re-text {
  color: var(--gray-700);
  line-height: 1.4;
}

/* --- 技术统计 --- */
.report-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.stats-label {
  min-width: 50px;
  text-align: center;
  color: var(--gray-500);
  font-size: 12px;
}

.stats-val {
  min-width: 30px;
  text-align: center;
}

.stats-val.home { color: var(--green-700); }
.stats-val.away { color: var(--blue-700); }

.stats-bar {
  display: flex;
  height: 4px;
  border-radius: 2px;
  background: var(--blue-100);
  overflow: hidden;
  margin-top: -4px;
}

.stats-fill.home {
  background: var(--green-500);
  border-radius: 2px 0 0 2px;
}

.stats-fill.away {
  background: var(--blue-500);
  border-radius: 0 2px 2px 0;
}

/* --- 球员评分 --- */
.report-ratings {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.rating-row.user-player {
  background: var(--green-50);
}

.rr-name { flex: 1; font-weight: 600; }
.rr-pos { color: var(--gray-400); font-size: 11px; min-width: 24px; }
.rr-goals { color: var(--green-600); font-size: 12px; min-width: 30px; }
.rr-rating {
  font-weight: 800;
  min-width: 32px;
  text-align: center;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
}

.rating-excellent .rr-rating { background: var(--green-100); color: var(--green-700); }
.rating-good .rr-rating { background: var(--blue-50); color: var(--blue-700); }
.rating-poor .rr-rating { background: var(--red-50); color: var(--red-700); }

/* --- MOTM --- */
.motm-section {
  text-align: center;
  background: var(--amber-50);
  margin: var(--sp-3) var(--sp-4);
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--amber-200);
}

.motm-badge {
  font-size: 16px;
  font-weight: 700;
  color: var(--amber-600);
  margin-bottom: 4px;
}

.motm-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
}

.motm-name { font-weight: 700; font-size: 15px; }
.motm-pos { color: var(--gray-500); font-size: 12px; }
.motm-rating {
  background: var(--amber-500);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

/* ========== 历史战报 ========== */

.match-history-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.match-history-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  transition: transform var(--duration-fast);
}

.match-history-item:active { transform: scale(0.98); }

.hi-round {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  min-width: 24px;
}

.hi-score {
  font-size: 16px;
  font-weight: 800;
  min-width: 50px;
  text-align: center;
}

.hi-score.result-win { color: var(--green-600); }
.hi-score.result-draw { color: var(--gray-500); }
.hi-score.result-loss { color: var(--red-500); }

.hi-result {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  min-width: 24px;
  text-align: center;
}

.hi-result.result-win { background: var(--green-100); color: var(--green-700); }
.hi-result.result-draw { background: var(--gray-100); color: var(--gray-600); }
.hi-result.result-loss { background: var(--red-100); color: var(--red-600); }

.hi-opp {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  text-align: right;
}

.hi-date {
  font-size: 11px;
  color: var(--gray-400);
  min-width: 55px;
  text-align: right;
}

/* ========== 赛季总结 ========== */
.season-summary-content {
  text-align: center;
}

.ss-rank { margin-bottom: var(--sp-4); }
.ss-rank-label { font-size: 14px; color: var(--gray-500); }
.ss-rank-value {
  font-size: 48px;
  font-weight: 900;
  color: var(--green-600);
  line-height: 1.1;
}

.ss-stats {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.ss-stat {
  text-align: center;
}

.ss-stat-val {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-800);
}

.ss-stat-label {
  font-size: 12px;
  color: var(--gray-400);
}

.ss-prize {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-3);
  background: var(--amber-50);
  border-radius: var(--radius-md);
  font-weight: 600;
}

.ss-prize-val { color: var(--amber-600); font-weight: 800; }

/* ========== 赛事状态概览条 ========== */
.match-comp-status-bar {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: var(--sp-2);
}
.match-comp-status-bar::-webkit-scrollbar {
  display: none;
}
.comp-status-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  min-width: 100px;
}
.comp-status-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
}
.comp-status-chip {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.comp-status-chip .cd-value {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--green-600);
}
.comp-status-chip.playing {
  color: var(--red-600);
}
.comp-status-chip.upcoming {
  color: var(--gray-700);
}
.comp-status-chip.pending {
  color: var(--gray-400);
  font-style: italic;
}
.comp-status-chip.finished {
  color: var(--gray-400);
}
.comp-status-chip.eliminated {
  color: var(--red-400);
}
.comp-status-chip .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-500);
  animation: match-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ========== 联赛状态徽章 ========== */
.league-status-row {
  margin-top: var(--sp-1);
  text-align: center;
}
.league-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.league-status-badge.playing {
  background: var(--red-50);
  color: var(--red-600);
  border: 1px solid var(--red-100);
}
.league-status-badge.upcoming {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
}
.league-status-badge.finished {
  background: var(--gray-100);
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
}
.league-status-badge .cd-value {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--green-600);
}
.league-status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-500);
  animation: match-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ========== 杯赛倒计时徽章（CupPage卡片内） ========== */
.cup-countdown-row {
  margin: 0 0 var(--sp-2);
}
.cup-countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.cup-countdown-badge .cd-value {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.cup-countdown-badge.playing {
  background: var(--red-50);
  color: var(--red-600);
  border: 1px solid var(--red-100);
}
.cup-countdown-badge.playing .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-500);
  animation: match-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
.cup-countdown-badge.upcoming {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
}
.cup-countdown-badge.upcoming .cd-value {
  color: var(--green-600);
}
.cup-countdown-badge.pending {
  background: var(--gray-50);
  color: var(--gray-400);
  border: 1px solid var(--gray-100);
  font-style: italic;
}
.cup-countdown-badge.eliminated {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}
.cup-countdown-badge.finished {
  background: var(--gray-50);
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
}

/* 杯赛详情页倒计时（hero内） */
.cup-detail-countdown {
  margin-top: var(--sp-2);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  position: relative;
}
.cup-detail-countdown .cd-value {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.cup-detail-countdown.playing {
  color: rgba(255,255,255,0.95);
}
.cup-detail-countdown.playing .status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: match-pulse 1.5s ease-in-out infinite;
  margin-right: 4px;
  vertical-align: middle;
}
.cup-detail-countdown.pending {
  color: rgba(255,255,255,0.5);
  font-style: italic;
}

/* ========== 联赛页杯赛入口倒计时 ========== */
.cup-entry-countdown {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
}
.cup-entry-countdown .cd-value {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--green-600);
}
.cup-entry-countdown.playing {
  color: var(--red-500);
}
.cup-entry-countdown.playing .status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-500);
  animation: match-pulse 1.5s ease-in-out infinite;
  margin-right: 3px;
  vertical-align: middle;
}
.cup-entry-countdown.upcoming {
  color: var(--green-600);
}
.cup-entry-countdown.pending {
  color: var(--gray-400);
  font-style: italic;
}
.cup-entry-countdown.eliminated {
  color: var(--red-400);
}
.cup-entry-countdown.finished {
  color: var(--gray-400);
}

.schedule-item.has-report:active {
  background: var(--green-50);
}

.report-link {
  font-size: 11px;
  color: var(--blue-500);
  font-weight: 600;
  margin-left: auto;
}
