*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0d0d0d;
  color: #f0f0f0;
  padding: 16px;
  min-height: 100vh;
}

main { max-width: 600px; margin: 0 auto; padding-bottom: 40px; }

a { color: #7eb8e0; }

/* Landing */
.landing-page { text-align: center; padding-top: 24px; }
.landing-cover { width: 100%; max-width: 300px; border-radius: 8px; margin-bottom: 20px; }
.landing-page h1 { font-size: 1.8rem; margin-bottom: 8px; }
.landing-page p { color: #aaa; margin-bottom: 20px; }
.code-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.code-form input { padding: 10px 14px; border-radius: 6px; border: 1px solid #333; background: #1a1a1a; color: #f0f0f0; font-size: 1rem; width: 220px; }
.code-form button { padding: 10px 20px; border-radius: 6px; border: none; background: #7eb8e0; color: #000; font-size: 1rem; cursor: pointer; font-weight: 600; }

/* Listen */
.listen-page { padding-top: 16px; }
.album-art { width: 100%; border-radius: 8px; margin-bottom: 16px; }
.listen-page h1 { font-size: 1.6rem; margin-bottom: 4px; }
.artist { color: #aaa; font-size: 0.95rem; margin-bottom: 24px; }
.track-list { list-style: none; }
.track { padding: 14px 0; border-bottom: 1px solid #1e1e1e; display: flex; flex-direction: column; gap: 8px; }
.track-num { font-size: 0.75rem; color: #666; }
.track-title { font-size: 1rem; font-weight: 500; }
audio { width: 100%; height: 40px; }

/* Error */
.error-page { text-align: center; padding-top: 60px; }
.error-page h1 { font-size: 1.5rem; margin-bottom: 12px; }
.error-page p { color: #aaa; line-height: 1.6; }

/* Library */
.library-page { padding-top: 16px; }
.library-page h1 { font-size: 1.6rem; margin-bottom: 4px; }
.album-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-top: 24px; }
.album-card a { display: block; text-decoration: none; color: #f0f0f0; }
.album-card img { width: 100%; border-radius: 6px; margin-bottom: 8px; }
.album-name { font-size: 0.875rem; line-height: 1.3; display: block; }
