* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  min-height: 100vh;
  padding: 12px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 头部 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.header h1 {
  font-size: 20px;
  background: linear-gradient(90deg, #00f260, #0575e6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.league-select {
  padding: 10px 16px;
  font-size: 15px;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  outline: none;
  cursor: pointer;
}

.league-select option {
  background: #1a1a2e;
  color: #fff;
}

/* 最后更新 */
.last-update {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.auto-refresh {
  color: #00f260;
  font-size: 12px;
}

/* 预测卡片 */
.prediction-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
}

.card h2 {
  font-size: 17px;
  margin-bottom: 12px;
  color: #00f260;
}

.card-content {
  min-height: 120px;
}

/* 预测列表 */
.prediction-list {
  list-style: none;
}

.prediction-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prediction-item:last-child {
  border-bottom: none;
}

.team-name {
  font-size: 14px;
  min-width: 80px;
}

.probability-bar {
  flex: 1;
  margin: 0 12px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.probability-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f260, #0575e6);
  transition: width 0.5s;
}

.probability-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  min-width: 45px;
  text-align: right;
  font-weight: 600;
}

/* 比赛预测 */
.fixtures-section h2,
.standings-section h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #00f260;
}

.fixtures-container {
  display: grid;
  gap: 12px;
}

.fixture-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
}

.fixture-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

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

.team-name-large {
  font-size: 15px;
  font-weight: 600;
}

.score-prediction {
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(90deg, #00f260, #0575e6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 8px 16px;
  background: rgba(0, 242, 96, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(0, 242, 96, 0.3);
}

.fixture-info {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.confidence {
  color: #00f260;
  font-weight: 600;
}

/* 积分榜 */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px;
}

.table-hint {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 8px;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  font-size: 13px;
}

.standings-table th,
.standings-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.standings-table th {
  background: rgba(255, 255, 255, 0.1);
  color: #00f260;
  font-weight: 600;
}

.team-cell {
  text-align: left !important;
  font-weight: 500;
}

.position-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
  font-size: 12px;
}

.position-badge.top4 {
  background: linear-gradient(135deg, #00f260, #0575e6);
}

.form-badges {
  display: flex;
  gap: 3px;
  justify-content: center;
}

.form-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.form-w { background: #00f260; color: #000; }
.form-d { background: #999; color: #fff; }
.form-l { background: #f12711; color: #fff; }

/* 加载状态 */
.loading {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.5);
}

/* 页脚 */
.footer {
  margin-top: 24px;
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

/* 平板/桌面优化 */
@media (min-width: 768px) {
  .prediction-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .fixtures-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
