When you Wild Shape/Polymorph you "assume the beast’s hit points" thus essentially creating a new, separate pool of HP from your own, original form similar to how Temporary Hit Points work, as Alexis Wilke has stated.
Damage taken in animal form doesn't affect your original form's HP unless you're dropped to 0 HP in animal form and there's excess damage. Nowhere is it suggested that max-HP reduce would work any differently. Because Wild Shape/Polymorph gives you a new pool of HP (as supported by Jeremy Crawford in the link below), only that pool is affected by the reduction.
So, using your example, if a PC has 30 HP in their original form and transforms into a beast that has 50 HP, the PC effectively has 50 HP. If the PC has their max HP reduced by 30 while transformed then they don't die as a result of having 0 HP because they're using the beast's HP and they still have 20 HP left in that pool.
As for whether the max HP reduction carries over to your original form when you revert, according to Jeremy Crawford, lead rules designer, the answer is no:
Jonathan Longstaff
@pukunui81
@JeremyECrawford What happens when a wildshaped druid that has had its HP max reduced reverts back to normal? Does the reduction carry over?
Jeremy Crawford
@JeremyECrawford
Wild Shape—a reduction to hp maximum doesn't carry over from your beast form to your true form or vice versa.
By RAW, the Druid dies.
Wild Shape protects you from a few specific things:
When you revert to your normal form, you revert to the number of hit points you had before you transformed (and then take overflow damage).
If you revert and have hitpoints remaining in caster form, you don't fall unconscious as a result of being reduced to 0 hit points.
Power Word Kill bypasses both of these restrictions by killing the Druid rather than dealing damage or reducing its hit points to zero. Returning the Druid to life (or preventing its death) is not one of the things that Wild Shape does.
This is basically the same argument as the one for massive damage, except that there's definitely no sequencing of events. The Druid dies, and Wild Shape doesn't protect you from dying. Game over.
House ruling options are slim here. Killing a druid for using a utility form is harsh. On the other hand, relegating a 9th level spell to "knock a druid out of wildshape once" is also pretty rough.
Does the druids combined HP matter or just the wild-shapes HP?
Just the Wild Shape's. Wild Shape says:
When you transform, you assume the beast's hit point and Hit Dice.
Like most of your other stats, your old hit point total "goes away" while you're in beast form. Your hit points are the beast's hit points.
With that said, adding beast hit points to caster hit points, or using the Druid's base hit points for spells such as Power Word Kill may be a useful house rule.
This ruling is confirmed in the Sage Advice Compendium, the source of official rulings from WotC:
What happens if I’m polymorphed or Wild Shaped into a creature with fewer than 100 hit points and then I’m targeted by power word kill?
You die.
Jeremy Crawford
This has been confirmed by Jeremy Crawford:
If a druid wildshapes into a wolf and is then targeted with power word kill does the druid revert dead or alive?
If you have 100 hp or fewer, power word kill causes you to die. Notice that it doesn't say you drop to 0 hp.
So what is PHB pg. 66 "You automatically revert if.....drop to 0hp, *or Die* ." telling us? Form dies, Druid reverts, yes?
Beast form ends if the druid dies; things like power word kill can end you without reducing hit points.
Best Answer
The druid leaves beast form, then their soul gets sucked out
As explained in the Q&A linked in the question, the ruling in Sage Advice Compendium how effects that snuff you out when you hit 0 and wild shape interact has been reversed:
The last sentence shows that the effect is not lost, it still applies to the creature, and is waiting to be resolved next. But if the creature now is not left at 0 any more, it does nothing.
I think the ruling for disintegrate makes it clear that the intention is for wild shape as a special case to always beat the normal rules of resolution order for simultaneous effects. (Without that ruling, the DM would need to decide the order of effects, or if you used the rules from Xanathar, the person that controls the current creature's turn.)
The wording between this and Disintegrate however differs. Disintegrate says:
Here the requirement is different:
The creature was reduced to 0 even if it has not been left with 0. The effect still is waiting to now be resolved, and since the soul gets sucked out of the creature if the sword did reduce it to 0 -and it did - its soul gets sucked out.
The wording of Wild Shape (p 66 PHB) is:
Reverting is not a replacement for dropping to 0. It does not say "If damage would reduce you to 0, instead you revert". You actually first drop to 0, and then revert.