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

/* 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}
