Each play 1 round robin game within group. 3 points for win...1 for draw. Top 2 in each group standings go to round of 16. Obviously many will have same amount of points so tie-breakers are used.
The first decider is goal difference, then total goals scored, followed by head-to-head results, and then I believe a stupid lottery/flip of the coin will be used if all else fails.