:root {
  --cover-size: clamp(180px, 30vw, 280px);
  --control-height: 42px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101214;
  color: #f6f1e8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(16, 18, 20, 0.92), rgba(34, 38, 42, 0.96)),
    #101214;
}

.player {
  width: min(920px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: var(--cover-size) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.coverWrap {
  position: relative;
  width: var(--cover-size);
  height: var(--cover-size);
  aspect-ratio: 1;
  border: 1px solid rgba(246, 241, 232, 0.18);
  background: #20252a;
  overflow: hidden;
}

.cover,
.coverFallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cover {
  object-fit: cover;
  display: none;
}

.coverFallback {
  display: grid;
  place-items: center;
  color: #c7d8d4;
  font-size: 32px;
  font-weight: 700;
}

.meta {
  min-width: 0;
  min-height: 168px;
}

.status {
  height: 22px;
  color: #82d4bc;
  font-size: 13px;
  line-height: 22px;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

h1 {
  margin: 12px 0 6px;
  font-size: clamp(34px, 7vw, 76px);
  line-height: 0.95;
  min-height: 1.9em;
  max-height: 1.9em;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#artist {
  display: block;
  height: 28px;
  color: #d8d0c2;
  font-size: 20px;
  line-height: 28px;
  text-decoration-color: rgba(216, 208, 194, 0.5);
  text-underline-offset: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#artist:not([href]) {
  text-decoration: none;
  cursor: default;
}

.controls {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  min-height: var(--control-height);
}

.command {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.copyStatus {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.copyBox {
  display: block;
  width: 100%;
  height: 44px;
  padding: 12px 14px;
  border: 1px solid rgba(246, 241, 232, 0.18);
  background: #20252a;
  color: #f6f1e8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.45;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  overflow-wrap: normal;
  user-select: all;
  cursor: copy;
  scrollbar-width: thin;
}

.copyBox:focus {
  outline: 2px solid #82d4bc;
  outline-offset: 2px;
}

button {
  min-width: 96px;
  min-height: var(--control-height);
  border: 1px solid rgba(246, 241, 232, 0.18);
  background: #f0c36a;
  color: #101214;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

.station {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d8d0c2;
  min-height: var(--control-height);
}

.station > span {
  width: 56px;
  flex: 0 0 auto;
}

select {
  width: min(260px, 54vw);
  min-height: var(--control-height);
  border: 1px solid rgba(246, 241, 232, 0.18);
  background: #20252a;
  color: #f6f1e8;
  font: inherit;
  padding: 0 12px;
}

@media (max-width: 700px) {
  :root {
    --cover-size: min(78vw, 320px);
  }

  body {
    place-items: start center;
    padding: 24px 0;
  }

  .player {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  h1 {
    font-size: 42px;
  }
}
