/* ========================================
   比赛竞猜样式（比赛列表 + 单场详情）
   ======================================== */

/* ---------- 比赛列表页 ---------- */
.match-list {
  padding: 0 0 var(--spacing-md);
}

.match-date-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) 0 var(--spacing-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.match-date-label::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--gradient-primary);
}

/* 比赛卡片 */
.match-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.match-card.clickable {
  cursor: pointer;
}

.match-card.clickable:active {
  transform: scale(0.98);
  background: rgba(26, 31, 46, 0.85);
}

.match-card.match-finished {
  opacity: 0.5;
}

.match-card-stage {
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.match-card-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.match-team-flag {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
}

.match-team-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 80px;
}

.match-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.match-status-live {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-success);
  animation: pulse 1.5s ease-in-out infinite;
}

.match-score {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.match-status-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.match-status-tag.upcoming {
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent-blue);
}

.match-status-tag.live {
  background: rgba(0, 230, 118, 0.12);
  color: var(--color-success);
}

.match-status-tag.finished {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-tertiary);
}

/* 赔率标签 */
.match-odds-row {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.match-odds-tag {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
}

.match-odds-label {
  font-size: 11px;
  color: var(--text-tertiary);
}

.match-odds-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-blue);
}

/* ---------- 竞猜详情页 ---------- */

/* 比赛信息大卡片 */
.detail-match-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg) var(--spacing-md);
  margin-top: var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.detail-match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.detail-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.detail-team-flag {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
}

.detail-team-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.detail-vs {
  font-size: 28px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  padding: 0 var(--spacing-sm);
  text-shadow: none;
  position: relative;
}

.detail-match-time {
  text-align: center;
  margin-top: var(--spacing-md);
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-match-stage {
  text-align: center;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* 投注选项卡片 */
.bet-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.bet-options {
  display: flex;
  gap: var(--spacing-sm);
}

.bet-option-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--spacing-md) var(--spacing-sm);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.bet-option-card:active {
  transform: scale(0.96);
}

.bet-option-card .bet-opt-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bet-option-card .bet-opt-odds {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-blue);
}

.bet-option-card .bet-opt-check {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-primary);
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
}

/* 选中态 */
.bet-option-card.selected {
  border-color: transparent;
  background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
              var(--gradient-primary) border-box;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25), 0 0 40px rgba(123, 47, 255, 0.15);
}

.bet-option-card.selected .bet-opt-odds {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bet-option-card.selected .bet-opt-check {
  display: flex;
}

/* 投注金额区域 */
.bet-amount-section {
  margin-top: var(--spacing-lg);
}

.bet-amount-input-wrap {
  position: relative;
  margin-top: var(--spacing-sm);
}

.bet-amount-input-wrap .form-input {
  padding-right: 60px;
}

.bet-amount-suffix {
  position: absolute;
  right: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-tertiary);
}

.bet-quick-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.bet-quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.bet-quick-btn:active {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.bet-available {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--spacing-sm);
  font-size: 13px;
  color: var(--text-tertiary);
}

.bet-available-num {
  color: var(--accent-blue);
  font-weight: 600;
}

/* 预计收益 */
.bet-profit-section {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bet-profit-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.bet-profit-value {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 提交按钮 */
.bet-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin-top: var(--spacing-lg);
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: var(--shadow-button);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  user-select: none;
  -webkit-user-select: none;
}

.bet-submit-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.bet-submit-btn:disabled {
  background: var(--bg-tertiary) !important;
  color: var(--text-tertiary) !important;
  box-shadow: none !important;
  pointer-events: none;
  opacity: 0.6;
}

/* 比赛人数标签 */
.match-bet-count {
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 4px;
}

/* ---------- 动画 ---------- */
@keyframes matchCardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.match-card {
  animation: matchCardIn 0.35s ease forwards;
}

.match-card:nth-child(2) { animation-delay: 0.04s; }
.match-card:nth-child(3) { animation-delay: 0.08s; }
.match-card:nth-child(4) { animation-delay: 0.12s; }
.match-card:nth-child(5) { animation-delay: 0.16s; }
