CAS: A General Algorithm for Online Selective Conformal Prediction with FCR Control