/* DTV-HOME-POLISH01 Correction 05B — 427–440px Mobile Component Recovery.
 * Scope: homepage <=440px only. Extends the locked narrow-mobile contract through 440px
 * and refines only Live Deck, Now-on-Network, Councils, News, Shows and Trending.
 */
@media (max-width:440px){
  /* Live Deck: reduce dead vertical space while preserving hierarchy and touch targets. */
  body.home [data-dtv-homepage="ux10"] .dtv-g3-live[data-state="idle"]{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 92px!important;
    grid-template-rows:150px auto auto!important;
    height:auto!important;min-height:0!important;
  }
  body.home [data-dtv-homepage="ux10"] .dtv-g3-live[data-state="idle"] .dtv-g3-live__media{
    grid-column:1/-1!important;grid-row:1!important;height:150px!important;min-height:150px!important;
  }
  body.home [data-dtv-homepage="ux10"] .dtv-g3-live[data-state="idle"] .dtv-g3-live__media img{
    width:100%!important;height:100%!important;object-fit:contain!important;padding:18px 34px!important;box-sizing:border-box!important;
  }
  body.home [data-dtv-homepage="ux10"] .dtv-g3-live[data-state="idle"] .dtv-g3-live__identity{
    grid-column:1/-1!important;grid-row:2!important;min-height:56px!important;height:auto!important;padding:13px 20px!important;
    justify-content:center!important;align-items:flex-start!important;
  }
  body.home [data-dtv-homepage="ux10"] .dtv-g3-live[data-state="idle"] .dtv-g3-live__next{
    grid-column:1!important;grid-row:3!important;min-height:112px!important;height:auto!important;padding:15px 18px!important;
  }
  body.home [data-dtv-homepage="ux10"] .dtv-g3-live[data-state="idle"] .dtv-g3-live__next strong{
    font-size:17px!important;line-height:1.14!important;max-width:100%!important;
  }
  body.home [data-dtv-homepage="ux10"] .dtv-g3-live[data-state="idle"] .dtv-g3-live__date{
    grid-column:2!important;grid-row:3!important;min-height:112px!important;height:auto!important;padding:12px!important;
    border-left:1px solid rgba(255,255,255,.12)!important;border-top:1px solid rgba(255,255,255,.12)!important;
  }
  body.home [data-dtv-homepage="ux10"] .dtv-g3-live[data-state="idle"] .dtv-g3-live__date time{margin:0!important;}

  /* Now on Network: readable two-row mobile card. */
  body.home [data-dtv-homepage="ux10"] .dtv-g3-ticker>h2{
    min-height:50px!important;padding:10px 13px!important;gap:8px!important;font-size:11px!important;line-height:1.05!important;
    letter-spacing:-.01em!important;white-space:normal!important;
  }
  body.home [data-dtv-homepage="ux10"] .dtv-g3-ticker>h2 br{display:block!important;}
  body.home [data-dtv-homepage="ux10"] .dtv-g3-ticker__viewport,
  body.home [data-dtv-homepage="ux10"] .dtv-g3-ticker__viewport>ul,
  body.home [data-dtv-homepage="ux10"] .dtv-g3-ticker__viewport li{min-height:92px!important;height:92px!important;}
  body.home [data-dtv-homepage="ux10"] .dtv-g3-ticker__viewport li>a{min-height:92px!important;height:92px!important;padding:12px 14px 14px!important;}
  body.home [data-dtv-homepage="ux10"] .dtv-g3-ticker__viewport span{font-size:13px!important;line-height:1.22!important;-webkit-line-clamp:2!important;}
  body.home [data-dtv-homepage="ux10"] .dtv-g3-ticker__viewport small{font-size:9.5px!important;line-height:1.25!important;text-overflow:ellipsis!important;}

  /* Councils: preserve card geometry, gain title capacity. */
  body.home [data-dtv-homepage="ux10"] .dtv-page06-slider--civic-mobile .dtv-page06-civic-media strong{
    font-size:clamp(14px,3.75vw,16px)!important;line-height:1.08!important;-webkit-line-clamp:3!important;line-clamp:3!important;
  }
  body.home [data-dtv-homepage="ux10"] .dtv-page06-slider--civic-mobile .dtv-page06-civic-media>div{padding:13px 14px!important;}

  /* News: keep 2-up portrait contract, reduce overlay density and protect play control. */
  body.home [data-dtv-homepage="ux10"] .dtv-page06-slider--news-mobile article>a>div{
    padding:34px 10px 11px!important;background:linear-gradient(to top,rgba(4,18,35,.96) 0%,rgba(4,18,35,.78) 48%,rgba(4,18,35,0) 100%)!important;
  }
  body.home [data-dtv-homepage="ux10"] .dtv-page06-slider--news-mobile strong{
    font-size:clamp(12px,3.25vw,14px)!important;line-height:1.08!important;-webkit-line-clamp:3!important;line-clamp:3!important;
  }
  body.home [data-dtv-homepage="ux10"] .dtv-page06-slider--news-mobile em{font-size:7.5px!important;line-height:1.15!important;}
  body.home [data-dtv-homepage="ux10"] .dtv-page06-slider--news-mobile small{
    display:-webkit-box!important;font-size:8.5px!important;line-height:1.15!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;overflow:hidden!important;
  }
  body.home [data-dtv-homepage="ux10"] .dtv-page06-slider--news-mobile article>a>b{top:9px!important;right:9px!important;}

  /* Shows: fallback already renders its own name; suppress the duplicate outer title only there. */
  body.home [data-dtv-homepage="ux10"] .dtv-g6-shows li.has-brand-fallback>a>strong{display:none!important;}
  body.home [data-dtv-homepage="ux10"] .dtv-g6-shows li:not(.has-brand-fallback)>a>strong{
    font-size:12.5px!important;line-height:1.08!important;-webkit-line-clamp:2!important;line-clamp:2!important;padding-right:28px!important;
  }

  /* Trending: lead + swipeable ranked 02–05, two cards in view, three-line titles. */
  body.home [data-dtv-homepage="ux10"] .dtv-g7-trending-ranked-rail{
    gap:10px!important;padding-right:18px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;
  }
  body.home [data-dtv-homepage="ux10"] .dtv-g7-trending-ranked-rail>li,
  body.home [data-dtv-homepage="ux10"] .dtv-g7-trending-ranked-rail>li.is-ranked{
    flex:0 0 calc((100% - 10px)/2)!important;max-width:calc((100% - 10px)/2)!important;scroll-snap-align:start!important;
  }
  body.home [data-dtv-homepage="ux10"] .dtv-g7-trending-ranked-rail>li a>span{
    display:-webkit-box!important;min-height:46px!important;max-height:46px!important;font-size:11.5px!important;line-height:1.28!important;
    -webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;line-clamp:3!important;overflow:hidden!important;
  }
}
