:root {
  color-scheme: light dark;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #242334;
  background: #f7f6fa;
  --muted: #656275;
  --surface: #ffffffd9;
  --line: #e6e2ee;
  --atmosphere-overlay: #f7f6fac7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(ellipse at 10% 0%, #e8e5f6 0, transparent 55%),
    radial-gradient(ellipse at 100% 70%, #f8e9e9 0, transparent 50%);
}
.artwork-atmosphere { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.artwork-atmosphere img { position: absolute; inset: -15%; width: 130%; height: 130%; object-fit: cover; filter: blur(72px) saturate(0.65); }
.artwork-atmosphere::after { content: ""; position: absolute; inset: 0; background: var(--atmosphere-overlay); }
main {
  position: relative;
  width: min(100%, 460px);
  margin: auto;
  padding: max(28px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
}
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; font-size: 20px; font-weight: 650; }
.identity { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand img { flex: 0 0 auto; border-radius: 10px; border: 1px solid var(--line); }
.product { color: var(--muted); font-size: 0.8em; font-weight: 400; }
.open-app { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: 12px; background: #302c3f; color: #fff; font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; }
article { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: 0 16px 64px #2920440a; }
.cover { position: relative; }
.artwork { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 16px; background: var(--line); }
.preview-toggle { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #ffffff80; border-radius: 50%; background: #181620e8; color: #fff; cursor: pointer; box-shadow: 0 4px 24px #0005; }
.preview-toggle[hidden] { display: none; }
.preview-toggle svg { width: 30px; height: 30px; fill: currentColor; }
.preview-toggle .preview-pause { display: none; }
.preview-toggle[data-state="playing"] .preview-play, .preview-toggle[data-state="loading"] .preview-play { display: none; }
.preview-toggle[data-state="playing"] .preview-pause, .preview-toggle[data-state="loading"] .preview-pause { display: block; }
h1 { font-size: clamp(24px, 5vw, 32px); line-height: 1.2; margin: 22px 0 8px; overflow-wrap: anywhere; }
.artist { color: var(--muted); font-size: 18px; margin: 0; overflow-wrap: anywhere; }
.preview { margin-top: 12px; }
.preview-credit, .preview-unavailable { font-size: 12px; margin: 8px 0 0; }
.preview-unavailable { margin-top: 20px; }
.song-store { display: inline-flex; padding: 11px 0; margin-top: 4px; max-width: 100%; }
.song-store img { display: block; width: auto; max-width: 100%; }
h2 { font-size: 21px; line-height: 1.35; margin: 0 0 10px; }
p { margin: 0 0 18px; color: var(--muted); }
.store { display: inline-flex; padding: 12px 0; max-width: 100%; }
.store img { display: block; width: auto; max-width: 100%; }
.hint { font-size: 13px; margin: 12px 0 0; }
.hint:empty { display: none; }
.install-hint { padding-inline: 8px; }
.unavailable { margin-bottom: 24px; }
footer { color: var(--muted); font-size: 12px; text-align: center; padding-top: 24px; }
a:focus-visible, button:focus-visible { outline: 3px solid #6b59ad; outline-offset: 5px; }
@media (prefers-color-scheme: dark) {
  :root { color: #f3f0f9; background: #15131c; --muted: #bcb6ca; --surface: #211d2aeb; --line: #3a3349; --atmosphere-overlay: #15131ca8; }
  body { background: radial-gradient(ellipse at 0% 0%, #302641 0, transparent 55%), radial-gradient(ellipse at 100% 70%, #37262f 0, transparent 50%); }
  .open-app { background: #eeeaf6; color: #262230; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  .artwork-atmosphere { display: none; }
  article { background: Canvas; border-color: CanvasText; }
  .open-app, .preview-toggle { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; }
}
@media (max-width: 350px) {
  main { padding-inline: 16px; }
  article { padding: 18px; }
}
