/* ===== サッカー スコアバー（カスタマイズ対応） ===== */
:root {
  --team-home: #4a9bd9;
  --team-away: #2ecc71;
  --color-accent: #5dade2;
}

.soccer-bar {
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.95), rgba(30, 30, 50, 0.95));
  border-radius: 12px;
  display: inline-flex;
  align-items: stretch;
  min-width: 930px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
  font-family: 'Segoe UI', 'Hiragino Sans', sans-serif;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.soccer-bar > .lineup-panel {
  width: 120px;
  min-height: auto;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.soccer-bar > .lineup-panel.home-lineup {
  border-right: 1px solid rgba(255,255,255,0.1);
}
.soccer-bar > .lineup-panel.away-lineup {
  border-left: 1px solid rgba(255,255,255,0.1);
}

.soccer-bar > .scoreboard-main {
  flex: 1;
  min-width: 0;
  padding: 8px 42px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
}

/* グラデーションライン（上部） */
.soccer-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--team-home), var(--color-accent), var(--team-away));
}

.soccer-team {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 160px;
}

.soccer-team.home { justify-content: flex-end; }
.soccer-team.away { justify-content: flex-start; }

.soccer-team-name {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.soccer-score-center {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 12px;
}

.soccer-score {
  font-size: 4.8rem;
  font-weight: 900;
  min-width: 50px;
  text-align: center;
  line-height: 1;
  transition: color 0.3s;
}

.soccer-score.home-score { color: var(--team-home); text-shadow: 0 0 20px color-mix(in srgb, var(--team-home) 40%, transparent); }
.soccer-score.away-score { color: var(--team-away); text-shadow: 0 0 20px color-mix(in srgb, var(--team-away) 40%, transparent); }

.soccer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  margin: 0 4px;
}

.soccer-time {
  font-family: 'Courier New', monospace;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-accent);
  text-shadow: 0 0 10px color-mix(in srgb, var(--color-accent) 30%, transparent);
}

.soccer-half {
  font-size: 1.05rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* チームカラードット */
.soccer-team-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.soccer-team-dot.home { background: var(--team-home); box-shadow: 0 0 8px var(--team-home); }
.soccer-team-dot.away { background: var(--team-away); box-shadow: 0 0 8px var(--team-away); }

/* スコアアニメーション */
@keyframes scorePop {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.score-pop { animation: scorePop 0.35s ease-out; }

/* 表示画面用 */
.display-body {
  margin: 0;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
}
