fiddle away

中上級 (B2) informal

To waste time or money doing small, useless things instead of something important.

"She fiddled away the whole afternoon looking at social media instead of studying."