MAN-hungry Taylor Swift’s got a “Criminal Mind”!

The “Red” singer, 23, has flipped for actor Matthew Gray Gubler, 33, who plays bril­liant but quirky violent-criminal profiler Dr. Spencer Reid on the hit CBS series.

“Taylor is nuts about Matthew,” said a source close to Swift.

Insiders say Gubler, a former fashion model, was a special guest at Taylor’s Fourth of July bash at her $17 million oceanfront mansion in Rhode Island.

But she was apparently trying to keep the romance un­der wraps.

“She posted photographs from the party on her blog that showed her backup dancers, but Matthew’s picture was conspicuously absent,” said a source.

“It was as if Taylor was purposely trying to keep his presence there on the downlow.”

Gubler gave away the secret when he posted a picture on his Twitter page from the party. He had the same American flag face paint as Taylor’s and the kitchen cabinets in Gubler’s picture were identical to those in hers.

But it wasn’t long before Gubler’s Twitter photo was removed.

“Taylor’s trying to keep the whole relationship with Matthew secret for now,” said an insider. “That’s why she’s saying they’re ‘just friends.’ The truth is, she wants to get to know him better be­fore they take the relation­ship public.”

The two may have a difficult time getting together because he works in Los Angeles and she’s in the middle of a big concert tour. And he’s likely to be wary considering that Taylor has dated a long list of actors and singers, including Joe Jonas, John Mayer, Taylor Lautner, Cory Monteith, Jake Gyllenhaal and One Direction’s Harry Styles – several of whom she’s penned songs about after the inevitable split.

“Taylor wants to fly Matthew out to visit her on tour this summer,” said the source.

“But Matthew’s pals are warning him to watch out. They don’t want to see him become the subject of one of Taylor’s infamous breakup songs!”