Combine Media Players Cards into one

Good day to the community,
I have the card layout for Media Players, as displayed in the screenshot below:
image

My inquiry is whether there is a way to merge all these cards into one and display only the active card.
For example, when Plex is in use and actively playing a movie, I would like to see only that specific card.

Sounds like you may be asking different things.
A conditional card will only show that card based on a condition.

A “stack” card will let you combine multiple cards in a single stack, either vertical or horizontal.

I cannot get it to work. in Edit mode it displays my TV, but when i press done it goes away.
My code is:

type: conditional
conditions:
  - entity: media_player.nicks_tv_3
    state_not: 'off'
  - entity: media_player.plex_plex_for_android_tv_nick_s_tv
    state_not: 'off'
  - entity: media_player.playstation_5
    state_not: 'off'
  - entity: media_player.spotify_nick_dekoulis
    state_not: 'off'
card:
  type: media-control
  entity: media_player.nicks_tv_3

image
image

After playing a little I manage to fix the issue of displaying one card only. But still after i press done the card disappears.

type: conditional
conditions:
  - entity: media_player.nicks_tv_3
    state_not: 'off'
  - entity: media_player.plex_plex_for_android_tv_nick_s_tv
    state_not: 'off'
  - entity: media_player.playstation_5
    state_not: 'off'
  - entity: media_player.spotify_nick_dekoulis
    state_not: 'off'
card:
  type: custom:layout-card
  layout_type: custom:masonry-layout
  layout: {}
  cards:
    - type: media-control
      entity: media_player.nicks_tv_3
    - type: media-control
      entity: media_player.plex_plex_for_android_tv_nick_s_tv
    - type: media-control
      entity: media_player.spotify_nick_dekoulis
    - type: media-control
      entity: media_player.playstation_5

Still looking for a way to add multiple media players into one.

I am pretty sure that the conditional card uses “And” for its conditions, therefore they must all be true for it to display. There is likely more throughout this forum on this and there may be a way to get around this. Maybe with some group helper or something like that.