/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  transition: background-color 0.8s ease;
}

body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color, #1a1a2e);
  color: var(--text-color, #ffffff);
  transition: background-color 0.8s ease, color 0.8s ease;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 480px;
  padding: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* === Cover Art === */
.cover {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent-color, #6c63ff) 40%, transparent);
  transition: box-shadow 0.8s ease;
  margin-bottom: 24px;
}

/* === Typography === */
.title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.artist {
  font-size: 1.125rem;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 4px;
}

.year {
  font-size: 0.875rem;
  font-weight: 300;
  opacity: 0.6;
  margin-bottom: 32px;
}

/* === Apple Music Button === */
.apple-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  background-color: var(--accent-color, #6c63ff);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent-color, #6c63ff) 50%, transparent);
}

.apple-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent-color, #6c63ff) 50%, transparent);
}

.apple-btn[hidden] {
  display: none;
}

/* === Responsive: tablet (480px+) === */
@media (min-width: 480px) {
  .container {
    padding: 24px;
  }

  .cover {
    width: 320px;
    height: 320px;
  }
}

/* === Responsive: desktop (768px+) === */
@media (min-width: 768px) {
  .container {
    padding: 32px;
  }

  .cover {
    width: 360px;
    height: 360px;
  }
}
