body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;

    background: linear-gradient(135deg, #141e30, #243b55);
    font-family: 'Segoe UI', sans-serif;
    color: white;
}

.player {
    background: rgba(255,255,255,0.1);
    padding: 18px;              /* 🔽 reduced from 25 */
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    width: 260px; 
     box-shadow: 0 10px 30px rgba(0,0,0,0.4);              /* slightly smaller */
}

img {
    width: 260px;
    height: 260px;
    border-radius: 15px;
    margin: 10px 0;
}

.controls button {
    padding: 8px 12px;
    margin: 5px;
    font-size: 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
     box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.controls button:hover {
    background: rgba(255,255,255,0.2);
     transform: scale(1.1);
}
#progress {
    width: 100%;
    margin: 10px 0;
}
.volume-container {
    display: flex;
    align-items: center;
    justify-content: center;   /* add this */
    gap: 8px;
}

.volume-container span {
    
    font-size: 15px;
}

#volume {
    
    width: 50%;
   
}
h3 {
    margin: 8px 0;              /* 🔽 less gap */
}

#progress {
    margin: 8px 0;              /* 🔽 less gap */
}

.volume-container {
    margin-top: 5px;            /* 🔽 reduced */
}
img {
    transition: transform 0.3s ease;
}

.playing {
    animation: rotate 5s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.controls button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255,255,255,0.4);
}
#progress {
    accent-color: #56f85bf1;   /* Spotify green 😎 */
}
#time {
    font-size: 14px;
    margin: 5px 0;
    opacity: 0.8;
}
#artist {
    font-size: 14px;
    opacity: 0.7;
}