/* ANREWAX / GWATCH Homepage Tight Spacing V49 */

/* Exact homepage sections. These override homepage-v19 / v19-1 spacing. */
#trending.g3-row,
#latest.g3-row,
#movies.g3-row,
#series.g3-row,
#animation.g3-row,
#continueRow.g3-row,
#myListRow.g3-row,
#rewardsRow.g3-row,
main > .g3-row,
main > .gw45-genre-row{
  margin-top:0 !important;
  margin-bottom:14px !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  min-height:0 !important;
}

/* Remove the extra gap rule between consecutive rows. */
main > .g3-row + .g3-row,
main > .gw45-genre-row + .g3-row,
main > .g3-row + .gw45-genre-row,
main > .gw45-genre-row + .gw45-genre-row{
  margin-top:0 !important;
}

/* Headings stay close to the cards below them. */
#trending .g3-section-head,
#latest .g3-section-head,
#movies .g3-section-head,
#series .g3-section-head,
#animation .g3-section-head,
main > .g3-row > .g3-section-head,
main > .gw45-genre-row > .g3-section-head{
  margin-top:12px !important;
  margin-bottom:9px !important;
}

/* Rails should not reserve vertical room below the cards. */
#trendingRail,
#latestRail,
#movieRail,
#seriesRail,
#animationRail,
#continueRail,
main .g3-rail,
main .gw45-rail{
  min-height:0 !important;
  height:auto !important;
  padding-top:0 !important;
  padding-bottom:5px !important;
  margin-top:0 !important;
  margin-bottom:0 !important;
}

/* Compact discover-to-first-row transition too. */
.g3-discover{
  margin-bottom:12px !important;
}

/* Any empty/failed ad or placeholder must not create vertical whitespace. */
main .gw45-ad-zone:empty,
main .gw43-ad-zone:empty,
main .gw31-ad-zone:empty,
main [data-ad-slot]:empty,
main .gw48-empty:empty{
  display:none !important;
  height:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
}

/* Genre rails remain slightly separated for readability. */
main > .gw45-genre-row{
  margin-bottom:18px !important;
}

@media(max-width:760px){
  #trending.g3-row,
  #latest.g3-row,
  #movies.g3-row,
  #series.g3-row,
  #animation.g3-row,
  main > .g3-row,
  main > .gw45-genre-row{
    margin-bottom:10px !important;
  }

  main > .g3-row > .g3-section-head,
  main > .gw45-genre-row > .g3-section-head{
    margin-top:9px !important;
    margin-bottom:7px !important;
  }
}
