/* Keep catalogue card metadata aligned when one title wraps to two lines.
   Only catalogue/home tiles: article and video detail headings stay unchanged. */

/* Magazine grid: all posters, headlines, two-line summaries, stats and
   authors occupy the same vertical slots even if the headline is short. */
body .community-page [data-magazine-list]>.playno-magazine-item .pl-magazine-list-title{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  line-height:1.55!important;
  box-sizing:content-box!important;
  height:3.1em!important;
  min-height:3.1em!important;
  max-height:3.1em!important;
  margin:0!important;
  padding:0!important;
}
body .community-page [data-magazine-list]>.playno-magazine-item .pl-magazine-external-summary{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  overflow-wrap:anywhere!important;
  box-sizing:content-box!important;
  height:3.5em!important;
  min-height:3.5em!important;
  max-height:3.5em!important;
  line-height:1.75!important;
}

/* Never paint a background on the statistics strip of magazine cards.
   The save/bookmark action remains interactive when visible, but an empty
   or disabled statistics strip does not leave a blank tinted rectangle. */
body .community-page [data-magazine-list]>.playno-magazine-item>.pl-social,
body .community-page [data-video-sections] .playno-video-item>.pl-social,
body .community-page [data-magazine-list]>.playno-magazine-item>.pl-social:hover,
body .community-page [data-video-sections] .playno-video-item>.pl-social:hover{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  min-height:28px!important;
  margin-top:0!important;
  padding:2px 4px!important;
}
body .community-page [data-magazine-list]>.playno-magazine-item>.pl-social::before,
body .community-page [data-magazine-list]>.playno-magazine-item>.pl-social::after,
body .community-page [data-video-sections] .playno-video-item>.pl-social::before,
body .community-page [data-video-sections] .playno-video-item>.pl-social::after{
  content:none!important;
  background:none!important;
  box-shadow:none!important;
}

/* Video shelf titles follow the same two-line reservation. */
body .community-page [data-video-sections] .playno-video-item .pl-video-list-title{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  white-space:normal!important;
  overflow:hidden!important;
  overflow-wrap:anywhere!important;
  box-sizing:border-box!important;
  height:calc(3.3em + 6px)!important;
  min-height:calc(3.3em + 6px)!important;
  max-height:calc(3.3em + 6px)!important;
}

/* Homepage editorial cards reserve two title lines at tablet/desktop sizes.
   The existing single-line compact phone rail is deliberately retained. */
@media(min-width:651px){
  body [data-homepage-sections] [data-pl-home-section="magazine"] .pl-home-magazine-grid>.pl-magazine-card>.pl-discovery-meta strong{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    white-space:normal!important;
    overflow:hidden!important;
    overflow-wrap:anywhere!important;
    line-height:1.6!important;
    box-sizing:content-box!important;
    height:3.2em!important;
    min-height:3.2em!important;
    max-height:3.2em!important;
  }
}

/* PC and Android catalogue titles: two lines are reserved consistently. */
body .pl-download-page .pl-download-card .pl-download-title{
  box-sizing:content-box!important;
  min-height:3.3em!important;
  height:3.3em!important;
  max-height:3.3em!important;
  overflow:hidden!important;
  line-height:1.55!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow-wrap:anywhere!important;
}
body main.ad-main[data-mode="listing"] .ad-card .ad-card-title{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  overflow-wrap:anywhere!important;
  box-sizing:content-box!important;
  line-height:1.4!important;
  height:2.8em!important;
  min-height:2.8em!important;
  max-height:2.8em!important;
}
@media(max-width:649px){
  body .arcade-page .pl-browser-game-section .pl-home-recent-tile .pl-home-arcade-title{
    box-sizing:border-box!important;
    height:45px!important;
    min-height:45px!important;
    max-height:45px!important;
  }
  body [data-homepage-sections] .pl-home-mosaic>.pl-home-arcade-card:not(.is-featured) .pl-home-arcade-title{
    box-sizing:border-box!important;
    min-height:46px!important;
    height:46px!important;
    max-height:46px!important;
  }
}
