:root {
  --main-padding: 16px;
}


.container-User-Playlist {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  width: auto;
  height: 180px;
  background-color: transparent;
  background-color: #080a0c70;
/*   backdrop-filter: blur(8px) saturate(1.5); */
  border-radius: 7px;
  position: absolute;
  padding: 4px;
  left: var(--main-padding);
  right: var(--main-padding);
  bottom: var(--main-padding);
  margin-bottom: 16px;
  overflow-x: auto;
}

/* 1. Define a largura da barra */
::-webkit-scrollbar {
  width: 12px;
  height: 3px;
}

/* 2. Fundo da barra (Track) */
::-webkit-scrollbar-track {
  background: #00000050;
  border-radius: 10px;
}

/* 3. O pegador (Thumb) */
::-webkit-scrollbar-thumb {
  background: #000000;
  border-radius: 10px;
}

/* 4. Efeito ao passar o mouse */
::-webkit-scrollbar-thumb:hover {
  background: #37f1a3;
}


.box-Card-Playlist {
  display: flex;
  flex-shrink: 0;
  /* justify-content: center; */
  align-items: center;
  flex-direction: column;
  aspect-ratio: 2/3;
  height: 90%;
  border-radius: 7px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: black;
  border: 1px solid rgba(255, 255, 255, 0.150);
}


.box-Card-Playlist p {
  line-height: 0;
  font-size: 0.8em;
}



.card-Create-Playlist {
  width: 120px;
  height: 100%;
  border-radius: 7px;
  background-color: black;
  display: flex;
  flex-direction: column;
  border: 1px solid #29a56b7a;
}

.card-Playlist {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  aspect-ratio: 2/3;
  height: 100%;
  border-radius: 7px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: black;
}


.playlist-content-area {
  background-color: #09090b;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999999;
  padding: 16px;
  overflow-y: auto;
  flex-direction: column;
  align-content: start;
  display: none;
}

.playlist-content-area.open {
  display: flex;
  animation: openPlaylistContentArea 0.5s ease forwards;
}

.box-playlist-items {
  background-color: #656b7c;
  position: relative;
  height: 100%;
  width: 100%;
  display: grid;
  border-radius: 7px;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
}


@keyframes openPlaylistContentArea {
  0% {
    width: 0%;
    opacity: 0;
    clip-path: circle(0% at center);
  }

  100% {
    width: 100%;
    opacity: 1;
    clip-path: circle(100% at center);
  }
}


.card-Playlist.item {
  margin-top: 10px;
  aspect-ratio: 2/3;
  height: 180px;
}



#remove-item {
  width: 50%;
  height: 36px;
  color: #000000;
  background-color: #37f1a3;
  border: none;
}



















:root {
  --bg-color: #09090b;
  --accent-color: #37f1a3;
  --text-white: #ffffff;
  --input-bg: #18181b;
  --input-border: #27272a;
}


.container-create-playlist-form {
  width: calc(100% - 23px);
  max-width: 500px;
  padding: 2rem;
  background: linear-gradient(to top, #000a0e, black);
  border-radius: 10px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 13px;
  border: 1px solid var(--input-border);
  z-index: 1;
  opacity: 1;
  display: none;
  animation: opacityShowGlobal 0.3s ease;
}

h2 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Input de Texto */
#playlistName[type="text"] {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: rgb(255, 255, 255);
  padding: 0.8rem;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s;
}

#playlistName[type="text"]:focus {
  border-color: var(--accent-color);
}

/* Upload de Capa */
.cover-upload {
  width: 150px;
  height: 150px;
  background: var(--input-bg);
  border: 2px dashed var(--input-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: all 0.3s;
}

.cover-upload:hover {
  border-color: var(--accent-color);
}

#preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.cover-placeholder {
  text-align: center;
  font-size: 0.8rem;
  color: #71717a;
}

/* Toggle Privado/Público */
.toggle-group {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--input-border);
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

#checkbox-isPublic:checked+.slider {
  background-color: var(--accent-color);
}

#checkbox-isPublic:checked+.slider:before {
  transform: translateX(22px);
}

/* Botão Criar */
.btn-submit-create-playlist {
  background-color: var(--accent-color);
  color: var(--bg-color);
  border: none;
  /*   padding: 0.9rem; */
  width: 100%;
  height: 40px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.8rem;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  margin-top: 1rem;
}

.btn-submit-create-playlist:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

#coverInput[type="file"] {
  display: none;
}