/* Toli Adugu V12.8.6 — final category/media correction */

/* Defensive: live PHP owns these labels; old helper labels must never be visible. */
.v128-media-showcase .v31-card-head small,
.v128-media-showcase [data-v31-banner-chip],
.v128-media-showcase .v31-banner-copy > small,
.media-hub-kicker{display:none!important}

/* Gallery gets one compact category-style header only. */
.v128-media-showcase .v31-gallery-card .v1285-gallery-head{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  height:54px!important;min-height:54px!important;padding:0 14px!important;
  background:#fff!important;border-top:4px solid #1976d2!important;border-bottom:1px solid #dbe7f2!important;
}
.v128-media-showcase .v31-gallery-card .v1285-gallery-head h2{
  margin:0!important;font-family:var(--ta-heading)!important;font-weight:800!important;font-size:20px!important;
}

/* Movie / OTT — force colour onto the lower text panel, never the poster image. */
.v128-media-showcase .v31-poster-card{padding:0!important;overflow:hidden!important;background:#171a38!important}
.v128-media-showcase .v31-poster-card > img{display:block!important;width:100%!important;height:132px!important;object-fit:cover!important}
.v128-media-showcase .v31-poster-card .v1285-poster-copy{
  display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
  padding:9px 9px 10px!important;min-height:78px!important;flex:1 1 auto!important;
  border-top:1px solid rgba(255,255,255,.22)!important;
}
.v128-media-showcase .v31-poster-card .v1285-poster-copy.tone-gold{background:linear-gradient(135deg,#b77908 0%,#6c3f00 100%)!important}
.v128-media-showcase .v31-poster-card .v1285-poster-copy.tone-orange{background:linear-gradient(135deg,#e05a2d 0%,#86220f 100%)!important}
.v128-media-showcase .v31-poster-card .v1285-poster-copy.tone-blue{background:linear-gradient(135deg,#2f7fd1 0%,#17436f 100%)!important}
.v128-media-showcase .v31-poster-card .v1285-poster-copy.tone-magenta{background:linear-gradient(135deg,#c23b93 0%,#671852 100%)!important}
.v128-media-showcase .v31-poster-card .v1285-poster-copy.tone-netflix{background:linear-gradient(135deg,#df2633 0%,#790b13 100%)!important}
.v128-media-showcase .v31-poster-card .v1285-poster-copy.tone-prime{background:linear-gradient(135deg,#22a2ee 0%,#08618f 100%)!important}
.v128-media-showcase .v31-poster-card .v1285-poster-copy.tone-hotstar{background:linear-gradient(135deg,#18a8c4 0%,#075b6d 100%)!important}
.v128-media-showcase .v31-poster-card .v1285-poster-copy.tone-aha{background:linear-gradient(135deg,#f0a51b 0%,#955200 100%)!important}
.v128-media-showcase .v31-poster-card .v1285-poster-copy b,
.v128-media-showcase .v31-poster-card .v1285-poster-copy span,
.v128-media-showcase .v31-poster-card .v1285-poster-copy small{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.25)!important}
.v128-media-showcase .v31-poster-card .v1285-poster-copy small{color:#ffe66d!important}

/* Category cards: keep approved fixed photo proportions, but compact the copy so the lead
   naturally matches the two child rows without a large white void. */
@media(min-width:901px){
  .category-section .five-news-layout{align-items:stretch!important}
  .category-section .children-grid{
    align-self:stretch!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;grid-auto-rows:1fr!important;
  }
  .category-section .lead-news-card{
    align-self:stretch!important;height:100%!important;min-height:0!important;
    display:grid!important;grid-template-rows:220px minmax(0,1fr)!important;
  }
  .category-section .lead-news-card .news-image{
    height:220px!important;min-height:220px!important;max-height:220px!important;aspect-ratio:auto!important;
  }
  .category-section .lead-news-card .news-copy{
    min-height:0!important;padding:10px 12px!important;display:flex!important;flex-direction:column!important;
  }
  .category-section .lead-news-card .news-copy h3{
    margin:0!important;-webkit-line-clamp:3!important;line-height:1.38!important;
  }
  .category-section .lead-news-card .news-copy .v1283-short-desc{
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:5!important;
    overflow:hidden!important;margin:5px 0 6px!important;line-height:1.38!important;font-size:11.5px!important;
  }
  .category-section .lead-news-card .news-copy .meta{margin-top:auto!important;padding-top:6px!important}

  .category-section .child-news-card{
    height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:118px minmax(0,1fr)!important;
  }
  .category-section .child-news-card .news-image{
    height:118px!important;min-height:118px!important;max-height:118px!important;aspect-ratio:auto!important;
  }
  .category-section .child-news-card .news-copy{padding:8px 9px!important;min-height:0!important;display:flex!important;flex-direction:column!important}
  .category-section .child-news-card .news-copy h3{
    -webkit-line-clamp:2!important;line-height:1.35!important;margin:0!important;font-size:11.5px!important;
  }
  .category-section .child-news-card .news-copy .v1283-short-desc{
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
    overflow:hidden!important;margin:3px 0 4px!important;line-height:1.3!important;font-size:9.5px!important;
  }
  .category-section .child-news-card .news-copy .meta{margin-top:auto!important;padding-top:5px!important;gap:6px!important}
}

@media(max-width:900px){
  .category-section .lead-news-card,.category-section .child-news-card{height:auto!important;min-height:0!important}
}
