Time-dependent equations for phase differences and a collective mode in Josephson-coupled layered superconductors.