/* Mobile-only video layout alignment: homepage latest-video cards are the source of truth. */
@media (max-width: 767px) {
  /* Give the AI-video module a wider canvas so it no longer looks squeezed by page gutters. */
  html body.body .main .hub-wrap > .ai-video-section {
    width: calc(100% + 12px) !important;
    max-width: none !important;
    margin-left: -6px !important;
    margin-right: -6px !important;
    box-sizing: border-box !important;
  }

  /* Keep the homepage latest-video grid at three columns on every phone width. */
  html body.body .main .hub-wrap > #videos .category-con > .a-con {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px 8px !important;
  }

  /* Type / show / search lists use the exact same three-column card geometry. */
  html body.body .hub-wrap .home-video-list .category-con > .a-con,
  html body.body .hub-wrap .home-video-list .category-con .a-con,
  html body.body .vod-search-page .home-video-list .category-con .a-con {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Play-page recommendations inherit the same card grid as homepage latest videos. */
  html body.body .play-page-home-layout .home-latest-video-panel .category-con .a-con {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px 8px !important;
  }

  /* Normalize poster ratio, title and metadata across all requested lists. */
  html body.body .main .hub-wrap > #videos .category-con .a-con-inner .pic,
  html body.body .hub-wrap .home-video-list .category-con .a-con-inner .pic,
  html body.body .play-page-home-layout .home-latest-video-panel .a-con-inner .pic {
    width: 100% !important;
    aspect-ratio: 3 / 4 !important;
    overflow: hidden !important;
    border-radius: var(--r, 9px) !important;
  }

  html body.body .main .hub-wrap > #videos .category-con .a-con-inner .pic img,
  html body.body .hub-wrap .home-video-list .category-con .a-con-inner .pic img,
  html body.body .play-page-home-layout .home-latest-video-panel .a-con-inner .pic img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  html body.body .hub-wrap .home-video-list .category-con .a-con-inner,
  html body.body .play-page-home-layout .home-latest-video-panel .a-con-inner {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body.body .hub-wrap .home-video-list .category-con .a-con-inner .s1,
  html body.body .play-page-home-layout .home-latest-video-panel .a-con-inner .s1 {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    margin: 7px 0 0 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
  }

  html body.body .hub-wrap .home-video-list .category-con .a-con-inner .vod-time,
  html body.body .play-page-home-layout .home-latest-video-panel .a-con-inner .vod-time {
    margin-top: 3px !important;
    font-size: 9px !important;
  }
}
