* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#app {
  width: 100%;
  max-width: 800px;
  padding: 20px;
}

.screen {
  display: none;
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.screen.active {
  display: block;
}

.game-title {
  font-size: 48px;
  text-align: center;
  color: #333;
  margin-bottom: 10px;
}

.tagline {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}

.btn {
  padding: 15px 30px;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  margin: 10px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-spotify {
  background: #1DB954;
  color: white;
}

.player-selector {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

.player-btn {
  background: #f0f0f0;
  color: #333;
  min-width: 120px;
}

.player-btn.selected {
  background: #667eea;
  color: white;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.playlist-card {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.playlist-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.playlist-card.selected {
  border: 3px solid #667eea;
  background: #e6e9ff;
}

.game-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
}

.album-placeholder {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 80px;
  color: white;
}

#playback-controls {
  text-align: center;
  margin: 20px 0;
}

.btn-play {
  background: #28a745;
  color: white;
  font-size: 20px;
  padding: 15px 40px;
}

.btn-replay {
  background: #ffc107;
  color: #333;
}

.btn-mic {
  background: #dc3545;
  color: white;
}

#guess-area {
  max-width: 400px;
  margin: 0 auto;
}

input[type="text"] {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
}

.or-divider {
  text-align: center;
  margin: 15px 0;
  color: #666;
  position: relative;
}

.or-divider::before,
.or-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: #ddd;
}

.or-divider::before {left: 0;}
.or-divider::after {right: 0;}

#result-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
}

#final-scores {
  margin: 30px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.status {
  margin-top: 20px;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

.status.connected {
  background: #d4edda;
  color: #155724;
}

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

.voice-indicator.listening {
  animation: pulse 1s infinite;
  color: #dc3545;
}

@media (max-width: 600px) {
  .screen {padding: 20px;}
  .game-title {font-size: 36px;}
  .btn {width: 100%;}
}
