Price when both supply and demand have market power
I suppose one way to solve this - but I'm still looking for a proper way without - is to fall back to matching.

If there is matching between the intermediate and the final stage, at zero search cost and symmetric arrival rates, the surplus will be split given the Nashbargaining weights - which then determines the price.