/* Toli Adugu V12.8.5 — category proportions + gallery/media polish */

/* Category hero headers: actual DOM is cleaned in PHP; these are defensive only. */
.category-title-copy>small,.category-title-copy>p,.dynamic-category-page .cat-identity small,.dynamic-category-page .cat-identity p{display:none!important}

/* Homepage category cards: restore the approved pre-16:9 photo sizes. */
@media(min-width:901px){
  .category-section .five-news-layout{align-items:stretch!important}
  .category-section .lead-news-card{
    display:flex!important;flex-direction:column!important;
    align-self:stretch!important;height:auto!important;min-height:0!important;
  }
  .category-section .lead-news-card .news-image{
    height:220px!important;min-height:220px!important;max-height:220px!important;
    flex:0 0 220px!important;aspect-ratio:auto!important;
  }
  .category-section .lead-news-card .news-copy{
    flex:1 1 auto!important;display:flex!important;flex-direction:column!important;
    justify-content:flex-start!important;
  }
  .category-section .lead-news-card .news-copy .meta{margin-top:auto!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 .child-news-card{
    display:flex!important;flex-direction:column!important;
    height:100%!important;min-height:0!important;align-self:stretch!important;
  }
  .category-section .child-news-card .news-image{
    height:118px!important;min-height:118px!important;max-height:118px!important;
    flex:0 0 118px!important;aspect-ratio:auto!important;
  }
  .category-section .child-news-card .news-copy{
    flex:1 1 auto!important;display:flex!important;flex-direction:column!important;
  }
  .category-section .child-news-card .news-copy .meta{margin-top:auto!important}
}

/* Keep dynamic category-page imagery at its original design proportions too. */
.dynamic-category-page .cat-image{aspect-ratio:auto!important}
.dynamic-category-page .cat-lead-card .cat-image{height:auto!important;min-height:0!important}
.dynamic-category-page .cat-lead-card .cat-image img{height:100%!important;min-height:210px!important;aspect-ratio:auto!important}
.dynamic-category-page .cat-child-card .cat-image{height:auto!important;min-height:0!important}
.dynamic-category-page .cat-child-card .cat-image img{height:100%!important;min-height:128px!important;aspect-ratio:auto!important}

/* Compact gallery header styled like a category section header — no PHOTO DESK helper line. */
.v128-media-showcase .v31-gallery-card .v1285-gallery-head{
  min-height:54px!important;height:54px!important;padding:0 14px!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  background:linear-gradient(90deg,#fff 0%,#f5f9ff 72%,#edf7ff 100%)!important;
  border-top:4px solid #1976d2!important;border-bottom:1px solid #d9e7f4!important;
}
.v1285-gallery-title{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important}
.v1285-gallery-icon{width:32px!important;height:32px!important;border-radius:10px!important;display:grid!important;place-items:center!important;background:#e8f3ff!important;color:#1671c8!important;flex:0 0 32px!important}
.v1285-gallery-icon svg{width:17px!important;height:17px!important;fill:none!important;stroke:currentColor!important}
.v128-media-showcase .v31-gallery-card .v1285-gallery-head h2{font-size:18px!important;line-height:1.1!important;margin:0!important}
.v128-media-showcase .v31-gallery-card .v1285-gallery-head a{font-size:10px!important;font-weight:800!important;color:#1671c8!important}

/* Movie / OTT: make the requested colour treatment explicit on the lower text panel only. */
.v128-media-showcase .v31-poster-card{
  display:flex!important;flex-direction:column!important;
  padding:0!important;background:#171a38!important;
}
.v128-media-showcase .v31-poster-card>img{
  display:block!important;width:100%!important;height:132px!important;min-height:132px!important;
  object-fit:cover!important;flex:0 0 132px!important;
}
.v128-media-showcase .v1285-poster-copy{
  flex:1 1 auto!important;min-height:0!important;padding:8px 8px 9px!important;
  display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
  border-top:1px solid rgba(255,255,255,.18)!important;
}
.v128-media-showcase .v1285-poster-copy.tone-gold{background:linear-gradient(135deg,#9a6908,#5f3900)!important}
.v128-media-showcase .v1285-poster-copy.tone-orange{background:linear-gradient(135deg,#d64b28,#7b1f12)!important}
.v128-media-showcase .v1285-poster-copy.tone-blue{background:linear-gradient(135deg,#3478c9,#1c3f74)!important}
.v128-media-showcase .v1285-poster-copy.tone-magenta{background:linear-gradient(135deg,#b12f82,#611a54)!important}
.v128-media-showcase .v1285-poster-copy.tone-netflix{background:linear-gradient(135deg,#c51f2a,#65090f)!important}
.v128-media-showcase .v1285-poster-copy.tone-prime{background:linear-gradient(135deg,#1889d2,#075080)!important}
.v128-media-showcase .v1285-poster-copy.tone-hotstar{background:linear-gradient(135deg,#178ca7,#075164)!important}
.v128-media-showcase .v1285-poster-copy.tone-aha{background:linear-gradient(135deg,#db8b09,#834b00)!important}
.v128-media-showcase .v1285-poster-copy b,
.v128-media-showcase .v1285-poster-copy span,
.v128-media-showcase .v1285-poster-copy small{
  display:block!important;margin:0!important;max-width:100%!important;
  color:#fff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  text-shadow:0 1px 2px rgba(0,0,0,.28)!important;
}
.v128-media-showcase .v1285-poster-copy b{font-family:var(--ta-heading)!important;font-size:10px!important;line-height:1.35!important;font-weight:800!important}
.v128-media-showcase .v1285-poster-copy span{font-size:11px!important;line-height:1.35!important;font-weight:900!important;margin-top:5px!important}
.v128-media-showcase .v1285-poster-copy small{font-size:9px!important;line-height:1.3!important;color:#ffe575!important;margin-top:5px!important}

/* The cinema banner no longer displays the old IN CINEMAS NOW helper label. */
.v128-media-showcase [data-v31-banner-chip]{display:none!important}

@media(max-width:900px){
  .category-section .lead-news-card .news-image{aspect-ratio:auto!important}
  .category-section .child-news-card .news-image{aspect-ratio:auto!important}
  .v128-media-showcase .v31-poster-card>img{height:122px!important;min-height:122px!important;flex-basis:122px!important}
}
@media(max-width:760px){
  .v128-media-showcase .v31-gallery-card .v1285-gallery-head{height:48px!important;min-height:48px!important;padding:0 10px!important}
  .v128-media-showcase .v31-gallery-card .v1285-gallery-head h2{font-size:15px!important}
  .v1285-gallery-icon{width:28px!important;height:28px!important;flex-basis:28px!important}
}
