:root {
  color-scheme: dark;
  --radio-bg: rgba(8, 12, 18, 0.72);
  --radio-bg-strong: rgba(8, 12, 18, 0.88);
  --radio-border: rgba(255, 255, 255, 0.16);
  --radio-text: #f5fbff;
  --radio-muted: #b9c8d1;
  --radio-accent: #73d7ff;
  --radio-live: #74d6a4;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--radio-text);
  background: transparent;
}

body {
  display: grid;
  align-items: center;
  justify-items: start;
}

img {
  display: block;
  max-width: 100%;
}

.radio-overlay {
  display: grid;
  min-width: 0;
  max-width: min(96vw, 760px);
  margin: 12px;
  background: var(--radio-bg);
  border: 1px solid var(--radio-border);
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}

.nowplaying {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 560px;
  padding: 14px;
}

.compact {
  width: 430px;
  gap: 4px;
  padding: 12px 14px;
}

.full {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  width: 680px;
  padding: 16px;
}

.art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.art::before {
  content: "RADIO";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(245, 251, 255, 0.4);
  font-size: 16px;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(116, 214, 164, 0.16), transparent 46%),
    rgba(8, 12, 18, 0.92);
}

.art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art img.is-loading {
  opacity: 0.35;
}

.art img[hidden] {
  display: none;
}

.content {
  min-width: 0;
}

.label,
.meta,
.listeners {
  color: var(--radio-muted);
  font-size: 14px;
  font-weight: 800;
}

.label {
  margin-bottom: 4px;
  color: var(--radio-accent);
  text-transform: uppercase;
}

.title,
.artist {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title {
  margin-bottom: 2px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.08;
}

.artist {
  color: var(--radio-muted);
  font-size: 20px;
  font-weight: 750;
}

.compact .title {
  font-size: 24px;
}

.compact .artist {
  font-size: 17px;
}

.full .title {
  font-size: 34px;
}

.full .artist {
  font-size: 21px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.pill {
  padding: 4px 8px;
  color: var(--radio-text);
  font-size: 13px;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.pill.live {
  color: #06120d;
  background: var(--radio-live);
  border-color: var(--radio-live);
}

.overlay-sequence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.overlay-song {
  min-width: 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.overlay-song span,
.overlay-song small {
  display: block;
  overflow: hidden;
  color: var(--radio-muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overlay-song strong {
  display: block;
  overflow: hidden;
  margin: 2px 0;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overlay-song.is-current {
  border-color: rgba(116, 214, 164, 0.5);
}

@media (max-width: 520px) {
  .radio-overlay,
  .nowplaying,
  .compact,
  .full {
    width: calc(100vw - 24px);
  }

  .nowplaying,
  .full {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .overlay-sequence {
    grid-template-columns: 1fr;
  }

  .title,
  .full .title {
    font-size: 22px;
  }

  .artist,
  .full .artist {
    font-size: 16px;
  }
}
