﻿:root {
  color-scheme: dark;
  --bg: #05070b;
  --panel: rgba(14, 18, 27, 0.82);
  --text: #f8fbff;
  --muted: #aab6c8;
  --accent: #61e294;
  --accent-2: #63b3ff;
}
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(16px, 3vw, 48px);
  background: radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 36%), linear-gradient(135deg, #030508, var(--bg));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}
.display-shell {
  width: min(1500px, 100%);
  min-height: min(820px, calc(100vh - 32px));
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
}
.artwork-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0b0f17;
  box-shadow: 0 28px 100px rgba(0,0,0,0.45);
  overflow: hidden;
}
.artwork-panel img, .artwork-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.artwork-panel img { object-fit: contain; opacity: 0; transition: opacity 180ms ease; }
.artwork-panel.has-artwork img { opacity: 1; }
.artwork-fallback { display: grid; place-items: center; color: var(--muted); font-size: clamp(5rem, 18vw, 16rem); font-weight: 950; letter-spacing: 0; }
.artwork-panel.has-artwork .artwork-fallback { display: none; }
.metadata-panel { min-width: 0; }
.connection, .source-line { color: var(--muted); font-size: clamp(0.9rem, 1.6vw, 1.15rem); font-weight: 850; text-transform: uppercase; letter-spacing: 0; }
h1 { margin: 0.12em 0; font-size: clamp(2.6rem, 7.2vw, 7rem); line-height: 0.98; letter-spacing: 0; overflow-wrap: anywhere; }
.artist { margin: 0.35em 0 0; color: #dce8f8; font-size: clamp(1.4rem, 3.2vw, 3.3rem); font-weight: 850; overflow-wrap: anywhere; }
.album { min-height: 1.4em; margin: 0.25em 0 1.1em; color: var(--muted); font-size: clamp(1rem, 2vw, 1.65rem); font-weight: 720; overflow-wrap: anywhere; }
.progress-wrap { display: grid; gap: 10px; margin: clamp(22px, 4vw, 44px) 0 20px; }
.progress-track { height: clamp(8px, 1.2vw, 14px); border-radius: 999px; background: rgba(255,255,255,0.16); overflow: hidden; }
.progress-bar { width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 220ms linear; }
.progress-times { display: flex; justify-content: space-between; color: var(--muted); font-size: clamp(0.85rem, 1.3vw, 1.05rem); font-weight: 800; }
.display-shell.no-progress .progress-wrap { display: none; }
.display-shell.idle .artist, .display-shell.idle .album { display: none; }
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  body { overflow: auto; }
  .display-shell { grid-template-columns: 1fr; min-height: auto; align-content: start; }
  .artwork-panel { max-width: min(72vh, 100%); margin: 0 auto; }
  h1 { font-size: clamp(2.2rem, 11vw, 4.6rem); }
}

