a complex system of interconnecting bony or membranous cavities, particularly those concerned with hearing and balance