body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #191414;
  color: #fff;
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1db954;
  color: #191414;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-title {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1.2;
  margin: 0;
  display: flex;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

button, .shuffle-btn {
  margin: 0;
  vertical-align: middle;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  border-radius: 24px;
  border: cool;
  font-weight: bold;
  background: #1db954;    
  color: #191414;        
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

button:hover, button:focus,
.shuffle-btn:hover, .shuffle-btn:focus {
  background: #191414;      
  color: #1db954;           
  outline: none;
}

#user-info {
  margin: 1rem 0 2rem 0;
  font-size: 1.1rem;
  color: #b3b3b3;
}

#playlists-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.playlist {
  background: #282828;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.1s, box-shadow 0.1s;
}

.playlist:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 4px 16px rgba(30,185,84,0.10);
}

.playlist-info {
  display: flex;
  flex-direction: column;
}

.playlist-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
}

.playlist-tracks {
  font-size: 0.95rem;
  color: #b3b3b3;
}

.playlist-img-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.playlist-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

article#about {
  background: #232323;
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

article#about h2, article#about h3 {
  color: #1db954;
  margin-top: 0.5em;
}

article#about ul {
  margin: 0.5em 0 1em 1.5em;
}

article#about p {
  margin-bottom: 1em;
}

.notification-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1999;
  display: none;
}

.notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 320px;
  max-width: 95vw;
  background: #232323;
  color: #fff;
  padding: 2rem 2.5rem 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.45);
  font-size: 1.2rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.notification.show {
  opacity: 1;
  pointer-events: auto;
}

.notification.error {
  background: #ff4d4d;
  color: #fff;
}

#notification-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  margin-left: auto;
  padding: 0 0.5rem;
  line-height: 1;
  transition: color 0.2s;
}

.notification.error #notification-close {
  color: #fff;
}

#notification-close:hover, #notification-close:focus {
  color: #1db954;
  outline: none;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2rem 0 1.5rem 0;
  gap: 1rem;
  font-size: 1.1rem;
  color: #1db954;
  min-height: 80px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 5px solid #1db95444;
  border-top: 5px solid #1db954;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 0.5rem;
}

.inline-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.inline-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #1db95444;
  border-top: 3px solid #1db954;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.playlists-loading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #1db954;
  font-size: 1.1rem;
  margin: 2rem 0 1.5rem 0;
  justify-content: center;
}

.loading-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #1db95444;
  border-top: 3px solid #1db954;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

.custom-link {
    color: rgb(0, 200, 255);
  }

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

@media (max-width: 600px) {
  body {
    max-width: 100vw;
    padding: 0 0.5rem;
  }
  header {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 1rem;
  }
  .header-actions {
    justify-content: flex-end;
  }
  .playlist {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 1rem;
  }
  .playlist-img-info {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .playlist-img {
    width: 48px;
    height: 48px;
  }
  .playlist-title {
    font-size: 1.05rem;
  }
}

#login-btn, #logout-btn {
  margin: 0;
  vertical-align: middle;
}

#remember-me {
  accent-color: #1db954;
  width: 1.1em;
  height: 1.1em;
}

#shuffle-confirm-popup button:hover, #shuffle-confirm-popup button:focus {
  opacity: 0.85;
  outline: none;
}

#shuffle-success-popup button:hover, #shuffle-success-popup button:focus {
  opacity: 0.85;
  outline: none;
}
