/* GateAnime: keep original hero slider look but stabilize height + keep CTA visible. */


/* Reserve space early to reduce CLS (fix for slow image/font loads) */
.MovieListSldCn,
.MovieListSldCn .MovieListSld,
.MovieListSldCn .owl-stage-outer{
  min-height:370px;
}
@media (max-width: 992px){
  .MovieListSldCn,
  .MovieListSldCn .MovieListSld,
  .MovieListSldCn .owl-stage-outer{min-height:320px}
}
@media (max-width: 768px){
  .MovieListSldCn,
  .MovieListSldCn .MovieListSld,
  .MovieListSldCn .owl-stage-outer{min-height:260px}
}

/* Make slide image height consistent so Owl doesn't jump */
.MovieListSldCn .TPost.D .Image figure{
  padding-top:0 !important;
  height:370px;
}
@media (max-width: 992px){
  .MovieListSldCn .TPost.D .Image figure{height:320px}
}
@media (max-width: 768px){
  .MovieListSldCn .TPost.D .Image figure{height:260px}
}
.MovieListSldCn .TPost.D .Image figure img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Keep panel same height as image, remove scrolling that hides the CTA */
.MovieListSldCn .TPost.D .TPMvCn{
  height:370px;
  overflow:hidden !important;
  display:flex;
  flex-direction:column;
}
@media (max-width: 992px){
  .MovieListSldCn .TPost.D .TPMvCn{height:320px}
}
@media (max-width: 768px){
  .MovieListSldCn .TPost.D .TPMvCn{height:260px}
}

/* Clamp description so it never pushes the button out */
.MovieListSldCn .TPost.D .TPMvCn .Description{
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}
@media (max-width: 768px){
  .MovieListSldCn .TPost.D .TPMvCn .Description{-webkit-line-clamp:3}
}

/* Pin buttons to the bottom inside the existing panel */
.MovieListSldCn .TPost.D .TPMvCn > .Button{
  margin-top:auto;
}

/* Smaller Watch button + Favorites text button (keeps original slider look) */
.MovieListSldCn .TPost.D .GAHeroBtnRow{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
}
.MovieListSldCn .TPost.D .GAHeroBtnRow > .Button.TPlay{
  padding:7px 12px;
  font-size:.85rem;
  line-height:1.2;
  border-radius:10px;
}
.MovieListSldCn .TPost.D .GAHeroBtnRow > .trFavTextBtn{
  padding:7px 12px;
  font-size:.85rem;
  line-height:1.2;
  border-radius:10px;
  text-decoration:none !important;
}
/* keep icon + text nicely */
.MovieListSldCn .TPost.D .GAHeroBtnRow > .trFavTextBtn:before{
  margin-inline-end:8px;
}
/* prevent the old ul favorites styles from affecting this button */
.MovieListSldCn .TPost.D .GAHeroBtnRow .trFavWrap{display:none !important}

/* Favorites slider button: show text only when favorited */
.MovieListSldCn .TPost.D .GAHeroBtnRow > .trFavTextBtn .trFavText{display:none;}
.MovieListSldCn .TPost.D .GAHeroBtnRow > .trFavTextBtn.is-favorited .trFavText{display:inline-block;}

/* Keep buttons at bottom without creating huge empty space */
.MovieListSldCn .TPost.D .TPMvCn{display:flex;flex-direction:column}
.MovieListSldCn .TPost.D .TPMvCn .Description{flex:1 1 auto}


/* --- GateAnime: Hero slider buttons polish (v3) --- */

@media (min-width: 0px){
  .MovieListSldCn .TPost.D .GAHeroBtnRow{
    align-items:center;
    padding-inline-start:10px; /* right padding in RTL */
    margin-top:12px;
  }
  .MovieListSldCn .TPost.D .GAHeroBtnRow > .Button.TPlay,
  .MovieListSldCn .TPost.D .GAHeroBtnRow > .trFavTextBtn{
    /* Keep the same look/feel as the theme's base .Button rules */
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    height:42px;
    min-height:42px;
    line-height:39px; /* 42px height with 3px bottom padding */
    padding:0 1rem 3px;
    border-radius:25px;
    box-shadow:inset 0 -3px 0 rgba(0,0,0,.2);
    border:0;
    font-weight:700;
    font-size:.95rem;
  }
  .MovieListSldCn .TPost.D .GAHeroBtnRow > .Button.TPlay{
    min-width:160px;
  }
  .MovieListSldCn .TPost.D .GAHeroBtnRow > .trFavTextBtn{
    min-width:42px;
    background:#00b0ff;
    color:#fff;
  }
  .MovieListSldCn .TPost.D .GAHeroBtnRow > .trFavTextBtn:not(.is-favorited){
    width:42px;
    padding:0 0 3px;
  }
  .MovieListSldCn .TPost.D .GAHeroBtnRow > .trFavTextBtn:before{
    margin:0; /* let gap handle spacing */
  }
}
