/* Font import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&family=Quicksand:wght@300..700&display=swap');

/* Global styles */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', 'Noto Color Emoji', sans-serif;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #000000;
  overflow-x: hidden;
}

.container {
  flex: 1;
  max-width: 600px;
  width: 100%;
  margin: auto;
  padding: 2rem 1rem 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

h1 {
  margin-top: 2rem;
  font-size: 1.8rem;
}

input {
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 1.5rem;
}

button {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
}

button:hover {
  background-color: #0056b3;
}

#spinner {
  display: none;
  margin: 1.5rem auto;
  border: 4px solid #ccc;
  border-top: 4px solid #333;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.result {
  margin-top: 2rem;
  text-align: center;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 2rem;
  margin-inline: auto;
}

.result pre {
  text-align: center;
  max-height: 70vh;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 0.95rem;
  font-family: 'Quicksand';
}

.result pre::-webkit-scrollbar {
  width: 6px;
}
.result pre::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 3px;
}

.song-image {
  width: 50%;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
  pointer-events: none;
  user-select: none;
}

pre {
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 0.95rem;
  font-family: 'Quicksand';
  user-select: none;
}

.share-btn {
  margin-top: 1rem;
  background: #28a745;
}

.share-btn:hover {
  background: #1e7e34;
}

footer {
  background: #f2f2f2;
  color: #000;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  border-top: 1px solid #ccc;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}