body {
  font-family: system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  background: #111;
  color: #eee;
}

h2 {
  color: #ff8c00;
  margin-bottom: 10px;
  font-size: 2rem;
}

p {
  margin-bottom: 30px;
  color: #ccc;
  font-size: 1.1rem;
}

#battle-container {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
}

.melody-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid #444;
  border-radius: 12px;
  padding: 20px;
  background: #222;
  min-width: 400px;
}

.melody-section h3 {
  margin: 0 0 10px 0;
  color: #ff8c00;
  font-size: 1.3rem;
}

.melody-info {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #ccc;
}

.visual-container {
  margin-bottom: 15px;
  border: 2px solid #ff8c00;
  border-radius: 8px;
  background: #333;
  transition: all 0.3s ease;
}

.visual-container.playing {
  background: #444;
  border-color: #ff4444;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
  animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 20px rgba(255, 68, 68, 0.3); }
  to { box-shadow: 0 0 30px rgba(255, 68, 68, 0.6); }
}

.play-btn {
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: #ff8c00;
  color: #000;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}

.play-btn:hover {
  background: #ffa733;
  transform: translateY(-2px);
}

.vote-btn {
  padding: 15px 30px;
  font-size: 18px;
  border: none;
  border-radius: 12px;
  background: #28a745;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  margin-top: 10px;
}

.vote-btn:hover {
  background: #34ce57;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.vote-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.vote-btn.voted {
  background: #ffc107;
  color: #000;
  animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

#controls-top {
  margin-bottom: 20px;
  text-align: center;
}

#controls-top label {
  margin-right: 10px;
  font-weight: bold;
}

#speed-slider {
  width: 200px;
  margin: 0 10px;
}

#speed-display {
  color: #ff8c00;
  font-weight: bold;
}

#controls {
  margin-top: 20px;
}

.undecided-btn {
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: #6c757d;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.undecided-btn:hover {
  background: #5a6268;
}


.evolution-btn {
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: #e74c3c;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 10px;
}

.evolution-btn:hover {
  background: #c0392b;
}

.evolution-btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

.stats-btn {
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: #2ecc71;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 10px;
}

.stats-btn:hover {
  background: #27ae60;
}

.stats-btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

#llm-controls {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #3a3a3a;
}

.llm-btn {
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  background: #8e44ad;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  margin: 5px;
}

.llm-btn:hover {
  background: #9b59b6;
  transform: translateY(-1px);
}

.llm-btn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: none;
}

#auto-evolution {
  margin-top: 20px;
  padding: 20px;
  border: 2px solid #3a3a3a;
  border-radius: 12px;
  background: #1a1a1a;
}

#auto-evolution h3 {
  margin: 0 0 15px 0;
  color: #ff8c00;
  font-size: 1.2rem;
}

#auto-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

#auto-controls label {
  color: #ccc;
  font-weight: bold;
}

#batch-size {
  padding: 8px 12px;
  border: 2px solid #444;
  border-radius: 6px;
  background: #333;
  color: #eee;
  font-size: 14px;
}

.auto-btn {
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  background: #27ae60;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: bold;
}

.auto-btn:hover {
  background: #2ecc71;
  transform: translateY(-1px);
}

.auto-btn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: none;
}

.auto-btn.stop-btn {
  background: #e74c3c;
}

.auto-btn.stop-btn:hover {
  background: #c0392b;
}

.progress-bar {
  width: 300px;
  height: 20px;
  background: #333;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

#progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff8c00, #ffa733);
  width: 0%;
  transition: width 0.3s ease;
}

#progress-text {
  color: #ff8c00;
  font-weight: bold;
}

.llm-votes {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  min-height: 30px;
  align-items: center;
  justify-content: center;
}

.llm-vote-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.llm-vote-icon.openai {
  background: #10a37f;
  color: white;
}

.llm-vote-icon.anthropic {
  background: #ff6b35;
  color: white;
}

.llm-vote-icon.deepseek {
  background: #8b5cf6;
  color: white;
}

.llm-vote-icon.voted {
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.llm-thinking {
  color: #ff8c00;
  font-style: italic;
  font-size: 12px;
  animation: pulse 1.5s ease-in-out infinite;
}