.music-card { width: 250px; height: 50px; /* Increased height to accommodate the button */ background-image: linear-gradient(var(--background-4), var(--foreground-3)); border-top-left-radius: 20px; border-bottom-left-radius: 20px; border-top-right-radius: 5px; border-bottom-right-radius: 20px; display: flex; align-items: center; justify-content: space-between; /* Space between elements */ padding: 0 5px; /* Added padding for better spacing */ overflow: hidden; transition: scale 0.3s ease; } .card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; white-space: normal; font-size: 0.8rem; cursor: pointer; flex-grow: 1; /* Allow the title to take available space */ } .card-icon { font-size: 40px; overflow: visible; } .add-to-playlist { background: none; /* Remove default button background */ border: none; /* Remove default button border */ cursor: pointer; /* Change cursor to pointer */ } .add-icon { font-size: 20px; /* Adjust the icon size as needed */ color: var(--foreground-secondary); /* Use a theme color */ } .music-card:hover { scale: 1.03; } .music-card.now-playing { background-image: linear-gradient(var(--background-2), var(--foreground-2)); border: 2px solid var(--foreground-secondary); border-right: none; border-bottom: none; border-left: none; box-shadow: 0 0 15px var(--foreground-secondary); scale: 1.03; } .music-card.now-playing .card-icon { animation: rotateInfinite 1.5s linear infinite; } @keyframes rotateInfinite { 0% { transform: rotateZ(0deg); } 100% { transform: rotateZ(360deg); } }