/* Scoped overrides for zoro.to-clone theme usage in Next.js */

/* Ensure poster click overlay behaves consistently outside film lists */
.film-poster .film-poster-ahref {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: block;
}

/* Make background-image posters match object-fit cover behavior */
.film-poster .film-poster-img {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Watch: theme gốc để .anisc-poster 100–120px — mở rộng khớp cột phải + tỷ lệ 2:3 như trang tham chiếu */
#ani_detail .anis-watch-detail .anis-content .anisc-poster {
  width: 220px;
  max-width: min(40vw, 260px);
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  margin-bottom: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* Watch / chi tiết: khung poster + player cố định → giảm CLS khi ảnh và iframe load */
#ani_detail .anis-watch-detail .anis-content .anisc-poster .film-poster {
  width: 100%;
  max-width: none;
  aspect-ratio: 2 / 3;
  flex-shrink: 0;
}

@media screen and (max-width: 768px) {
  #ani_detail .anis-watch-detail .anis-content .anisc-poster {
    width: 140px;
    max-width: 42vw;
  }
}

#ani_detail .watch-player .player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background: #111;
}

#ani_detail .watch-player .player-frame iframe {
  position: absolute;
  inset: 0;
}

