The second option could work.
I’d like you to think about something though. For us, our categories are really like mini communities. Functionality below the community branding might feel a bit more connected.
Would we ever consider placing the actions below the branding, closer to the content. More like a FB group? I can work on a mockup. (I still think there are advantages to let users take some action after they start scrolling)

