:root {
  --text: #f6f8ff;
  --muted: rgba(246, 248, 255, 0.82);
  --shadow: rgba(0, 0, 0, 0.55);
  --accent: #1ed760;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #05070c;
  font-family: Inter, "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.panel {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #05070c;
  color: var(--text);
}

.background {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.02);
  opacity: 0;
  transition: opacity 700ms ease, background-image 400ms ease;
}

.panel.has-bg .background {
  opacity: 1;
}

.shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 5, 10, 0.82) 0%, rgba(2, 5, 10, 0.28) 42%, rgba(2, 5, 10, 0.12) 100%),
    linear-gradient(0deg, rgba(2, 5, 10, 0.76) 0%, rgba(2, 5, 10, 0.16) 34%, rgba(2, 5, 10, 0.04) 100%);
}

.now-playing {
  position: absolute;
  left: clamp(32px, 5vw, 96px);
  bottom: clamp(56px, 8vh, 116px);
  max-width: min(1200px, 72vw);
  text-shadow: 0 6px 24px var(--shadow);
}

.meta h1 {
  margin: 0 0 12px;
  font-size: clamp(56px, 7.5vw, 150px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 850;
}

.meta p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(30px, 3vw, 62px);
  line-height: 1.15;
  font-weight: 550;
  letter-spacing: -0.025em;
}

.progress {
  position: absolute;
  left: clamp(32px, 5vw, 96px);
  right: clamp(32px, 5vw, 96px);
  bottom: clamp(20px, 3vh, 42px);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 3px 24px rgba(0, 0, 0, 0.28);
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  border-radius: inherit;
  transition: width 900ms linear;
}

.login-box {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
  padding: 32px;
  z-index: 3;
}

.login-box h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 76px);
  letter-spacing: -0.05em;
}

.login-box p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.login-button {
  justify-self: center;
  margin-top: 16px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #001807;
  text-decoration: none;
  font-weight: 800;
}

.spotify-link {
  position: absolute;
  right: 28px;
  bottom: 24px;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 14px;
  z-index: 4;
}

body.webplayer-token-bad .spotify-link {
  color: #ff3b3b;
  text-shadow: 0 0 14px rgba(255, 59, 59, 0.75);
}

body.webplayer-token-good .spotify-link {
  color: #1db954;
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .now-playing {
    max-width: 86vw;
  }
}

.video-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  opacity: 1;
}
