:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #111418;
  color: #f5f7fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(29, 36, 46, 0.95), rgba(10, 12, 15, 1)),
    #111418;
}

.shell {
  width: min(960px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.band {
  width: 100%;
  padding: 16px 0;
}

.lede,
#artist,
#album,
.time-row,
.log {
  color: #c3ced8;
}

.controls,
.remote {
  display: grid;
  gap: 12px;
}

.controls {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
}

label {
  display: grid;
  gap: 8px;
}

input,
button {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #3d4a58;
  background: #18202a;
  color: inherit;
  padding: 0 12px;
  font: inherit;
}

button {
  cursor: pointer;
  background: #1f7a4d;
  border-color: #2d9d66;
}

button:hover {
  background: #248b58;
}

.now-playing {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.artwork-wrap {
  aspect-ratio: 1;
  width: 100%;
}

.artwork-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #2d9d66;
  color: #08130d;
  font-size: 14px;
  font-weight: 600;
}

.pill.muted {
  background: #4b5a69;
  color: #f5f7fa;
}

.timeline {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.time-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.remote {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.log {
  min-height: 180px;
  max-height: 280px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #31404f;
  border-radius: 8px;
  background: #121921;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.log-entry + .log-entry {
  margin-top: 8px;
}

@media (max-width: 720px) {
  .now-playing {
    grid-template-columns: 1fr;
  }
}
