* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.music-player {
    width: 450px;
    padding: 35px;
    background-color: white;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.music-player:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

h1 {
    margin-bottom: 25px;
}

.song-info {
    margin-bottom: 25px;
}

.song-info h2 {
    margin-bottom: 8px;
}

.song-info p {
    color: #666;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

#progress {
    width: 100%;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.controls button {
    border: none;
    background: #333;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.controls button:hover {
    transform: scale(1.05);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

#volume {
    width: 100%;
}

.playlist {
    margin-top: 25px;
    text-align: left;
}

.playlist h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.song-item {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    color: #333;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    transition: 0.3s;
}

.song-item:hover {
    background: #333;
    color: white;
    transform: translateX(4px);
}

/* Mobile */
@media (max-width: 500px) {

    body {
        padding: 10px;
    }

    .music-player {
        width: 100%;
        max-width: 340px;
        padding: 22px 15px;
    }

    h1 {
        font-size: 25px;
        margin-bottom: 18px;
    }

    .song-info {
        margin-bottom: 20px;
    }

    .song-info h2 {
        font-size: 20px;
    }

    .song-info p {
        font-size: 15px;
    }

    .progress-container {
        gap: 5px;
        margin-bottom: 20px;
    }

    #current-time,
    #duration {
        font-size: 12px;
    }

    .controls {
        gap: 12px;
        margin-bottom: 20px;
    }

    .controls button {
        width: 43px;
        height: 43px;
        font-size: 17px;
    }

    .volume-control {
        gap: 7px;
    }

    .playlist {
        margin-top: 18px;
    }

    .playlist h3 {
        font-size: 17px;
    }

    .song-item {
        padding: 10px 12px;
        font-size: 14px;
    }
}