:root {
  color-scheme: light;
  background: #fff;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body { min-height: 100svh; display: flex; flex-direction: column; }

.app {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 7vh, 4.5rem);
  padding: clamp(1.25rem, 4vw, 3rem);
}

.app:has(.player:not(:empty)) { justify-content: flex-start; }

.answer {
  margin: 0;
  font-size: clamp(7rem, 28vw, 17rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.095em;
  padding-right: 0.095em;
  text-align: center;
}

.app:has(.player:not(:empty)) .answer { margin-top: clamp(2rem, 9vh, 7rem); }

.player {
  width: min(100%, 440px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.player:empty { display: none; }

.player iframe {
  display: block;
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: 12px;
}

.player iframe.apple-player { height: 175px; }

.apple-music-link {
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-underline-offset: 0.25em;
  text-transform: uppercase;
}

.apple-music-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.next-song {
  margin-top: -1.25rem;
  border: 0;
  background: none;
  color: #111;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  padding: 0.5rem;
}

.next-song[hidden] { display: none; }

.next-song:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: 0.5rem 1.25rem 0.75rem;
}

.mcp-intro {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
}

.mcp-address {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  font-size: 0.75rem;
  line-height: 1.25;
}

.mcp-address img { display: block; flex: none; }

.mcp-url {
  min-width: 0;
  overflow-wrap: anywhere;
  font: inherit;
  font-family: monospace;
  user-select: text;
}

.copy-mcp-url {
  flex: none;
  min-height: 2.75rem;
  padding: 0.375rem;
  border: 0;
  background: none;
  color: #111;
  cursor: pointer;
  font: inherit;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.copy-mcp-url:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.copy-mcp-url:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

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