:root {
  --bg: #0b0c0f;
  --bar: #14161b;
  --text: #eceef2;
  --muted: #9aa1ab;
  --silver: #b8bec6;
  --track: #2a2e36;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

.stage { display: flex; flex-direction: column; height: 100%; }

.screen {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}

/* Blurred cover art behind everything, so letterboxing and artwork-only songs don't look empty. */
.backdrop {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.35);
  transition: background-image 0.4s;
}

video, .art { position: relative; max-width: 100%; max-height: 100%; }
video { width: 100%; height: 100%; object-fit: contain; }
.art { width: min(60%, 60vh); aspect-ratio: 1; object-fit: cover; border-radius: 12px; box-shadow: 0 12px 40px #000a; }

.message {
  position: absolute;
  padding: 10px 16px;
  border-radius: 999px;
  background: #000b;
  color: var(--text);
  font-weight: 600;
  text-align: center;
  max-width: calc(100% - 32px);
}
.message:empty { display: none; }

.bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bar);
}

.progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--track); }
.fill { height: 100%; width: 0; background: var(--silver); transition: width 0.25s linear; }

.logo { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.meta { flex: 1; min-width: 0; }
.title, .artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title { font-weight: 700; }
.artist { color: var(--muted); font-size: 13px; }
.time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.sep { margin: 0 4px; opacity: 0.6; }
