SN Thompson drains go-ahead three in dying seconds to lock Heat win