/* === General layout === */
body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fafafa;
  color: #222;
  margin: 0;
  padding: 2rem;
  line-height: 1.5;
}

/* === Thanks message === */
#thanksMessage {
  display: none;
  background: #d0f0d0;
  color: #205020;
  border: 1px solid #90c090;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
  animation: fadeIn 0.4s ease-out;
}

/* === Tip Jar === */
#tipJar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #fffef5;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#tipJar input[type="number"] {
  width: 100px;
  padding: 0.3rem 0.4rem;
  border: 1px solid #bbb;
  border-radius: 4px;
}

#tipJar button {
  background: #ffcc33;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

#tipJar button:hover {
  background: #ffb700;
}

/* === Library Items === */
.libraryItem {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.libraryItem:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* Thumbnail */
.libraryItem img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 1rem;
}

/* === Text Content === */
.libraryItem .collabListLink a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #518BA1;
  text-decoration: none;
}

.libraryItem .collabListLink a:hover {
  color: #005fa3;
  text-decoration: underline;
}

.playlistArtist a {
  color: #444;
  font-weight: 500;
  text-decoration: none;
}

.playlistArtist a:hover {
  color: #000;
  text-decoration: underline;
}

.libDate,
.remixCount {
  color: #777;
  font-size: 0.9rem;
}

.remixCount a {
  color: #666;
  text-decoration: none;
}

.remixCount a:hover {
  color: #000;
  text-decoration: underline;
}

/* === Animations === */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* === Responsive adjustments === */
@media (max-width: 600px) {
  .libraryItem {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .libraryItem img {
    margin-bottom: 0.5rem;
  }
}

