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

html, body {
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

#app {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}

.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem;
}

.screen.active {
  display: flex;
}

/* Idle */
.idle-text {
  font-size: 1.5rem;
  color: #444;
  letter-spacing: 0.05em;
}

/* Album art */
.album-art-container {
  width: min(60vw, 60vh);
  height: min(60vw, 60vh);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
  margin-bottom: 2.5rem;
  flex-shrink: 0;
}

#album-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

/* Track info */
.track-info {
  text-align: center;
  max-width: min(70vw, 520px);
  margin-bottom: 1.5rem;
}

.title {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.artist {
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: #aaa;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.album {
  font-size: clamp(0.75rem, 1.8vw, 1rem);
  color: #555;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Progress bar */
.progress-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(70vw, 520px);
}

.time-label {
  font-size: 0.75rem;
  color: #555;
  min-width: 2.8em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.progress-bar-track {
  flex: 1;
  height: 4px;
  background: #2a2a2a;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #1db954;
  border-radius: 2px;
  width: 0%;
  transition: width 1s linear;
}
