/* ========================================
   实时比分样式
   ======================================== */

/* ---------- 比分主体 ---------- */
.live-score-board {
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.live-score-board::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(ellipse at center, rgba(0, 230, 118, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.live-score-board .live-status-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  position: relative;
}

.live-status-bar.status-live {
  background: rgba(0, 230, 118, 0.12);
  color: var(--color-success);
}

.live-status-bar.status-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  animation: pulse 1.5s ease infinite;
}

.live-status-bar.status-upcoming {
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent-blue);
}

.live-status-bar.status-finished {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-tertiary);
}

.live-teams-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  position: relative;
}

.live-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100px;
}

.live-team .team-flag {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 4px;
}

.live-team .team-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.live-score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 100px;
}

.live-score-num {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 8px;
  line-height: 1;
  transition: color 0.3s, text-shadow 0.3s;
}

.live-score-num.highlight {
  color: var(--color-success);
  text-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
  animation: scoreFlash 0.6s ease;
}

@keyframes scoreFlash {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.live-minute {
  font-size: 14px;
  color: var(--color-success);
  font-weight: 600;
}

.live-half-label {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ---------- 进度条 ---------- */
.live-progress {
  margin: var(--spacing-md) var(--spacing-md) 0;
  padding: 0 var(--spacing-md);
}

.live-progress .progress-bar {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.live-progress .progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.live-progress .progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-tertiary);
}

/* ---------- 事件列表 ---------- */
.live-events {
  padding: var(--spacing-md);
  max-width: 480px;
  margin: 0 auto;
}

.live-events .events-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-event-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 10px var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.live-event-item .event-minute {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-blue);
  min-width: 36px;
}

.live-event-item .event-icon {
  font-size: 18px;
}

.live-event-item .event-text {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}

.live-event-item .event-team-tag {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.event-team-tag.home {
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent-blue);
}

.event-team-tag.away {
  background: rgba(123, 47, 255, 0.12);
  color: var(--accent-purple);
}

/* ---------- 刷新指示 ---------- */
.live-refresh-hint {
  text-align: center;
  padding: var(--spacing-sm);
  font-size: 11px;
  color: var(--text-tertiary);
}

.live-refresh-hint .refresh-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-success);
  margin-right: 4px;
  animation: pulse 2s ease infinite;
}
