Fetching details from the dictionary...

to indulge in; to give oneself up to; to be obsessed by
to be engrossed in; to be lost in; to be absorbed in
遊びに耽って勉強を怠った結果、試験に落ちた。
I neglected my studies, indulging in play.
休日は一日中読書に耽って外出しないことが多い。
I was absorbed in reading and forgot the time.
読書に耽るあまり、時間を忘れた。
So absorbed in reading, I lost track of time.