* {
  padding: 0;
  margin: 0;
}
body {
  background-color: #121212;
  font-family: 'Montserrat', sans-serif;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 196px;
  background-color: #000000;
  padding: 24px;
}
.sidebar .logo img {
  width: 130px;
}
.sidebar .navigation ul {
  list-style: none;
  margin-top: 20px;
}
.sidebar .navigation ul li {
  padding: 10px 0px;
}
.sidebar .navigation ul li a {
  color: #b3b3b3;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
}
.sidebar .navigation ul li a:hover,
.sidebar .navigation ul li a:active,
.sidebar .navigation ul li a:focus {
  color: #ffffff;
}
.sidebar .navigation ul li a:hover .fa,
.sidebar .navigation ul li a:active .fa,
.sidebar .navigation ul li a:focus .fa {
  color: #b3b3b3;
}
.sidebar .navigation ul li .fa {
  font-size: 20px;
  margin-right: 10px;
}
.sidebar .navigation ul li a:hover .fa:hover,
.sidebar .navigation ul li a:hover .fa:active,
.sidebar .navigation ul li a:hover .fa:focus {
  color: #ffffff;
}
.sidebar .policies {
  position: absolute;
  bottom: 10px;
}
.sidebar .policies ul {
  list-style: none;
}
.sidebar .policies ul li {
  padding-bottom: 5px;
}
.sidebar .policies ul li a {
  color: #b3b3b3;
  font-weight: 500;
  text-decoration: none;
  font-size: 10px;
}
.sidebar .policies ul li a:hover,
.sidebar .policies ul li a:active,
.sidebar .policies ul li a:focus {
  text-decoration: underline;
}

.main-container {
  margin-left: 196px;
  margin-bottom: 100px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  background-color: #101010;
  padding: 14px 30px;
}
.topbar .prev-next-buttons button {
  color: #7a7a7a;
  cursor: not-allowed;
  width: 34px;
  height: 34px;
  border-radius: 100%;
  font-size: 18px;
  border: 0px;
  background-color: #090909;
  margin-right: 10px;
}
.topbar .navbar {
  display: flex;
  align-items: center;
}
.topbar .navbar ul {
  list-style: none;
}
.topbar .navbar ul li {
  display: inline-block;
  margin: 0px 8px;
  width: 70px;
}
.topbar .navbar ul li a {
  color: #b3b3b3;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 1px;
}
.topbar .navbar ul li a:hover,
.topbar .navbar ul li a:active,
.topbar .navbar ul li a:focus {
  color: #ffffff;
  font-size: 15px;
}
.topbar .navbar ul li.divider {
  color: #ffffff;
  font-size: 26px;
  margin: 0px 20px;
  width: auto;
}
.topbar .navbar button {
  background-color: #ffffff;
  color: #000000;
  font-size: 16px;
  font-weight: bold;
  padding: 14px 30px;
  border: 0px;
  border-radius: 40px;
  cursor: pointer;
  margin-left: 20px;
}
.topbar .navbar button:hover,
.topbar .navbar button:active,
.topbar .navbar button:focus {
  background-color: #f2f2f2;
}
.spotify-playlists {
  padding: 20px 40px;
}
.spotify-playlists h2 {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 20px;
}
.spotify-playlists .list {
  display: flex;
  gap: 20px;
  overflow: hidden;
}
.spotify-playlists .list .item {
  min-width: 140px;
  width: 160px;
  padding: 15px;
  background-color: #181818;
  border-radius: 6px;
  cursor: pointer;
  transition: all ease 0.4s;
}
.spotify-playlists .list .item:hover {
  background-color: #252525;
}
.spotify-playlists .list .item img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}
.spotify-playlists .list .item .play {
  position: relative;
}
.spotify-playlists .list .item .play .fa {
  position: absolute;
  right: 10px;
  top: -60px;
  padding: 18px;
  background-color: #1db954;
  border-radius: 100%;
  opacity: 0;
  transition: all ease 0.4s;
}
.spotify-playlists .list .item:hover .play .fa {
  opacity: 1;
  transform: translateY(-20px);
}
.spotify-playlists .list .item h4 {
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spotify-playlists .list .item p {
  color: #989898;
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
}
.spotify-playlists hr {
  margin: 70px 0px 0px;
  border-color: #636363;
}

.preview {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to right, #ae2896, #509bf5);
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
}
.preview h6 {
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 12px;
  margin-bottom: 10px;
}
.preview p {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}
.preview button {
  background-color: #ffffff;
  color: #000000;
  font-size: 16px;
  font-weight: bold;
  padding: 14px 30px;
  border: 0px;
  border-radius: 40px;
  cursor: pointer;
}


.library {
  padding: 20px 40px;
}
.song-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  background: #181818;
  margin: 10px 0;
  padding: 10px;
  border-radius: 6px;
}
.song-item:hover {
  background: #282828;
}
.play-btn {
  background: #1db954;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 18px;
  cursor: pointer;
  color: #fff;
}
.play-btn:hover {
  background: #1ed760;
}
.player {
  position: fixed;
  bottom: 0;
  left: 196px;
  right: 0;
  background-color: #181818;
  padding: 10px;
  display: flex;
  justify-content: center;
}

.upload-label {
  color: #b3b3b3;
  font-weight: bold;
  font-size: 13px;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

.upload-label .fa {
  font-size: 20px;
  margin-right: 10px;
}

.upload-label:hover {
  color: #ffffff;
}


/* Modal overlay */
.upload-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Hidden by default */
.hidden {
  display: none;
}

/* Modal content box */
.upload-content {
  background: #181818;
  color: white;
  padding: 20px 25px;
  border-radius: 12px;
  width: 350px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.upload-content h3 {
  margin-bottom: 15px;
}

.upload-content label {
  display: block;
  margin: 8px 0 4px;
  font-size: 14px;
  color: #ccc;
}

.upload-content input,
.upload-content textarea {
  width: 100%;
  border: none;
  padding: 8px;
  border-radius: 6px;
  background: #282828;
  color: white;
}

.upload-content textarea {
  resize: none;
  height: 60px;
}

.upload-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.upload-actions button {
  background-color: #1db954;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  color: white;
  font-weight: bold;
}

.upload-actions button#cancelUpload {
  background-color: #333;
}

.item img {
  aspect-ratio: 1 / 1;        /* keeps the image square */
  object-fit: cover;           /* crop and center instead of stretching */
  border-radius: 8px;          /* optional, matches Spotify aesthetic */
}

.music-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1db954; /* Spotify green */
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 10px;
  color: white;
  z-index: 1000;
}

.music-player.hidden {
  display: none;
}

.player-info {
  flex: 1;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  margin: 0 5px;
}

#progressBar {
  flex: 2;
  cursor: pointer;
}

/* Global tweaks */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  background-color: #121212;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
}

/* Sidebar tweaks */
.sidebar {
  background-color: #000000;
  box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}

/* Topbar tweaks */
.topbar {
  border-bottom: 1px solid #222;
}

/* Spotify playlists tweaks */
.spotify-playlists .list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.spotify-playlists .list::-webkit-scrollbar {
  height: 6px;
}
.spotify-playlists .list::-webkit-scrollbar-thumb {
  background-color: #333;
  border-radius: 3px;
}
.spotify-playlists .list::-webkit-scrollbar-track {
  background-color: #121212;
}

.spotify-playlists .list .item {
  background-color: #181818;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}
.spotify-playlists .list .item:hover {
  background-color: #252525;
  transform: translateY(-4px);
}
.spotify-playlists .list .item img {
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.spotify-playlists .list .item h4,
.spotify-playlists .list .item p {
  padding: 0 5px;
}
.spotify-playlists .list .item .play .fa {
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}
.spotify-playlists .list .item:hover .play .fa {
  transform: translateY(-10px) scale(1.1);
}

