The eastern and western sides of the Forbidden City are the palatial former living quarters, once containing libraries, temples, theaters, gardens, and even the tennis court of the last emperor.