/* ANREWAX / GWATCH Homepage Compact Rails V48 */

/* Tighten vertical rhythm between homepage sections. */
.g3-row,
.g3-section,
.gw45-genre-row,
section:has(> .g3-section-head),
section:has(> .g3-rail){
  margin-top:28px !important;
  margin-bottom:28px !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  min-height:0 !important;
}

/* Rails should size to their cards, not create large empty vertical blocks. */
.g3-rail,
.gw45-rail,
#continueRail,
#trendingRail,
#latestRail,
#movieRail,
#seriesRail,
#animationRail{
  min-height:0 !important;
  height:auto !important;
  align-items:flex-start !important;
}

/* More consistent headings. */
.g3-section-head{
  margin-bottom:12px !important;
}

/* Keep cards compact and aligned. */
.g3-card,
.v191-card,
.gw45-card{
  align-self:flex-start !important;
}

.gw48-empty{
  color:#7f899b;
  font-size:12px;
  padding:8px 4px 12px;
}

/* Remove huge blank blocks left by deleted/failed ad containers on homepage. */
body[data-gw45-page="home"] .gw45-ad-zone:empty,
body[data-gw45-page="home"] .gw43-ad-zone:empty,
body[data-gw45-page="home"] .gw31-ad-zone:empty,
body[data-gw45-page="home"] [data-ad-slot]:empty{
  display:none !important;
  margin:0 !important;
  padding:0 !important;
  min-height:0 !important;
}

@media(max-width:800px){
  .g3-row,
  .g3-section,
  .gw45-genre-row,
  section:has(> .g3-section-head),
  section:has(> .g3-rail){
    margin-top:20px !important;
    margin-bottom:20px !important;
  }
}
