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

:root {
  --bg: #0f0f1a;
  --card-bg: #1a1a2e;
  --accent: #e94560;
  --accent-hover: #ff6b6b;
  --text: #eaeaea;
  --text-muted: #888;
  --border: rgba(255,255,255,0.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.container {
  width: 100%;
  max-width: 380px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Logo */
.logo {
  color: var(--accent);
  width: 100%;
  max-width: 240px;
  height: 80px;
}

.logo svg {
  width: 100%;
  height: 100%;
}

/* Title */
.title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

/* Song title */
.song-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  min-height: 1.2em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Status badge */
.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.3s;
}

.status-badge.playing {
  background: rgba(233,69,96,0.1);
  border-color: rgba(233,69,96,0.3);
  color: var(--accent-hover);
}

.status-badge.buffering {
  background: rgba(255,200,0,0.1);
  border-color: rgba(255,200,0,0.3);
  color: #ffc800;
}

.status-badge.error {
  background: rgba(255,80,80,0.1);
  border-color: rgba(255,80,80,0.3);
  color: #ff5050;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 0.3s;
  flex-shrink: 0;
}

.status-badge.playing .status-dot {
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

.status-badge.buffering .status-dot {
  background: #ffc800;
  animation: pulse 0.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Play button */
.play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(233,69,96,0.4);
}

.play-button:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(233,69,96,0.5);
}

.play-button:active:not(:disabled) {
  transform: scale(0.96);
}

.play-button:disabled {
  background: #333;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.6;
}

.play-button svg {
  width: 36px;
  height: 36px;
}

.hidden {
  display: none;
}

/* Volume */
.volume-section {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.volume-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.volume-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.15s;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

.volume-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}
