html, body {
    background-color: black;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  
  #toggle-sidebar {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 20;
    background-color: #b06d37;
    border: none;
    color: white;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
  }
  
  #orange-sidebar {
    position: fixed;
    width: 5.5rem;
    height: 100%;
    background-color: #b06d37;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    transition: transform 0.3s ease;
  }
  
  #orange-sidebar.hidden {
    transform: translateX(-100%);
  }

#profile > img {
    margin-top: 5px;
    height: 55px;
    width: 55px;
    border-radius: 50%;
}

.tags {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.tags button {
    background: none;
    border: none;
    color: white; /* Set initial text color */
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    margin: 5px 0;
    transition: color 0.3s ease, background-color 0.3s ease; /* Transition for color and background change */
}

.tags button:hover {
    color: black; /* Change text color on hover */
    background-color: white; /* Change background color on hover */
}

.tags button svg, .tags button img {
    fill: white; /* Set initial icon color */
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
    transition: fill 0.3s ease; /* Transition for icon color change */
}

.tags button:hover svg,
.tags button:hover img {
    fill: black; /* Change icon color on hover */
}

.background {
    position: absolute;
    top: 0;
    left: 0; /* Initially, no margin for sidebar */
    width: 100%; /* Take full width initially */
    height: 100%;
    background-color: #1E2A3E;
    opacity: 1;
    background-image: repeating-radial-gradient(circle at 0 0, transparent 0, #1E2A3E 40px), repeating-linear-gradient(#23365655, #233656);
    border-radius: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    z-index: 1; /* Ensure content appears behind sidebar */
    transition: margin-left 0.3s ease, width 0.3s ease; /* Smooth transition for margin-left and width */
}

.background.expanded {
    margin-left: 5.5rem; /* Adjust for sidebar width */
    width: calc(100% - 5.5rem); /* Adjust width when sidebar is expanded */
}
.disc{
    margin: 10px;
    background-color: beige;
    width: 300px;
    height: 300px;
    border-radius: 50%;
}
.disc>img{
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.player{
    margin: 10px;
    background-color: #1E2A3E;
    
    height: 300px;
    width: 600px;
    border-radius: 12px;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    align-items: center;
    justify-content: center;

}
.player >.text{
    color: beige;
    text-align: center;
    margin-top: 10px;
}
.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress {
    width: 0%;
    height: 100%;
    background-color: #0078d4;
    transition: width 0.3s ease-in-out;
}

.button-container {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    margin-top: 50px;
}

.button-container button {
    background-color: #5b729a;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-container button:hover {
    background-color: white;
}

.button-container button img,
.button-container button svg {
    height: 24px;
    width: 24px;
}

.button-container button:hover img,
.button-container button:hover svg {
    fill: black;
}

.button-container button.s2 {
    background-color: white;
    color: red;
}

.button-container button.s2:hover {
    background-color: white;
    color: red;
}

.album{
    margin: 10px;
    background-color: #f0f0f0;
    height: 300px;
    display: grid;
    grid-template-rows: 2fr 1fr 1fr;
    color: black;
    border-radius: 20px;
}
.album>img{
    margin-top: 5px;
    margin-left: 13px;
    margin-right: 13px;
    width: 280px;
    height: 220px;
    border-radius: 18px;
}
.album h2,h4{
    text-align: center;
}
.background>.other{
    width: 35%;
    height: 330px;
    justify-content: flex-start;
    background-color: #0a3251;
    color: beige;
    padding: 10px;
    border-radius: 22px;
}
.library-body {
    width: 94%;
    height: 90%;
    padding: 3%;
    display: flex;
    flex-wrap: wrap;
    overflow-y: auto;
    justify-content: space-between;
  }
.playlist-card {
    position: relative;
    width: 35%;
    height: 35%;
    border-radius: 20px;
    background-color: white;
    border: 1px solid rgba(54, 69, 98, 0.18);
    padding: 1%;
    margin-bottom: 5.5%;
    background: rgb(30, 42, 62);
    background: linear-gradient(
      75deg,
      rgb(40, 58, 88) 0%,
      rgba(54, 69, 98, 0) 100%
    );
    transition: all 0.2s ease;
    cursor: pointer;
  }
  .play-button {
    position: absolute;
    top: 90%;
    left: 85%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none; /* Initially hidden */
    font-size: 24px;
    color: rgb(30, 42, 62);
    cursor: pointer;
}

.playlist-card:hover .play-button {
    display: block; /* Show play button on hover */
}
  
  .playlist-card:hover {
    transform: scale(1.02);
  }
  
  .playlist-card:hover .playlist-fade {
    opacity: 1;
  }
  
  .playlist-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 15px;
  }
  
  .playlist-title {
    font-weight: 800;
    font-size: 16px;
    color: beige;
    margin: 10px 0px 10px;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  
  .playlist-subtitle {
    font-weight: 400;
    font-size: 12px;
    margin: 0px;
    color: #c4d0e37c;
  }
  
  .playlist-fade {
    position: absolute;
    right: 0;
    bottom: 0;
    opacity: 0;
    width: 84%;
    height: 34%;
    border-radius: 20px;
    background: linear-gradient(
      180deg,
      rgba(54, 69, 98, 0) 10%,
      rgba(54, 69, 98, 1) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 8%;
    transition: 0.5s ease;
  }
  .up-next{
    margin-top: 0.5rem;
    color: beige;
    background-color: #b06d37;
    width: 350px;
    height: 320px;
    border-radius: 20px;
    padding: 10px;
    text-align: center;

  }

.up-next h3 {
        margin-top: 0.5rem;
        color: white;
        
    }
    @media (max-width: 480px) {
        .background>.other{
            width: 90%;
            height: 330px;
            justify-content: flex-start;
            background-color: #0a3251;
            color: beige;
            padding: 10px;
            border-radius: 22px;
            
        }
        .album{
            width: 91%;
        }
        .album>img{
           width: 90%;
        }
        .up-next{
            width: 91%;
        }
    }
