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

body {
  background: #1a1a2e;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

cast-media-player {
  --theme-hue: 314;
  --progress-color: #ed35fb;
  --splash-color: #1a1a2e;
  --background-color: #1a1a2e;
}

/* ----------------------------------------------------------------
   Idle screen — visible by default, hidden when body has .playing
   ---------------------------------------------------------------- */

#idle-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  transition: opacity 0.4s ease;
}

body.playing #idle-screen {
  opacity: 0;
  pointer-events: none;
}

.logo {
  text-align: center;
}

.logo .icon {
  font-size: 96px;
  display: block;
  margin-bottom: 24px;
}

.logo h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.logo p {
  font-size: 20px;
  opacity: 0.6;
  transition: color 0.3s;
}

.logo p.ok {
  color: #4ade80;
  opacity: 1;
}

.logo p.error {
  color: #f87171;
  opacity: 1;
}

/* ----------------------------------------------------------------
   Now-playing overlay — visible when body has .playing
   ---------------------------------------------------------------- */

#now-playing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

body.playing #now-playing {
  opacity: 1;
  pointer-events: auto;
}

#np-artwork {
  width: 300px;
  height: 300px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  margin-bottom: 24px;
  background: #2a2a3e;
}

#np-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  max-width: 80vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 8px;
}

#np-artist {
  font-size: 20px;
  font-weight: 400;
  opacity: 0.7;
  text-align: center;
  max-width: 80vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
