#playlists-main-container {
  display: flex;
  flex-direction: column;
}

#playlists-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

#playlist-selection-btn-group {
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  display: none;
}

.youtube-playlists-btn,
.local-playlists-btn {
  font-size: 18px;
  width: 100%;
  padding: 10px;
  font-weight: 600;
  border: 2px solid #cccccc3a;
  border-radius: 5px;
  background: #1a1a1a;
  color: #bbb;
}
.youtube-playlists-btn:hover,
.local-playlists-btn:hover {
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #ffa50024;
}

.playlist-type-selected {
  border-color: #a56b00;
  background-color: #ffa50024;
  color: #fff;
}

.youtube-playlist,
.local-playlist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background-color: #1a1a1a;
  padding: 12px;
  margin: 8px;
  border-radius: 4px;
}
.youtube-playlist:hover,
.local-playlist:hover {
  background-color: #d5d5d51a;
}
.youtube-playlist:hover .youtube-playlist-image,
.local-playlist:hover .local-playlist-image {
  opacity: 0.9;
}

.youtube-playlist-image,
.local-playlist-image {
  width: 100%;
  height: 145px;
  border-radius: 4px;
}

.youtube-playlist-container-1,
.local-playlist-container-1 {
  position: relative;
}

.youtube-playlist-container-2,
.local-playlist-container-2 {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 3px 0 5px 0;
  width: 250px;
}

.local-playlist-container-1:hover,
.local-playlist-container-2:hover {
  cursor: pointer;
}

.youtube-playlist-name,
.local-playlist-name {
  color: white;
  font-size: 16px;
  font-weight: 500;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.youtube-playlist-channelname {
  font-size: 12px;
  font-weight: 500;
  color: #aaa;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.youtube-playlist-videos-count,
.local-playlist-videos-count {
  display: flex;
  gap: 2px;
  position: absolute;
  bottom: 8px;
  right: 5px;
  background-color: #00000099;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 0.2px;
  align-items: center;
}

.remove-youtube-playlist-btn,
.remove-local-playlist-btn {
  background-color: #252525;
  color: #dddddd;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 6px 16px 8px 16px;
  border: 1px solid #cccccc30;
  border-radius: 4px;
}
.remove-youtube-playlist-btn:hover,
.remove-local-playlist-btn:hover {
  cursor: pointer;
  background-color: #801a1a9e;
}

/* Local playlist view */

.selected-playlist {
  display: flex;
  height: 600px;
  padding: 18px 8px;
}

.selected-playlist-name {
  font-size: 28px;
  font-weight: 600;
  width: 420px;
  padding-bottom: 5px;
  margin-top: -5px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.selected-playlist-name span {
  color: #636363;
}

.selected-playlist-container-1 {
  width: 450px;
}

.selected-playlist-container-2 {
  flex: 1;
}

.selected-playlist-video-container-1 {
  position: relative;
  width: 110px;
}

.selected-playlist-videos-container {
  display: flex;
  flex-direction: column;
  height: 564px;
  overflow-y: scroll;
}
/* Scrollbar */
.selected-playlist-videos-container::-webkit-scrollbar {
  width: 10px;
}
/* Scrollbar background */
.selected-playlist-videos-container::-webkit-scrollbar-track {
  background: #000000;
  border-radius: 8px;
}
/* Scrollbar thumb */
.selected-playlist-videos-container::-webkit-scrollbar-thumb {
  background: #3f3f3f;
  border-radius: 8px;
}
/* Hover scrollbar thumb */
.selected-playlist-videos-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.selected-playlist-video {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid #cccccc21;
  padding: 10px 4px;
}
.selected-playlist-video:hover {
  background-color: #262626;
  cursor: pointer;
}

.selected-video {
  background-color: #262626;
}

.video-thumbnail {
  width: 110px;
  height: 62px;
  object-fit: cover;
  border-radius: 8px;
}

.video-duration {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background-color: #00000099;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.2px;
}

.video-title {
  color: white;
  font-size: 14px;
  font-weight: 500;
  width: 300px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-name {
  color: #a0a0a0;
  font-size: 12px;
}

.remove-video-from-playlist-btn {
  width: fit-content;
  background-color: #333;
  color: #dddddd;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px solid #cccccc30;
  border-radius: 5px;
}
.remove-video-from-playlist-btn:hover {
  cursor: pointer;
  background-color: #801a1a9e;
}

/* iframe */
iframe {
  border: none;
  border-radius: 10px;
  overflow: hidden;
}
